Freeciv-3.2
Loading...
Searching...
No Matches
tools
ruledit
edit_tech.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_TECH_H
15
#define FC__EDIT_TECH_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
27
class
QGridLayout
;
28
class
QLineEdit;
29
class
QSpinBox
;
30
class
QToolButton
;
31
32
class
ruledit_gui
;
33
34
class
edit_tech
:
public
values_dlg
35
{
36
Q_OBJECT
37
38
public
:
39
explicit
edit_tech
(
ruledit_gui
*
ui_in
,
struct
advance
*
tech_in
);
40
void
refresh
();
41
42
private
:
43
ruledit_gui
*
ui
;
44
struct
advance
*
tech
;
45
QSpinBox
*
cost
;
46
QLineEdit *
gfx_tag
;
47
QLineEdit *
gfx_tag_alt
;
48
49
QGridLayout
*
flag_layout
;
50
51
protected
:
52
void
closeEvent
(
QCloseEvent
*
cevent
);
53
54
private
slots
:
55
void
set_cost_value
(
int
value);
56
void
gfx_tag_given
();
57
void
gfx_tag_alt_given
();
58
void
helptext
();
59
};
60
61
62
#endif
// FC__EDIT_TECH_H
edit_tech
Definition
edit_tech.h:35
edit_tech::ui
ruledit_gui * ui
Definition
edit_tech.h:43
edit_tech::set_cost_value
void set_cost_value(int value)
Definition
edit_tech.cpp:165
edit_tech::tech
struct advance * tech
Definition
edit_tech.h:44
edit_tech::cost
QSpinBox * cost
Definition
edit_tech.h:45
edit_tech::gfx_tag_given
void gfx_tag_given()
Definition
edit_tech.cpp:175
edit_tech::gfx_tag
QLineEdit * gfx_tag
Definition
edit_tech.h:46
edit_tech::refresh
void refresh()
Definition
edit_tech.cpp:155
edit_tech::gfx_tag_alt_given
void gfx_tag_alt_given()
Definition
edit_tech.cpp:185
edit_tech::helptext
void helptext()
Definition
edit_tech.cpp:195
edit_tech::flag_layout
QGridLayout * flag_layout
Definition
edit_tech.h:49
edit_tech::gfx_tag_alt
QLineEdit * gfx_tag_alt
Definition
edit_tech.h:47
edit_tech::closeEvent
void closeEvent(QCloseEvent *cevent)
Definition
edit_tech.cpp:122
ruledit_gui
Definition
ruledit_qt.h:97
values_dlg
Definition
values_dlg.h:28
incite_cost
char * incite_cost
Definition
comments.c:75
slots
struct player_slot * slots
Definition
player.c:51
advance
Definition
tech.h:124
values_dlg.h
Generated on Sun Dec 22 2024 23:00:34 for Freeciv-3.2 by
1.9.8