Freeciv-3.3
Loading...
Searching...
No Matches
tools
ruledit
tab_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__TAB_GOV_H
15
#define FC__TAB_GOV_H
16
17
#ifdef HAVE_CONFIG_H
18
#include <fc_config.h>
19
#endif
20
21
// Qt
22
#include <QWidget>
23
24
class
QCheckBox
;
25
class
QLineEdit;
26
class
QListWidget
;
27
28
class
ruledit_gui
;
29
30
class
tab_gov
:
public
QWidget
31
{
32
Q_OBJECT
33
34
public
:
35
explicit
tab_gov
(
ruledit_gui
*
ui_in
);
36
void
refresh
();
37
38
private
:
39
ruledit_gui
*
ui
;
40
void
update_gov_info
(
struct
government
*
pgov
);
41
bool
initialize_new_gov
(
struct
government
*
pgov
);
42
43
QLineEdit *
name
;
44
QLineEdit *
rname
;
45
QListWidget
*
gov_list
;
46
QCheckBox
*
same_name
;
47
48
struct
government
*
selected
;
49
50
private
slots
:
51
void
name_given
();
52
void
select_gov
();
53
void
add_now
();
54
void
delete_now
();
55
void
edit_now
();
56
void
same_name_toggle
(
bool
checked
);
57
void
edit_reqs
();
58
void
edit_effects
();
59
};
60
61
#endif
// FC__TAB_GOV_H
ruledit_gui
Definition
ruledit_qt.h:97
tab_gov
Definition
tab_gov.h:31
tab_gov::delete_now
void delete_now()
Definition
tab_gov.cpp:207
tab_gov::rname
QLineEdit * rname
Definition
tab_gov.h:44
tab_gov::edit_effects
void edit_effects()
Definition
tab_gov.cpp:324
tab_gov::name
QLineEdit * name
Definition
tab_gov.h:43
tab_gov::add_now
void add_now()
Definition
tab_gov.cpp:265
tab_gov::initialize_new_gov
bool initialize_new_gov(struct government *pgov)
Definition
tab_gov.cpp:248
tab_gov::update_gov_info
void update_gov_info(struct government *pgov)
Definition
tab_gov.cpp:131
tab_gov::edit_reqs
void edit_reqs()
Definition
tab_gov.cpp:313
tab_gov::selected
struct government * selected
Definition
tab_gov.h:48
tab_gov::refresh
void refresh()
Definition
tab_gov.cpp:116
tab_gov::edit_now
void edit_now()
Definition
tab_gov.cpp:231
tab_gov::same_name_toggle
void same_name_toggle(bool checked)
Definition
tab_gov.cpp:302
tab_gov::name_given
void name_given()
Definition
tab_gov.cpp:174
tab_gov::gov_list
QListWidget * gov_list
Definition
tab_gov.h:45
tab_gov::ui
ruledit_gui * ui
Definition
tab_gov.h:39
tab_gov::select_gov
void select_gov()
Definition
tab_gov.cpp:159
tab_gov::same_name
QCheckBox * same_name
Definition
tab_gov.h:46
incite_cost
char * incite_cost
Definition
comments.c:76
slots
struct player_slot * slots
Definition
player.c:51
government
Definition
government.h:52
Generated on Sun Dec 22 2024 22:30:38 for Freeciv-3.3 by
1.9.8