Freeciv21
Develop your civilization from humble roots to a global empire
endgamereport.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 // Qt
13 #include <QObject>
14 #include <QString>
15 #include <QWidget>
16 // client
17 #include "repodlgs_g.h"
18 class QObject;
19 class QTableWidget;
20 
21 /****************************************************************************
22  Tab widget to display economy report (F5)
23 ****************************************************************************/
24 class endgame_report : public QWidget {
25  Q_OBJECT
26  QTableWidget *end_widget;
27 
28 public:
29  endgame_report(const struct packet_endgame_report *packet);
30  ~endgame_report() override;
31  void update_report(const struct packet_endgame_player *packet);
32  void init();
33 
34 private:
35  int index;
36  int players;
37 };
38 
QTableWidget * end_widget
Definition: endgamereport.h:26
endgame_report(const struct packet_endgame_report *packet)
Constructor for endgame report.
void update_report(const struct packet_endgame_player *packet)
Refresh all widgets for economy report.
~endgame_report() override
Destructor for endgame report.
void init()
Initializes place in tab for endgame report.
void popdown_endgame_report()
Removes endgame report.
void popup_endgame_report()
Popups endgame report to front if exists.