Freeciv-3.4
|
#include <citydlg.h>
Public Member Functions | |
city_map (QWidget *parent) | |
~city_map () | |
void | set_pixmap (struct city *pcity, float z) |
Protected Member Functions | |
QSize | sizeHint () const |
QSize | minimumSizeHint () const |
Private Slots | |
void | context_menu (QPoint point) |
Private Member Functions | |
void | mousePressEvent (QMouseEvent *event) |
void | paintEvent (QPaintEvent *event) |
Private Attributes | |
canvas * | view |
canvas * | miniview |
QPixmap | zoomed_pixmap |
struct city * | mcity |
int | radius |
float | zoom |
int | wdth |
int | height |
int | cutted_width |
int | cutted_height |
int | delta_x |
int | delta_y |
city_map::city_map | ( | QWidget * | parent | ) |
Used for showing tiles and workers view in city dialog
Definition at line 1195 of file citydlg.cpp.
city_map::~city_map | ( | ) |
Destructor for city map
Definition at line 1217 of file citydlg.cpp.
Context menu for setting worker tasks
Definition at line 1324 of file citydlg.cpp.
Referenced by city_map().
|
protected |
Minimum size hint for city map
Definition at line 1294 of file citydlg.cpp.
|
private |
Used to change workers on view
Definition at line 1302 of file citydlg.cpp.
|
private |
Redraws whole view in city_map
Definition at line 1226 of file citydlg.cpp.
Calls function to put pixmap on view ( it doesn't draw on screen )
Definition at line 1250 of file citydlg.cpp.
|
protected |
Size hint for city map
Definition at line 1286 of file citydlg.cpp.
|
private |
Definition at line 282 of file citydlg.h.
Referenced by city_map(), and set_pixmap().
|
private |
Definition at line 281 of file citydlg.h.
Referenced by city_map(), and set_pixmap().
|
private |
Definition at line 283 of file citydlg.h.
Referenced by city_map(), context_menu(), mousePressEvent(), and set_pixmap().
|
private |
Definition at line 284 of file citydlg.h.
Referenced by city_map(), context_menu(), mousePressEvent(), and set_pixmap().
|
private |
Definition at line 280 of file citydlg.h.
Referenced by city_map(), and set_pixmap().
Definition at line 276 of file citydlg.h.
Referenced by context_menu(), mousePressEvent(), paintEvent(), and set_pixmap().
|
private |
Definition at line 266 of file citydlg.h.
Referenced by city_map(), set_pixmap(), and ~city_map().
|
private |
Definition at line 277 of file citydlg.h.
Referenced by city_map(), and set_pixmap().
|
private |
Definition at line 279 of file citydlg.h.
Referenced by city_map(), and set_pixmap().
|
private |
Definition at line 278 of file citydlg.h.
Referenced by context_menu(), mousePressEvent(), and set_pixmap().
|
private |
Definition at line 267 of file citydlg.h.
Referenced by minimumSizeHint(), paintEvent(), set_pixmap(), and sizeHint().