Freeciv-3.4
|
#include <repodlgs.h>
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 |
![]() | |
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 78 of file repodlgs.h.
|
explicitprivate |
Class representing list of unit types ( unit_items )
Definition at line 323 of file repodlgs.cpp.
Referenced by instance().
units_reports::~units_reports | ( | ) |
Destructor for unit_report
Definition at line 337 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 515 of file repodlgs.cpp.
Referenced by update_units().
|
static |
Deletes units_reports instance
Definition at line 367 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 387 of file repodlgs.cpp.
Referenced by units_reports().
|
static |
Returns instance of units_reports
Definition at line 355 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 408 of file repodlgs.cpp.
|
private |
|
virtual |
Called when close button was pressed
Implements fcwidget.
Definition at line 378 of file repodlgs.cpp.
Updates units
Definition at line 416 of file repodlgs.cpp.
Referenced by qtg_real_units_report_dialog_update(), and units_report_dialog_popup().
|
private |
Definition at line 83 of file repodlgs.h.
Referenced by paintEvent(), units_reports(), and ~units_reports().
QHBoxLayout* units_reports::layout |
Definition at line 99 of file repodlgs.h.
Referenced by clear_layout(), init_layout(), units_reports(), and update_units().
|
staticprivate |
Definition at line 88 of file repodlgs.h.
Referenced by drop(), and instance().
|
private |
Definition at line 86 of file repodlgs.h.
Referenced by init_layout().
|
private |
Definition at line 85 of file repodlgs.h.
Referenced by init_layout(), and units_reports().
|
private |
Definition at line 87 of file repodlgs.h.
Referenced by init_layout().
QList<unittype_item *> units_reports::unittype_list |
Definition at line 100 of file repodlgs.h.
Referenced by add_item(), clear_layout(), update_units(), and ~units_reports().