Freeciv-3.1
Loading...
Searching...
No Matches
edit_gov.h
Go to the documentation of this file.
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__EDIT_GOV_H
15#define FC__EDIT_GOV_H
16
17#ifdef HAVE_CONFIG_H
18#include <fc_config.h>
19#endif
20
21// Qt
22#include <QDialog>
23
24// ruledit
25#include "values_dlg.h"
26
27class QGridLayout;
28class QLineEdit;
29
30class ruledit_gui;
31
32class edit_gov : public values_dlg
33{
34 Q_OBJECT
35
36 public:
37 explicit edit_gov(ruledit_gui *ui_in, struct government *gov_in);
38 void refresh();
39
40 private:
42 struct government *gov;
43 QLineEdit *gfx_tag;
44 QLineEdit *gfx_tag_alt;
45
46 protected:
47 void closeEvent(QCloseEvent *cevent);
48
49 private slots:
50 void gfx_tag_given();
51 void gfx_tag_alt_given();
52 void helptext();
53};
54
55
56#endif // FC__EDIT_GOV_H
struct government * gov
Definition edit_gov.h:42
ruledit_gui * ui
Definition edit_gov.h:41
void gfx_tag_alt_given()
Definition edit_gov.cpp:117
void refresh()
Definition edit_gov.cpp:98
void closeEvent(QCloseEvent *cevent)
Definition edit_gov.cpp:84
void gfx_tag_given()
Definition edit_gov.cpp:107
void helptext()
Definition edit_gov.cpp:127
QLineEdit * gfx_tag_alt
Definition edit_gov.h:44
QLineEdit * gfx_tag
Definition edit_gov.h:43
struct player_slot * slots
Definition player.c:50