Freeciv-3.3
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
24// ruledit
25#include "values_dlg.h"
26
27class QGridLayout;
28class QLineEdit;
29class QSpinBox;
30class QToolButton;
31
32class ruledit_gui;
33
34class edit_utype : public values_dlg
35{
37
38 public:
39 explicit edit_utype(ruledit_gui *ui_in, struct unit_type *utype_in);
40 void refresh();
41
42 private:
52 QLineEdit *gfx_tag;
53 QLineEdit *gfx_tag_alt;
54 QLineEdit *gfx_tag_alt2;
55 QLineEdit *sound_move_tag;
57 QLineEdit *sound_fight_tag;
59
61
62 protected:
64
65 private slots:
67 void set_bcost_value(int value);
68 void set_attack_value(int value);
69 void set_defense_value(int value);
70 void set_hitpoints(int value);
71 void set_firepower(int value);
72 void set_move_rate(int value);
73 void gfx_tag_given();
74 void gfx_tag_alt_given();
75 void gfx_tag_alt2_given();
80 void helptext();
81};
82
83#endif // FC__EDIT_UTYPE_H
QSpinBox * firepower
Definition edit_utype.h:50
void set_bcost_value(int value)
QLineEdit * sound_move_tag_alt
Definition edit_utype.h:56
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:54
QSpinBox * attack
Definition edit_utype.h:47
QSpinBox * bcost
Definition edit_utype.h:46
QLineEdit * sound_fight_tag
Definition edit_utype.h:57
QLineEdit * sound_fight_tag_alt
Definition edit_utype.h:58
void gfx_tag_given()
void sound_fight_tag_given()
QLineEdit * sound_move_tag
Definition edit_utype.h:55
void refresh()
void set_firepower(int value)
ruledit_gui * ui
Definition edit_utype.h:43
QToolButton * class_button
Definition edit_utype.h:45
void closeEvent(QCloseEvent *cevent)
void helptext()
QSpinBox * defense
Definition edit_utype.h:48
QSpinBox * move_rate
Definition edit_utype.h:51
void set_move_rate(int value)
QSpinBox * hitpoints
Definition edit_utype.h:49
void sound_move_tag_alt_given()
QLineEdit * gfx_tag_alt
Definition edit_utype.h:53
void class_menu(QAction *action)
QGridLayout * flag_layout
Definition edit_utype.h:60
void gfx_tag_alt_given()
struct unit_type * utype
Definition edit_utype.h:44
void sound_fight_tag_alt_given()
QLineEdit * gfx_tag
Definition edit_utype.h:52
void set_hitpoints(int value)
char * incite_cost
Definition comments.c:74
struct player_slot * slots
Definition player.c:51