Freeciv-3.2
Loading...
Searching...
No Matches
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
24class QGridLayout;
25class QLineEdit;
26class QSpinBox;
27
28class ruledit_gui;
29
30class edit_terrain : public QDialog
31{
33
34 public:
35 explicit edit_terrain(ruledit_gui *ui_in, struct terrain *ter_in);
36 void refresh();
37
38 private:
40 struct terrain *ter;
43 QLineEdit *gfx_tag;
44 QLineEdit *gfx_tag_alt;
45 QLineEdit *gfx_tag_alt2;
46
49
50 protected:
52
53 private slots:
54 void set_mcost_value(int value);
55 void set_defense_value(int value);
56 void gfx_tag_given();
57 void gfx_tag_alt_given();
58 void gfx_tag_alt2_given();
59};
60
61#endif // FC__EDIT_TERRAIN_H
void set_defense_value(int value)
QLineEdit * gfx_tag_alt2
struct terrain * ter
void gfx_tag_alt_given()
QSpinBox * defense
QLineEdit * gfx_tag_alt
QSpinBox * mcost
QGridLayout * flag_layout
ruledit_gui * ui
void gfx_tag_alt2_given()
void closeEvent(QCloseEvent *cevent)
QGridLayout * natives_layout
void set_mcost_value(int value)
QLineEdit * gfx_tag
char * incite_cost
Definition comments.c:74
struct player_slot * slots
Definition player.c:51