Freeciv21
Develop your civilization from humble roots to a global empire
qtg_cxxside.h
Go to the documentation of this file.
1 /**************************************************************************
2  Copyright (c) 1996-2023 Freeciv21 and Freeciv contributors. This file is
3  part of Freeciv21. Freeciv21 is free software: you can redistribute it
4  and/or modify it under the terms of the GNU General Public License as
5  published by the Free Software Foundation, either version 3 of the
6  License, or (at your option) any later version. You should have received
7  a copy of the GNU General Public License along with Freeciv21. If not,
8  see https://www.gnu.org/licenses/.
9 **************************************************************************/
10 #pragma once
11 
12 // common
13 #include "fc_types.h"
14 // client
15 #include "pages_g.h"
16 #include "tileset/tilespec.h"
17 
18 class QTcpSocket;
19 
20 void options_extra_init();
21 void set_rulesets(int num_rulesets, QStringList rulesets);
22 void add_net_input(QIODevice *sock);
23 void real_conn_list_dialog_update(void *unused);
24 void sound_bell();
25 
26 void real_set_client_page(client_pages page);
27 client_pages get_current_client_page();
28 
29 void popup_combat_info(int attacker_unit_id, int defender_unit_id,
30  int attacker_hp, int defender_hp,
31  bool make_att_veteran, bool make_def_veteran);
33 void gui_update_font(const QString &font_name, const QFont &font_value);
34 
35 void editgui_refresh();
36 void editgui_notify_object_created(int tag, int id);
37 void editgui_notify_object_changed(int objtype, int object_id, bool removal);
38 void editgui_popup_properties(const tile_list *tiles, int objtype);
40 void editgui_popdown_all();
41 
42 void start_turn();
43 void real_city_dialog_popup(struct city *pcity);
44 void real_city_dialog_refresh(struct city *pcity);
45 void popdown_city_dialog();
47 void refresh_unit_city_dialogs(struct unit *punit);
48 bool city_dialog_is_open(struct city *pcity);
49 
50 bool request_transport(struct unit *pcargo, struct tile *ptile);
51 
52 void gui_clear_theme();
53 QStringList get_gui_specific_themes_directories(int *count);
void editgui_tileset_changed()
Stub for editor function.
Definition: gui_main.cpp:245
void editgui_notify_object_created(int tag, int id)
Stub for editor function.
Definition: gui_main.cpp:272
void real_city_dialog_popup(struct city *pcity)
Pop up (or bring to the front) a dialog for the given city.
Definition: citydlg.cpp:2247
void set_rulesets(int num_rulesets, QStringList rulesets)
Set the list of available rulesets.
Definition: fc_client.cpp:580
QStringList get_gui_specific_themes_directories(int *count)
Each gui has its own themes directories.
Definition: themes.cpp:197
bool handmade_scenario_warning()
Give a warning when user is about to edit scenario with manually set properties.
Definition: dialogs.cpp:3818
bool city_dialog_is_open(struct city *pcity)
Return whether the dialog for the given city is open.
Definition: citydlg.cpp:2338
void options_extra_init()
Extra initializers for client options.
Definition: gui_main.cpp:92
void real_set_client_page(client_pages page)
Sets the "page" that the client should show.
Definition: fc_client.cpp:570
void real_city_dialog_refresh(struct city *pcity)
Refresh (update) all data for the given city's dialog.
Definition: citydlg.cpp:2274
void real_focus_units_changed()
Called when the set of units in focus (get_units_in_focus()) changes.
Definition: gui_main.cpp:155
void add_net_input(QIODevice *sock)
Wait for data on the given socket.
Definition: gui_main.cpp:147
void sound_bell()
Make a bell noise (beep).
Definition: gui_main.cpp:134
void refresh_unit_city_dialogs(struct unit *punit)
Update city dialogs when the given unit's status changes.
Definition: citydlg.cpp:2304
void real_conn_list_dialog_update(void *unused)
Update the connected users list at pregame state.
Definition: gui_main.cpp:121
void gui_update_font(const QString &font_name, const QFont &font_value)
Updates a gui font style.
Definition: gui_main.cpp:277
void popdown_city_dialog()
Closes the city overlay.
Definition: citydlg.cpp:2264
bool request_transport(struct unit *pcargo, struct tile *ptile)
Unit wants to get into some transport on given tile.
Definition: dialogs.cpp:3827
client_pages get_current_client_page()
Returns current client page.
Definition: fc_client.cpp:589
void editgui_notify_object_changed(int objtype, int object_id, bool removal)
Stub for editor function.
Definition: gui_main.cpp:265
void editgui_popup_properties(const tile_list *tiles, int objtype)
void editgui_popdown_all()
Stub for editor function.
Definition: gui_main.cpp:260
void popup_combat_info(int attacker_unit_id, int defender_unit_id, int attacker_hp, int defender_hp, bool make_att_veteran, bool make_def_veteran)
Popup detailed information about battle or save information for some kind of statistics.
Definition: dialogs.cpp:3871
void start_turn()
New turn callback.
Definition: view_map.cpp:712
void gui_clear_theme()
Clears a theme (sets default system theme)
Definition: themes.cpp:180
void editgui_refresh()
Stub for editor function.
Definition: gui_main.cpp:250
Definition: city.h:291
Definition: tile.h:42
Definition: unit.h:134