Freeciv-3.1: /fast/freeciv/nightly/S3_1/tools/ruledit/edit_impr.h Source File

Freeciv-3.1

Loading...
Searching...
No Matches
edit_impr.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_IMPR_H
15#define FC__EDIT_IMPR_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;
30class QToolButton;
31
32class ruledit_gui;
33
34 class edit_impr : public values_dlg
35{
36 Q_OBJECT
37
38 public:
39 explicit edit_impr(ruledit_gui *ui_in, struct impr_type *impr_in);
40 void refresh();
41
42 private:
43 ruledit_gui *ui;
44 struct impr_type *impr;
45 QSpinBox *bcost;
46 QSpinBox *upkeep;
47 QToolButton *genus_button;
48 QLineEdit *gfx_tag;
49 QLineEdit *gfx_tag_alt;
50 QLineEdit *sound_tag;
51 QLineEdit *sound_tag_alt;
52
53 QGridLayout *flag_layout;
54
55 protected:
56 void closeEvent(QCloseEvent *cevent);
57
58 private slots:
59 void set_bcost_value(int value);
60 void set_upkeep_value(int value);
61 void genus_menu(QAction *action);
62 void gfx_tag_given();
63 void gfx_tag_alt_given();
64 void sound_tag_given();
65 void sound_tag_alt_given();
66 void helptext();
67};
68
69
70#endif // FC__EDIT_IMPR_H
edit_impr
Definition edit_impr.h:35
edit_impr::upkeep
QSpinBox * upkeep
Definition edit_impr.h:46
edit_impr::set_upkeep_value
void set_upkeep_value(int value)
Definition edit_impr.cpp:229
edit_impr::genus_menu
void genus_menu(QAction *action)
Definition edit_impr.cpp:239
edit_impr::set_bcost_value
void set_bcost_value(int value)
Definition edit_impr.cpp:219
edit_impr::gfx_tag_alt_given
void gfx_tag_alt_given()
Definition edit_impr.cpp:265
edit_impr::sound_tag_alt
QLineEdit * sound_tag_alt
Definition edit_impr.h:51
edit_impr::gfx_tag
QLineEdit * gfx_tag
Definition edit_impr.h:48
edit_impr::bcost
QSpinBox * bcost
Definition edit_impr.h:45
edit_impr::impr
struct impr_type * impr
Definition edit_impr.h:44
edit_impr::helptext
void helptext()
Definition edit_impr.cpp:295
edit_impr::refresh
void refresh()
Definition edit_impr.cpp:205
edit_impr::genus_button
QToolButton * genus_button
Definition edit_impr.h:47
edit_impr::sound_tag
QLineEdit * sound_tag
Definition edit_impr.h:50
edit_impr::sound_tag_alt_given
void sound_tag_alt_given()
Definition edit_impr.cpp:285
edit_impr::sound_tag_given
void sound_tag_given()
Definition edit_impr.cpp:275
edit_impr::gfx_tag_alt
QLineEdit * gfx_tag_alt
Definition edit_impr.h:49
edit_impr::ui
ruledit_gui * ui
Definition edit_impr.h:43
edit_impr::flag_layout
QGridLayout * flag_layout
Definition edit_impr.h:53
edit_impr::closeEvent
void closeEvent(QCloseEvent *cevent)
Definition edit_impr.cpp:170
edit_impr::gfx_tag_given
void gfx_tag_given()
Definition edit_impr.cpp:255
ruledit_gui
Definition ruledit_qt.h:96
values_dlg
Definition values_dlg.h:28
slots
struct player_slot * slots
Definition player.c:50
action
Definition actions.h:379
impr_type
Definition improvement.h:68
values_dlg.h