|
Freeciv-3.3
|
#include <repodlgs.h>
Inheritance diagram for units_reports:Public Member Functions | |
| ~units_reports () | |
| void | clear_layout () |
| void | init_layout () |
| void | update_units (bool show=false) |
| void | add_item (unittype_item *item) |
| virtual void | update_menu () |
Static Public Member Functions | |
| static units_reports * | instance () |
| static void | drop () |
Data Fields | |
| QHBoxLayout * | layout |
| QList< unittype_item * > | unittype_list |
Data Fields inherited from fcwidget | |
| bool | was_destroyed |
Protected Member Functions | |
| void | paintEvent (QPaintEvent *event) |
Private Member Functions | |
| Q_DISABLE_COPY (units_reports) | |
| units_reports () | |
Private Attributes | |
| close_widget * | cw |
| QHBoxLayout * | scroll_layout |
| QScrollArea * | scroll |
| QWidget | scroll_widget |
Static Private Attributes | |
| static units_reports * | m_instance = nullptr |
Definition at line 82 of file repodlgs.h.
|
explicitprivate |
Class representing list of unit types ( unit_items )
Definition at line 327 of file repodlgs.cpp.
Referenced by instance().
| units_reports::~units_reports | ( | ) |
Destructor for unit_report
Definition at line 341 of file repodlgs.cpp.
| void units_reports::add_item | ( | unittype_item * | item | ) |
| void units_reports::clear_layout | ( | ) |
Cleans layout - run it before layout initialization
Definition at line 519 of file repodlgs.cpp.
Referenced by update_units().
|
static |
Deletes units_reports instance
Definition at line 371 of file repodlgs.cpp.
Referenced by popdown_units_report(), toggle_units_report(), and update_menu().
| void units_reports::init_layout | ( | ) |
Initializes layout ( layout needs to be changed after adding units )
Definition at line 391 of file repodlgs.cpp.
Referenced by units_reports().
|
static |
Returns instance of units_reports
Definition at line 359 of file repodlgs.cpp.
Referenced by popdown_units_report(), qtg_real_units_report_dialog_update(), toggle_units_report(), and units_report_dialog_popup().
|
protected |
Paint event
Definition at line 412 of file repodlgs.cpp.
|
private |
|
virtual |
Called when close button was pressed
Implements fcwidget.
Definition at line 382 of file repodlgs.cpp.
Updates units
Definition at line 420 of file repodlgs.cpp.
Referenced by qtg_real_units_report_dialog_update(), and units_report_dialog_popup().
|
private |
Definition at line 87 of file repodlgs.h.
Referenced by paintEvent(), units_reports(), and ~units_reports().
| QHBoxLayout* units_reports::layout |
Definition at line 103 of file repodlgs.h.
Referenced by clear_layout(), init_layout(), units_reports(), and update_units().
|
staticprivate |
Definition at line 92 of file repodlgs.h.
Referenced by drop(), and instance().
|
private |
Definition at line 90 of file repodlgs.h.
Referenced by init_layout().
|
private |
Definition at line 89 of file repodlgs.h.
Referenced by init_layout(), and units_reports().
|
private |
Definition at line 91 of file repodlgs.h.
Referenced by init_layout().
| QList<unittype_item *> units_reports::unittype_list |
Definition at line 104 of file repodlgs.h.
Referenced by add_item(), clear_layout(), update_units(), and ~units_reports().