Freeciv-3.3: /fast/freeciv/nightly/main/client/gui-gtk-5.0/editgui.h Source File

Freeciv-3.3

Loading...
Searching...
No Matches
editgui.h
Go to the documentation of this file.
1/***********************************************************************
2 Freeciv - Copyright (C) 2005 - The Freeciv Project
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__EDITGUI_H
14#define FC__EDITGUI_H
15
16#include <gtk/gtk.h>
17
18/* client */
19#include "editor.h"
20#include "editgui_g.h"
21
22struct tool_value_selector;
23
24struct editbar {
25 /* The widget holding the entire edit bar. */
26 GtkWidget *widget;
27
28 GtkSizeGroup *size_group;
29
30 GtkWidget *mode_buttons[NUM_EDITOR_TOOL_MODES];
31 GtkWidget *tool_buttons[NUM_EDITOR_TOOL_TYPES]; /* TODO: Make these GtkToggleButtons */
32 struct tool_value_selector *tool_selectors[NUM_EDITOR_TOOL_TYPES];
33
34 GtkListStore *player_pov_store;
35 GtkWidget *player_pov_combobox;
36};
37
38 gboolean handle_edit_mouse_button_press(GtkGestureClick *gesture,
39 int editor_mouse_button,
40 double x, double y);
41 gboolean handle_edit_mouse_button_release(GtkGestureClick *gesture,
42 int editor_mouse_button,
43 double x, double y);
44 gboolean handle_edit_mouse_move(GtkEventControllerMotion *controller,
45 gdouble x, gdouble y);
46 gboolean handle_edit_key_press(guint keyval, GdkModifierType state);
47
48struct editinfobox {
49 GtkWidget *widget;
50
51 GtkWidget *mode_pic;
52 GtkWidget *mode_label;
53
54 GtkWidget *tool_label;
55 GtkWidget *tool_value_label;
56 GtkWidget *tool_pic;
57
58 GtkWidget *size_hbox;
59 GtkWidget *size_spin_button;
60 GtkWidget *count_hbox;
61 GtkWidget *count_spin_button;
62
63 GtkListStore *tool_applied_player_store;
64 GtkWidget *tool_applied_player_combobox;
65};
66
67void editgui_create_widgets(void);
68void editgui_free(void);
69struct editbar *editgui_get_editbar(void);
70struct editinfobox *editgui_get_editinfobox(void);
71
72#endif /* FC__EDITGUI_H */
incite_cost
char * incite_cost
Definition comments.c:74
editgui_g.h
editor.h
NUM_EDITOR_TOOL_MODES
@ NUM_EDITOR_TOOL_MODES
Definition editor.h:58
NUM_EDITOR_TOOL_TYPES
@ NUM_EDITOR_TOOL_TYPES
Definition editor.h:49
handle_edit_mouse_button_release
gboolean handle_edit_mouse_button_release(GdkEventButton *ev)
Definition editgui.c:956
handle_edit_key_press
gboolean handle_edit_key_press(GdkEventKey *ev)
Definition editgui.c:1662
editgui_create_widgets
void editgui_create_widgets(void)
Definition editgui.c:1822
handle_edit_mouse_button_press
gboolean handle_edit_mouse_button_press(GdkEventButton *ev)
Definition editgui.c:940
editgui_get_editinfobox
struct editinfobox * editgui_get_editinfobox(void)
Definition editgui.c:1853
handle_edit_mouse_move
gboolean handle_edit_mouse_move(GdkEventMotion *ev)
Definition editgui.c:971
editgui_get_editbar
struct editbar * editgui_get_editbar(void)
Definition editgui.c:1788
editgui_free
void editgui_free(void)
Definition editgui.c:1835
y
struct sprite int int y
Definition sprite_g.h:31
x
struct sprite int x
Definition sprite_g.h:31
editbar
Definition editgui.h:24
editbar::tool_buttons
GtkWidget * tool_buttons[NUM_EDITOR_TOOL_TYPES]
Definition editgui.h:31
editbar::player_pov_combobox
GtkWidget * player_pov_combobox
Definition editgui.h:35
editbar::player_pov_store
GtkListStore * player_pov_store
Definition editgui.h:34
editbar::size_group
GtkSizeGroup * size_group
Definition editgui.h:28
editbar::widget
GtkWidget * widget
Definition editgui.h:26
editbar::mode_buttons
GtkWidget * mode_buttons[NUM_EDITOR_TOOL_MODES]
Definition editgui.h:30
editbar::tool_selectors
struct tool_value_selector * tool_selectors[NUM_EDITOR_TOOL_TYPES]
Definition editgui.h:32
editinfobox
Definition editgui.h:44
editinfobox::tool_label
GtkWidget * tool_label
Definition editgui.h:50
editinfobox::tool_applied_player_store
GtkListStore * tool_applied_player_store
Definition editgui.h:59
editinfobox::size_spin_button
GtkWidget * size_spin_button
Definition editgui.h:55
editinfobox::mode_pic
GtkWidget * mode_pic
Definition editgui.h:51
editinfobox::tool_applied_player_combobox
GtkWidget * tool_applied_player_combobox
Definition editgui.h:60
editinfobox::tool_pic
GtkWidget * tool_pic
Definition editgui.h:56
editinfobox::count_hbox
GtkWidget * count_hbox
Definition editgui.h:56
editinfobox::tool_value_label
GtkWidget * tool_value_label
Definition editgui.h:51
editinfobox::count_spin_button
GtkWidget * count_spin_button
Definition editgui.h:57
editinfobox::widget
GtkWidget * widget
Definition editgui.h:45
editinfobox::mode_label
GtkWidget * mode_label
Definition editgui.h:48
editinfobox::size_hbox
GtkWidget * size_hbox
Definition editgui.h:54
tool_value_selector
Definition editgui.c:85