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
23
24struct editbar {
25 /* The widget holding the entire edit bar. */
27
29
31 GtkWidget *tool_buttons[NUM_EDITOR_TOOL_TYPES]; /* TODO: Make these GtkToggleButtons */
33
36};
37
40 double x, double y);
43 double x, double y);
47
48struct editinfobox {
50
53
57
62
65};
66
67void editgui_create_widgets(void);
68void editgui_free(void);
69struct editbar *editgui_get_editbar(void);
71
72#endif /* FC__EDITGUI_H */
char * incite_cost
Definition comments.c:76
@ NUM_EDITOR_TOOL_MODES
Definition editor.h:58
@ NUM_EDITOR_TOOL_TYPES
Definition editor.h:49
gboolean handle_edit_mouse_button_release(GdkEventButton *ev)
Definition editgui.c:956
gboolean handle_edit_key_press(GdkEventKey *ev)
Definition editgui.c:1662
void editgui_create_widgets(void)
Definition editgui.c:1822
gboolean handle_edit_mouse_button_press(GdkEventButton *ev)
Definition editgui.c:940
struct editinfobox * editgui_get_editinfobox(void)
Definition editgui.c:1853
gboolean handle_edit_mouse_move(GdkEventMotion *ev)
Definition editgui.c:971
struct editbar * editgui_get_editbar(void)
Definition editgui.c:1788
void editgui_free(void)
Definition editgui.c:1835
struct sprite int int y
Definition sprite_g.h:31
struct sprite int x
Definition sprite_g.h:31
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 * mode_pic
Definition editgui.h:51
GtkWidget * tool_applied_player_combobox
Definition editgui.h:60
GtkWidget * tool_pic
Definition editgui.h:56
GtkWidget * count_hbox
Definition editgui.h:56
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