bugrepair VFS, update autotools files
[gpiv.git] / src / console_menus.h
blobd726dea0f88b8044b0b1f9b3b9a94ffff3a84ac8
2 /*----------------------------------------------------------------------
4 gpiv - Graphic program for Particle Image Velocimetry, based on gtk/gnome
5 libraries.
7 Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008
8 Gerber van der Graaf <gerber_graaf@users.sourceforge.net>
10 This file is part of gpiv.
12 Gpiv is free software; you can redistribute it and/or modify
13 it under the terms of the GNU General Public License as published by
14 the Free Software Foundation; either version 2, or (at your option)
15 any later version.
17 This program is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 GNU General Public License for more details.
22 You should have received a copy of the GNU General Public License
23 along with this program; if not, write to the Free Software Foundation,
24 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26 ----------------------------------------------------------------------*/
30 * menu definitions
31 * $Log: console_menus.h,v $
32 * Revision 1.10 2007-12-19 08:42:35 gerber
33 * debugged
35 * Revision 1.9 2007-06-06 17:00:48 gerber
36 * Retreives images/data from URI using Gnome Virtual File System.
38 * Revision 1.8 2007-01-29 11:27:43 gerber
39 * added image formats png, gif, tif png, bmp, improved buffer display
41 * Revision 1.7 2006/01/31 14:28:11 gerber
42 * version 0.3.0
44 * Revision 1.6 2005/06/15 09:40:40 gerber
45 * debugged, optimized
47 * Revision 1.5 2004/06/14 21:19:23 gerber
48 * Image depth up to 16 bits.
49 * Improvement "single int" and "drag int" in Eval tab.
50 * Viewer's pop-up menu.
51 * Adaption for gpiv_matrix_* and gpiv_vector_*.
52 * Resizing console.
53 * See Changelog for further info.
55 * Revision 1.4 2003/09/04 13:31:55 gerber
56 * init of printing (unfinished)
58 * Revision 1.3 2003/09/01 11:17:14 gerber
59 * improved monitoring of interrogation process
61 * Revision 1.2 2003/06/27 13:47:26 gerber
62 * display ruler, line/point evaluation
64 * Revision 1.1.1.1 2003/06/17 17:10:52 gerber
65 * Imported gpiv
69 #ifndef MENUS_H
70 #define MENUS_H
72 #include "console.h"
74 enum {
75 TARGET_URI_LIST = MAX_BUFS
78 static GtkTargetEntry target_table[] = {
79 /* { "text/plain", 0, 0 } */
80 { "text/uri-list", 0, TARGET_URI_LIST }
84 * menu bar menus
86 static GnomeUIInfo file_menu_gpiv[] =
88 GNOMEUIINFO_MENU_OPEN_ITEM (on_open_activate, NULL),
89 GNOMEUIINFO_MENU_SAVE_ITEM (on_save_activate, NULL),
90 GNOMEUIINFO_MENU_SAVE_AS_ITEM (on_save_as_activate, NULL),
91 /* GNOMEUIINFO_MENU_PRINT_ITEM (on_print_activate, NULL), */
92 GNOMEUIINFO_MENU_CLOSE_ITEM (on_close_activate, NULL),
93 GNOMEUIINFO_SEPARATOR,
94 GNOMEUIINFO_MENU_EXIT_ITEM (on_exit_activate, NULL),
95 GNOMEUIINFO_END
99 static GnomeUIInfo settings_menu_gpiv[] =
102 GNOME_APP_UI_TOGGLEITEM, N_("GPIV buttons"),
103 N_("show GPIV check-buttons"),
104 (gpointer) on_gpivbuttons_activate, NULL, NULL,
105 GNOME_APP_PIXMAP_NONE, NULL,
106 0, (GdkModifierType) 0, NULL
110 GNOME_APP_UI_TOGGLEITEM, N_("tabulator"),
111 N_("show tabulator containing parameter settings"),
112 (gpointer) on_tabulator_activate, NULL, NULL,
113 GNOME_APP_PIXMAP_NONE, NULL,
114 0, (GdkModifierType) 0, NULL
117 GNOMEUIINFO_SEPARATOR,
120 GNOME_APP_UI_ITEM, N_("Preferences"),
121 N_("Define settings of the application"),
122 (gpointer) on_preferences_activate, NULL, NULL,
123 GNOME_APP_PIXMAP_NONE, NULL,
124 0, (GdkModifierType) 0, NULL
127 GNOMEUIINFO_END
132 static GnomeUIInfo help_menu_gpiv[] =
135 GNOME_APP_UI_TOGGLEITEM, N_("show tooltips"),
136 N_("show extended information in a small pop-up window"),
137 (gpointer) on_tooltip_activate, /* NULL */ "gpiv", NULL,
138 GNOME_APP_PIXMAP_NONE, NULL,
139 0, (GdkModifierType) 0, NULL
143 GNOME_APP_UI_ITEM, N_("manual"),
144 NULL,
145 (gpointer) on_manual_activate, NULL, NULL,
146 GNOME_APP_PIXMAP_NONE, NULL,
147 0, (GdkModifierType) 0, NULL
150 /* GNOMEUIINFO_HELP ("/home/gerber/gpiv/docs/index.html"), */
151 GNOMEUIINFO_MENU_ABOUT_ITEM (on_about_activate, NULL),
152 GNOMEUIINFO_END
157 static GnomeUIInfo menubar_gpiv[] =
159 GNOMEUIINFO_MENU_FILE_TREE (file_menu_gpiv),
160 GNOMEUIINFO_MENU_SETTINGS_TREE (settings_menu_gpiv),
161 GNOMEUIINFO_MENU_HELP_TREE (help_menu_gpiv),
162 GNOMEUIINFO_END
167 * Popup menus
170 static GnomeUIInfo file_menu_gpiv_popup[] =
172 GNOMEUIINFO_MENU_OPEN_ITEM (on_open_activate, NULL),
173 GNOMEUIINFO_MENU_SAVE_ITEM (on_save_activate, NULL),
174 GNOMEUIINFO_MENU_SAVE_AS_ITEM (on_save_as_activate, NULL),
175 /* GNOMEUIINFO_MENU_PRINT_ITEM (on_print_activate, NULL), */
176 GNOMEUIINFO_MENU_CLOSE_ITEM (on_close_activate, NULL),
177 GNOMEUIINFO_SEPARATOR,
178 GNOMEUIINFO_MENU_EXIT_ITEM (on_exit_activate, NULL),
179 GNOMEUIINFO_END
183 static GnomeUIInfo settings_menu_gpiv_popup[] =
186 GNOME_APP_UI_TOGGLEITEM, N_("GPIV buttons"),
187 N_("show GPIV check-buttons"),
188 (gpointer) on_gpivbuttons_activate, NULL, NULL,
189 GNOME_APP_PIXMAP_NONE, NULL,
190 0, (GdkModifierType) 0, NULL
193 GNOME_APP_UI_TOGGLEITEM, N_("tabulator"),
194 N_("show tabulator containing parameter settings"),
195 (gpointer) on_tabulator_activate, NULL, NULL,
196 GNOME_APP_PIXMAP_NONE, NULL,
197 0, (GdkModifierType) 0, NULL
199 GNOMEUIINFO_SEPARATOR,
201 GNOME_APP_UI_ITEM, N_("Preferences"),
202 NULL,
203 (gpointer) on_preferences_activate, NULL, NULL,
204 GNOME_APP_PIXMAP_NONE, NULL,
205 0, (GdkModifierType) 0, NULL
207 GNOMEUIINFO_END
212 static GnomeUIInfo help_menu_gpiv_popup[] =
215 GNOME_APP_UI_TOGGLEITEM, N_("show tooltips"),
216 N_("show extended information in a small pop-up window"),
217 (gpointer) on_tooltip_activate, NULL, NULL,
218 GNOME_APP_PIXMAP_NONE, NULL,
219 0, (GdkModifierType) 0, NULL
222 GNOME_APP_UI_ITEM, N_("manual"),
223 NULL,
224 (gpointer) on_manual_activate, NULL, NULL,
225 GNOME_APP_PIXMAP_NONE, NULL,
226 0, (GdkModifierType) 0, NULL
228 GNOMEUIINFO_MENU_ABOUT_ITEM (on_about_activate, NULL),
229 GNOMEUIINFO_END
234 static GnomeUIInfo menubar_gpiv_popup[] =
236 GNOMEUIINFO_MENU_FILE_TREE (file_menu_gpiv_popup),
237 GNOMEUIINFO_MENU_SETTINGS_TREE (settings_menu_gpiv_popup),
238 GNOMEUIINFO_MENU_HELP_TREE (help_menu_gpiv_popup),
239 GNOMEUIINFO_END
244 #endif /* MENUS_H */