Freeciv-3.1
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
23
24struct editbar {
25 /* The widget holding the entire edit bar. */
26 GtkWidget *widget;
27
28 GtkSizeGroup *size_group;
29
33
34 GtkListStore *player_pov_store;
35 GtkWidget *player_pov_combobox;
36};
37
38gboolean handle_edit_mouse_button_press(GdkEventButton *ev);
39gboolean handle_edit_mouse_button_release(GdkEventButton *ev);
40gboolean handle_edit_mouse_move(GdkEventMotion *ev);
41gboolean handle_edit_key_press(GdkEventKey *ev);
42gboolean handle_edit_key_release(GdkEventKey *ev);
43
44struct editinfobox {
45 GtkWidget *widget;
46
47 GtkWidget *mode_image;
48 GtkWidget *mode_label;
49
50 GtkWidget *tool_label;
51 GtkWidget *tool_value_label;
52 GtkWidget *tool_image;
53
54 GtkWidget *size_hbox;
55 GtkWidget *size_spin_button;
56 GtkWidget *count_hbox;
57 GtkWidget *count_spin_button;
58
59 GtkListStore *tool_applied_player_store;
61};
62
63void editgui_create_widgets(void);
64void editgui_free(void);
65struct editbar *editgui_get_editbar(void);
67
68#endif /* FC__EDITGUI_H */
@ NUM_EDITOR_TOOL_MODES
Definition editor.h:58
@ NUM_EDITOR_TOOL_TYPES
Definition editor.h:49
gboolean handle_edit_key_release(GdkEventKey *ev)
Definition editgui.c:1779
gboolean handle_edit_mouse_button_release(GdkEventButton *ev)
Definition editgui.c:955
gboolean handle_edit_key_press(GdkEventKey *ev)
Definition editgui.c:1661
void editgui_create_widgets(void)
Definition editgui.c:1821
gboolean handle_edit_mouse_button_press(GdkEventButton *ev)
Definition editgui.c:939
struct editinfobox * editgui_get_editinfobox(void)
Definition editgui.c:1852
gboolean handle_edit_mouse_move(GdkEventMotion *ev)
Definition editgui.c:970
struct editbar * editgui_get_editbar(void)
Definition editgui.c:1787
void editgui_free(void)
Definition editgui.c:1834
GtkWidget * tool_buttons[NUM_EDITOR_TOOL_TYPES]
Definition editgui.h:31
GtkWidget * player_pov_combobox
Definition editgui.h:35
GtkListStore * player_pov_store
Definition editgui.h:34
GtkSizeGroup * size_group
Definition editgui.h:28
GtkWidget * widget
Definition editgui.h:26
GtkWidget * mode_buttons[NUM_EDITOR_TOOL_MODES]
Definition editgui.h:30
struct tool_value_selector * tool_selectors[NUM_EDITOR_TOOL_TYPES]
Definition editgui.h:32
GtkWidget * tool_label
Definition editgui.h:50
GtkListStore * tool_applied_player_store
Definition editgui.h:59
GtkWidget * size_spin_button
Definition editgui.h:55
GtkWidget * tool_applied_player_combobox
Definition editgui.h:60
GtkWidget * mode_image
Definition editgui.h:47
GtkWidget * count_hbox
Definition editgui.h:56
GtkWidget * tool_image
Definition editgui.h:52
GtkWidget * tool_value_label
Definition editgui.h:51
GtkWidget * count_spin_button
Definition editgui.h:57
GtkWidget * widget
Definition editgui.h:45
GtkWidget * mode_label
Definition editgui.h:48
GtkWidget * size_hbox
Definition editgui.h:54