Freeciv-3.1
|
#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 1226 of file citydlg.cpp.
city_map::~city_map | ( | ) |
Destructor for city map
Definition at line 1248 of file citydlg.cpp.
|
privateslot |
Context menu for setting worker tasks
Definition at line 1355 of file citydlg.cpp.
Referenced by city_map().
|
protected |
Minimum size hint for city map
Definition at line 1325 of file citydlg.cpp.
|
private |
Used to change workers on view
Definition at line 1333 of file citydlg.cpp.
|
private |
Redraws whole view in city_map
Definition at line 1257 of file citydlg.cpp.
void city_map::set_pixmap | ( | struct city * | pcity, |
float | z | ||
) |
Calls function to put pixmap on view ( it doesn't draw on screen )
Definition at line 1281 of file citydlg.cpp.
|
protected |
Size hint for city map
Definition at line 1317 of file citydlg.cpp.
|
private |
Definition at line 290 of file citydlg.h.
Referenced by city_map(), and set_pixmap().
|
private |
Definition at line 289 of file citydlg.h.
Referenced by city_map(), and set_pixmap().
|
private |
Definition at line 291 of file citydlg.h.
Referenced by city_map(), context_menu(), mousePressEvent(), and set_pixmap().
|
private |
Definition at line 292 of file citydlg.h.
Referenced by city_map(), context_menu(), mousePressEvent(), and set_pixmap().
|
private |
Definition at line 288 of file citydlg.h.
Referenced by city_map(), and set_pixmap().
|
private |
Definition at line 284 of file citydlg.h.
Referenced by context_menu(), mousePressEvent(), paintEvent(), and set_pixmap().
|
private |
Definition at line 274 of file citydlg.h.
Referenced by city_map(), set_pixmap(), and ~city_map().
|
private |
Definition at line 285 of file citydlg.h.
Referenced by city_map(), and set_pixmap().
|
private |
Definition at line 287 of file citydlg.h.
Referenced by city_map(), and set_pixmap().
|
private |
Definition at line 286 of file citydlg.h.
Referenced by context_menu(), mousePressEvent(), and set_pixmap().
|
private |
Definition at line 275 of file citydlg.h.
Referenced by minimumSizeHint(), paintEvent(), set_pixmap(), and sizeHint().