Freeciv-3.3
|
#include <citydlg.h>
Public Member Functions | |
unit_info (bool supp) | |
~unit_info () | |
void | add_item (unit_item *item) |
void | init_layout () |
void | update_units () |
void | clear_layout () |
Data Fields | |
QHBoxLayout * | layout |
QList< unit_item * > | unit_list |
Protected Member Functions | |
void | wheelEvent (QWheelEvent *event) |
Private Attributes | |
bool | supports |
unit_info::unit_info | ( | bool | supp | ) |
Class representing list of units ( unit_item 's)
Definition at line 1038 of file citydlg.cpp.
unit_info::~unit_info | ( | ) |
Destructor for unit_info
Definition at line 1048 of file citydlg.cpp.
Adds one unit to list
Definition at line 1057 of file citydlg.cpp.
Referenced by city_dialog::update_units().
void unit_info::clear_layout | ( | ) |
Cleans layout - run it before layout initialization
Definition at line 1137 of file citydlg.cpp.
Referenced by city_dialog::update_units(), and city_dialog::~city_dialog().
void unit_info::init_layout | ( | ) |
Initializes layout ( layout needs to be changed after adding units )
Definition at line 1065 of file citydlg.cpp.
Referenced by unit_info().
void unit_info::update_units | ( | ) |
Updates units
Definition at line 1096 of file citydlg.cpp.
Referenced by city_dialog::update_units().
|
protected |
Mouse wheel event - send it to scrollbar
Definition at line 1077 of file citydlg.cpp.
QHBoxLayout* unit_info::layout |
Definition at line 209 of file citydlg.h.
Referenced by clear_layout(), init_layout(), unit_info(), and update_units().
|
private |
Definition at line 213 of file citydlg.h.
Referenced by unit_info().
Definition at line 210 of file citydlg.h.
Referenced by add_item(), clear_layout(), update_units(), and ~unit_info().