Qt client - remove right click menu from end turn sidebar
[freeciv.git] / client / gui-gtk-2.0 / editgui.h
blobfb4907e891f830fbde95f9ed0d62c9ac5501683f
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.
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
16 #include <gtk/gtk.h>
18 #include "editor.h"
19 #include "editgui_g.h"
21 struct tool_value_selector;
23 struct editbar {
24 /* The widget holding the entire edit bar. */
25 GtkWidget *widget;
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);
44 struct editinfobox {
45 GtkWidget *widget;
47 GtkWidget *mode_image;
48 GtkWidget *mode_label;
50 GtkWidget *tool_label;
51 GtkWidget *tool_value_label;
52 GtkWidget *tool_image;
54 GtkWidget *size_hbox;
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 */