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

#include <hudwidget.h>

+ Inheritance diagram for hud_unit_loader:
+ Collaboration diagram for hud_unit_loader:

Public Member Functions

 hud_unit_loader (struct unit *pcargo, struct tile *ptile)
 Constructor for widget allowing loading units on transports. More...
 
 ~hud_unit_loader () override
 Destructor for units loader. More...
 
void show_me ()
 Shows unit loader, adds possible tranportsand units to table Calculates table size. More...
 

Protected Slots

void selection_changed (const QItemSelection &, const QItemSelection &)
 Selects given tranport and closes widget. More...
 

Private Attributes

QList< unit * > transports
 
struct unitcargo
 
struct tileqtile
 

Detailed Description

Definition at line 229 of file hudwidget.h.

Constructor & Destructor Documentation

◆ hud_unit_loader()

hud_unit_loader::hud_unit_loader ( struct unit pcargo,
struct tile ptile 
)

Constructor for widget allowing loading units on transports.

Definition at line 1155 of file hudwidget.cpp.

◆ ~hud_unit_loader()

hud_unit_loader::~hud_unit_loader ( )
overridedefault

Destructor for units loader.

Member Function Documentation

◆ selection_changed

void hud_unit_loader::selection_changed ( const QItemSelection &  s1,
const QItemSelection &  s2 
)
protectedslot

Selects given tranport and closes widget.

Definition at line 1247 of file hudwidget.cpp.

Referenced by hud_unit_loader().

◆ show_me()

void hud_unit_loader::show_me ( )

Shows unit loader, adds possible tranportsand units to table Calculates table size.

Definition at line 1182 of file hudwidget.cpp.

Referenced by request_transport().

Member Data Documentation

◆ cargo

struct unit* hud_unit_loader::cargo
private

Definition at line 240 of file hudwidget.h.

Referenced by hud_unit_loader(), selection_changed(), and show_me().

◆ qtile

struct tile* hud_unit_loader::qtile
private

Definition at line 241 of file hudwidget.h.

Referenced by hud_unit_loader(), selection_changed(), and show_me().

◆ transports

QList<unit *> hud_unit_loader::transports
private

Definition at line 230 of file hudwidget.h.

Referenced by selection_changed(), and show_me().