Freeciv-3.3
|
#include <dialogs.h>
Public Member Functions | |
units_select (struct tile *ptile, QWidget *parent) | |
~units_select () | |
void | update_menu () |
void | update_units () |
void | create_pixmap () |
Data Fields | |
tile * | utile |
Data Fields inherited from fcwidget | |
bool | was_destroyed |
Protected Member Functions | |
void | paint (QPainter *painter, QPaintEvent *event) |
void | paintEvent (QPaintEvent *event) |
void | mousePressEvent (QMouseEvent *event) |
void | keyPressEvent (QKeyEvent *event) |
void | mouseMoveEvent (QMouseEvent *event) |
void | wheelEvent (QWheelEvent *event) |
void | closeEvent (QCloseEvent *event) |
Private Slots | |
void | update_img () |
Private Attributes | |
QPixmap * | pix |
QPixmap * | h_pix |
QSize | item_size |
QList< unit * > | unit_list |
QFont | ufont |
QFont | info_font |
int | row_count |
close_widget * | cw |
bool | more |
int | show_line |
int | highligh_num |
int | unit_count |
Constructor for units_select
Definition at line 4488 of file dialogs.cpp.
units_select::~units_select | ( | ) |
Destructor for unit select
Definition at line 4523 of file dialogs.cpp.
|
protected |
Close event for units_select, restores focus to map
Definition at line 4866 of file dialogs.cpp.
void units_select::create_pixmap | ( | ) |
Create pixmap of whole widget except borders (pix)
Definition at line 4533 of file dialogs.cpp.
Referenced by mouseMoveEvent(), units_select(), update_img(), fc_client::update_unit_sel(), and wheelEvent().
Keyboard handler for units_select
Definition at line 4899 of file dialogs.cpp.
|
protected |
Event for mouse moving around units_select
Definition at line 4668 of file dialogs.cpp.
|
protected |
Mouse pressed event for units_select. Left Button - chooses units Right Button - closes widget
Definition at line 4699 of file dialogs.cpp.
|
protected |
|
protected |
Paint event, redirects to paint(...)
Definition at line 4811 of file dialogs.cpp.
|
privateslot |
Update image, because in constructor theme colors are uninitialized in QPainter
Definition at line 4724 of file dialogs.cpp.
Referenced by units_select().
|
virtual |
Function from abstract fcwidget to update menu, its not needed cause widget is easy closable via right mouse click
Implements fcwidget.
Definition at line 4824 of file dialogs.cpp.
void units_select::update_units | ( | ) |
Updates unit list on tile
Definition at line 4834 of file dialogs.cpp.
Referenced by create_pixmap(), mousePressEvent(), qtg_real_focus_units_changed(), units_select(), fc_client::update_unit_sel(), and wheelEvent().
|
protected |
Mouse wheel event for units_select
Definition at line 4875 of file dialogs.cpp.
|
private |
Definition at line 213 of file dialogs.h.
Referenced by paint(), units_select(), and ~units_select().
|
private |
Definition at line 206 of file dialogs.h.
Referenced by create_pixmap(), units_select(), and ~units_select().
|
private |
Definition at line 234 of file dialogs.h.
Referenced by create_pixmap(), mouseMoveEvent(), mousePressEvent(), paint(), and units_select().
|
private |
Definition at line 211 of file dialogs.h.
Referenced by create_pixmap(), mouseMoveEvent(), paint(), and units_select().
|
private |
Definition at line 207 of file dialogs.h.
Referenced by create_pixmap(), and mouseMoveEvent().
|
private |
Definition at line 232 of file dialogs.h.
Referenced by create_pixmap(), paint(), and wheelEvent().
|
private |
Definition at line 205 of file dialogs.h.
Referenced by create_pixmap(), paint(), units_select(), and ~units_select().
|
private |
Definition at line 212 of file dialogs.h.
Referenced by create_pixmap(), and mouseMoveEvent().
|
private |
Definition at line 233 of file dialogs.h.
Referenced by paint(), units_select(), update_units(), and wheelEvent().
|
private |
storing units only for drawing, for rest units iterate utile->units
Definition at line 210 of file dialogs.h.
Referenced by create_pixmap(), and units_select().
|
private |
Definition at line 235 of file dialogs.h.
Referenced by create_pixmap(), paint(), and update_units().
Definition at line 208 of file dialogs.h.
Referenced by create_pixmap(), mousePressEvent(), paint(), and update_units().
tile* units_select::utile |
Definition at line 220 of file dialogs.h.
Referenced by paint(), units_select(), update_units(), and wheelEvent().