Freeciv-3.3
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
24// ruledit
25#include "values_dlg.h"
26
27class QGridLayout;
28class QLineEdit;
29class QSpinBox;
30
31class ruledit_gui;
32
34{
36
37 public:
38 explicit edit_terrain(ruledit_gui *ui_in, struct terrain *ter_in);
39 void refresh();
40
41 private:
43 struct terrain *ter;
46 QLineEdit *gfx_tag;
47 QLineEdit *gfx_tag_alt;
48 QLineEdit *gfx_tag_alt2;
49
52
53 protected:
55
56 private slots:
57 void set_mcost_value(int value);
58 void set_defense_value(int value);
59 void gfx_tag_given();
60 void gfx_tag_alt_given();
61 void gfx_tag_alt2_given();
62 void helptext();
63};
64
65#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:76
struct player_slot * slots
Definition player.c:51