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__TAB_MISC_H
15 #define FC__TAB_MISC_H
16 
17 // Qt
18 #include <QWidget>
19 
20 class QCheckBox;
21 class QLineEdit;
22 class QTableWidget;
23 
24 class ruledit_gui;
25 
26 class tab_misc : public QWidget
27 {
28   Q_OBJECT
29 
30   public:
31     explicit tab_misc(ruledit_gui *ui_in);
32     void ruleset_loaded();
33     void refresh();
34     void flush_widgets();
35 
36   private slots:
37     void save_now();
38     void refresh_stats();
39     void desc_file_toggle(bool checked);
40 
41   private:
42     ruledit_gui *ui;
43     QLineEdit *name;
44     QLineEdit *version;
45     QLineEdit *savedir;
46     QTableWidget *stats;
47     QCheckBox *desc_via_file;
48     QLineEdit *desc_file;
49 };
50 
51 
52 #endif // FC__TAB_MISC_H
53