Freeciv21
Develop your civilization from humble roots to a global empire
hud_units Class Reference

#include <hudwidget.h>

+ Inheritance diagram for hud_units:
+ Collaboration diagram for hud_units:

Public Member Functions

 hud_units (QWidget *parent)
 Constructor for hud_units (holds layout for whole uunits info) More...
 
 ~hud_units () override
 Hud_units destructor. More...
 
void update_actions ()
 Update possible action for given units. More...
 

Protected Member Functions

void moveEvent (QMoveEvent *event) override
 Move Event for hud_units, used to save position. More...
 

Private Attributes

click_label unit_label
 
click_label tile_label
 
QLabel text_label
 
QFont * ufont
 
QHBoxLayout * main_layout
 
unit_actionsunit_icons
 
move_widgetmw
 
unit_list * ul_units
 
tilecurrent_tile
 

Detailed Description

Definition at line 203 of file hudwidget.h.

Constructor & Destructor Documentation

◆ hud_units()

hud_units::hud_units ( QWidget *  parent)

Constructor for hud_units (holds layout for whole uunits info)

Definition at line 500 of file hudwidget.cpp.

◆ ~hud_units()

hud_units::~hud_units ( )
overridedefault

Hud_units destructor.

Member Function Documentation

◆ moveEvent()

void hud_units::moveEvent ( QMoveEvent *  event)
overrideprotected

Move Event for hud_units, used to save position.

Definition at line 541 of file hudwidget.cpp.

◆ update_actions()

void hud_units::update_actions ( )

Update possible action for given units.

Definition at line 552 of file hudwidget.cpp.

Referenced by fc_game_tab_widget::event(), real_menus_update(), and update_unit_info_label().

Member Data Documentation

◆ current_tile

tile* hud_units::current_tile
private

Definition at line 223 of file hudwidget.h.

◆ main_layout

QHBoxLayout* hud_units::main_layout
private

Definition at line 209 of file hudwidget.h.

Referenced by hud_units().

◆ mw

move_widget* hud_units::mw
private

Definition at line 221 of file hudwidget.h.

Referenced by hud_units(), and update_actions().

◆ text_label

QLabel hud_units::text_label
private

Definition at line 207 of file hudwidget.h.

Referenced by hud_units(), and update_actions().

◆ tile_label

click_label hud_units::tile_label
private

Definition at line 206 of file hudwidget.h.

Referenced by hud_units(), and update_actions().

◆ ufont

QFont* hud_units::ufont
private

Definition at line 208 of file hudwidget.h.

◆ ul_units

unit_list* hud_units::ul_units
private

Definition at line 222 of file hudwidget.h.

◆ unit_icons

unit_actions* hud_units::unit_icons
private

Definition at line 210 of file hudwidget.h.

Referenced by hud_units(), and update_actions().

◆ unit_label

click_label hud_units::unit_label
private

Definition at line 205 of file hudwidget.h.

Referenced by hud_units(), and update_actions().