Freeciv-3.3: /fast/freeciv/nightly/main/client/gui-qt/hudwidget.h Source File

Freeciv-3.3

Loading...
Searching...
No Matches
hudwidget.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__HUDWIDGET_H
15#define FC__HUDWIDGET_H
16
17// Needed for the moc-generated meta file
18#ifdef HAVE_CONFIG_H
19#include <fc_config.h>
20#endif
21
22// Qt
23#include <QDialog>
24#include <QElapsedTimer>
25#include <QEnterEvent>
26#include <QLabel>
27#include <QLineEdit>
28#include <QMessageBox>
29#include <QRubberBand>
30#include <QTableWidget>
31
32// common
33#include "unit.h"
34
35// gui-qt
36#include "shortcuts.h"
37
38class move_widget;
39class QComboBox;
40class QHBoxLayout;
41class QIcon;
42class QLabel;
43class QRadioButton;
44class QVBoxLayout;
45struct tile;
46struct unit;
47struct unit_list;
48
49void show_new_turn_info();
50bool has_player_unit_type(Unit_type_id utype);
51
52/****************************************************************************
53 Custom message box with animated background
54****************************************************************************/
55 class hud_message_box: public QMessageBox
56{
57 Q_OBJECT
58 QElapsedTimer m_timer;
59
60public:
61 hud_message_box(QWidget *parent);
62 ~hud_message_box();
63 int set_text_title(QString s1, QString s2, bool return_exec = false);
64
65protected:
66 void paintEvent(QPaintEvent *event);
67 void timerEvent(QTimerEvent *event);
68 void keyPressEvent(QKeyEvent *event);
69private:
70 int m_animate_step;
71 QString text;
72 QString title;
73 QFontMetrics *fm_text;
74 QFontMetrics *fm_title;
75 QFont f_text;
76 QString cs1, cs2;
77 QFont f_title;
78 int top;
79 int mult;
80};
81
82/****************************************************************************
83 Class for showing text on screen
84****************************************************************************/
85 class hud_text: public QWidget
86{
87 Q_OBJECT
88public:
89 hud_text(QString s, int time_secs, QWidget *parent);
90 ~hud_text();
91 void show_me();
92protected:
93 void paintEvent(QPaintEvent *event);
94 void timerEvent(QTimerEvent *event);
95private:
96 void center_me();
97 QRect bound_rect;
98 int timeout;
99 int m_animate_step;
100 QString text;
101 QElapsedTimer m_timer;
102 QFontMetrics *fm_text;
103 QFont f_text;
104 QFont f_title;
105};
106
107/****************************************************************************
108 Custom input box with animated background
109****************************************************************************/
110 class hud_input_box: public QDialog
111{
112 Q_OBJECT
113 QElapsedTimer m_timer;
114
115public:
116 hud_input_box(QWidget *parent);
117 ~hud_input_box();
118 void set_text_title_definput(QString s1, QString s2, QString def_input);
119 QLineEdit input_edit;
120
121protected:
122 void paintEvent(QPaintEvent *event);
123 void timerEvent(QTimerEvent *event);
124private:
125 int m_animate_step;
126 QString text;
127 QString title;
128 QFontMetrics *fm_text;
129 QFontMetrics *fm_title;
130 QFont f_text;
131 QString cs1, cs2;
132 QFont f_title;
133 int top;
134 int mult;
135};
136
137/****************************************************************************
138 Custom label to center on current unit
139****************************************************************************/
140 class click_label : public QLabel
141{
142 Q_OBJECT
143public:
144 click_label();
145signals:
146 void left_clicked();
147private slots:
148 void on_clicked();
149protected:
150 void mousePressEvent(QMouseEvent *e);
151};
152
153/****************************************************************************
154 Single action on unit actions
155****************************************************************************/
156 class hud_action : public QWidget
157{
158 Q_OBJECT
159 QPixmap *action_pixmap;
160 bool focus;
161public:
162 hud_action(QWidget *parent);
163 ~hud_action();
164 void set_pixmap(QPixmap *p);
165 shortcut_id action_shortcut;
166signals:
167 void left_clicked();
168 void right_clicked();
169protected:
170 void paintEvent(QPaintEvent *event);
171 void mousePressEvent(QMouseEvent *e);
172 void mouseMoveEvent(QMouseEvent *event);
173 void leaveEvent(QEvent *event);
174#ifndef FC_QT5_MODE
175 void enterEvent(QEnterEvent *event);
176#else // FC_QT5_MODE
177 void enterEvent(QEvent *event);
178#endif // FC_QT5_MODE
179private slots:
180 void on_clicked();
181 void on_right_clicked();
182};
183
184/****************************************************************************
185 List of unit actions
186****************************************************************************/
187 class unit_actions: public QWidget
188{
189 Q_OBJECT
190public:
191 unit_actions(QWidget *parent, unit *punit);
192 ~unit_actions();
193 void init_layout();
194 int update_actions();
195 void clear_layout();
196 QHBoxLayout *layout;
197 QList<hud_action *> actions;
198private:
199 unit *current_unit;
200};
201
202/****************************************************************************
203 Widget showing current unit, tile and possible actions
204****************************************************************************/
205 class hud_units: public QFrame
206{
207 Q_OBJECT
208 click_label unit_label;
209 click_label tile_label;
210 QLabel text_label;
211 QFont *ufont;
212 QHBoxLayout *main_layout;
213 unit_actions *unit_icons;
214public:
215 hud_units(QWidget *parent);
216 ~hud_units();
217 void update_actions(unit_list *punits);
218protected:
219 void moveEvent(QMoveEvent *event);
220private:
221 move_widget *mw;
222 unit_list *ul_units;
223 tile *current_tile;
224};
225
226/****************************************************************************
227 Widget allowing load units on transport
228****************************************************************************/
229 class hud_unit_loader : public QTableWidget
230{
231 QList<unit * > transports;
232 Q_OBJECT
233public:
234 hud_unit_loader(struct unit *pcargo, struct tile *ptile);
235 ~hud_unit_loader();
236 void show_me();
237protected slots:
238 void selection_changed(const QItemSelection&, const QItemSelection&);
239private:
240 struct unit *cargo;
241 struct tile *qtile;
242};
243
244/****************************************************************************
245 Widget allowing quick select given type of units
246****************************************************************************/
247 class unit_hud_selector : public QFrame
248{
249 Q_OBJECT
250 QVBoxLayout *main_layout;
251 QComboBox *unit_sel_type;
252 QPushButton *select;
253 QPushButton *cancel;
254public:
255 unit_hud_selector(QWidget *parent);
256 ~unit_hud_selector();
257 void show_me();
258private slots:
259 void select_units(int x = 0);
260 void select_units(bool x);
261 void uhs_select();
262 void uhs_cancel();
263protected:
264 void keyPressEvent(QKeyEvent *event);
265private:
266 bool activity_filter(struct unit *punit);
267 bool hp_filter(struct unit *punit);
268 bool island_filter(struct unit *punit);
269 bool type_filter(struct unit *punit);
270
271 QRadioButton *any_activity;
272 QRadioButton *fortified;
273 QRadioButton *idle;
274 QRadioButton *sentried;
275
276 QRadioButton *any;
277 QRadioButton *full_mp;
278 QRadioButton *full_hp;
279 QRadioButton *full_hp_mp;
280
281 QRadioButton *this_tile;
282 QRadioButton *this_continent;
283 QRadioButton *main_continent;
284 QRadioButton *anywhere;
285
286 QRadioButton *this_type;
287 QRadioButton *any_type;
288 QLabel result_label;
289};
290
291/****************************************************************************
292 Widget showing one combat result
293****************************************************************************/
294 class hud_unit_combat : public QWidget
295{
296 Q_OBJECT
297public:
298 hud_unit_combat(int attacker_unit_id, int defender_unit_id,
299 int attacker_hp, int defender_hp,
300 bool make_att_veteran, bool make_def_veteran,
301 float scale, QWidget *parent);
302 ~hud_unit_combat();
303 bool get_focus();
304 void set_fading(float fade);
305 void set_scale(float scale);
306protected:
307 void paintEvent(QPaintEvent *event);
308 void mousePressEvent(QMouseEvent *e);
309 void leaveEvent(QEvent *event);
310#ifndef FC_QT5_MODE
311 void enterEvent(QEnterEvent *event);
312#else // FC_QT5_MODE
313 void enterEvent(QEvent *event);
314#endif // FC_QT5_MODE
315private:
316 void init_images(bool redraw = false);
317 int att_hp;
318 int def_hp;
319 int att_hp_loss;
320 int def_hp_loss;
321 bool att_veteran;
322 bool def_veteran;
323 struct unit *attacker;
324 struct unit *defender;
325 const struct unit_type *type_attacker;
326 const struct unit_type *type_defender;
327 struct tile *center_tile;
328 bool focus;
329 float fading;
330 float hud_scale;
331 QImage dimg, aimg;
332};
333
334/****************************************************************************
335 Widget for resizing other widgets
336****************************************************************************/
337 class scale_widget : public QRubberBand
338{
339 Q_OBJECT
340public:
341 scale_widget(Shape s, QWidget *p = 0);
342 float scale;
343protected:
344 void paintEvent(QPaintEvent *event);
345 void mousePressEvent(QMouseEvent *event);
346private:
347 int size;
348 QPixmap plus;
349 QPixmap minus;
350};
351
352
353/****************************************************************************
354 Widget showing combat log
355****************************************************************************/
356 class hud_battle_log : public QWidget
357{
358 Q_OBJECT
359 QVBoxLayout *main_layout;
360 QList<hud_unit_combat*> lhuc;
361public:
362 hud_battle_log(QWidget *parent);
363 ~hud_battle_log();
364 void add_combat_info(hud_unit_combat* huc);
365 void set_scale(float s);
366 float scale;
367protected:
368 void paintEvent(QPaintEvent *event);
369 void moveEvent(QMoveEvent *event);
370 void timerEvent(QTimerEvent *event);
371 void showEvent(QShowEvent *event);
372private:
373 void update_size();
374 void te_inner();
375
376 scale_widget *sw;
377 move_widget *mw;
378 QElapsedTimer m_timer;
379};
380
381#endif // FC__HUDWIDGET_H
382
click_label
Definition hudwidget.h:141
click_label::left_clicked
void left_clicked()
click_label::mousePressEvent
void mousePressEvent(QMouseEvent *e)
Definition hudwidget.cpp:798
click_label::on_clicked
void on_clicked()
Definition hudwidget.cpp:808
click_label::click_label
click_label()
Definition hudwidget.cpp:790
hud_action
Definition hudwidget.h:157
hud_action::paintEvent
void paintEvent(QPaintEvent *event)
Definition hudwidget.cpp:837
hud_action::leaveEvent
void leaveEvent(QEvent *event)
Definition hudwidget.cpp:893
hud_action::mousePressEvent
void mousePressEvent(QMouseEvent *e)
Definition hudwidget.cpp:872
hud_action::on_clicked
void on_clicked()
Definition hudwidget.cpp:924
hud_action::mouseMoveEvent
void mouseMoveEvent(QMouseEvent *event)
Definition hudwidget.cpp:884
hud_action::right_clicked
void right_clicked()
hud_action::focus
bool focus
Definition hudwidget.h:160
hud_action::action_pixmap
QPixmap * action_pixmap
Definition hudwidget.h:159
hud_action::on_right_clicked
void on_right_clicked()
Definition hudwidget.cpp:917
hud_action::enterEvent
void enterEvent(QEnterEvent *event)
Definition hudwidget.cpp:904
hud_action::action_shortcut
shortcut_id action_shortcut
Definition hudwidget.h:165
hud_action::left_clicked
void left_clicked()
hud_action::~hud_action
~hud_action()
Definition hudwidget.cpp:862
hud_action::set_pixmap
void set_pixmap(QPixmap *p)
Definition hudwidget.cpp:829
hud_battle_log
Definition hudwidget.h:357
hud_battle_log::update_size
void update_size()
Definition hudwidget.cpp:2014
hud_battle_log::mw
move_widget * mw
Definition hudwidget.h:377
hud_battle_log::lhuc
QList< hud_unit_combat * > lhuc
Definition hudwidget.h:360
hud_battle_log::m_timer
QElapsedTimer m_timer
Definition hudwidget.h:378
hud_battle_log::add_combat_info
void add_combat_info(hud_unit_combat *huc)
Definition hudwidget.cpp:2048
hud_battle_log::te_inner
void te_inner()
Definition hudwidget.cpp:2105
hud_battle_log::main_layout
QVBoxLayout * main_layout
Definition hudwidget.h:359
hud_battle_log::~hud_battle_log
~hud_battle_log()
Definition hudwidget.cpp:2005
hud_battle_log::moveEvent
void moveEvent(QMoveEvent *event)
Definition hudwidget.cpp:2089
hud_battle_log::timerEvent
void timerEvent(QTimerEvent *event)
Definition hudwidget.cpp:2117
hud_battle_log::sw
scale_widget * sw
Definition hudwidget.h:376
hud_battle_log::paintEvent
void paintEvent(QPaintEvent *event)
Definition hudwidget.cpp:2076
hud_battle_log::set_scale
void set_scale(float s)
Definition hudwidget.cpp:2039
hud_battle_log::showEvent
void showEvent(QShowEvent *event)
Definition hudwidget.cpp:2139
hud_battle_log::scale
float scale
Definition hudwidget.h:366
hud_input_box
Definition hudwidget.h:111
hud_input_box::top
int top
Definition hudwidget.h:133
hud_input_box::cs1
QString cs1
Definition hudwidget.h:131
hud_input_box::set_text_title_definput
void set_text_title_definput(QString s1, QString s2, QString def_input)
Definition hudwidget.cpp:395
hud_input_box::m_animate_step
int m_animate_step
Definition hudwidget.h:125
hud_input_box::paintEvent
void paintEvent(QPaintEvent *event)
Definition hudwidget.cpp:463
hud_input_box::f_title
QFont f_title
Definition hudwidget.h:132
hud_input_box::m_timer
QElapsedTimer m_timer
Definition hudwidget.h:113
hud_input_box::cs2
QString cs2
Definition hudwidget.h:131
hud_input_box::timerEvent
void timerEvent(QTimerEvent *event)
Definition hudwidget.cpp:454
hud_input_box::~hud_input_box
~hud_input_box()
Definition hudwidget.cpp:386
hud_input_box::fm_text
QFontMetrics * fm_text
Definition hudwidget.h:128
hud_input_box::f_text
QFont f_text
Definition hudwidget.h:130
hud_input_box::mult
int mult
Definition hudwidget.h:134
hud_input_box::input_edit
QLineEdit input_edit
Definition hudwidget.h:119
hud_input_box::fm_title
QFontMetrics * fm_title
Definition hudwidget.h:129
hud_input_box::text
QString text
Definition hudwidget.h:126
hud_input_box::title
QString title
Definition hudwidget.h:127
hud_message_box
Definition hudwidget.h:56
hud_message_box::mult
int mult
Definition hudwidget.h:79
hud_message_box::fm_text
QFontMetrics * fm_text
Definition hudwidget.h:73
hud_message_box::title
QString title
Definition hudwidget.h:72
hud_message_box::f_text
QFont f_text
Definition hudwidget.h:75
hud_message_box::text
QString text
Definition hudwidget.h:71
hud_message_box::m_timer
QElapsedTimer m_timer
Definition hudwidget.h:58
hud_message_box::cs1
QString cs1
Definition hudwidget.h:76
hud_message_box::top
int top
Definition hudwidget.h:78
hud_message_box::~hud_message_box
~hud_message_box()
Definition hudwidget.cpp:104
hud_message_box::timerEvent
void timerEvent(QTimerEvent *event)
Definition hudwidget.cpp:176
hud_message_box::paintEvent
void paintEvent(QPaintEvent *event)
Definition hudwidget.cpp:185
hud_message_box::f_title
QFont f_title
Definition hudwidget.h:77
hud_message_box::set_text_title
int set_text_title(QString s1, QString s2, bool return_exec=false)
Definition hudwidget.cpp:126
hud_message_box::m_animate_step
int m_animate_step
Definition hudwidget.h:70
hud_message_box::keyPressEvent
void keyPressEvent(QKeyEvent *event)
Definition hudwidget.cpp:113
hud_message_box::fm_title
QFontMetrics * fm_title
Definition hudwidget.h:74
hud_message_box::cs2
QString cs2
Definition hudwidget.h:76
hud_text
Definition hudwidget.h:86
hud_text::m_timer
QElapsedTimer m_timer
Definition hudwidget.h:101
hud_text::~hud_text
~hud_text()
Definition hudwidget.cpp:298
hud_text::text
QString text
Definition hudwidget.h:100
hud_text::timerEvent
void timerEvent(QTimerEvent *event)
Definition hudwidget.cpp:306
hud_text::f_text
QFont f_text
Definition hudwidget.h:103
hud_text::timeout
int timeout
Definition hudwidget.h:98
hud_text::center_me
void center_me()
Definition hudwidget.cpp:281
hud_text::f_title
QFont f_title
Definition hudwidget.h:104
hud_text::bound_rect
QRect bound_rect
Definition hudwidget.h:97
hud_text::show_me
void show_me()
Definition hudwidget.cpp:272
hud_text::paintEvent
void paintEvent(QPaintEvent *event)
Definition hudwidget.cpp:319
hud_text::fm_text
QFontMetrics * fm_text
Definition hudwidget.h:102
hud_text::m_animate_step
int m_animate_step
Definition hudwidget.h:99
hud_unit_combat
Definition hudwidget.h:295
hud_unit_combat::att_hp_loss
int att_hp_loss
Definition hudwidget.h:319
hud_unit_combat::set_fading
void set_fading(float fade)
Definition hudwidget.cpp:1823
hud_unit_combat::defender
struct unit * defender
Definition hudwidget.h:324
hud_unit_combat::leaveEvent
void leaveEvent(QEvent *event)
Definition hudwidget.cpp:1915
hud_unit_combat::mousePressEvent
void mousePressEvent(QMouseEvent *e)
Definition hudwidget.cpp:1907
hud_unit_combat::aimg
QImage aimg
Definition hudwidget.h:331
hud_unit_combat::paintEvent
void paintEvent(QPaintEvent *event)
Definition hudwidget.cpp:1840
hud_unit_combat::init_images
void init_images(bool redraw=false)
Definition hudwidget.cpp:1740
hud_unit_combat::attacker
struct unit * attacker
Definition hudwidget.h:323
hud_unit_combat::get_focus
bool get_focus()
Definition hudwidget.cpp:1832
hud_unit_combat::fading
float fading
Definition hudwidget.h:329
hud_unit_combat::type_attacker
const struct unit_type * type_attacker
Definition hudwidget.h:325
hud_unit_combat::def_hp
int def_hp
Definition hudwidget.h:318
hud_unit_combat::att_veteran
bool att_veteran
Definition hudwidget.h:321
hud_unit_combat::dimg
QImage dimg
Definition hudwidget.h:331
hud_unit_combat::def_veteran
bool def_veteran
Definition hudwidget.h:322
hud_unit_combat::set_scale
void set_scale(float scale)
Definition hudwidget.cpp:1807
hud_unit_combat::att_hp
int att_hp
Definition hudwidget.h:317
hud_unit_combat::center_tile
struct tile * center_tile
Definition hudwidget.h:327
hud_unit_combat::~hud_unit_combat
~hud_unit_combat()
Definition hudwidget.cpp:1816
hud_unit_combat::type_defender
const struct unit_type * type_defender
Definition hudwidget.h:326
hud_unit_combat::focus
bool focus
Definition hudwidget.h:328
hud_unit_combat::enterEvent
void enterEvent(QEnterEvent *event)
Definition hudwidget.cpp:1925
hud_unit_combat::hud_scale
float hud_scale
Definition hudwidget.h:330
hud_unit_combat::def_hp_loss
int def_hp_loss
Definition hudwidget.h:320
hud_unit_loader
Definition hudwidget.h:230
hud_unit_loader::~hud_unit_loader
~hud_unit_loader()
Definition hudwidget.cpp:1225
hud_unit_loader::qtile
struct tile * qtile
Definition hudwidget.h:241
hud_unit_loader::cargo
struct unit * cargo
Definition hudwidget.h:240
hud_unit_loader::selection_changed
void selection_changed(const QItemSelection &, const QItemSelection &)
Definition hudwidget.cpp:1293
hud_unit_loader::transports
QList< unit * > transports
Definition hudwidget.h:231
hud_unit_loader::show_me
void show_me()
Definition hudwidget.cpp:1233
hud_units
Definition hudwidget.h:206
hud_units::text_label
QLabel text_label
Definition hudwidget.h:210
hud_units::update_actions
void update_actions(unit_list *punits)
Definition hudwidget.cpp:576
hud_units::moveEvent
void moveEvent(QMoveEvent *event)
Definition hudwidget.cpp:565
hud_units::unit_label
click_label unit_label
Definition hudwidget.h:208
hud_units::~hud_units
~hud_units()
Definition hudwidget.cpp:558
hud_units::ufont
QFont * ufont
Definition hudwidget.h:211
hud_units::tile_label
click_label tile_label
Definition hudwidget.h:209
hud_units::mw
move_widget * mw
Definition hudwidget.h:221
hud_units::ul_units
unit_list * ul_units
Definition hudwidget.h:222
hud_units::current_tile
tile * current_tile
Definition hudwidget.h:223
hud_units::main_layout
QHBoxLayout * main_layout
Definition hudwidget.h:212
hud_units::unit_icons
unit_actions * unit_icons
Definition hudwidget.h:213
move_widget
Definition mapview.h:154
scale_widget
Definition hudwidget.h:338
scale_widget::paintEvent
void paintEvent(QPaintEvent *event)
Definition hudwidget.cpp:1958
scale_widget::mousePressEvent
void mousePressEvent(QMouseEvent *event)
Definition hudwidget.cpp:1972
scale_widget::minus
QPixmap minus
Definition hudwidget.h:349
scale_widget::plus
QPixmap plus
Definition hudwidget.h:348
scale_widget::scale
float scale
Definition hudwidget.h:342
scale_widget::size
int size
Definition hudwidget.h:347
unit_actions
Definition hudwidget.h:188
unit_actions::clear_layout
void clear_layout()
Definition hudwidget.cpp:1180
unit_actions::actions
QList< hud_action * > actions
Definition hudwidget.h:197
unit_actions::init_layout
void init_layout()
Definition hudwidget.cpp:954
unit_actions::current_unit
unit * current_unit
Definition hudwidget.h:199
unit_actions::update_actions
int update_actions()
Definition hudwidget.cpp:967
unit_actions::~unit_actions
~unit_actions()
Definition hudwidget.cpp:945
unit_actions::layout
QHBoxLayout * layout
Definition hudwidget.h:196
unit_hud_selector
Definition hudwidget.h:248
unit_hud_selector::this_continent
QRadioButton * this_continent
Definition hudwidget.h:282
unit_hud_selector::unit_sel_type
QComboBox * unit_sel_type
Definition hudwidget.h:251
unit_hud_selector::sentried
QRadioButton * sentried
Definition hudwidget.h:274
unit_hud_selector::keyPressEvent
void keyPressEvent(QKeyEvent *event)
Definition hudwidget.cpp:1517
unit_hud_selector::main_layout
QVBoxLayout * main_layout
Definition hudwidget.h:250
unit_hud_selector::anywhere
QRadioButton * anywhere
Definition hudwidget.h:284
unit_hud_selector::main_continent
QRadioButton * main_continent
Definition hudwidget.h:283
unit_hud_selector::full_hp_mp
QRadioButton * full_hp_mp
Definition hudwidget.h:279
unit_hud_selector::cancel
QPushButton * cancel
Definition hudwidget.h:253
unit_hud_selector::island_filter
bool island_filter(struct unit *punit)
Definition hudwidget.cpp:1563
unit_hud_selector::result_label
QLabel result_label
Definition hudwidget.h:288
unit_hud_selector::type_filter
bool type_filter(struct unit *punit)
Definition hudwidget.cpp:1596
unit_hud_selector::uhs_select
void uhs_select()
Definition hudwidget.cpp:1464
unit_hud_selector::full_mp
QRadioButton * full_mp
Definition hudwidget.h:277
unit_hud_selector::select_units
void select_units(int x=0)
Definition hudwidget.cpp:1490
unit_hud_selector::fortified
QRadioButton * fortified
Definition hudwidget.h:272
unit_hud_selector::this_tile
QRadioButton * this_tile
Definition hudwidget.h:281
unit_hud_selector::any_type
QRadioButton * any_type
Definition hudwidget.h:287
unit_hud_selector::any_activity
QRadioButton * any_activity
Definition hudwidget.h:271
unit_hud_selector::~unit_hud_selector
~unit_hud_selector()
Definition hudwidget.cpp:1457
unit_hud_selector::select
QPushButton * select
Definition hudwidget.h:252
unit_hud_selector::any
QRadioButton * any
Definition hudwidget.h:276
unit_hud_selector::activity_filter
bool activity_filter(struct unit *punit)
Definition hudwidget.cpp:1533
unit_hud_selector::hp_filter
bool hp_filter(struct unit *punit)
Definition hudwidget.cpp:1547
unit_hud_selector::full_hp
QRadioButton * full_hp
Definition hudwidget.h:278
unit_hud_selector::this_type
QRadioButton * this_type
Definition hudwidget.h:286
unit_hud_selector::show_me
void show_me()
Definition hudwidget.cpp:1441
unit_hud_selector::uhs_cancel
void uhs_cancel()
Definition hudwidget.cpp:1482
unit_hud_selector::idle
QRadioButton * idle
Definition hudwidget.h:273
incite_cost
char * incite_cost
Definition comments.c:74
punit
struct unit struct city struct unit struct tile struct extra_type const struct act_prob *act_probs int actor_unit_id struct unit struct unit * punit
Definition dialogs_g.h:74
event
enum event_type event
Definition events.c:81
Unit_type_id
int Unit_type_id
Definition fc_types.h:386
has_player_unit_type
bool has_player_unit_type(Unit_type_id utype)
Definition hudwidget.cpp:60
show_new_turn_info
void show_new_turn_info()
Definition hudwidget.cpp:1661
slots
struct player_slot * slots
Definition player.c:51
shortcuts.h
shortcut_id
shortcut_id
Definition shortcuts.h:33
scale
struct sprite int int int int struct sprite int int float scale
Definition sprite_g.h:33
x
struct sprite int x
Definition sprite_g.h:31
tile
Definition tile.h:50
unit_type
Definition unittype.h:507
unit
Definition unit.h:140
unit.h