Freeciv-3.1: /fast/freeciv/nightly/S3_1/client/gui-qt/spaceshipdlg.h Source File

Freeciv-3.1

Loading...
Searching...
No Matches
spaceshipdlg.h
Go to the documentation of this file.
1/**********************************************************************
2 Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12***********************************************************************/
13
14#ifndef FC__SPACESHIPDLG_H
15#define FC__SPACESHIPDLG_H
16
17#ifdef HAVE_CONFIG_H
18#include <fc_config.h>
19#endif
20
21extern "C" {
22#include "spaceshipdlg_g.h"
23}
24
25/* client */
26#include "text.h"
27
28// Qt
29#include <QWidget>
30
31class QLabel;
32class QPixmap;
33class QPushButton;
34
35/****************************************************************************
36 Tab widget to display spaceship report (F12)
37****************************************************************************/
38 class ss_report: public QWidget
39{
40 Q_OBJECT
41 QPushButton *launch_button;
42 QLabel *ss_pix_label;
43 QLabel *ss_label;
44 struct canvas *can;
45
46public:
47 ss_report(struct player *pplayer);
48 ~ss_report();
49 void update_report();
50 void init();
51
52private slots:
53 void launch();
54
55private:
56 struct player *player;
57};
58
59void popup_spaceship_dialog(struct player *pplayer);
60void popdown_all_spaceships_dialogs();
61
62#endif /* FC__SPACESHIPDLG_H */
ss_report
Definition spaceshipdlg.h:39
ss_report::ss_pix_label
QLabel * ss_pix_label
Definition spaceshipdlg.h:42
ss_report::ss_label
QLabel * ss_label
Definition spaceshipdlg.h:43
ss_report::can
struct canvas * can
Definition spaceshipdlg.h:44
ss_report::launch
void launch()
Definition spaceshipdlg.cpp:110
ss_report::launch_button
QPushButton * launch_button
Definition spaceshipdlg.h:41
ss_report::~ss_report
~ss_report()
Definition spaceshipdlg.cpp:66
ss_report::player
struct player * player
Definition spaceshipdlg.h:56
ss_report::update_report
void update_report()
Definition spaceshipdlg.cpp:87
ss_report::init
void init()
Definition spaceshipdlg.cpp:75
popdown_all_spaceships_dialogs
void popdown_all_spaceships_dialogs()
Definition spaceshipdlg.cpp:174
popup_spaceship_dialog
void popup_spaceship_dialog(struct player *pplayer)
Definition spaceshipdlg.c:146
slots
struct player_slot * slots
Definition player.c:50
spaceshipdlg_g.h
canvas
Definition canvas.h:21
player
Definition player.h:249
text.h