Release 0.6.0 using parallelized code
[gpiv.git] / src / console_menus.h
blob63c8484f112b4a7db21be08f651bf8d5b0ce8f04
2 /*----------------------------------------------------------------------
4 gpiv - Graphic program for Particle Image Velocimetry, based on gtk/gnome
5 libraries.
7 Copyright (C) 2002 Gerber van der Graaf
9 This file is part of gpiv.
11 Gpiv is free software; you can redistribute it and/or modify
12 it under the terms of the GNU General Public License as published by
13 the Free Software Foundation; either version 2, or (at your option)
14 any later version.
16 This program is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 GNU General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with this program; if not, write to the Free Software Foundation,
23 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 ----------------------------------------------------------------------*/
29 * menu definitions
30 * $Log: console_menus.h,v $
31 * Revision 1.10 2007-12-19 08:42:35 gerber
32 * debugged
34 * Revision 1.9 2007-06-06 17:00:48 gerber
35 * Retreives images/data from URI using Gnome Virtual File System.
37 * Revision 1.8 2007-01-29 11:27:43 gerber
38 * added image formats png, gif, tif png, bmp, improved buffer display
40 * Revision 1.7 2006/01/31 14:28:11 gerber
41 * version 0.3.0
43 * Revision 1.6 2005/06/15 09:40:40 gerber
44 * debugged, optimized
46 * Revision 1.5 2004/06/14 21:19:23 gerber
47 * Image depth up to 16 bits.
48 * Improvement "single int" and "drag int" in Eval tab.
49 * Viewer's pop-up menu.
50 * Adaption for gpiv_matrix_* and gpiv_vector_*.
51 * Resizing console.
52 * See Changelog for further info.
54 * Revision 1.4 2003/09/04 13:31:55 gerber
55 * init of printing (unfinished)
57 * Revision 1.3 2003/09/01 11:17:14 gerber
58 * improved monitoring of interrogation process
60 * Revision 1.2 2003/06/27 13:47:26 gerber
61 * display ruler, line/point evaluation
63 * Revision 1.1.1.1 2003/06/17 17:10:52 gerber
64 * Imported gpiv
68 #ifndef MENUS_H
69 #define MENUS_H
71 #include "console.h"
73 enum {
74 TARGET_URI_LIST = MAX_BUFS
77 static GtkTargetEntry target_table[] = {
78 /* { "text/plain", 0, 0 } */
79 { "text/uri-list", 0, TARGET_URI_LIST }
83 * menu bar menus
85 static GnomeUIInfo file_menu_gpiv[] =
87 GNOMEUIINFO_MENU_OPEN_ITEM (on_open_activate, NULL),
88 GNOMEUIINFO_MENU_SAVE_ITEM (on_save_activate, NULL),
89 GNOMEUIINFO_MENU_SAVE_AS_ITEM (on_save_as_activate, NULL),
90 /* GNOMEUIINFO_MENU_PRINT_ITEM (on_print_activate, NULL), */
91 GNOMEUIINFO_MENU_CLOSE_ITEM (on_close_activate, NULL),
92 GNOMEUIINFO_SEPARATOR,
93 GNOMEUIINFO_MENU_EXIT_ITEM (on_exit_activate, NULL),
94 GNOMEUIINFO_END
98 static GnomeUIInfo settings_menu_gpiv[] =
101 GNOME_APP_UI_TOGGLEITEM, N_("GPIV buttons"),
102 N_("show GPIV check-buttons"),
103 (gpointer) on_gpivbuttons_activate, NULL, NULL,
104 GNOME_APP_PIXMAP_NONE, NULL,
105 0, (GdkModifierType) 0, NULL
109 GNOME_APP_UI_TOGGLEITEM, N_("tabulator"),
110 N_("show tabulator containing parameter settings"),
111 (gpointer) on_tabulator_activate, NULL, NULL,
112 GNOME_APP_PIXMAP_NONE, NULL,
113 0, (GdkModifierType) 0, NULL
116 GNOMEUIINFO_SEPARATOR,
119 GNOME_APP_UI_ITEM, N_("Preferences"),
120 N_("Define settings of the application"),
121 (gpointer) on_preferences_activate, NULL, NULL,
122 GNOME_APP_PIXMAP_NONE, NULL,
123 0, (GdkModifierType) 0, NULL
126 GNOMEUIINFO_END
131 static GnomeUIInfo help_menu_gpiv[] =
134 GNOME_APP_UI_TOGGLEITEM, N_("show tooltips"),
135 N_("show extended information in a small pop-up window"),
136 (gpointer) on_tooltip_activate, /* NULL */ "gpiv", NULL,
137 GNOME_APP_PIXMAP_NONE, NULL,
138 0, (GdkModifierType) 0, NULL
142 GNOME_APP_UI_ITEM, N_("manual"),
143 NULL,
144 (gpointer) on_manual_activate, NULL, NULL,
145 GNOME_APP_PIXMAP_NONE, NULL,
146 0, (GdkModifierType) 0, NULL
149 /* GNOMEUIINFO_HELP ("/home/gerber/gpiv/docs/index.html"), */
150 GNOMEUIINFO_MENU_ABOUT_ITEM (on_about_activate, NULL),
151 GNOMEUIINFO_END
156 static GnomeUIInfo menubar_gpiv[] =
158 GNOMEUIINFO_MENU_FILE_TREE (file_menu_gpiv),
159 GNOMEUIINFO_MENU_SETTINGS_TREE (settings_menu_gpiv),
160 GNOMEUIINFO_MENU_HELP_TREE (help_menu_gpiv),
161 GNOMEUIINFO_END
166 * Popup menus
169 static GnomeUIInfo file_menu_gpiv_popup[] =
171 GNOMEUIINFO_MENU_OPEN_ITEM (on_open_activate, NULL),
172 GNOMEUIINFO_MENU_SAVE_ITEM (on_save_activate, NULL),
173 GNOMEUIINFO_MENU_SAVE_AS_ITEM (on_save_as_activate, NULL),
174 /* GNOMEUIINFO_MENU_PRINT_ITEM (on_print_activate, NULL), */
175 GNOMEUIINFO_MENU_CLOSE_ITEM (on_close_activate, NULL),
176 GNOMEUIINFO_SEPARATOR,
177 GNOMEUIINFO_MENU_EXIT_ITEM (on_exit_activate, NULL),
178 GNOMEUIINFO_END
182 static GnomeUIInfo settings_menu_gpiv_popup[] =
185 GNOME_APP_UI_TOGGLEITEM, N_("GPIV buttons"),
186 N_("show GPIV check-buttons"),
187 (gpointer) on_gpivbuttons_activate, NULL, NULL,
188 GNOME_APP_PIXMAP_NONE, NULL,
189 0, (GdkModifierType) 0, NULL
192 GNOME_APP_UI_TOGGLEITEM, N_("tabulator"),
193 N_("show tabulator containing parameter settings"),
194 (gpointer) on_tabulator_activate, NULL, NULL,
195 GNOME_APP_PIXMAP_NONE, NULL,
196 0, (GdkModifierType) 0, NULL
198 GNOMEUIINFO_SEPARATOR,
200 GNOME_APP_UI_ITEM, N_("Preferences"),
201 NULL,
202 (gpointer) on_preferences_activate, NULL, NULL,
203 GNOME_APP_PIXMAP_NONE, NULL,
204 0, (GdkModifierType) 0, NULL
206 GNOMEUIINFO_END
211 static GnomeUIInfo help_menu_gpiv_popup[] =
214 GNOME_APP_UI_TOGGLEITEM, N_("show tooltips"),
215 N_("show extended information in a small pop-up window"),
216 (gpointer) on_tooltip_activate, NULL, NULL,
217 GNOME_APP_PIXMAP_NONE, NULL,
218 0, (GdkModifierType) 0, NULL
221 GNOME_APP_UI_ITEM, N_("manual"),
222 NULL,
223 (gpointer) on_manual_activate, NULL, NULL,
224 GNOME_APP_PIXMAP_NONE, NULL,
225 0, (GdkModifierType) 0, NULL
227 GNOMEUIINFO_MENU_ABOUT_ITEM (on_about_activate, NULL),
228 GNOMEUIINFO_END
233 static GnomeUIInfo menubar_gpiv_popup[] =
235 GNOMEUIINFO_MENU_FILE_TREE (file_menu_gpiv_popup),
236 GNOMEUIINFO_MENU_SETTINGS_TREE (settings_menu_gpiv_popup),
237 GNOMEUIINFO_MENU_HELP_TREE (help_menu_gpiv_popup),
238 GNOMEUIINFO_END
243 #endif /* MENUS_H */