![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
#include <unithudselector.h>
Inheritance diagram for unit_hud_selector:
Collaboration diagram for unit_hud_selector:Public Member Functions | |
| unit_hud_selector (QWidget *parent) | |
| Constructor for unit_hud_selector. More... | |
| ~unit_hud_selector () override | |
| Unit_hud_selector destructor. More... | |
| void | show_me () |
| Shows and moves to center unit_hud_selector. More... | |
Public Member Functions inherited from qfc_dialog | |
| qfc_dialog (QWidget *parent) | |
| Constructor for custom dialog with themed titlebar. More... | |
| ~qfc_dialog () override | |
Protected Member Functions | |
| void | keyPressEvent (QKeyEvent *event) override |
| Key press event for unit_hud_selector. More... | |
Protected Member Functions inherited from qfc_dialog | |
| void | paintEvent (QPaintEvent *event) override |
| Paint event for themed dialog. More... | |
| void | mouseMoveEvent (QMouseEvent *event) override |
| Mouse move event for themed titlebar (moves dialog with left mouse) More... | |
| void | mousePressEvent (QMouseEvent *event) override |
| Mouse press event - catches left click. More... | |
| void | mouseReleaseEvent (QMouseEvent *event) override |
| Mouse release event for themed dialog. More... | |
Private Slots | |
| void | select_units (int x=0) |
| Shows number of selected units on label. More... | |
| void | select_units (bool x) |
| Convinient slot for ez connect. More... | |
| void | uhs_select () |
| Selects and closes widget. More... | |
| void | uhs_cancel () |
| Closes current widget. More... | |
Private Member Functions | |
| bool | activity_filter (struct unit *punit) |
| Filter by activity. More... | |
| bool | hp_filter (struct unit *punit) |
| Filter by hp/mp. More... | |
| bool | island_filter (struct unit *punit) |
| Filter by location. More... | |
| bool | type_filter (struct unit *punit) |
| Filter by type. More... | |
Private Attributes | |
| QVBoxLayout * | main_layout |
| QComboBox * | unit_sel_type |
| QPushButton * | select |
| QPushButton * | cancel |
| QRadioButton * | any_activity |
| QRadioButton * | fortified |
| QRadioButton * | idle |
| QRadioButton * | sentried |
| QRadioButton * | any |
| QRadioButton * | full_mp |
| QRadioButton * | full_hp |
| QRadioButton * | full_hp_mp |
| QRadioButton * | this_tile |
| QRadioButton * | this_continent |
| QRadioButton * | main_continent |
| QRadioButton * | anywhere |
| QRadioButton * | this_type |
| QRadioButton * | any_type |
| QLabel | result_label |
Definition at line 52 of file unithudselector.h.
| unit_hud_selector::unit_hud_selector | ( | QWidget * | parent | ) |
Constructor for unit_hud_selector.
Definition at line 30 of file unithudselector.cpp.
|
overridedefault |
Unit_hud_selector destructor.
|
private |
Filter by activity.
Definition at line 266 of file unithudselector.cpp.
Referenced by select_units(), and uhs_select().
|
private |
Filter by hp/mp.
Definition at line 277 of file unithudselector.cpp.
Referenced by select_units(), and uhs_select().
|
private |
Filter by location.
Definition at line 290 of file unithudselector.cpp.
Referenced by select_units(), and uhs_select().
|
overrideprotected |
Key press event for unit_hud_selector.
Definition at line 251 of file unithudselector.cpp.
|
privateslot |
Convinient slot for ez connect.
Definition at line 246 of file unithudselector.cpp.
|
privateslot |
Shows number of selected units on label.
Definition at line 225 of file unithudselector.cpp.
Referenced by select_units(), show_me(), and unit_hud_selector().
| void unit_hud_selector::show_me | ( | ) |
Shows and moves to center unit_hud_selector.
Definition at line 179 of file unithudselector.cpp.
Referenced by mr_menu::slot_unit_filter().
|
private |
Filter by type.
Definition at line 320 of file unithudselector.cpp.
Referenced by select_units(), and uhs_select().
|
privateslot |
Closes current widget.
Definition at line 220 of file unithudselector.cpp.
Referenced by unit_hud_selector().
|
privateslot |
Selects and closes widget.
Definition at line 200 of file unithudselector.cpp.
Referenced by keyPressEvent(), and unit_hud_selector().
|
private |
Definition at line 83 of file unithudselector.h.
Referenced by hp_filter(), and unit_hud_selector().
|
private |
Definition at line 78 of file unithudselector.h.
Referenced by activity_filter(), and unit_hud_selector().
|
private |
Definition at line 94 of file unithudselector.h.
Referenced by type_filter(), and unit_hud_selector().
|
private |
Definition at line 91 of file unithudselector.h.
Referenced by island_filter(), and unit_hud_selector().
|
private |
Definition at line 57 of file unithudselector.h.
Referenced by unit_hud_selector().
|
private |
Definition at line 79 of file unithudselector.h.
Referenced by activity_filter(), and unit_hud_selector().
|
private |
Definition at line 85 of file unithudselector.h.
Referenced by hp_filter(), and unit_hud_selector().
|
private |
Definition at line 86 of file unithudselector.h.
Referenced by hp_filter(), and unit_hud_selector().
|
private |
Definition at line 84 of file unithudselector.h.
Referenced by hp_filter(), and unit_hud_selector().
|
private |
Definition at line 80 of file unithudselector.h.
Referenced by activity_filter(), and unit_hud_selector().
|
private |
Definition at line 90 of file unithudselector.h.
Referenced by island_filter(), and unit_hud_selector().
|
private |
Definition at line 54 of file unithudselector.h.
Referenced by unit_hud_selector().
|
private |
Definition at line 95 of file unithudselector.h.
Referenced by select_units(), and unit_hud_selector().
|
private |
Definition at line 56 of file unithudselector.h.
Referenced by unit_hud_selector().
|
private |
Definition at line 81 of file unithudselector.h.
Referenced by activity_filter(), and unit_hud_selector().
|
private |
Definition at line 89 of file unithudselector.h.
Referenced by island_filter(), and unit_hud_selector().
|
private |
Definition at line 88 of file unithudselector.h.
Referenced by island_filter(), and unit_hud_selector().
|
private |
Definition at line 93 of file unithudselector.h.
Referenced by type_filter(), and unit_hud_selector().
|
private |
Definition at line 55 of file unithudselector.h.
Referenced by type_filter(), and unit_hud_selector().