Freeciv21
Develop your civilization from humble roots to a global empire
tab_nation.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
4 / \\..// \ redistribute it and/or modify it under the terms of the GNU
5  ( oo ) General Public License as published by the Free Software
6  \__/ Foundation, either version 3 of the License, or (at your
7  option) any later version. You should have received
8  a copy of the GNU General Public License along with Freeciv21. If not,
9  see https://www.gnu.org/licenses/.
10 **************************************************************************/
11 
12 #ifndef FC__TAB_NATION_H
13 #define FC__TAB_NATION_H
14 
15 // Qt
16 #include <QLineEdit>
17 #include <QRadioButton>
18 #include <QWidget>
19 
20 class ruledit_gui;
21 
22 class tab_nation : public QWidget {
23  Q_OBJECT
24 
25 public:
26  explicit tab_nation(ruledit_gui *ui_in);
27  void refresh();
28  void flush_widgets();
29 
30 private slots:
31  void nationlist_toggle(bool checked);
32 
33 private:
35 
36  QRadioButton *via_include;
37  QLineEdit *nationlist;
38 };
39 
40 #endif // FC__TAB_MISC_H
void nationlist_toggle(bool checked)
Toggled nationlist include setting.
Definition: tab_nation.cpp:97
QRadioButton * via_include
Definition: tab_nation.h:36
void flush_widgets()
Flush information from widgets to stores where it can be saved from.
Definition: tab_nation.cpp:79
ruledit_gui * ui
Definition: tab_nation.h:34
void refresh()
Refresh the information.
Definition: tab_nation.cpp:64
QLineEdit * nationlist
Definition: tab_nation.h:37
tab_nation(ruledit_gui *ui_in)
Setup tab_nation object.
Definition: tab_nation.cpp:35