1 /* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 c-style: "K&R" -*- */
3 /*----------------------------------------------------------------------
5 gpiv - Graphic program for Particle Image Velocimetry, based on gtk/gnome
8 Copyright (C) 2002 Gerber van der Graaf
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)
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 * $Log: display_menus.h,v $
31 * Revision 1.1 2003-06-17 17:10:52 gerber
36 #ifndef DISPLAY_MENUS_H
37 #define DISPLAY_MENUS_H
44 static GnomeUIInfo view_menu_display
[] = {
45 GNOMEUIINFO_ITEM_NONE(N_("Stretch display window"),
46 N_("Stretch or fit display window to the image area"),
47 view_toggle_stretch_display
),
48 GNOMEUIINFO_SEPARATOR
,
49 GNOMEUIINFO_TOGGLEITEM(N_("Image A"), NULL
, view_toggle_img1
, NULL
),
50 GNOMEUIINFO_TOGGLEITEM(N_("Image B"), NULL
, view_toggle_img2
, NULL
),
51 GNOMEUIINFO_TOGGLEITEM(N_("Interrogation area's"), NULL
,
52 view_toggle_intregs
, NULL
),
53 GNOMEUIINFO_TOGGLEITEM(N_("Velocity vectors"), NULL
, view_toggle_piv
, NULL
),
54 GNOMEUIINFO_TOGGLEITEM(N_("Vorticity"), NULL
, view_toggle_vor
, NULL
),
55 GNOMEUIINFO_TOGGLEITEM(N_("Shear strain"), NULL
, view_toggle_sstrain
, NULL
),
56 GNOMEUIINFO_TOGGLEITEM(N_("Normal strain"), NULL
, view_toggle_nstrain
, NULL
),
61 /* static GtkWidget *display_menu = NULL; */
63 static GnomeUIInfo zoomscale_menu_display
[] = {
64 GNOMEUIINFO_RADIOITEM_DATA(N_("0.5"), NULL
, select_zoomscale
,
65 GUINT_TO_POINTER(0), NULL
),
66 GNOMEUIINFO_RADIOITEM_DATA(N_("0.83"), NULL
, select_zoomscale
,
67 GUINT_TO_POINTER(1), NULL
),
68 GNOMEUIINFO_RADIOITEM_DATA(N_("1.0"), NULL
, select_zoomscale
,
69 GUINT_TO_POINTER(2), NULL
),
70 GNOMEUIINFO_RADIOITEM_DATA(N_("1.3"), NULL
, select_zoomscale
,
71 GUINT_TO_POINTER(3), NULL
),
72 GNOMEUIINFO_RADIOITEM_DATA(N_("1.6"), NULL
, select_zoomscale
,
73 GUINT_TO_POINTER(4), NULL
),
74 GNOMEUIINFO_RADIOITEM_DATA(N_("2"), NULL
, select_zoomscale
,
75 GUINT_TO_POINTER(5), NULL
),
79 static GnomeUIInfo vectorscale_menu_display
[] = {
80 GNOMEUIINFO_RADIOITEM_DATA(N_("1"), NULL
, select_vectorscale
,
81 GUINT_TO_POINTER(VECTOR_SCALE_0
), NULL
),
82 GNOMEUIINFO_RADIOITEM_DATA(N_("2"), NULL
, select_vectorscale
,
83 GUINT_TO_POINTER(VECTOR_SCALE_1
), NULL
),
84 GNOMEUIINFO_RADIOITEM_DATA(N_("4"), NULL
, select_vectorscale
,
85 GUINT_TO_POINTER(VECTOR_SCALE_2
), NULL
),
86 GNOMEUIINFO_RADIOITEM_DATA(N_("8"), NULL
, select_vectorscale
,
87 GUINT_TO_POINTER(VECTOR_SCALE_3
), NULL
),
88 GNOMEUIINFO_RADIOITEM_DATA(N_("16"), NULL
, select_vectorscale
,
89 GUINT_TO_POINTER(VECTOR_SCALE_4
), NULL
),
90 GNOMEUIINFO_RADIOITEM_DATA(N_("32"), NULL
, select_vectorscale
,
91 GUINT_TO_POINTER(VECTOR_SCALE_5
), NULL
),
92 GNOMEUIINFO_RADIOITEM_DATA(N_("64"), NULL
, select_vectorscale
,
93 GUINT_TO_POINTER(VECTOR_SCALE_6
), NULL
),
94 GNOMEUIINFO_RADIOITEM_DATA(N_("128"), NULL
, select_vectorscale
,
95 GUINT_TO_POINTER(VECTOR_SCALE_7
), NULL
),
96 GNOMEUIINFO_RADIOITEM_DATA(N_("256"), NULL
, select_vectorscale
,
97 GUINT_TO_POINTER(VECTOR_SCALE_8
), NULL
),
104 static GnomeUIInfo zoomscale_radiolist
[] = {
105 GNOMEUIINFO_RADIOLIST(zoomscale_menu_display
),
109 static GnomeUIInfo vectorscale_radiolist
[] = {
110 GNOMEUIINFO_RADIOLIST(vectorscale_menu_display
),
116 static GnomeUIInfo display_menu_uiinfo
[] = {
117 GNOMEUIINFO_MENU_VIEW_TREE(view_menu_display
),
118 GNOMEUIINFO_SUBTREE(N_("Zoom in/out"), zoomscale_radiolist
),
119 GNOMEUIINFO_SUBTREE(N_("Vector scale"), vectorscale_radiolist
),
124 #endif /* DISPLAY_MENUS_H */