Freeciv-3.3
Loading...
Searching...
No Matches
qtg_cxxside.cpp
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#ifdef HAVE_CONFIG_H
15#include <fc_config.h>
16#endif
17
18// client
19#include "gui_interface.h"
20
21// gui-qt
22#include "fonts.h"
23
24#include "qtg_cxxside.h"
25
26/*******************************************************************/
30{
31 struct gui_funcs *funcs = get_gui_funcs();
32
36
39
42
51
54
71
73
83
86
91
98
109
111
113
119
126
128
139
141
143}
void qtg_get_text_size(int *width, int *height, enum client_font font, const char *text)
Definition canvas.cpp:331
void qtg_canvas_fill_sprite_area(struct canvas *pcanvas, struct sprite *psprite, struct color *pcolor, int canvas_x, int canvas_y)
Definition canvas.cpp:234
void qtg_canvas_put_text(struct canvas *pcanvas, int canvas_x, int canvas_y, enum client_font font, struct color *pcolor, const char *text)
Definition canvas.cpp:354
bool qtg_has_zoom_support()
Definition canvas.cpp:64
void qtg_canvas_put_sprite_full(struct canvas *pcanvas, int canvas_x, int canvas_y, struct sprite *sprite)
Definition canvas.cpp:154
void qtg_canvas_free(struct canvas *store)
Definition canvas.cpp:48
void qtg_canvas_put_curved_line(struct canvas *pcanvas, struct color *pcolor, enum line_type ltype, int start_x, int start_y, int dx, int dy)
Definition canvas.cpp:286
void qtg_canvas_put_sprite_full_scaled(struct canvas *pcanvas, int canvas_x, int canvas_y, int canvas_w, int canvas_h, struct sprite *sprite)
Definition canvas.cpp:168
void qtg_canvas_put_line(struct canvas *pcanvas, struct color *pcolor, enum line_type ltype, int start_x, int start_y, int dx, int dy)
Definition canvas.cpp:247
struct canvas * qtg_canvas_create(int width, int height)
Definition canvas.cpp:36
void qtg_canvas_put_sprite(struct canvas *pcanvas, int canvas_x, int canvas_y, struct sprite *sprite, int offset_x, int offset_y, int width, int height)
Definition canvas.cpp:139
void qtg_canvas_copy(struct canvas *dest, struct canvas *src, int src_x, int src_y, int dest_x, int dest_y, int width, int height)
Definition canvas.cpp:79
void qtg_canvas_put_rectangle(struct canvas *pcanvas, struct color *pcolor, int canvas_x, int canvas_y, int width, int height)
Definition canvas.cpp:205
void qtg_canvas_put_sprite_fogged(struct canvas *pcanvas, int canvas_x, int canvas_y, struct sprite *psprite, bool fog, int fog_x, int fog_y)
Definition canvas.cpp:188
void qtg_canvas_set_zoom(struct canvas *store, float zoom)
Definition canvas.cpp:56
void qtg_canvas_mapview_init(struct canvas *store)
Definition canvas.cpp:72
void qtg_version_message(const char *vertext)
Definition chatline.cpp:833
void qtg_real_output_window_append(const char *astring, const struct text_tag_list *tags, int conn_id)
Definition chatline.cpp:765
void qtg_popdown_city_dialog(struct city *pcity)
Definition citydlg.cpp:3852
void qtg_real_city_dialog_refresh(struct city *pcity)
Definition citydlg.cpp:3872
bool qtg_city_dialog_is_open(struct city *pcity)
Definition citydlg.cpp:3927
void qtg_popdown_all_city_dialogs()
Definition citydlg.cpp:3864
void qtg_refresh_unit_city_dialogs(struct unit *punit)
Definition citydlg.cpp:3911
void qtg_real_city_dialog_popup(struct city *pcity)
Definition citydlg.cpp:3824
struct color * qtg_color_alloc(int r, int g, int b)
Definition colors.cpp:33
void qtg_color_free(struct color *pcolor)
Definition colors.cpp:45
void qtg_close_connection_dialog()
void qtg_server_connect()
bool qtg_handmade_scenario_warning()
Definition dialogs.cpp:4929
void qtg_popup_image(const char *tag)
Definition dialogs.cpp:5040
void qtg_request_action_confirmation(const char *expl, struct act_confirmation_data *data)
Definition dialogs.cpp:5022
void qtg_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)
Definition dialogs.cpp:4979
bool qtg_request_transport(struct unit *pcargo, struct tile *ptile)
Definition dialogs.cpp:4938
void qtg_init_meeting(struct treaty *ptreaty, struct player *they, struct player *initiator)
Definition diplodlg.cpp:944
void qtg_recv_remove_clause(struct treaty *ptreaty, struct player *they)
void qtg_recv_accept_treaty(struct treaty *ptreaty, struct player *they)
Definition diplodlg.cpp:919
void qtg_recv_create_clause(struct treaty *ptreaty, struct player *they)
void qtg_recv_cancel_meeting(struct treaty *ptreaty, struct player *they, struct player *initiator)
void qtg_prepare_clause_updt(struct treaty *ptreaty, struct player *they)
bool qtg_is_view_supported(enum ts_type type)
Definition graphics.cpp:28
void qtg_tileset_type_set(enum ts_type type)
Definition graphics.cpp:44
struct gui_funcs * get_gui_funcs(void)
static struct gui_funcs funcs
void qtg_ui_init()
Definition gui_main.cpp:90
void qtg_editgui_popup_properties(const struct tile_list *tiles, int objtype)
Definition gui_main.cpp:504
void qtg_remove_net_input()
Definition gui_main.cpp:316
void qtg_options_extra_init()
Definition gui_main.cpp:235
void qtg_editgui_refresh()
Definition gui_main.cpp:498
int qtg_ui_main(int argc, char *argv[])
Definition gui_main.cpp:168
void qtg_editgui_popdown_all()
Definition gui_main.cpp:510
void qtg_real_conn_list_dialog_update(void *unused)
Definition gui_main.cpp:281
void qtg_editgui_tileset_changed()
Definition gui_main.cpp:492
void qtg_editgui_notify_object_created(int tag, int id)
Definition gui_main.cpp:523
void qtg_setup_gui_properties()
Definition gui_main.cpp:606
void qtg_add_net_input(int sock)
Definition gui_main.cpp:306
void qtg_editgui_notify_object_changed(int objtype, int object_id, bool removal)
Definition gui_main.cpp:516
void qtg_gui_update_font(const char *font_name, const char *font_value)
Definition gui_main.cpp:529
void qtg_set_unit_icon(int idx, struct unit *punit)
Definition gui_main.cpp:332
void qtg_ui_exit()
Definition gui_main.cpp:271
void qtg_real_focus_units_changed(void)
Definition gui_main.cpp:354
void qtg_insert_client_build_info(char *outbuf, size_t outlen)
Definition gui_main.cpp:585
void qtg_set_unit_icons_more_arrow(bool onoff)
Definition gui_main.cpp:344
void qtg_add_idle_callback(void(callback)(void *), void *data)
Definition gui_main.cpp:370
enum gui_type qtg_get_gui_type()
Definition gui_main.cpp:547
void qtg_sound_bell()
Definition gui_main.cpp:293
void qtg_update_infra_dialog()
Definition infradlg.cpp:24
void qtg_update_timeout_label(void)
Definition mapview.cpp:1086
void qtg_start_turn()
Definition mapview.cpp:1447
void qtg_map_canvas_size_refresh(void)
Definition mapview.cpp:1459
void qtg_real_set_client_page(enum client_pages page)
Definition pages.cpp:104
enum client_pages qtg_get_current_client_page()
Definition pages.cpp:122
void qtg_set_rulesets(int num_rulesets, char **rulesets)
Definition pages.cpp:114
void setup_gui_funcs()
struct sprite * qtg_crop_sprite(struct sprite *source, int x, int y, int width, int height, struct sprite *mask, int mask_offset_x, int mask_offset_y, float scale, bool smooth)
Definition sprite.cpp:104
void qtg_real_economy_report_dialog_update(void *unused)
void qtg_science_report_dialog_redraw()
void qtg_get_sprite_dimensions(struct sprite *sprite, int *width, int *height)
Definition sprite.cpp:163
struct sprite * qtg_load_gfxfile(const char *filename, bool svgflag)
Definition sprite.cpp:67
char ** qtg_get_usable_themes_in_directory(const char *directory, int *count)
Definition themes.cpp:145
void qtg_real_units_report_dialog_update(void *unused)
void qtg_gui_clear_theme()
Definition themes.cpp:104
void qtg_endgame_report_dialog_player(const struct packet_endgame_player *packet)
void qtg_free_sprite(struct sprite *s)
Definition sprite.cpp:172
void qtg_gui_load_theme(const char *directory, const char *theme_name)
Definition themes.cpp:44
void qtg_real_science_report_dialog_update(void *unused)
struct sprite * qtg_load_gfxnumber(int num)
Definition sprite.cpp:195
char ** qtg_get_gui_specific_themes_directories(int *count)
Definition themes.cpp:120
void qtg_science_report_dialog_popup(bool raise)
struct sprite * qtg_create_sprite(int width, int height, struct color *pcolor)
Definition sprite.cpp:181
void qtg_endgame_report_dialog_start(const struct packet_endgame_report *packet)
void(* request_action_confirmation)(const char *expl, struct act_confirmation_data *data)
void(* server_connect)(void)
void(* editgui_tileset_changed)(void)
struct sprite *(* load_gfxnumber)(int num)
int(* ui_main)(int argc, char *argv[])
void(* real_economy_report_dialog_update)(void *unused)
void(* gui_recv_accept_treaty)(struct treaty *ptreaty, struct player *they)
void(* canvas_put_text)(struct canvas *pcanvas, int canvas_x, int canvas_y, enum client_font font, struct color *pcolor, const char *text)
void(* science_report_dialog_redraw)(void)
char **(* get_gui_specific_themes_directories)(int *count)
void(* gui_load_theme)(const char *directory, const char *theme_name)
void(* update_timeout_label)(void)
void(* canvas_put_sprite)(struct canvas *pcanvas, int canvas_x, int canvas_y, struct sprite *psprite, int offset_x, int offset_y, int width, int height)
void(* gui_recv_remove_clause)(struct treaty *ptreaty, struct player *they)
void(* popup_image)(const char *tag)
void(* editgui_refresh)(void)
void(* set_unit_icon)(int idx, struct unit *punit)
void(* canvas_copy)(struct canvas *dest, struct canvas *src, int src_x, int src_y, int dest_x, int dest_y, int width, int height)
void(* add_idle_callback)(void(callback)(void *), void *data)
void(* canvas_put_sprite_full)(struct canvas *pcanvas, int canvas_x, int canvas_y, struct sprite *psprite)
void(* gui_prepare_clause_updt)(struct treaty *ptreaty, struct player *they)
void(* gui_recv_cancel_meeting)(struct treaty *ptreaty, struct player *they, struct player *initiator)
void(* endgame_report_dialog_player)(const struct packet_endgame_player *packet)
void(* add_net_input)(int sock)
void(* tileset_type_set)(enum ts_type type)
struct sprite *(* load_gfxfile)(const char *filename, bool svgflag)
void(* editgui_notify_object_created)(int tag, int id)
enum client_pages(* get_current_client_page)(void)
void(* real_city_dialog_refresh)(struct city *pcity)
void(* gui_clear_theme)(void)
void(* remove_net_input)(void)
void(* real_city_dialog_popup)(struct city *pcity)
void(* endgame_report_dialog_start)(const struct packet_endgame_report *packet)
void(* color_free)(struct color *pcolor)
void(* refresh_unit_city_dialogs)(struct unit *punit)
void(* real_science_report_dialog_update)(void *unused)
bool(* is_view_supported)(enum ts_type type)
void(* setup_gui_properties)(void)
void(* get_text_size)(int *width, int *height, enum client_font font, const char *text)
void(* editgui_popup_properties)(const struct tile_list *tiles, int objtype)
void(* gui_recv_create_clause)(struct treaty *ptreaty, struct player *they)
void(* update_infra_dialog)(void)
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)
void(* map_canvas_size_refresh)(void)
void(* editgui_notify_object_changed)(int objtype, int object_id, bool removal)
bool(* handmade_scenario_warning)(void)
void(* canvas_fill_sprite_area)(struct canvas *pcanvas, struct sprite *psprite, struct color *pcolor, int canvas_x, int canvas_y)
bool(* request_transport)(struct unit *pcargo, struct tile *ptile)
void(* set_rulesets)(int num_rulesets, char **rulesets)
void(* version_message)(const char *vertext)
void(* real_units_report_dialog_update)(void *unused)
void(* real_output_window_append)(const char *astring, const struct text_tag_list *tags, int conn_id)
struct sprite *(* create_sprite)(int width, int height, struct color *pcolor)
bool(* has_zoom_support)(void)
void(* get_sprite_dimensions)(struct sprite *sprite, int *width, int *height)
void(* set_unit_icons_more_arrow)(bool onoff)
void(* gui_update_font)(const char *font_name, const char *font_value)
struct canvas *(* canvas_create)(int width, int height)
void(* science_report_dialog_popup)(bool raise)
void(* ui_exit)(void)
void(* canvas_put_sprite_fogged)(struct canvas *pcanvas, int canvas_x, int canvas_y, struct sprite *psprite, bool fog, int fog_x, int fog_y)
void(* free_sprite)(struct sprite *s)
char **(* get_usable_themes_in_directory)(const char *directory, int *count)
void(* canvas_put_curved_line)(struct canvas *pcanvas, struct color *pcolor, enum line_type ltype, int start_x, int start_y, int dx, int dy)
void(* options_extra_init)(void)
void(* popdown_city_dialog)(struct city *pcity)
void(* canvas_put_line)(struct canvas *pcanvas, struct color *pcolor, enum line_type ltype, int start_x, int start_y, int dx, int dy)
void(* start_turn)(void)
void(* canvas_free)(struct canvas *store)
void(* canvas_set_zoom)(struct canvas *store, float zoom)
void(* insert_client_build_info)(char *outbuf, size_t outlen)
struct sprite *(* crop_sprite)(struct sprite *source, int x, int y, int width, int height, struct sprite *mask, int mask_offset_x, int mask_offset_y, float scale, bool smooth)
void(* canvas_put_rectangle)(struct canvas *pcanvas, struct color *pcolor, int canvas_x, int canvas_y, int width, int height)
void(* gui_init_meeting)(struct treaty *ptreaty, struct player *they, struct player *initiator)
enum gui_type(* get_gui_type)(void)
void(* editgui_popdown_all)(void)
void(* canvas_put_sprite_full_scaled)(struct canvas *pcanvas, int canvas_x, int canvas_y, int canvas_w, int canvas_h, struct sprite *psprite)
void(* popdown_all_city_dialogs)(void)
void(* canvas_mapview_init)(struct canvas *store)
void(* close_connection_dialog)(void)
void(* sound_bell)(void)
void(* real_focus_units_changed)(void)
void(* real_set_client_page)(enum client_pages page)
void(* ui_init)(void)
void(* real_conn_list_dialog_update)(void *unused)
struct color *(* color_alloc)(int r, int g, int b)
bool(* city_dialog_is_open)(struct city *pcity)