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)
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 ***********************************************************************/
19 #include "editgui_g.h"
21 struct tool_value_selector
;
24 /* The widget holding the entire edit bar. */
27 GtkSizeGroup
*size_group
;
29 GtkWidget
*mode_buttons
[NUM_EDITOR_TOOL_MODES
];
30 GtkWidget
*tool_buttons
[NUM_EDITOR_TOOL_TYPES
];
31 GtkWidget
*player_properties_button
;
32 struct tool_value_selector
*tool_selectors
[NUM_EDITOR_TOOL_TYPES
];
34 GtkListStore
*player_pov_store
;
35 GtkWidget
*player_pov_combobox
;
38 gboolean
handle_edit_mouse_button_press(GdkEventButton
*ev
);
39 gboolean
handle_edit_mouse_button_release(GdkEventButton
*ev
);
40 gboolean
handle_edit_mouse_move(GdkEventMotion
*ev
);
41 gboolean
handle_edit_key_press(GdkEventKey
*ev
);
42 gboolean
handle_edit_key_release(GdkEventKey
*ev
);
47 GtkWidget
*mode_image
;
48 GtkWidget
*mode_label
;
50 GtkWidget
*tool_label
;
51 GtkWidget
*tool_value_label
;
52 GtkWidget
*tool_image
;
55 GtkWidget
*size_spin_button
;
56 GtkWidget
*count_hbox
;
57 GtkWidget
*count_spin_button
;
59 GtkListStore
*tool_applied_player_store
;
60 GtkWidget
*tool_applied_player_combobox
;
63 void editgui_create_widgets(void);
64 struct editbar
*editgui_get_editbar(void);
65 struct editinfobox
*editgui_get_editinfobox(void);
67 #endif /* FC__EDITGUI_H */