Freeciv21
Develop your civilization from humble roots to a global empire
spaceshipdlg.h
Go to the documentation of this file.
1 /**************************************************************************
2  Copyright (c) 1996-2020 Freeciv21 and Freeciv contributors. This file is
3  part of Freeciv21. Freeciv21 is free software: you can redistribute it
4  and/or modify it under the terms of the GNU General Public License as
5  published by the Free Software Foundation, either version 3 of the
6  License, or (at your option) any later version. You should have received
7  a copy of the GNU General Public License along with Freeciv21. If not,
8  see https://www.gnu.org/licenses/.
9 **************************************************************************/
10 #pragma once
11 
12 // client
13 #include "text.h"
14 // Qt
15 #include <QWidget>
16 
17 class QLabel;
18 class QPixmap;
19 class QPushButton;
20 
21 /****************************************************************************
22  Tab widget to display spaceship report (F12)
23 ****************************************************************************/
24 class ss_report : public QWidget {
25  Q_OBJECT
26  QPushButton *launch_button;
27  QLabel *ss_pix_label;
28  QLabel *ss_label;
29  QPixmap *can;
30 
31 public:
32  ss_report(struct player *pplayer);
33  ~ss_report() override;
34  void update_report();
35  void init();
36 
37 private slots:
38  void launch();
39 
40 private:
41  struct player *player;
42 };
43 
44 void popup_spaceship_dialog(struct player *pplayer);
QPixmap * can
Definition: spaceshipdlg.h:29
QLabel * ss_pix_label
Definition: spaceshipdlg.h:27
QLabel * ss_label
Definition: spaceshipdlg.h:28
~ss_report() override
Destructor for spaceship report.
void launch()
Launch spaceship.
QPushButton * launch_button
Definition: spaceshipdlg.h:26
struct player * player
Definition: spaceshipdlg.h:41
void update_report()
Updates spaceship report.
ss_report(struct player *pplayer)
Constructor for spaceship report.
void init()
Initializes widget on game_tab_widget.
void popdown_all_spaceships_dialogs()
Close all spaceships dialogs.
void popup_spaceship_dialog(struct player *pplayer)
Popup (or raise) the spaceship dialog for the given player.
Definition: player.h:231