Freeciv-3.1: /fast/freeciv/nightly/S3_1/client/gui-gtk-3.0/gui_main.h Source File

Freeciv-3.1

Loading...
Searching...
No Matches
gui_main.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#ifndef FC__GUI_MAIN_H
14#define FC__GUI_MAIN_H
15
16#include <gtk/gtk.h>
17
18/* client */
19#include "gui_main_g.h"
20#include "options.h"
21
22#define GUI_NAME_FULL "gui-gtk-3.0"
23#define GUI_NAME_SHORT "gtk3"
24
25#define GUI_GTK_OPTION(optname) gui_options.gui_gtk3_##optname
26#define GUI_GTK_OPTION_STR(optname) "gui_gtk3_" #optname
27#define GUI_GTK_DEFAULT_THEME_NAME FC_GTK3_DEFAULT_THEME_NAME
28
29/* Network string charset conversion */
30gchar *ntoh_str(const gchar *netstr);
31
32extern PangoFontDescription *city_names_style;
33extern PangoFontDescription *city_productions_style;
34extern PangoFontDescription *reqtree_text_style;
35
36#define single_tile_pixmap (mapview.single_tile->pixmap)
37
38extern GtkTextView * main_message_area;
39extern GtkWidget * text_scrollbar;
40extern GtkWidget * toplevel;
41extern GtkWidget * top_vbox;
42extern GtkWidget * main_frame_civ_name;
43extern GtkWidget * main_label_info;
44extern GtkWidget * econ_label[10];
45extern GtkWidget * bulb_label;
46extern GtkWidget * sun_label;
47extern GtkWidget * flake_label;
48extern GtkWidget * government_label;
49extern GtkWidget * econ_ebox;
50extern GtkWidget * bulb_ebox;
51extern GtkWidget * sun_ebox;
52extern GtkWidget * flake_ebox;
53extern GtkWidget * government_ebox;
54extern GtkWidget * map_canvas; /* GtkDrawingArea */
55extern GtkWidget * overview_canvas; /* GtkDrawingArea */
56extern GtkWidget * overview_scrolled_window; /* GtkScrolledWindow */
57extern GtkWidget * timeout_label;
58extern GtkWidget * turn_done_button;
59extern GtkWidget * unit_info_box;
60extern GtkWidget * unit_info_label;
61extern GtkWidget * unit_info_frame;
62extern GtkWidget * map_horizontal_scrollbar;
63extern GtkWidget * map_vertical_scrollbar;
64extern GdkWindow * root_window;
65
66extern GtkWidget * toplevel_tabs;
67extern GtkWidget * top_notebook;
68extern GtkWidget * map_widget;
69extern GtkWidget * bottom_notebook;
70extern GtkWidget * right_notebook;
71extern GtkTextBuffer * message_buffer;
72
73extern int overview_canvas_store_width;
74extern int overview_canvas_store_height;
75
76
77void enable_menus(bool enable);
78
79gboolean map_canvas_focus(void);
80
81void reset_unit_table(void);
82void popup_quit_dialog(void);
83void quit_gtk_main(void);
84void refresh_chat_buttons(void);
85
86int screen_width(void);
87int screen_height(void);
88struct video_mode *resolution_request_get(void);
89
90void fullscreen_opt_refresh(struct option *poption);
91
92bool is_gui_up(void);
93
94void update_turn_done_tooltip(void);
95
96#endif /* FC__GUI_MAIN_H */
map_vertical_scrollbar
GtkWidget * map_vertical_scrollbar
Definition gui_main.c:108
message_buffer
GtkTextBuffer * message_buffer
Definition gui_main.c:177
main_label_info
GtkWidget * main_label_info
Definition gui_main.c:137
unit_info_label
GtkWidget * unit_info_label
Definition gui_main.c:150
resolution_request_get
struct video_mode * resolution_request_get(void)
Definition gui_main.c:2395
ntoh_str
gchar * ntoh_str(const gchar *netstr)
timeout_label
GtkWidget * timeout_label
Definition gui_main.c:147
city_productions_style
PangoFontDescription * city_productions_style
Definition gui_main.c:133
overview_scrolled_window
GtkWidget * overview_scrolled_window
Definition gui_main.c:111
enable_menus
void enable_menus(bool enable)
Definition gui_main.c:1000
top_notebook
GtkWidget * top_notebook
Definition gui_main.c:128
econ_ebox
GtkWidget * econ_ebox
Definition gui_main.c:154
unit_info_box
GtkWidget * unit_info_box
Definition gui_main.c:151
fullscreen_opt_refresh
void fullscreen_opt_refresh(struct option *poption)
Definition gui_main.c:2237
government_label
GtkWidget * government_label
Definition gui_main.c:146
sun_label
GtkWidget * sun_label
Definition gui_main.c:144
city_names_style
PangoFontDescription * city_names_style
Definition gui_main.c:132
refresh_chat_buttons
void refresh_chat_buttons(void)
Definition gui_main.c:2312
map_canvas_focus
gboolean map_canvas_focus(void)
Definition gui_main.c:366
turn_done_button
GtkWidget * turn_done_button
Definition gui_main.c:148
screen_width
int screen_width(void)
Definition gui_main.c:2355
reset_unit_table
void reset_unit_table(void)
Definition gui_main.c:971
bottom_notebook
GtkWidget * bottom_notebook
Definition gui_main.c:128
unit_info_frame
GtkWidget * unit_info_frame
Definition gui_main.c:152
top_vbox
GtkWidget * top_vbox
Definition gui_main.c:127
root_window
GdkWindow * root_window
Definition gui_main.c:125
text_scrollbar
GtkWidget * text_scrollbar
is_gui_up
bool is_gui_up(void)
Definition gui_main.c:1863
reqtree_text_style
PangoFontDescription * reqtree_text_style
Definition gui_main.c:134
sun_ebox
GtkWidget * sun_ebox
Definition gui_main.c:156
bulb_ebox
GtkWidget * bulb_ebox
Definition gui_main.c:155
flake_label
GtkWidget * flake_label
Definition gui_main.c:145
bulb_label
GtkWidget * bulb_label
Definition gui_main.c:143
overview_canvas
GtkWidget * overview_canvas
Definition gui_main.c:110
toplevel
GtkWidget * toplevel
Definition gui_main.c:124
map_horizontal_scrollbar
GtkWidget * map_horizontal_scrollbar
Definition gui_main.c:107
map_canvas
GtkWidget * map_canvas
Definition gui_main.c:106
econ_label
GtkWidget * econ_label[10]
Definition gui_main.c:142
right_notebook
GtkWidget * right_notebook
Definition gui_main.c:128
government_ebox
GtkWidget * government_ebox
Definition gui_main.c:158
popup_quit_dialog
void popup_quit_dialog(void)
Definition gui_main.c:2153
map_widget
GtkWidget * map_widget
Definition gui_main.c:129
quit_gtk_main
void quit_gtk_main(void)
Definition gui_main.c:2141
toplevel_tabs
GtkWidget * toplevel_tabs
Definition gui_main.c:126
flake_ebox
GtkWidget * flake_ebox
Definition gui_main.c:157
overview_canvas_store_width
int overview_canvas_store_width
Definition gui_main.c:121
update_turn_done_tooltip
void update_turn_done_tooltip(void)
Definition gui_main.c:1054
main_message_area
GtkTextView * main_message_area
Definition gui_main.c:176
overview_canvas_store_height
int overview_canvas_store_height
Definition gui_main.c:122
screen_height
int screen_height(void)
Definition gui_main.c:2375
main_frame_civ_name
GtkWidget * main_frame_civ_name
Definition gui_main.c:136
gui_main_g.h
options.h
option
Definition options.c:454
video_mode
Definition options.h:45
enable
#define enable(id)
Definition widget.h:223