2 /*----------------------------------------------------------------------
4 gpiv - Graphic program for Particle Image Velocimetry, based on gtk/gnome
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)
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 ----------------------------------------------------------------------*/
30 * $Log: console_menus.h,v $
31 * Revision 1.1 2003-06-17 17:10:52 gerber
41 static GtkTargetEntry target_table
[] = {
42 { "text/plain", 0, 0 }
48 static GnomeUIInfo file_menu_gpiv
[] =
50 GNOMEUIINFO_MENU_OPEN_ITEM (on_open_activate
, NULL
),
51 GNOMEUIINFO_MENU_SAVE_ITEM (on_save_activate
, NULL
),
52 GNOMEUIINFO_MENU_SAVE_AS_ITEM (on_save_as_activate
, NULL
),
53 GNOMEUIINFO_SEPARATOR
,
54 GNOMEUIINFO_MENU_EXIT_ITEM (on_exit_activate
, NULL
),
59 static GnomeUIInfo settings_menu_gpiv
[] =
62 GNOME_APP_UI_TOGGLEITEM
, N_("gpiv buttons"),
63 N_("show gpiv check-buttons"),
64 (gpointer
) on_gpivbuttons_activate
, NULL
, NULL
,
65 GNOME_APP_PIXMAP_NONE
, NULL
,
66 0, (GdkModifierType
) 0, NULL
70 GNOME_APP_UI_TOGGLEITEM
, N_("tabulator"),
71 N_("show tabulator containing parameter settings"),
72 (gpointer
) on_tabulator_activate
, NULL
, NULL
,
73 GNOME_APP_PIXMAP_NONE
, NULL
,
74 0, (GdkModifierType
) 0, NULL
77 GNOMEUIINFO_SEPARATOR
,
80 GNOME_APP_UI_ITEM
, N_("Preferences"),
81 N_("Define settings of the application"),
82 (gpointer
) on_preferences_activate
, NULL
, NULL
,
83 GNOME_APP_PIXMAP_NONE
, NULL
,
84 0, (GdkModifierType
) 0, NULL
92 static GnomeUIInfo help_menu_gpiv
[] =
95 GNOME_APP_UI_TOGGLEITEM
, N_("show tooltips"),
96 N_("show extended information in a small pop-up window"),
97 (gpointer
) on_tooltip_activate
, /* NULL */ "gpiv", NULL
,
98 GNOME_APP_PIXMAP_NONE
, NULL
,
99 0, (GdkModifierType
) 0, NULL
103 GNOME_APP_UI_ITEM
, N_("manual"),
105 (gpointer
) on_manual_activate
, NULL
, NULL
,
106 GNOME_APP_PIXMAP_NONE
, NULL
,
107 0, (GdkModifierType
) 0, NULL
110 /* GNOMEUIINFO_HELP ("/home/gerber/gpiv/docs/index.html"), */
111 GNOMEUIINFO_MENU_ABOUT_ITEM (on_about_activate
, NULL
),
117 static GnomeUIInfo menubar_gpiv
[] =
119 GNOMEUIINFO_MENU_FILE_TREE (file_menu_gpiv
),
120 GNOMEUIINFO_MENU_SETTINGS_TREE (settings_menu_gpiv
),
121 GNOMEUIINFO_MENU_HELP_TREE (help_menu_gpiv
),
129 static GnomeUIInfo toolbar_gpiv
[] =
132 GNOME_APP_UI_ITEM
, N_("Open"), N_("Open a PIV image or data-file"),
133 (gpointer
) on_button_open_clicked
, NULL
, NULL
,
134 GNOME_APP_PIXMAP_STOCK
, GNOME_STOCK_PIXMAP_OPEN
, 0, 0, NULL
138 GNOME_APP_UI_ITEM
, N_("Save"), N_("Save data"),
139 (gpointer
) on_save_activate
, NULL
, NULL
,
140 GNOME_APP_PIXMAP_STOCK
, GNOME_STOCK_PIXMAP_SAVE
, 0, 0, NULL
144 GNOME_APP_UI_ITEM
, N_("Execute"), N_("Execute the enabled chain process(es)"),
145 (gpointer
) on_execute_activate
, NULL
, NULL
,
146 GNOME_APP_PIXMAP_STOCK
, GNOME_STOCK_PIXMAP_EXEC
, 0, 0, NULL
150 GNOME_APP_UI_ITEM
, N_("Stop"), N_("Cancels all running processes"),
151 (gpointer
) on_stop_activate
, NULL
, NULL
,
152 GNOME_APP_PIXMAP_STOCK
, GNOME_STOCK_PIXMAP_STOP
, 0, 0, NULL
156 GNOME_APP_UI_ITEM
, N_("Close"), N_("Close active buffer(s).\nA warning message will be issued for unsaved data"),
157 (gpointer
) on_close_activate
, NULL
, NULL
,
158 GNOME_APP_PIXMAP_STOCK
, GNOME_STOCK_PIXMAP_CLOSE
, 0, 0, NULL
161 GNOMEUIINFO_SEPARATOR
,
164 GNOME_APP_UI_ITEM
, N_("Exit"), N_("Exit gpiv. \nA warning message will be issued for unsaved data"),
165 (gpointer
) on_exit_activate
, NULL
, NULL
,
166 GNOME_APP_PIXMAP_STOCK
, GNOME_STOCK_PIXMAP_EXIT
, 0, 0, NULL
174 * Toolbar process buttons
177 static GnomeUIInfo toolbar2
[] =
180 GNOME_APP_UI_TOGGLEITEM
, N_("piv"),
181 N_("Enables PIV for chain processing: analysing of a PIV image \
182 (pair), resulting into the mean displacements of the particle images within \
183 each interrogation area. \n\
184 The process will be executed by clicking the Execute button"),
185 (gpointer
) on_toolbar_checkbutton_piv
, NULL
, NULL
,
186 GNOME_APP_PIXMAP_NONE
, NULL
,
187 0, (GdkModifierType
) 0, NULL
191 GNOME_APP_UI_TOGGLEITEM
, N_("gradient"),
192 N_("Enables gradient for chain processing: Disables velocities with \
193 gradients larger than 0.05 over the interrogation area. \n\
194 The process will be executed by clicking the \"Execute\" button"),
195 (gpointer
) on_toolbar_checkbutton_gradient
, NULL
, NULL
,
196 GNOME_APP_PIXMAP_NONE
, NULL
,
197 0, (GdkModifierType
) 0, NULL
201 GNOME_APP_UI_TOGGLEITEM
, N_("validate"),
202 N_("Enables validation for chain processing: detects \
203 outliers of PIV data by testing on median residu or by Signal to Noise \
204 Ratio magnitudes and, eventually, substitutes. \n\
205 The process will be executed by clicking the Execute button"),
206 (gpointer
) on_toolbar_checkbutton_errvec
, NULL
, NULL
,
207 GNOME_APP_PIXMAP_NONE
, NULL
,
208 0, (GdkModifierType
) 0, NULL
212 GNOME_APP_UI_TOGGLEITEM
, N_("residu stats"),
213 N_("Enables residu statistics for chain processing: calculates \
214 the residus of displacements for detection of outliers and shows an histogram \
215 of them. The histogram will be displayed in the Piv Validation tab. \n\
216 The process will be executed by clicking the Execute button"),
217 (gpointer
) on_toolbar_checkbutton_resstats
, NULL
, NULL
,
218 GNOME_APP_PIXMAP_NONE
, NULL
,
219 0, (GdkModifierType
) 0, NULL
223 GNOME_APP_UI_TOGGLEITEM
, N_("peaklock"),
224 N_("Enables peak-lock for chain processing: shows an histogram \
225 of sub-pixel displacements in order to check on peak-locking effects. \
226 The histogram will be displayed in the Piv Validation tab. \n\
227 The process will be executed by clicking the \"Execute\" button"),
228 (gpointer
) on_toolbar_checkbutton_peaklck
, NULL
, NULL
,
229 GNOME_APP_PIXMAP_NONE
, NULL
,
230 0, (GdkModifierType
) 0, NULL
234 GNOME_APP_UI_TOGGLEITEM
, N_("scale"),
235 N_("Enables scale for chain processing: scales spatial \
236 displacements from all data. \n\
237 The process will be executed by clicking the \"Execute\" button"),
238 (gpointer
) on_toolbar_checkbutton_subavg
, NULL
, NULL
,
239 GNOME_APP_PIXMAP_NONE
, NULL
,
240 0, (GdkModifierType
) 0, NULL
244 GNOME_APP_UI_TOGGLEITEM
, N_("average"),
245 N_("Enables average for chain processing: Calculates spatial average \
246 displacements over all data. \n\
247 The process will be executed by clicking the \"Execute\" button"),
248 (gpointer
) on_toolbar_checkbutton_average
, NULL
, NULL
,
249 GNOME_APP_PIXMAP_NONE
, NULL
,
250 0, (GdkModifierType
) 0, NULL
254 GNOME_APP_UI_TOGGLEITEM
, N_("substract"),
255 N_("Enables substract for chain processing: substracts spatial average \
256 displacements from all data. \n\
257 The process will be executed by clicking the \"Execute\" button"),
258 (gpointer
) on_toolbar_checkbutton_subavg
, NULL
, NULL
,
259 GNOME_APP_PIXMAP_NONE
, NULL
,
260 0, (GdkModifierType
) 0, NULL
264 GNOME_APP_UI_TOGGLEITEM
, N_("vorticity"),
265 N_("Enables vorticity for chain processing: calculates \
266 vorticity or strain magnitudes from a velocity field.\n\
267 The process will be executed by clicking the Execute button"),
268 (gpointer
) on_toolbar_checkbutton_vorstra
, NULL
, NULL
,
269 GNOME_APP_PIXMAP_NONE
, NULL
,
270 0, (GdkModifierType
) 0, NULL
283 static GnomeUIInfo file_menu_gpiv_popup
[] =
285 GNOMEUIINFO_MENU_OPEN_ITEM (on_open_activate
, NULL
),
286 GNOMEUIINFO_MENU_SAVE_ITEM (on_save_activate
, NULL
),
287 /* GNOMEUIINFO_MENU_SAVE_AS_ITEM (on_save_as_activate, NULL), */
288 GNOMEUIINFO_SEPARATOR
,
289 GNOMEUIINFO_MENU_EXIT_ITEM (on_exit_activate
, NULL
),
294 static GnomeUIInfo settings_menu_gpiv_popup
[] =
298 /* GNOME_APP_UI_TOGGLEITEM, N_("menu bar"), */
299 /* N_("show menu bar"), */
300 /* (gpointer) on_menubar_activate, NULL, NULL, */
301 /* GNOME_APP_PIXMAP_NONE, NULL, */
302 /* 0, (GdkModifierType) 0, NULL */
305 /* GNOME_APP_UI_TOGGLEITEM, N_("tool buttons"), */
306 /* N_("show tool button bar"), */
307 /* (gpointer) on_toolbuttons_activate, NULL, NULL, */
308 /* GNOME_APP_PIXMAP_NONE, NULL, */
309 /* 0, (GdkModifierType) 0, NULL */
312 GNOME_APP_UI_TOGGLEITEM
, N_("gpiv buttons"),
313 N_("show gpiv check-buttons"),
314 (gpointer
) on_gpivbuttons_activate
, NULL
, NULL
,
315 GNOME_APP_PIXMAP_NONE
, NULL
,
316 0, (GdkModifierType
) 0, NULL
319 GNOME_APP_UI_TOGGLEITEM
, N_("tabulator"),
320 N_("show tabulator containing parameter settings"),
321 (gpointer
) on_tabulator_activate
, NULL
, NULL
,
322 GNOME_APP_PIXMAP_NONE
, NULL
,
323 0, (GdkModifierType
) 0, NULL
325 GNOMEUIINFO_SEPARATOR
,
327 GNOME_APP_UI_ITEM
, N_("Preferences"),
329 (gpointer
) on_preferences_activate
, NULL
, NULL
,
330 GNOME_APP_PIXMAP_NONE
, NULL
,
331 0, (GdkModifierType
) 0, NULL
338 static GnomeUIInfo help_menu_gpiv_popup
[] =
341 GNOME_APP_UI_TOGGLEITEM
, N_("show tooltips"),
342 N_("show extended information in a small pop-up window"),
343 (gpointer
) on_tooltip_activate
, NULL
, NULL
,
344 GNOME_APP_PIXMAP_NONE
, NULL
,
345 0, (GdkModifierType
) 0, NULL
348 GNOME_APP_UI_ITEM
, N_("manual"),
350 (gpointer
) on_manual_activate
, NULL
, NULL
,
351 GNOME_APP_PIXMAP_NONE
, NULL
,
352 0, (GdkModifierType
) 0, NULL
354 /* GNOMEUIINFO_HELP ("/home/gerber/gpiv/docs/index.html"), */
355 GNOMEUIINFO_MENU_ABOUT_ITEM (on_about_activate
, NULL
),
361 static GnomeUIInfo menubar_gpiv_popup
[] =
363 GNOMEUIINFO_MENU_FILE_TREE (file_menu_gpiv_popup
),
364 GNOMEUIINFO_MENU_SETTINGS_TREE (settings_menu_gpiv_popup
),
365 GNOMEUIINFO_MENU_HELP_TREE (help_menu_gpiv_popup
),