Freeciv-3.2
|
#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 1227 of file citydlg.cpp.
city_map::~city_map | ( | ) |
Destructor for city map
Definition at line 1249 of file citydlg.cpp.
Context menu for setting worker tasks
Definition at line 1356 of file citydlg.cpp.
Referenced by city_map().
|
protected |
Minimum size hint for city map
Definition at line 1326 of file citydlg.cpp.
|
private |
Used to change workers on view
Definition at line 1334 of file citydlg.cpp.
|
private |
Redraws whole view in city_map
Definition at line 1258 of file citydlg.cpp.
Calls function to put pixmap on view ( it doesn't draw on screen )
Definition at line 1282 of file citydlg.cpp.
|
protected |
Size hint for city map
Definition at line 1318 of file citydlg.cpp.
|
private |
Definition at line 291 of file citydlg.h.
Referenced by city_map(), and set_pixmap().
|
private |
Definition at line 290 of file citydlg.h.
Referenced by city_map(), 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 293 of file citydlg.h.
Referenced by city_map(), context_menu(), mousePressEvent(), and set_pixmap().
|
private |
Definition at line 289 of file citydlg.h.
Referenced by city_map(), and set_pixmap().
Definition at line 285 of file citydlg.h.
Referenced by context_menu(), mousePressEvent(), paintEvent(), and set_pixmap().
|
private |
Definition at line 275 of file citydlg.h.
Referenced by city_map(), set_pixmap(), and ~city_map().
|
private |
Definition at line 286 of file citydlg.h.
Referenced by city_map(), and set_pixmap().
|
private |
Definition at line 288 of file citydlg.h.
Referenced by city_map(), and set_pixmap().
|
private |
Definition at line 287 of file citydlg.h.
Referenced by context_menu(), mousePressEvent(), and set_pixmap().
|
private |
Definition at line 276 of file citydlg.h.
Referenced by minimumSizeHint(), paintEvent(), set_pixmap(), and sizeHint().