Freeciv-3.2
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
34class edit_impr : public values_dlg
35{
37
38 public:
39 explicit edit_impr(ruledit_gui *ui_in, struct impr_type *impr_in);
40 void refresh();
41
42 private:
44 struct impr_type *impr;
48 QLineEdit *gfx_tag;
49 QLineEdit *gfx_tag_alt;
50 QLineEdit *gfx_tag_alt2;
51 QLineEdit *sound_tag;
52 QLineEdit *sound_tag_alt;
53 QLineEdit *sound_tag_alt2;
54
56
57 protected:
59
60 private slots:
61 void set_bcost_value(int value);
62 void set_upkeep_value(int value);
64 void gfx_tag_given();
65 void gfx_tag_alt_given();
66 void gfx_tag_alt2_given();
67 void sound_tag_given();
70 void helptext();
71};
72
73
74#endif // FC__EDIT_IMPR_H
QSpinBox * upkeep
Definition edit_impr.h:46
void set_upkeep_value(int value)
void genus_menu(QAction *action)
void sound_tag_alt2_given()
void set_bcost_value(int value)
void gfx_tag_alt_given()
QLineEdit * sound_tag_alt
Definition edit_impr.h:52
QLineEdit * gfx_tag
Definition edit_impr.h:48
QSpinBox * bcost
Definition edit_impr.h:45
struct impr_type * impr
Definition edit_impr.h:44
void helptext()
void refresh()
QToolButton * genus_button
Definition edit_impr.h:47
QLineEdit * sound_tag
Definition edit_impr.h:51
void sound_tag_alt_given()
void sound_tag_given()
QLineEdit * gfx_tag_alt
Definition edit_impr.h:49
ruledit_gui * ui
Definition edit_impr.h:43
QGridLayout * flag_layout
Definition edit_impr.h:55
QLineEdit * gfx_tag_alt2
Definition edit_impr.h:50
QLineEdit * sound_tag_alt2
Definition edit_impr.h:53
void gfx_tag_alt2_given()
void closeEvent(QCloseEvent *cevent)
void gfx_tag_given()
char * incite_cost
Definition comments.c:75
struct player_slot * slots
Definition player.c:51