|
Freeciv-3.1
|
#include <dialogs.h>
Inheritance diagram for units_select: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 |
| units_select::units_select | ( | struct tile * | ptile, |
| QWidget * | parent | ||
| ) |
Constructor for units_select
Definition at line 4309 of file dialogs.cpp.
| units_select::~units_select | ( | ) |
Destructor for unit select
Definition at line 4344 of file dialogs.cpp.
|
protected |
Close event for units_select, restores focus to map
Definition at line 4687 of file dialogs.cpp.
| void units_select::create_pixmap | ( | ) |
Create pixmap of whole widget except borders (pix)
Definition at line 4354 of file dialogs.cpp.
Referenced by mouseMoveEvent(), units_select(), update_img(), fc_client::update_unit_sel(), and wheelEvent().
|
protected |
Keyboard handler for units_select
Definition at line 4720 of file dialogs.cpp.
|
protected |
Event for mouse moving around units_select
Definition at line 4489 of file dialogs.cpp.
|
protected |
Mouse pressed event for units_select. Left Button - chooses units Right Button - closes widget
Definition at line 4520 of file dialogs.cpp.
|
protected |
|
protected |
Paint event, redirects to paint(...)
Definition at line 4632 of file dialogs.cpp.
|
privateslot |
Update image, because in constructor theme colors are uninitialized in QPainter
Definition at line 4545 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 4645 of file dialogs.cpp.
| void units_select::update_units | ( | ) |
Updates unit list on tile
Definition at line 4655 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 4696 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 |
pixmap for highlighting
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().
|
private |
size of each pixmap of unit
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().