Freeciv21
Develop your civilization from humble roots to a global empire
edit_utype.h
Go to the documentation of this file.
1
/**************************************************************************
2
Copyright (c) 1996-2020 Freeciv21 and Freeciv contributors. This file is
3
__ __ part of Freeciv21. Freeciv21 is free software: you can
4
/ \\..// \ redistribute it and/or modify it under the terms of the GNU
5
( oo ) General Public License as published by the Free Software
6
\__/ Foundation, either version 3 of the License, or (at your
7
option) any later version. You should have received
8
a copy of the GNU General Public License along with Freeciv21. If not,
9
see https://www.gnu.org/licenses/.
10
**************************************************************************/
11
12
#ifndef FC__EDIT_UTYPE_H
13
#define FC__EDIT_UTYPE_H
14
15
#include <fc_config.h>
16
17
// Qt
18
#include <QDialog>
19
20
class
QToolButton;
21
22
class
ruledit_gui
;
23
24
class
edit_utype
:
public
QDialog {
25
Q_OBJECT
26
27
public
:
28
explicit
edit_utype
(
ruledit_gui
*ui_in,
struct
unit_type
*utype_in);
29
void
refresh
();
30
31
private
:
32
ruledit_gui
*
ui
;
33
struct
unit_type
*
utype
;
34
QToolButton *
req_button
;
35
36
private
slots:
37
void
req_menu
(QAction *
action
);
38
};
39
40
#endif
// FC__EDIT_UTYPE_H
edit_utype
Definition:
edit_utype.h:24
edit_utype::edit_utype
edit_utype(ruledit_gui *ui_in, struct unit_type *utype_in)
Setup edit_utype object.
Definition:
edit_utype.cpp:32
edit_utype::refresh
void refresh()
Refresh the information.
Definition:
edit_utype.cpp:68
edit_utype::ui
ruledit_gui * ui
Definition:
edit_utype.h:32
edit_utype::req_menu
void req_menu(QAction *action)
User selected tech to be req of utype.
Definition:
edit_utype.cpp:76
edit_utype::utype
struct unit_type * utype
Definition:
edit_utype.h:33
edit_utype::req_button
QToolButton * req_button
Definition:
edit_utype.h:34
ruledit_gui
Definition:
ruledit_qt.h:83
action
Definition:
actions.h:305
unit_type
Definition:
unittype.h:465
tools
ruledit
edit_utype.h
Generated by
1.9.1