Freeciv-3.3
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{
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 QLineEdit *sound_tag;
46 QLineEdit *sound_tag_alt;
47 QLineEdit *sound_tag_alt2;
48
49 protected:
51
52 private slots:
53 void gfx_tag_given();
54 void gfx_tag_alt_given();
55 void sound_tag_given();
58 void helptext();
59};
60
61
62#endif // FC__EDIT_GOV_H
struct government * gov
Definition edit_gov.h:42
QLineEdit * sound_tag
Definition edit_gov.h:45
QLineEdit * sound_tag_alt2
Definition edit_gov.h:47
void sound_tag_alt_given()
Definition edit_gov.cpp:170
ruledit_gui * ui
Definition edit_gov.h:41
void gfx_tag_alt_given()
Definition edit_gov.cpp:150
void sound_tag_alt2_given()
Definition edit_gov.cpp:180
void refresh()
Definition edit_gov.cpp:128
void closeEvent(QCloseEvent *cevent)
Definition edit_gov.cpp:111
void gfx_tag_given()
Definition edit_gov.cpp:140
QLineEdit * sound_tag_alt
Definition edit_gov.h:46
void helptext()
Definition edit_gov.cpp:190
void sound_tag_given()
Definition edit_gov.cpp:160
QLineEdit * gfx_tag_alt
Definition edit_gov.h:44
QLineEdit * gfx_tag
Definition edit_gov.h:43
char * incite_cost
Definition comments.c:76
struct player_slot * slots
Definition player.c:51