Freeciv21
Develop your civilization from humble roots to a global empire
messageoptions.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 <QWidget>
14 
15 class QTableWidget;
16 class QGridLayout;
17 
18 /**************************************************************************
19  Widget for displaying messages options
20 **************************************************************************/
21 class message_dlg : public QWidget {
22  Q_OBJECT
23  QTableWidget *msgtab;
24  QGridLayout *layout;
25 
26 public:
27  message_dlg();
28  ~message_dlg() override;
29  void fill_data();
30 private slots:
31  void apply_changes();
32  void cancel_changes();
33 };
34 
35 void popup_messageopt_dialog(void);
message_dlg()
Message widget constructor.
void cancel_changes()
Closes widget.
~message_dlg() override
Message widget destructor.
void apply_changes()
Apply changes and closes widget.
QTableWidget * msgtab
QGridLayout * layout
void fill_data()
Fills column in table.
void popup_messageopt_dialog(void)
Popup a window to let the user edit their message options.