Freeciv-3.3
Loading...
Searching...
No Matches
tools
ruledit
tab_extras.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_EXTRAS_H
15
#define FC__TAB_EXTRAS_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_extras
:
public
QWidget
31
{
32
Q_OBJECT
33
34
public
:
35
explicit
tab_extras
(
ruledit_gui
*
ui_in
);
36
void
refresh
();
37
38
private
:
39
ruledit_gui
*
ui
;
40
void
update_extra_info
(
struct
extra_type
*pextra);
41
bool
initialize_new_extra
(
struct
extra_type
*pextra);
42
43
QLineEdit *
name
;
44
QLineEdit *
rname
;
45
QListWidget
*
extra_list
;
46
QCheckBox
*
same_name
;
47
48
struct
extra_type
*
selected
;
49
50
private
slots
:
51
void
name_given
();
52
void
select_extra
();
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_EXTRAS_H
ruledit_gui
Definition
ruledit_qt.h:97
tab_extras
Definition
tab_extras.h:31
tab_extras::same_name_toggle
void same_name_toggle(bool checked)
Definition
tab_extras.cpp:289
tab_extras::add_now
void add_now()
Definition
tab_extras.cpp:252
tab_extras::update_extra_info
void update_extra_info(struct extra_type *pextra)
Definition
tab_extras.cpp:135
tab_extras::extra_list
QListWidget * extra_list
Definition
tab_extras.h:45
tab_extras::same_name
QCheckBox * same_name
Definition
tab_extras.h:46
tab_extras::name_given
void name_given()
Definition
tab_extras.cpp:178
tab_extras::name
QLineEdit * name
Definition
tab_extras.h:43
tab_extras::edit_now
void edit_now()
Definition
tab_extras.cpp:327
tab_extras::rname
QLineEdit * rname
Definition
tab_extras.h:44
tab_extras::refresh
void refresh()
Definition
tab_extras.cpp:120
tab_extras::delete_now
void delete_now()
Definition
tab_extras.cpp:210
tab_extras::selected
struct extra_type * selected
Definition
tab_extras.h:48
tab_extras::edit_effects
void edit_effects()
Definition
tab_extras.cpp:311
tab_extras::ui
ruledit_gui * ui
Definition
tab_extras.h:39
tab_extras::edit_reqs
void edit_reqs()
Definition
tab_extras.cpp:300
tab_extras::initialize_new_extra
bool initialize_new_extra(struct extra_type *pextra)
Definition
tab_extras.cpp:234
tab_extras::select_extra
void select_extra()
Definition
tab_extras.cpp:163
incite_cost
char * incite_cost
Definition
comments.c:76
slots
struct player_slot * slots
Definition
player.c:51
extra_type
Definition
extras.h:88
Generated on Sun Dec 22 2024 22:30:38 for Freeciv-3.3 by
1.9.8