Freeciv-3.1: /fast/freeciv/nightly/S3_1/client/gui-qt/fc_client.h Source File

Freeciv-3.1

Loading...
Searching...
No Matches
fc_client.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__FC_CLIENT_H
15#define FC__FC_CLIENT_H
16
17// In this case we have to include fc_config.h from header file.
18// Some other headers we include demand that fc_config.h must be
19// included also. Usually all source files include fc_config.h, but
20// there's moc generated meta_fc_client.cpp file which does not.
21#ifdef HAVE_CONFIG_H
22#include <fc_config.h>
23#endif
24
25// Qt
26#include <QMainWindow>
27#include <QPixmapCache>
28#include <QStackedWidget>
29
30// common
31#include "packets.h"
32
33// client
34#include "chatline_common.h"
35#include "client_main.h"
36#include "climisc.h"
37#include "clinet.h"
38#include "mapview_common.h"
39#include "servers.h"
40#include "tilespec.h"
41
42// gui-qt
43#include "canvas.h"
44#include "chatline.h"
45#include "dialogs.h"
46#include "fonts.h"
47#include "gotodlg.h"
48#include "mapview.h"
49#include "menu.h"
50#include "messagewin.h"
51#include "pages.h"
52#include "ratesdlg.h"
53#include "voteinfo_bar.h"
54
55 enum connection_state {
56 LOGIN_TYPE,
57 NEW_PASSWORD_TYPE,
58 ENTER_PASSWORD_TYPE,
59 WAITING_TYPE
60};
61
62class fc_sidebar;
63class fc_sidetax;
64class fc_sidewidget;
65class MainWindow;
66class pregame_options;
67class QApplication;
68class QDialog;
69class QLabel;
70class QLineEdit;
71class QMainWindow;
72class QSocketNotifier;
73class QSpinBox;
74class QStackedLayout;
75class QStatusBar;
76class QString;
77class QTableWidget;
78class QTextEdit;
79class QTimer;
80class QTreeWidget;
81struct fc_shortcut;
82
83
84/****************************************************************************
85 Class helping reading icons/pixmaps from themes/gui-qt/icons folder
86****************************************************************************/
87 class fc_icons
88{
89 Q_DISABLE_COPY(fc_icons);
90
91private:
92 explicit fc_icons();
93 static fc_icons *m_instance;
94
95public:
96 static fc_icons *instance();
97 static void drop();
98 QIcon get_icon(const QString& id);
99 QPixmap *get_pixmap(const QString& id);
100 QString get_path(const QString& id);
101};
102
103/****************************************************************************
104 Widget holding all game tabs
105****************************************************************************/
106 class fc_game_tab_widget: public QStackedWidget
107{
108 Q_OBJECT
109public:
110 fc_game_tab_widget();
111 void init();
112protected:
113 void resizeEvent(QResizeEvent *event);
114private slots:
115 void current_changed(int index);
116};
117
118/****************************************************************************
119 Some qt-specific options like size to save between restarts
120****************************************************************************/
121 struct fc_settings
122{
123 float chat_fwidth;
124 float chat_fheight;
125 float chat_fx_pos;
126 float chat_fy_pos;
127 int player_repo_sort_col;
128 bool show_new_turn_text;
129 bool show_battle_log;
130 Qt::SortOrder player_report_sort;
131 int city_repo_sort_col;
132 Qt::SortOrder city_report_sort;
133 QByteArray city_geometry;
134 QByteArray city_splitter1;
135 QByteArray city_splitter2;
136 QByteArray city_splitter3;
137 QByteArray help_geometry;
138 QByteArray help_splitter1;
139 QByteArray options_client_geometry;
140 QByteArray options_server_geometry;
141 float unit_info_pos_fx;
142 float unit_info_pos_fy;
143 float minimap_x;
144 float minimap_y;
145 float minimap_width;
146 float minimap_height;
147 float battlelog_scale;
148 float battlelog_x;
149 float battlelog_y;
150};
151
152/****************************************************************************
153 Corner widget for menu
154****************************************************************************/
155 class fc_corner : public QWidget
156{
157 Q_OBJECT
158 QMainWindow *mw;
159public:
160 fc_corner(QMainWindow *qmw);
161public slots:
162 void maximize();
163 void minimize();
164 void close_fc();
165};
166
167
168 class fc_client : public QMainWindow,
169 private chat_listener
170{
171 Q_OBJECT
172 QWidget *main_wdg;
173 QWidget *pages[ (int) PAGE_GAME + 2];
174 QWidget *connect_lan;
175 QWidget *connect_metaserver;
176 QWidget *game_main_widget;
177
178 QGridLayout *pages_layout[PAGE_GAME + 2];
179 QStackedLayout *central_layout;
180
181 QTextEdit *output_window;
182 QTextEdit *scenarios_view;
183 QLabel *scenarios_text;
184 QLabel *load_save_text;
185 QLabel *load_pix;
186 QCheckBox *show_preview;
187
188 QLineEdit *connect_host_edit;
189 QLineEdit *connect_port_edit;
190 QLineEdit *connect_login_edit;
191 QLineEdit *connect_password_edit;
192 QLineEdit *connect_confirm_password_edit;
193
194 QPushButton *button;
195 QPushButton *obs_button;
196 QPushButton *start_button;
197 QPushButton *nation_button;
198
199 QDialogButtonBox *button_box;
200
201 QSocketNotifier *server_notifier;
202
203 chat_input *chat_line;
204
205 QTableWidget *lan_widget;
206 QTableWidget *wan_widget;
207 QTableWidget *info_widget;
208 QTableWidget *saves_load;
209 QTableWidget *scenarios_load;
210 QTreeWidget *start_players_tree;
211
212 QTimer *meta_scan_timer;
213 QTimer *lan_scan_timer;
214 QTimer *update_info_timer;
215
216 QStatusBar *status_bar;
217 QLabel *status_bar_label;
218 info_tile *info_tile_wdg;
219 choice_dialog *opened_dialog;
220 fc_sidewidget *sw_map;
221 fc_sidewidget *sw_cities;
222 fc_sidewidget *sw_tax;
223 fc_sidewidget *sw_economy;
224
225public:
226 fc_client();
227 ~fc_client();
228
229 void fc_main(QApplication *qapp);
230 map_view *mapview_wdg;
231 fc_sidebar *sidebar_wdg;
232 minimap_view *minimapview_wdg;
233 void add_server_source(int);
234 void remove_server_source();
235 bool event(QEvent *event);
236
237 enum client_pages current_page();
238
239 void set_status_bar(QString str, int timeout = 2000);
240 int add_game_tab(QWidget *widget);
241 void rm_game_tab(int index); /* doesn't delete widget */
242 void update_start_page();
243 void toggle_unit_sel_widget(struct tile *ptile);
244 void update_unit_sel();
245 void popdown_unit_sel();
246 void popup_tile_info(struct tile *ptile);
247 void popdown_tile_info();
248 void set_diplo_dialog(choice_dialog *widget);
249 void handle_authentication_req(enum authentication_type type,
250 const char *message);
251 choice_dialog *get_diplo_dialog();
252 void update_sidebar_position();
253 void apply_fullscreen();
254
255 mr_idle mr_idler;
256 QWidget *central_wdg;
257 mr_menu *menu_bar;
258 fc_corner *corner_wid;
259 fc_game_tab_widget *game_tab_widget;
260 messagewdg *msgwdg;
261 info_tab *infotab;
262 pregamevote *pre_vote;
263 units_select *unit_sel;
264 xvote *x_vote;
265 goto_dialog *gtd;
266 QCursor *fc_cursors[CURSOR_LAST][NUM_CURSOR_FRAMES];
267 pregame_options *pr_options;
268 fc_settings qt_settings;
269 trade_generator trade_gen;
270 qfc_rally_list rallies;
271 hud_units *unitinfo_wdg;
272 hud_battle_log *battlelog_wdg;
273 bool interface_locked;
274 fc_sidewidget *sw_cunit;
275 fc_sidewidget *sw_science;
276 fc_sidewidget *sw_endturn;
277 fc_sidewidget *sw_indicators;
278 fc_sidewidget *sw_diplo;
279 float map_scale;
280 bool map_font_scale;
281 QMenu *page_submenu_AI;
282 QMenu *page_submenu_team;
283
284 void gimme_place(QWidget *widget, QString str);
285 int gimme_index_of(QString str);
286 void remove_repo_dlg(QString str);
287 bool is_repo_dlg_open(QString str);
288 void write_settings();
289 bool is_closing();
290 void update_sidebar_tooltips();
291 void reload_sidebar_icons();
292 void update_fonts();
293
294private slots:
295 void send_fake_chat_message(const QString &message);
296 void server_input(int sock);
297 void closing();
298 void slot_lan_scan();
299 void slot_meta_scan();
300 void slot_connect();
301 void slot_disconnect();
302 void slot_pregame_observe();
303 void slot_pregame_start();
304 void update_network_lists();
305 void start_page_menu(QPoint);
306 void slot_pick_nation();
307 void start_new_game();
308 void start_scenario();
309 void start_from_save();
310 void browse_saves();
311 void browse_scenarios();
312 void clear_status_bar();
313 void state_preview(int);
314
315public slots:
316 void switch_page(int i);
317 void popup_client_options();
318 void update_info_label();
319 void quit();
320
321protected slots:
322
323 void slot_selection_changed(const QItemSelection&, const QItemSelection&);
324
325private:
326 void chat_message_received(const QString &message,
327 const struct text_tag_list *tags);
328 void create_main_page();
329 void create_network_page();
330 void create_load_page();
331 void create_scenario_page();
332 void create_start_page();
333 void create_game_page();
334 void create_loading_page();
335 bool chat_active_on_page(enum client_pages);
336 void destroy_server_scans (void);
337 void update_server_list(enum server_scan_type sstype,
338 const struct server_list *list);
339 bool check_server_scan(server_scan *scan_data);
340 void update_load_page(void);
341 void create_cursors(void);
342 void delete_cursors(void);
343 void update_scenarios_page(void);
344 void set_connection_state(enum connection_state state);
345 void update_buttons();
346 void init();
347 void read_settings();
348
349 enum client_pages page;
350 QMap<QString, QWidget *> opened_repo_dlgs;
351 QStringList status_bar_queue;
352 QString current_file;
353 bool send_new_aifill_to_server;
354 bool quitting;
355
356protected:
357 void timerEvent(QTimerEvent *);
358 void closeEvent(QCloseEvent *event);
359
360signals:
361 void keyCaught(QKeyEvent *e);
362
363};
364
365/***************************************************************************
366 Class for showing options in PAGE_START, options like ai_fill, ruleset
367 etc.
368***************************************************************************/
369 class pregame_options : public QWidget
370{
371 Q_OBJECT
372 QComboBox *ailevel;
373 QComboBox *cruleset;
374 QPushButton *nation;
375 QSpinBox *max_players;
376public:
377 pregame_options(QWidget *parent);
378 void init();
379
380 void set_rulesets(int num_rulesets, char **rulesets);
381 void set_aifill(int aifill);
382 void update_ai_level();
383 void update_buttons();
384private slots:
385 void max_players_change(int i);
386 void ailevel_change(int i);
387 void ruleset_change(int i);
388 void pick_nation();
389public slots:
390 void popup_server_options();
391};
392
393// Return fc_client instance. Implementation in gui_main.cpp
394class fc_client *gui();
395
396#endif /* FC__FC_CLIENT_H */
397
398
str
#define str
Definition astring.c:76
chatline_common.h
chat_input
Definition chatline.h:81
chat_listener
Definition chatline.h:46
choice_dialog
Definition dialogs.h:260
fc_client
Definition fc_client.h:170
fc_client::game_tab_widget
fc_game_tab_widget * game_tab_widget
Definition fc_client.h:259
fc_client::chat_message_received
void chat_message_received(const QString &message, const struct text_tag_list *tags)
Definition fc_client.cpp:306
fc_client::apply_fullscreen
void apply_fullscreen()
Definition fc_client.cpp:426
fc_client::info_tile_wdg
info_tile * info_tile_wdg
Definition fc_client.h:218
fc_client::status_bar_queue
QStringList status_bar_queue
Definition fc_client.h:351
fc_client::server_notifier
QSocketNotifier * server_notifier
Definition fc_client.h:201
fc_client::handle_authentication_req
void handle_authentication_req(enum authentication_type type, const char *message)
Definition pages.cpp:1567
fc_client::connect_host_edit
QLineEdit * connect_host_edit
Definition fc_client.h:188
fc_client::sw_tax
fc_sidewidget * sw_tax
Definition fc_client.h:222
fc_client::update_buttons
void update_buttons()
Definition pages.cpp:1893
fc_client::popdown_unit_sel
void popdown_unit_sel()
Definition fc_client.cpp:859
fc_client::output_window
QTextEdit * output_window
Definition fc_client.h:181
fc_client::interface_locked
bool interface_locked
Definition fc_client.h:273
fc_client::~fc_client
~fc_client()
Definition fc_client.cpp:244
fc_client::init
void init()
Definition fc_client.cpp:153
fc_client::trade_gen
trade_generator trade_gen
Definition fc_client.h:269
fc_client::update_sidebar_tooltips
void update_sidebar_tooltips()
Definition pages.cpp:2125
fc_client::qt_settings
fc_settings qt_settings
Definition fc_client.h:268
fc_client::gtd
goto_dialog * gtd
Definition fc_client.h:265
fc_client::menu_bar
mr_menu * menu_bar
Definition fc_client.h:257
fc_client::quitting
bool quitting
Definition fc_client.h:354
fc_client::sw_economy
fc_sidewidget * sw_economy
Definition fc_client.h:223
fc_client::meta_scan_timer
QTimer * meta_scan_timer
Definition fc_client.h:212
fc_client::battlelog_wdg
hud_battle_log * battlelog_wdg
Definition fc_client.h:272
fc_client::closing
void closing()
Definition fc_client.cpp:290
fc_client::start_button
QPushButton * start_button
Definition fc_client.h:196
fc_client::start_from_save
void start_from_save()
Definition pages.cpp:1118
fc_client::connect_lan
QWidget * connect_lan
Definition fc_client.h:174
fc_client::add_game_tab
int add_game_tab(QWidget *widget)
Definition pages.cpp:797
fc_client::sw_science
fc_sidewidget * sw_science
Definition fc_client.h:275
fc_client::lan_widget
QTableWidget * lan_widget
Definition fc_client.h:205
fc_client::fc_client
fc_client()
Definition fc_client.cpp:70
fc_client::browse_saves
void browse_saves()
Definition pages.cpp:817
fc_client::connect_metaserver
QWidget * connect_metaserver
Definition fc_client.h:175
fc_client::game_main_widget
QWidget * game_main_widget
Definition fc_client.h:176
fc_client::connect_confirm_password_edit
QLineEdit * connect_confirm_password_edit
Definition fc_client.h:192
fc_client::chat_line
chat_input * chat_line
Definition fc_client.h:203
fc_client::unitinfo_wdg
hud_units * unitinfo_wdg
Definition fc_client.h:271
fc_client::map_font_scale
bool map_font_scale
Definition fc_client.h:280
fc_client::opened_dialog
choice_dialog * opened_dialog
Definition fc_client.h:219
fc_client::pre_vote
pregamevote * pre_vote
Definition fc_client.h:262
fc_client::nation_button
QPushButton * nation_button
Definition fc_client.h:197
fc_client::saves_load
QTableWidget * saves_load
Definition fc_client.h:208
fc_client::read_settings
void read_settings()
Definition fc_client.cpp:649
fc_client::mr_idler
mr_idle mr_idler
Definition fc_client.h:255
fc_client::msgwdg
messagewdg * msgwdg
Definition fc_client.h:260
fc_client::get_diplo_dialog
choice_dialog * get_diplo_dialog()
Definition dialogs.cpp:4740
fc_client::set_status_bar
void set_status_bar(QString str, int timeout=2000)
Definition pages.cpp:437
fc_client::button
QPushButton * button
Definition fc_client.h:194
fc_client::is_repo_dlg_open
bool is_repo_dlg_open(QString str)
Definition fc_client.cpp:616
fc_client::show_preview
QCheckBox * show_preview
Definition fc_client.h:186
fc_client::sw_cunit
fc_sidewidget * sw_cunit
Definition fc_client.h:274
fc_client::server_input
void server_input(int sock)
Definition fc_client.cpp:502
fc_client::page
enum client_pages page
Definition fc_client.h:349
fc_client::current_page
enum client_pages current_page()
Definition fc_client.cpp:441
fc_client::popdown_tile_info
void popdown_tile_info()
Definition mapctrl.cpp:577
fc_client::check_server_scan
bool check_server_scan(server_scan *scan_data)
Definition pages.cpp:1031
fc_client::unit_sel
units_select * unit_sel
Definition fc_client.h:263
fc_client::connect_password_edit
QLineEdit * connect_password_edit
Definition fc_client.h:191
fc_client::quit
void quit()
Definition fc_client.cpp:525
fc_client::minimapview_wdg
minimap_view * minimapview_wdg
Definition fc_client.h:232
fc_client::status_bar
QStatusBar * status_bar
Definition fc_client.h:216
fc_client::reload_sidebar_icons
void reload_sidebar_icons()
Definition pages.cpp:2110
fc_client::wan_widget
QTableWidget * wan_widget
Definition fc_client.h:206
fc_client::slot_pick_nation
void slot_pick_nation()
Definition pages.cpp:2102
fc_client::gimme_place
void gimme_place(QWidget *widget, QString str)
Definition fc_client.cpp:597
fc_client::fc_cursors
QCursor * fc_cursors[CURSOR_LAST][NUM_CURSOR_FRAMES]
Definition fc_client.h:266
fc_client::mapview_wdg
map_view * mapview_wdg
Definition fc_client.h:230
fc_client::slot_selection_changed
void slot_selection_changed(const QItemSelection &, const QItemSelection &)
Definition pages.cpp:1136
fc_client::delete_cursors
void delete_cursors(void)
Definition fc_client.cpp:581
fc_client::central_layout
QStackedLayout * central_layout
Definition fc_client.h:179
fc_client::keyCaught
void keyCaught(QKeyEvent *e)
fc_client::sw_indicators
fc_sidewidget * sw_indicators
Definition fc_client.h:277
fc_client::page_submenu_AI
QMenu * page_submenu_AI
Definition fc_client.h:281
fc_client::write_settings
void write_settings()
Definition fc_client.cpp:794
fc_client::infotab
info_tab * infotab
Definition fc_client.h:261
fc_client::scenarios_text
QLabel * scenarios_text
Definition fc_client.h:183
fc_client::load_save_text
QLabel * load_save_text
Definition fc_client.h:184
fc_client::create_start_page
void create_start_page()
Definition pages.cpp:627
fc_client::slot_disconnect
void slot_disconnect()
Definition fc_client.cpp:537
fc_client::pages
QWidget * pages[(int) PAGE_GAME+2]
Definition fc_client.h:173
fc_client::rallies
qfc_rally_list rallies
Definition fc_client.h:270
fc_client::clear_status_bar
void clear_status_bar()
Definition pages.cpp:453
fc_client::popup_tile_info
void popup_tile_info(struct tile *ptile)
Definition mapctrl.cpp:552
fc_client::sw_endturn
fc_sidewidget * sw_endturn
Definition fc_client.h:276
fc_client::slot_pregame_observe
void slot_pregame_observe()
Definition fc_client.cpp:549
fc_client::state_preview
void state_preview(int)
Definition pages.cpp:833
fc_client::info_widget
QTableWidget * info_widget
Definition fc_client.h:207
fc_client::set_connection_state
void set_connection_state(enum connection_state state)
Definition pages.cpp:252
fc_client::obs_button
QPushButton * obs_button
Definition fc_client.h:195
fc_client::load_pix
QLabel * load_pix
Definition fc_client.h:185
fc_client::update_info_label
void update_info_label()
Definition mapview.cpp:993
fc_client::status_bar_label
QLabel * status_bar_label
Definition fc_client.h:217
fc_client::send_new_aifill_to_server
bool send_new_aifill_to_server
Definition fc_client.h:353
fc_client::pages_layout
QGridLayout * pages_layout[PAGE_GAME+2]
Definition fc_client.h:178
fc_client::main_wdg
QWidget * main_wdg
Definition fc_client.h:172
fc_client::connect_login_edit
QLineEdit * connect_login_edit
Definition fc_client.h:190
fc_client::add_server_source
void add_server_source(int)
Definition fc_client.cpp:449
fc_client::scenarios_view
QTextEdit * scenarios_view
Definition fc_client.h:182
fc_client::button_box
QDialogButtonBox * button_box
Definition fc_client.h:199
fc_client::destroy_server_scans
void destroy_server_scans(void)
Definition pages.cpp:982
fc_client::create_cursors
void create_cursors(void)
Definition fc_client.cpp:890
fc_client::update_sidebar_position
void update_sidebar_position()
Definition pages.cpp:2295
fc_client::page_submenu_team
QMenu * page_submenu_team
Definition fc_client.h:282
fc_client::switch_page
void switch_page(int i)
Definition fc_client.cpp:338
fc_client::create_network_page
void create_network_page()
Definition pages.cpp:289
fc_client::start_players_tree
QTreeWidget * start_players_tree
Definition fc_client.h:210
fc_client::chat_active_on_page
bool chat_active_on_page(enum client_pages)
Definition fc_client.cpp:323
fc_client::create_load_page
void create_load_page()
Definition pages.cpp:481
fc_client::lan_scan_timer
QTimer * lan_scan_timer
Definition fc_client.h:213
fc_client::update_start_page
void update_start_page()
Definition pages.cpp:1662
fc_client::connect_port_edit
QLineEdit * connect_port_edit
Definition fc_client.h:189
fc_client::sidebar_wdg
fc_sidebar * sidebar_wdg
Definition fc_client.h:231
fc_client::create_main_page
void create_main_page()
Definition pages.cpp:136
fc_client::map_scale
float map_scale
Definition fc_client.h:279
fc_client::create_loading_page
void create_loading_page()
Definition pages.cpp:469
fc_client::start_page_menu
void start_page_menu(QPoint)
Definition pages.cpp:1960
fc_client::set_diplo_dialog
void set_diplo_dialog(choice_dialog *widget)
Definition dialogs.cpp:4732
fc_client::update_fonts
void update_fonts()
Definition fc_client.cpp:460
fc_client::update_server_list
void update_server_list(enum server_scan_type sstype, const struct server_list *list)
Definition pages.cpp:868
fc_client::update_network_lists
void update_network_lists()
Definition pages.cpp:1012
fc_client::central_wdg
QWidget * central_wdg
Definition fc_client.h:256
fc_client::slot_meta_scan
void slot_meta_scan()
Definition pages.cpp:1076
fc_client::fc_main
void fc_main(QApplication *qapp)
Definition fc_client.cpp:260
fc_client::opened_repo_dlgs
QMap< QString, QWidget * > opened_repo_dlgs
Definition fc_client.h:350
fc_client::current_file
QString current_file
Definition fc_client.h:352
fc_client::closeEvent
void closeEvent(QCloseEvent *event)
Definition fc_client.cpp:483
fc_client::slot_lan_scan
void slot_lan_scan()
Definition pages.cpp:1065
fc_client::x_vote
xvote * x_vote
Definition fc_client.h:264
fc_client::remove_repo_dlg
void remove_repo_dlg(QString str)
Definition fc_client.cpp:871
fc_client::browse_scenarios
void browse_scenarios()
Definition pages.cpp:851
fc_client::slot_pregame_start
void slot_pregame_start()
Definition fc_client.cpp:567
fc_client::update_info_timer
QTimer * update_info_timer
Definition fc_client.h:214
fc_client::sw_cities
fc_sidewidget * sw_cities
Definition fc_client.h:221
fc_client::toggle_unit_sel_widget
void toggle_unit_sel_widget(struct tile *ptile)
Definition fc_client.cpp:831
fc_client::popup_client_options
void popup_client_options()
Definition fc_client.cpp:882
fc_client::slot_connect
void slot_connect()
Definition pages.cpp:1605
fc_client::sw_map
fc_sidewidget * sw_map
Definition fc_client.h:220
fc_client::update_unit_sel
void update_unit_sel()
Definition fc_client.cpp:847
fc_client::update_load_page
void update_load_page(void)
Definition pages.cpp:1398
fc_client::start_scenario
void start_scenario()
Definition pages.cpp:1100
fc_client::pr_options
pregame_options * pr_options
Definition fc_client.h:267
fc_client::scenarios_load
QTableWidget * scenarios_load
Definition fc_client.h:209
fc_client::gimme_index_of
int gimme_index_of(QString str)
Definition fc_client.cpp:632
fc_client::rm_game_tab
void rm_game_tab(int index)
Definition pages.cpp:809
fc_client::corner_wid
fc_corner * corner_wid
Definition fc_client.h:258
fc_client::send_fake_chat_message
void send_fake_chat_message(const QString &message)
Definition fc_client.cpp:298
fc_client::timerEvent
void timerEvent(QTimerEvent *)
Definition fc_client.cpp:512
fc_client::sw_diplo
fc_sidewidget * sw_diplo
Definition fc_client.h:278
fc_client::is_closing
bool is_closing()
Definition fc_client.cpp:282
fc_client::create_scenario_page
void create_scenario_page()
Definition pages.cpp:560
fc_client::start_new_game
void start_new_game()
Definition pages.cpp:1087
fc_client::remove_server_source
void remove_server_source()
Definition fc_client.cpp:494
fc_client::update_scenarios_page
void update_scenarios_page(void)
Definition pages.cpp:1429
fc_client::create_game_page
void create_game_page()
Definition pages.cpp:711
fc_corner
Definition fc_client.h:156
fc_corner::minimize
void minimize()
Definition fc_client.cpp:965
fc_corner::mw
QMainWindow * mw
Definition fc_client.h:158
fc_corner::maximize
void maximize()
Definition fc_client.cpp:953
fc_corner::close_fc
void close_fc()
Definition fc_client.cpp:945
fc_game_tab_widget
Definition fc_client.h:107
fc_game_tab_widget::fc_game_tab_widget
fc_game_tab_widget()
Definition fc_client.cpp:973
fc_game_tab_widget::init
void init()
Definition fc_client.cpp:980
fc_game_tab_widget::resizeEvent
void resizeEvent(QResizeEvent *event)
Definition fc_client.cpp:1092
fc_game_tab_widget::current_changed
void current_changed(int index)
Definition fc_client.cpp:1134
fc_icons
Definition fc_client.h:88
fc_icons::fc_icons
fc_icons()
Definition fc_client.cpp:988
fc_icons::get_icon
QIcon get_icon(const QString &id)
Definition fc_client.cpp:1017
fc_icons::drop
static void drop()
Definition fc_client.cpp:1006
fc_icons::m_instance
static fc_icons * m_instance
Definition fc_client.h:93
fc_icons::get_pixmap
QPixmap * get_pixmap(const QString &id)
Definition fc_client.cpp:1046
fc_icons::instance
static fc_icons * instance()
Definition fc_client.cpp:995
fc_icons::get_path
QString get_path(const QString &id)
Definition fc_client.cpp:1076
fc_icons::Q_DISABLE_COPY
Q_DISABLE_COPY(fc_icons)
fc_sidewidget
Definition sidebar.h:49
goto_dialog
Definition gotodlg.h:43
hud_battle_log
Definition hudwidget.h:357
hud_units
Definition hudwidget.h:206
info_tab
Definition messagewin.h:72
info_tile
Definition mapview.h:117
map_view
Definition mapview.h:80
messagewdg
Definition messagewin.h:43
minimap_view
Definition mapview.h:219
mr_idle
Definition mapview.h:62
pregame_options
Definition fc_client.h:370
pregame_options::pick_nation
void pick_nation()
Definition fc_client.cpp:1344
pregame_options::popup_server_options
void popup_server_options()
Definition fc_client.cpp:1352
pregame_options::nation
QPushButton * nation
Definition fc_client.h:374
pregame_options::update_ai_level
void update_ai_level()
Definition fc_client.cpp:1288
pregame_options::ailevel
QComboBox * ailevel
Definition fc_client.h:372
pregame_options::ailevel_change
void ailevel_change(int i)
Definition fc_client.cpp:1312
pregame_options::set_rulesets
void set_rulesets(int num_rulesets, char **rulesets)
Definition fc_client.cpp:1229
pregame_options::set_aifill
void set_aifill(int aifill)
Definition fc_client.cpp:1252
pregame_options::max_players_change
void max_players_change(int i)
Definition fc_client.cpp:1304
pregame_options::init
void init()
Definition fc_client.cpp:1168
pregame_options::cruleset
QComboBox * cruleset
Definition fc_client.h:373
pregame_options::ruleset_change
void ruleset_change(int i)
Definition fc_client.cpp:1331
pregame_options::update_buttons
void update_buttons()
Definition fc_client.cpp:1262
pregame_options::max_players
QSpinBox * max_players
Definition fc_client.h:375
pregamevote
Definition voteinfo_bar.h:31
qfc_rally_list
Definition menu.h:92
trade_generator
Definition menu.h:174
units_select
Definition dialogs.h:203
xvote
Definition voteinfo_bar.h:57
client_main.h
climisc.h
list
static struct fc_sockaddr_list * list
Definition clinet.c:102
clinet.h
event
enum event_type event
Definition events.c:81
connection_state
connection_state
Definition fc_client.h:55
LOGIN_TYPE
@ LOGIN_TYPE
Definition fc_client.h:56
NEW_PASSWORD_TYPE
@ NEW_PASSWORD_TYPE
Definition fc_client.h:57
WAITING_TYPE
@ WAITING_TYPE
Definition fc_client.h:59
ENTER_PASSWORD_TYPE
@ ENTER_PASSWORD_TYPE
Definition fc_client.h:58
gui
class fc_client * gui()
Definition gui_main.cpp:83
fonts.h
connection_state
connection_state
Definition pages.c:849
type
GType type
Definition repodlgs.c:1312
server_list
static struct server_list * server_list
Definition connectdlg.c:61
canvas.h
chatline.h
dialogs.h
gotodlg.h
mapview.h
menu.h
messagewin.h
pages.h
ratesdlg.h
voteinfo_bar.h
qapp
static QApplication * qapp
Definition gui_main.cpp:70
mapview_common.h
packets.h
authentication_type
authentication_type
Definition packets.h:88
slots
struct player_slot * slots
Definition player.c:50
servers.h
server_scan_type
server_scan_type
Definition servers.h:67
aifill
const char * aifill(int amount)
Definition srv_main.c:2395
fc_settings
Definition fc_client.h:122
fc_settings::city_splitter2
QByteArray city_splitter2
Definition fc_client.h:135
fc_settings::city_geometry
QByteArray city_geometry
Definition fc_client.h:133
fc_settings::help_geometry
QByteArray help_geometry
Definition fc_client.h:137
fc_settings::unit_info_pos_fx
float unit_info_pos_fx
Definition fc_client.h:141
fc_settings::options_client_geometry
QByteArray options_client_geometry
Definition fc_client.h:139
fc_settings::unit_info_pos_fy
float unit_info_pos_fy
Definition fc_client.h:142
fc_settings::chat_fwidth
float chat_fwidth
Definition fc_client.h:123
fc_settings::chat_fheight
float chat_fheight
Definition fc_client.h:124
fc_settings::help_splitter1
QByteArray help_splitter1
Definition fc_client.h:138
fc_settings::chat_fx_pos
float chat_fx_pos
Definition fc_client.h:125
fc_settings::battlelog_scale
float battlelog_scale
Definition fc_client.h:147
fc_settings::battlelog_x
float battlelog_x
Definition fc_client.h:148
fc_settings::city_splitter3
QByteArray city_splitter3
Definition fc_client.h:136
fc_settings::minimap_x
float minimap_x
Definition fc_client.h:143
fc_settings::player_report_sort
Qt::SortOrder player_report_sort
Definition fc_client.h:130
fc_settings::minimap_height
float minimap_height
Definition fc_client.h:146
fc_settings::city_report_sort
Qt::SortOrder city_report_sort
Definition fc_client.h:132
fc_settings::show_battle_log
bool show_battle_log
Definition fc_client.h:129
fc_settings::city_repo_sort_col
int city_repo_sort_col
Definition fc_client.h:131
fc_settings::minimap_width
float minimap_width
Definition fc_client.h:145
fc_settings::battlelog_y
float battlelog_y
Definition fc_client.h:149
fc_settings::options_server_geometry
QByteArray options_server_geometry
Definition fc_client.h:140
fc_settings::chat_fy_pos
float chat_fy_pos
Definition fc_client.h:126
fc_settings::city_splitter1
QByteArray city_splitter1
Definition fc_client.h:134
fc_settings::show_new_turn_text
bool show_new_turn_text
Definition fc_client.h:128
fc_settings::minimap_y
float minimap_y
Definition fc_client.h:144
fc_settings::player_repo_sort_col
int player_repo_sort_col
Definition fc_client.h:127
fc_shortcut
Definition shortcuts.h:104
message
Definition messagewin_common.h:29
server_scan
Definition servers.c:83
tile
Definition tile.h:49
widget
Definition widget.h:112
tilespec.h
NUM_CURSOR_FRAMES
#define NUM_CURSOR_FRAMES
Definition tilespec.h:300
CURSOR_LAST
@ CURSOR_LAST
Definition tilespec.h:296