Freeciv-3.2: /fast/freeciv/nightly/S3_2/tools/ruledit/edit_utype.h Source File

Freeciv-3.2

Loading...
Searching...
No Matches
edit_utype.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_UTYPE_H
15#define FC__EDIT_UTYPE_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;
27class QToolButton;
28
29class ruledit_gui;
30
31 class edit_utype : public QDialog
32{
33 Q_OBJECT
34
35 public:
36 explicit edit_utype(ruledit_gui *ui_in, struct unit_type *utype_in);
37 void refresh();
38
39 private:
40 ruledit_gui *ui;
41 struct unit_type *utype;
42 QSpinBox *bcost;
43 QSpinBox *attack;
44 QSpinBox *defense;
45 QSpinBox *hitpoints;
46 QSpinBox *firepower;
47 QSpinBox *move_rate;
48 QLineEdit *gfx_tag;
49 QLineEdit *gfx_tag_alt;
50 QLineEdit *gfx_tag_alt2;
51 QLineEdit *sound_move_tag;
52 QLineEdit *sound_move_tag_alt;
53 QLineEdit *sound_fight_tag;
54 QLineEdit *sound_fight_tag_alt;
55
56 QGridLayout *flag_layout;
57
58 protected:
59 void closeEvent(QCloseEvent *cevent);
60
61 private slots:
62 void set_bcost_value(int value);
63 void set_attack_value(int value);
64 void set_defense_value(int value);
65 void set_hitpoints(int value);
66 void set_firepower(int value);
67 void set_move_rate(int value);
68 void gfx_tag_given();
69 void gfx_tag_alt_given();
70 void gfx_tag_alt2_given();
71 void sound_move_tag_given();
72 void sound_move_tag_alt_given();
73 void sound_fight_tag_given();
74 void sound_fight_tag_alt_given();
75};
76
77#endif // FC__EDIT_UTYPE_H
edit_utype
Definition edit_utype.h:32
edit_utype::firepower
QSpinBox * firepower
Definition edit_utype.h:46
edit_utype::set_bcost_value
void set_bcost_value(int value)
Definition edit_utype.cpp:268
edit_utype::sound_move_tag_alt
QLineEdit * sound_move_tag_alt
Definition edit_utype.h:52
edit_utype::sound_move_tag_given
void sound_move_tag_given()
Definition edit_utype.cpp:346
edit_utype::set_defense_value
void set_defense_value(int value)
Definition edit_utype.cpp:284
edit_utype::gfx_tag_alt2_given
void gfx_tag_alt2_given()
Definition edit_utype.cpp:336
edit_utype::set_attack_value
void set_attack_value(int value)
Definition edit_utype.cpp:276
edit_utype::gfx_tag_alt2
QLineEdit * gfx_tag_alt2
Definition edit_utype.h:50
edit_utype::attack
QSpinBox * attack
Definition edit_utype.h:43
edit_utype::bcost
QSpinBox * bcost
Definition edit_utype.h:42
edit_utype::sound_fight_tag
QLineEdit * sound_fight_tag
Definition edit_utype.h:53
edit_utype::sound_fight_tag_alt
QLineEdit * sound_fight_tag_alt
Definition edit_utype.h:54
edit_utype::gfx_tag_given
void gfx_tag_given()
Definition edit_utype.cpp:316
edit_utype::sound_fight_tag_given
void sound_fight_tag_given()
Definition edit_utype.cpp:366
edit_utype::sound_move_tag
QLineEdit * sound_move_tag
Definition edit_utype.h:51
edit_utype::refresh
void refresh()
Definition edit_utype.cpp:248
edit_utype::set_firepower
void set_firepower(int value)
Definition edit_utype.cpp:300
edit_utype::ui
ruledit_gui * ui
Definition edit_utype.h:40
edit_utype::closeEvent
void closeEvent(QCloseEvent *cevent)
Definition edit_utype.cpp:212
edit_utype::defense
QSpinBox * defense
Definition edit_utype.h:44
edit_utype::move_rate
QSpinBox * move_rate
Definition edit_utype.h:47
edit_utype::set_move_rate
void set_move_rate(int value)
Definition edit_utype.cpp:308
edit_utype::hitpoints
QSpinBox * hitpoints
Definition edit_utype.h:45
edit_utype::sound_move_tag_alt_given
void sound_move_tag_alt_given()
Definition edit_utype.cpp:356
edit_utype::gfx_tag_alt
QLineEdit * gfx_tag_alt
Definition edit_utype.h:49
edit_utype::flag_layout
QGridLayout * flag_layout
Definition edit_utype.h:56
edit_utype::gfx_tag_alt_given
void gfx_tag_alt_given()
Definition edit_utype.cpp:326
edit_utype::utype
struct unit_type * utype
Definition edit_utype.h:41
edit_utype::sound_fight_tag_alt_given
void sound_fight_tag_alt_given()
Definition edit_utype.cpp:376
edit_utype::gfx_tag
QLineEdit * gfx_tag
Definition edit_utype.h:48
edit_utype::set_hitpoints
void set_hitpoints(int value)
Definition edit_utype.cpp:292
ruledit_gui
Definition ruledit_qt.h:97
incite_cost
char * incite_cost
Definition comments.c:74
slots
struct player_slot * slots
Definition player.c:51
unit_type
Definition unittype.h:500