Freeciv-3.1
Loading...
Searching...
No Matches
tools
ruledit
edit_terrain.h
Go to the documentation of this file.
1
/***********************************************************************
2
Freeciv - Copyright (C) 2023 The Freeciv Team
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_TERRAIN_H
15
#define FC__EDIT_TERRAIN_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
31
class
ruledit_gui
;
32
33
class
edit_terrain
:
public
values_dlg
34
{
35
Q_OBJECT
36
37
public
:
38
explicit
edit_terrain
(
ruledit_gui
*ui_in,
struct
terrain
*ter_in);
39
void
refresh
();
40
41
private
:
42
ruledit_gui
*
ui
;
43
struct
terrain
*
ter
;
44
QSpinBox *
mcost
;
45
QSpinBox *
defense
;
46
QLineEdit *
gfx_tag
;
47
QLineEdit *
gfx_tag_alt
;
48
49
QGridLayout *
natives_layout
;
50
QGridLayout *
flag_layout
;
51
52
protected
:
53
void
closeEvent
(QCloseEvent *cevent);
54
55
private
slots
:
56
void
set_mcost_value
(
int
value);
57
void
set_defense_value
(
int
value);
58
void
gfx_tag_given
();
59
void
gfx_tag_alt_given
();
60
void
helptext
();
61
};
62
63
#endif
// FC__EDIT_TERRAIN_H
edit_terrain
Definition
edit_terrain.h:34
edit_terrain::set_defense_value
void set_defense_value(int value)
Definition
edit_terrain.cpp:208
edit_terrain::gfx_tag_given
void gfx_tag_given()
Definition
edit_terrain.cpp:218
edit_terrain::helptext
void helptext()
Definition
edit_terrain.cpp:238
edit_terrain::ter
struct terrain * ter
Definition
edit_terrain.h:43
edit_terrain::gfx_tag_alt_given
void gfx_tag_alt_given()
Definition
edit_terrain.cpp:228
edit_terrain::defense
QSpinBox * defense
Definition
edit_terrain.h:45
edit_terrain::gfx_tag_alt
QLineEdit * gfx_tag_alt
Definition
edit_terrain.h:47
edit_terrain::mcost
QSpinBox * mcost
Definition
edit_terrain.h:44
edit_terrain::flag_layout
QGridLayout * flag_layout
Definition
edit_terrain.h:50
edit_terrain::ui
ruledit_gui * ui
Definition
edit_terrain.h:42
edit_terrain::closeEvent
void closeEvent(QCloseEvent *cevent)
Definition
edit_terrain.cpp:145
edit_terrain::refresh
void refresh()
Definition
edit_terrain.cpp:187
edit_terrain::natives_layout
QGridLayout * natives_layout
Definition
edit_terrain.h:49
edit_terrain::set_mcost_value
void set_mcost_value(int value)
Definition
edit_terrain.cpp:198
edit_terrain::gfx_tag
QLineEdit * gfx_tag
Definition
edit_terrain.h:46
ruledit_gui
Definition
ruledit_qt.h:96
values_dlg
Definition
values_dlg.h:28
slots
struct player_slot * slots
Definition
player.c:50
terrain
Definition
terrain.h:176
values_dlg.h
Generated on Sun Jan 5 2025 22:00:36 for Freeciv-3.1 by
1.9.8