Freeciv21
Develop your civilization from humble roots to a global empire
qtg_cxxside.h File Reference
#include "fc_types.h"
#include "pages_g.h"
#include "tileset/tilespec.h"
+ Include dependency graph for qtg_cxxside.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void options_extra_init ()
 Extra initializers for client options. More...
 
void set_rulesets (int num_rulesets, QStringList rulesets)
 Set the list of available rulesets. More...
 
void add_net_input (QIODevice *sock)
 Wait for data on the given socket. More...
 
void real_conn_list_dialog_update (void *unused)
 Update the connected users list at pregame state. More...
 
void sound_bell ()
 Make a bell noise (beep). More...
 
void real_set_client_page (client_pages page)
 Sets the "page" that the client should show. More...
 
client_pages get_current_client_page ()
 Returns current client page. More...
 
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. More...
 
void real_focus_units_changed ()
 Called when the set of units in focus (get_units_in_focus()) changes. More...
 
void gui_update_font (const QString &font_name, const QFont &font_value)
 Updates a gui font style. More...
 
void editgui_refresh ()
 Stub for editor function. More...
 
void editgui_notify_object_created (int tag, int id)
 Stub for editor function. More...
 
void editgui_notify_object_changed (int objtype, int object_id, bool removal)
 Stub for editor function. More...
 
void editgui_popup_properties (const tile_list *tiles, int objtype)
 
void editgui_tileset_changed ()
 Stub for editor function. More...
 
void editgui_popdown_all ()
 Stub for editor function. More...
 
void start_turn ()
 New turn callback. More...
 
void real_city_dialog_popup (struct city *pcity)
 Pop up (or bring to the front) a dialog for the given city. More...
 
void real_city_dialog_refresh (struct city *pcity)
 Refresh (update) all data for the given city's dialog. More...
 
void popdown_city_dialog ()
 Closes the city overlay. More...
 
bool handmade_scenario_warning ()
 Give a warning when user is about to edit scenario with manually set properties. More...
 
void refresh_unit_city_dialogs (struct unit *punit)
 Update city dialogs when the given unit's status changes. More...
 
bool city_dialog_is_open (struct city *pcity)
 Return whether the dialog for the given city is open. More...
 
bool request_transport (struct unit *pcargo, struct tile *ptile)
 Unit wants to get into some transport on given tile. More...
 
void gui_clear_theme ()
 Clears a theme (sets default system theme) More...
 
QStringList get_gui_specific_themes_directories (int *count)
 Each gui has its own themes directories. More...
 

Function Documentation

◆ add_net_input()

void add_net_input ( QIODevice *  sock)

Wait for data on the given socket.

Call input_from_server() when data is ready to be read.

This function is called after the client succesfully has connected to the server.

Definition at line 147 of file gui_main.cpp.

Referenced by make_connection().

◆ city_dialog_is_open()

bool city_dialog_is_open ( struct city pcity)

Return whether the dialog for the given city is open.

Definition at line 2338 of file citydlg.cpp.

Referenced by city_packet_common(), is_any_city_dialog_open(), and real_city_dialog_refresh().

◆ editgui_notify_object_changed()

◆ editgui_notify_object_created()

void editgui_notify_object_created ( int  tag,
int  id 
)

Stub for editor function.

Definition at line 272 of file gui_main.cpp.

Referenced by handle_edit_object_created(), and handle_edit_startpos().

◆ editgui_popdown_all()

void editgui_popdown_all ( )

Stub for editor function.

Definition at line 260 of file gui_main.cpp.

Referenced by client_game_free(), and client_game_reset().

◆ editgui_popup_properties()

void editgui_popup_properties ( const tile_list *  tiles,
int  objtype 
)

◆ editgui_refresh()

◆ editgui_tileset_changed()

void editgui_tileset_changed ( )

Stub for editor function.

Definition at line 245 of file gui_main.cpp.

Referenced by client_state().

◆ get_current_client_page()

client_pages get_current_client_page ( )

Returns current client page.

Definition at line 580 of file fc_client.cpp.

Referenced by apply_notify_font(), and real_conn_list_dialog_update().

◆ get_gui_specific_themes_directories()

QStringList get_gui_specific_themes_directories ( int *  count)

Each gui has its own themes directories.

Returns an array containing these strings and sets array size in count. The caller is responsible for freeing the array and the paths.

Definition at line 197 of file themes.cpp.

Referenced by init_themes().

◆ gui_clear_theme()

void gui_clear_theme ( )

Clears a theme (sets default system theme)

Definition at line 180 of file themes.cpp.

Referenced by gui_load_theme(), and ui_main().

◆ gui_update_font()

void gui_update_font ( const QString &  font_name,
const QFont &  font_value 
)

Updates a gui font style.

Definition at line 277 of file gui_main.cpp.

Referenced by apply_notify_font(), and font_changed_callback().

◆ handmade_scenario_warning()

bool handmade_scenario_warning ( )

Give a warning when user is about to edit scenario with manually set properties.

Definition at line 3818 of file dialogs.cpp.

Referenced by handle_game_info().

◆ options_extra_init()

void options_extra_init ( )

Extra initializers for client options.

Definition at line 92 of file gui_main.cpp.

Referenced by options_init().

◆ popdown_city_dialog()

◆ popup_combat_info()

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 at line 3871 of file dialogs.cpp.

Referenced by handle_unit_combat_info().

◆ real_city_dialog_popup()

void real_city_dialog_popup ( struct city pcity)

Pop up (or bring to the front) a dialog for the given city.

It may or may not be modal.

Definition at line 2247 of file citydlg.cpp.

Referenced by cities_update_callback(), city_widget::city_view(), and notify_goto::inspect_city().

◆ real_city_dialog_refresh()

void real_city_dialog_refresh ( struct city pcity)

Refresh (update) all data for the given city's dialog.

Definition at line 2274 of file citydlg.cpp.

Referenced by cities_update_callback(), and refresh_unit_city_dialogs().

◆ real_conn_list_dialog_update()

void real_conn_list_dialog_update ( void *  unused)

Update the connected users list at pregame state.

Definition at line 121 of file gui_main.cpp.

Referenced by conn_list_dialog_update().

◆ real_focus_units_changed()

void real_focus_units_changed ( )

Called when the set of units in focus (get_units_in_focus()) changes.

Standard updates like update_unit_info_label() are handled in the platform- independent code, so some clients will not need to do anything here.

Definition at line 155 of file gui_main.cpp.

Referenced by focus_units_changed().

◆ real_set_client_page()

void real_set_client_page ( enum client_pages  page)

Sets the "page" that the client should show.

See also pages_g.h.

Definition at line 570 of file fc_client.cpp.

Referenced by real_conn_list_dialog_update(), and set_client_page_callback().

◆ refresh_unit_city_dialogs()

void refresh_unit_city_dialogs ( struct unit punit)

Update city dialogs when the given unit's status changes.

This typically means updating both the unit's home city (if any) and the city in which it is present (if any).

Definition at line 2304 of file citydlg.cpp.

Referenced by clear_unit_orders(), and handle_unit_packet_common().

◆ request_transport()

bool request_transport ( struct unit pcargo,
struct tile ptile 
)

Unit wants to get into some transport on given tile.

Definition at line 3827 of file dialogs.cpp.

Referenced by request_move_unit_direction(), and mr_menu::slot_load().

◆ set_rulesets()

void set_rulesets ( int  num_rulesets,
QStringList  rulesets 
)

Set the list of available rulesets.

The default ruleset should be "default", and if the user changes this then set_ruleset() should be called.

Definition at line 580 of file fc_client.cpp.

Referenced by handle_ruleset_choices().

◆ sound_bell()

void sound_bell ( )

Make a bell noise (beep).

This provides low-level sound alerts even if there is no real sound support.

Definition at line 134 of file gui_main.cpp.

Referenced by none_audio_play().

◆ start_turn()

void start_turn ( )

New turn callback.

Definition at line 712 of file view_map.cpp.

Referenced by handle_new_year().