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

#include <spaceshipdlg.h>

+ Inheritance diagram for ss_report:
+ Collaboration diagram for ss_report:

Public Member Functions

 ss_report (struct player *pplayer)
 Constructor for spaceship report. More...
 
 ~ss_report () override
 Destructor for spaceship report. More...
 
void update_report ()
 Updates spaceship report. More...
 
void init ()
 Initializes widget on game_tab_widget. More...
 

Private Slots

void launch ()
 Launch spaceship. More...
 

Private Attributes

QPushButton * launch_button
 
QLabel * ss_pix_label
 
QLabel * ss_label
 
QPixmap * can
 
struct playerplayer
 

Detailed Description

Definition at line 24 of file spaceshipdlg.h.

Constructor & Destructor Documentation

◆ ss_report()

ss_report::ss_report ( struct player pplayer)

Constructor for spaceship report.

Definition at line 114 of file spaceshipdlg.cpp.

◆ ~ss_report()

ss_report::~ss_report ( )
override

Destructor for spaceship report.

Definition at line 137 of file spaceshipdlg.cpp.

Member Function Documentation

◆ init()

void ss_report::init ( )

Initializes widget on game_tab_widget.

Definition at line 146 of file spaceshipdlg.cpp.

Referenced by popup_spaceship_dialog().

◆ launch

void ss_report::launch ( )
privateslot

Launch spaceship.

Definition at line 181 of file spaceshipdlg.cpp.

Referenced by ss_report().

◆ update_report()

void ss_report::update_report ( )

Updates spaceship report.

Definition at line 158 of file spaceshipdlg.cpp.

Referenced by init(), refresh_spaceship_dialog(), and ss_report().

Member Data Documentation

◆ can

QPixmap* ss_report::can
private

Definition at line 29 of file spaceshipdlg.h.

Referenced by ss_report(), update_report(), and ~ss_report().

◆ launch_button

QPushButton* ss_report::launch_button
private

Definition at line 26 of file spaceshipdlg.h.

Referenced by ss_report(), and update_report().

◆ player

struct player* ss_report::player
private

Definition at line 41 of file spaceshipdlg.h.

◆ ss_label

QLabel* ss_report::ss_label
private

Definition at line 28 of file spaceshipdlg.h.

Referenced by ss_report(), and update_report().

◆ ss_pix_label

QLabel* ss_report::ss_pix_label
private

Definition at line 27 of file spaceshipdlg.h.

Referenced by ss_report(), and update_report().