Freeciv21
Develop your civilization from humble roots to a global empire
tab_extras.h
Go to the documentation of this file.
1
/*__ ___ ***************************************
2
/ \ / \ Copyright (c) 1996-2020 Freeciv21 and Freeciv
3
\_ \ / __/ contributors. This file is part of Freeciv21.
4
_\ \ / /__ Freeciv21 is free software: you can redistribute it
5
\___ \____/ __/ and/or modify it under the terms of the GNU General
6
\_ _/ Public License as published by the Free Software
7
| @ @ \_ Foundation, either version 3 of the License,
8
| or (at your option) any later version.
9
_/ /\ You should have received a copy of the GNU
10
/o) (o/\ \_ General Public License along with Freeciv21.
11
\_____/ / If not, see https://www.gnu.org/licenses/.
12
\____/ ********************************************************/
13
14
#ifndef FC__TAB_EXTRAS_H
15
#define FC__TAB_EXTRAS_H
16
17
#include <fc_config.h>
18
19
// Qt
20
#include <QWidget>
21
22
class
QLineEdit;
23
class
QListWidget;
24
class
QRadioButton;
25
26
class
ruledit_gui
;
27
28
class
tab_extras
:
public
QWidget {
29
Q_OBJECT
30
31
public
:
32
explicit
tab_extras
(
ruledit_gui
*ui_in);
33
void
refresh
();
34
35
private
:
36
ruledit_gui
*
ui
;
37
void
update_extra_info
(
struct
extra_type
*pextra);
38
bool
initialize_new_extra
(
struct
extra_type
*pextra);
39
40
QLineEdit *
name
;
41
QLineEdit *
rname
;
42
QListWidget *
extra_list
;
43
QRadioButton *
same_name
;
44
45
struct
extra_type
*
selected
;
46
47
private
slots:
48
void
name_given
();
49
void
select_extra
();
50
void
add_now
();
51
void
delete_now
();
52
void
same_name_toggle
(
bool
checked);
53
void
edit_reqs
();
54
void
edit_effects
();
55
};
56
57
#endif
// FC__TAB_EXTRAS_H
ruledit_gui
Definition:
ruledit_qt.h:83
tab_extras
Definition:
tab_extras.h:28
tab_extras::same_name_toggle
void same_name_toggle(bool checked)
Toggled whether rule_name and name should be kept identical.
Definition:
tab_extras.cpp:282
tab_extras::add_now
void add_now()
User requested new extra.
Definition:
tab_extras.cpp:243
tab_extras::update_extra_info
void update_extra_info(struct extra_type *pextra)
Update info of the extra.
Definition:
tab_extras.cpp:132
tab_extras::extra_list
QListWidget * extra_list
Definition:
tab_extras.h:42
tab_extras::name_given
void name_given()
User entered name for the extra.
Definition:
tab_extras.cpp:175
tab_extras::tab_extras
tab_extras(ruledit_gui *ui_in)
Setup tab_extras object.
Definition:
tab_extras.cpp:39
tab_extras::name
QLineEdit * name
Definition:
tab_extras.h:40
tab_extras::same_name
QRadioButton * same_name
Definition:
tab_extras.h:43
tab_extras::rname
QLineEdit * rname
Definition:
tab_extras.h:41
tab_extras::refresh
void refresh()
Refresh the information.
Definition:
tab_extras.cpp:113
tab_extras::delete_now
void delete_now()
User requested extra deletion.
Definition:
tab_extras.cpp:208
tab_extras::selected
struct extra_type * selected
Definition:
tab_extras.h:45
tab_extras::edit_effects
void edit_effects()
User wants to edit effects.
Definition:
tab_extras.cpp:304
tab_extras::ui
ruledit_gui * ui
Definition:
tab_extras.h:36
tab_extras::edit_reqs
void edit_reqs()
User wants to edit reqs.
Definition:
tab_extras.cpp:293
tab_extras::initialize_new_extra
bool initialize_new_extra(struct extra_type *pextra)
Initialize new extra for use.
Definition:
tab_extras.cpp:229
tab_extras::select_extra
void select_extra()
User selected extra from the list.
Definition:
tab_extras.cpp:160
extra_type
Definition:
extras.h:74
tools
ruledit
tab_extras.h
Generated by
1.9.1