Freeciv-3.2
|
#include <repodlgs.h>
Public Member Functions | |
unittype_item (QWidget *parent, unit_type *ut) | |
~unittype_item () | |
void | init_img () |
Data Fields | |
QLabel | food_upkeep |
QLabel | gold_upkeep |
QLabel | label_info_active |
QLabel | label_info_inbuild |
QLabel | label_info_unit |
QLabel | shield_upkeep |
QPushButton | upgrade_button |
Protected Member Functions | |
void | enterEvent (QEnterEvent *event) |
void | leaveEvent (QEvent *event) |
void | paintEvent (QPaintEvent *event) |
void | wheelEvent (QWheelEvent *event) |
Private Slots | |
void | upgrade_units () |
Private Attributes | |
bool | entered |
int | unit_scroll |
QLabel | label_pix |
unit_type * | utype |
Definition at line 48 of file repodlgs.h.
unittype_item::unittype_item | ( | QWidget * | parent, |
unit_type * | ut | ||
) |
Unit item constructor (single item for units report)
Definition at line 97 of file repodlgs.cpp.
unittype_item::~unittype_item | ( | ) |
Unit item destructor
Definition at line 183 of file repodlgs.cpp.
|
protected |
Mouse entered widget
Definition at line 240 of file repodlgs.cpp.
void unittype_item::init_img | ( | ) |
Sets unit type pixmap to label
Definition at line 190 of file repodlgs.cpp.
Referenced by unittype_item().
|
protected |
Mouse left widget
Definition at line 269 of file repodlgs.cpp.
|
protected |
Paint event for unittype item ( draws background from theme )
Definition at line 252 of file repodlgs.cpp.
|
privateslot |
Popup question if to upgrade units
Definition at line 202 of file repodlgs.cpp.
Referenced by unittype_item().
|
protected |
Mouse wheel event - cycles via units for given unittype
Definition at line 278 of file repodlgs.cpp.
|
private |
Definition at line 52 of file repodlgs.h.
Referenced by leaveEvent(), paintEvent(), and unittype_item().
QLabel unittype_item::food_upkeep |
Definition at line 60 of file repodlgs.h.
Referenced by unittype_item(), and units_reports::update_units().
QLabel unittype_item::gold_upkeep |
Definition at line 61 of file repodlgs.h.
Referenced by unittype_item(), and units_reports::update_units().
QLabel unittype_item::label_info_active |
Definition at line 62 of file repodlgs.h.
Referenced by unittype_item(), and units_reports::update_units().
QLabel unittype_item::label_info_inbuild |
Definition at line 63 of file repodlgs.h.
Referenced by unittype_item(), and units_reports::update_units().
QLabel unittype_item::label_info_unit |
Definition at line 64 of file repodlgs.h.
Referenced by unittype_item(), and units_reports::update_units().
|
private |
Definition at line 54 of file repodlgs.h.
Referenced by init_img(), and unittype_item().
QLabel unittype_item::shield_upkeep |
Definition at line 65 of file repodlgs.h.
Referenced by unittype_item(), and units_reports::update_units().
|
private |
Definition at line 53 of file repodlgs.h.
Referenced by unittype_item(), and wheelEvent().
QPushButton unittype_item::upgrade_button |
Definition at line 66 of file repodlgs.h.
Referenced by unittype_item(), and units_reports::update_units().
|
private |
Definition at line 69 of file repodlgs.h.
Referenced by init_img(), unittype_item(), upgrade_units(), and wheelEvent().