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
31class edit_utype : public QDialog
32{
34
35 public:
36 explicit edit_utype(ruledit_gui *ui_in, struct unit_type *utype_in);
37 void refresh();
38
39 private:
48 QLineEdit *gfx_tag;
49 QLineEdit *gfx_tag_alt;
50 QLineEdit *gfx_tag_alt2;
51 QLineEdit *sound_move_tag;
53 QLineEdit *sound_fight_tag;
55
57
58 protected:
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();
75};
76
77#endif // FC__EDIT_UTYPE_H
QSpinBox * firepower
Definition edit_utype.h:46
void set_bcost_value(int value)
QLineEdit * sound_move_tag_alt
Definition edit_utype.h:52
void sound_move_tag_given()
void set_defense_value(int value)
void gfx_tag_alt2_given()
void set_attack_value(int value)
QLineEdit * gfx_tag_alt2
Definition edit_utype.h:50
QSpinBox * attack
Definition edit_utype.h:43
QSpinBox * bcost
Definition edit_utype.h:42
QLineEdit * sound_fight_tag
Definition edit_utype.h:53
QLineEdit * sound_fight_tag_alt
Definition edit_utype.h:54
void gfx_tag_given()
void sound_fight_tag_given()
QLineEdit * sound_move_tag
Definition edit_utype.h:51
void refresh()
void set_firepower(int value)
ruledit_gui * ui
Definition edit_utype.h:40
void closeEvent(QCloseEvent *cevent)
QSpinBox * defense
Definition edit_utype.h:44
QSpinBox * move_rate
Definition edit_utype.h:47
void set_move_rate(int value)
QSpinBox * hitpoints
Definition edit_utype.h:45
void sound_move_tag_alt_given()
QLineEdit * gfx_tag_alt
Definition edit_utype.h:49
QGridLayout * flag_layout
Definition edit_utype.h:56
void gfx_tag_alt_given()
struct unit_type * utype
Definition edit_utype.h:41
void sound_fight_tag_alt_given()
QLineEdit * gfx_tag
Definition edit_utype.h:48
void set_hitpoints(int value)
char * incite_cost
Definition comments.c:74
struct player_slot * slots
Definition player.c:51