Freeciv21
Develop your civilization from humble roots to a global empire
tab_misc.h
Go to the documentation of this file.
1 /*__ ___ ***************************************
2 / \ / \ Copyright (c) 1996-2020 Freeciv21 and Freeciv
3 \_ \ / __/ contributors. This file is part of Freeciv21.
4  _\ \ / /__ Freeciv21 is free software: you can redistribute it
5  \___ \____/ __/ and/or modify it under the terms of the GNU General
6  \_ _/ Public License as published by the Free Software
7  | @ @ \_ Foundation, either version 3 of the License,
8  | or (at your option) any later version.
9  _/ /\ You should have received a copy of the GNU
10  /o) (o/\ \_ General Public License along with Freeciv21.
11  \_____/ / If not, see https://www.gnu.org/licenses/.
12  \____/ ********************************************************/
13 
14 #ifndef FC__TAB_MISC_H
15 #define FC__TAB_MISC_H
16 
17 // Qt
18 #include <QWidget>
19 
20 class QLineEdit;
21 class QRadioButton;
22 class QTableWidget;
23 
24 class ruledit_gui;
25 
26 class tab_misc : public QWidget {
27  Q_OBJECT
28 
29 public:
30  explicit tab_misc(ruledit_gui *ui_in);
31  void refresh();
32  void flush_widgets();
33 
34 private slots:
35  void save_now();
36  void refresh_stats();
37  void edit_aae_effects();
38  void edit_all_effects();
39 
40 private:
42  QLineEdit *name;
43  QLineEdit *version;
44  QLineEdit *savedir;
45  QRadioButton *savedir_version;
46  QTableWidget *stats;
47 };
48 
49 #endif // FC__TAB_MISC_H
void edit_aae_effects()
User wants to edit always active effects.
Definition: tab_misc.cpp:359
ruledit_gui * ui
Definition: tab_misc.h:41
QLineEdit * savedir
Definition: tab_misc.h:44
void save_now()
User entered savedir.
Definition: tab_misc.cpp:208
QLineEdit * name
Definition: tab_misc.h:42
void edit_all_effects()
User wants to edit effects from full list.
Definition: tab_misc.cpp:368
QRadioButton * savedir_version
Definition: tab_misc.h:45
void flush_widgets()
void refresh_stats()
Recalculate stats.
Definition: tab_misc.cpp:255
QTableWidget * stats
Definition: tab_misc.h:46
QLineEdit * version
Definition: tab_misc.h:43
tab_misc(ruledit_gui *ui_in)
Setup tab_misc object.
Definition: tab_misc.cpp:47
void refresh()
Refresh the information.
Definition: tab_misc.cpp:198