1 /* Dia -- an diagram creation/manipulation program 2 * Copyright (C) 1998 Alexander Larsson 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation; either version 2 of the License, or 7 * (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17 */ 18 #ifndef MENUS_H 19 #define MENUS_H 20 21 #include <gtk/gtk.h> 22 23 #define TOOLBOX_MENU "/ToolboxMenu" 24 #define DISPLAY_MENU "/DisplayMenu" 25 #define INTEGRATED_MENU "/IntegratedUIMenu" 26 #define INVISIBLE_MENU "/InvisibleMenu" 27 28 struct zoom_pair { const gchar *string; const gint value; }; 29 30 extern const struct zoom_pair zooms[10]; 31 32 void 33 integrated_ui_toolbar_set_zoom_text (GtkToolbar *toolbar, const gchar * text); 34 35 void 36 integrated_ui_toolbar_grid_snap_synchronize_to_display (gpointer ddisp); 37 38 void 39 integrated_ui_toolbar_object_snap_synchronize_to_display (gpointer ddisp); 40 41 /* TODO: rename: menus_get_integrated_ui_menubar() */ 42 void menus_get_integrated_ui_menubar (GtkWidget **menubar, GtkWidget **toolbar, 43 GtkAccelGroup **accel); 44 void menus_get_toolbox_menubar (GtkWidget **menubar, GtkAccelGroup **accel); 45 GtkWidget * menus_get_display_popup (void); 46 GtkAccelGroup * menus_get_display_accels (void); 47 GtkWidget * menus_create_display_menubar (GtkUIManager **ui_manager, GtkActionGroup **actions); 48 49 GtkAccelGroup * menus_get_accel_group (void); 50 GtkActionGroup * menus_get_action_group (void); 51 52 GtkAction * menus_get_action (const gchar *name); 53 void menus_set_recent (GtkActionGroup *actions); 54 void menus_clear_recent (void); 55 56 #define VIEW_MAIN_TOOLBAR_ACTION "ViewMainToolbar" 57 #define VIEW_MAIN_STATUSBAR_ACTION "ViewMainStatusbar" 58 #define VIEW_LAYERS_ACTION "ViewLayers" 59 60 #endif /* MENUS_H */ 61 62 63