bugrepair: drag and drop
[gpiv.git] / src / display_menus.h
blob97a2797f636d1a15c6cecfa18e2cf2bbd26e0ec6
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
6 libraries.
8 Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008
9 Gerber van der Graaf <gerber_graaf@users.sourceforge.net>
11 This file is part of gpiv.
13 Gpiv is free software; you can redistribute it and/or modify
14 it under the terms of the GNU General Public License as published by
15 the Free Software Foundation; either version 2, or (at your option)
16 any later version.
18 This program is distributed in the hope that it will be useful,
19 but WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 GNU General Public License for more details.
23 You should have received a copy of the GNU General Public License
24 along with this program; if not, write to the Free Software Foundation,
25 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27 ----------------------------------------------------------------------*/
30 * menus of display
31 * $Log: display_menus.h,v $
32 * Revision 1.8 2007-06-06 17:00:48 gerber
33 * Retreives images/data from URI using Gnome Virtual File System.
35 * Revision 1.7 2007/02/05 15:17:09 gerber
36 * auto stretching, broadcast display settings to buffers from preferences
38 * Revision 1.6 2007-01-29 11:27:43 gerber
39 * added image formats png, gif, tif png, bmp, improved buffer display
41 * Revision 1.5 2006/01/31 14:28:12 gerber
42 * version 0.3.0
44 * Revision 1.3 2005/01/19 15:53:41 gerber
45 * Initiation of Data Acquisition (DAC); trigerring of lasers and camera
46 * by using RTAI and Realtime Linux, recording images from IEEE1394
47 * (Firewire) IIDC compliant camera's
49 * Revision 1.2 2004/06/14 21:19:23 gerber
50 * Image depth up to 16 bits.
51 * Improvement "single int" and "drag int" in Eval tab.
52 * Viewer's pop-up menu.
53 * Adaption for gpiv_matrix_* and gpiv_vector_*.
54 * Resizing console.
55 * See Changelog for further info.
57 * Revision 1.1.1.1 2003/06/17 17:10:52 gerber
58 * Imported gpiv
62 #ifndef DISPLAY_MENUS_H
63 #define DISPLAY_MENUS_H
65 #include "display.h"
67 * Display menus
70 static
71 GnomeUIInfo zoomscale_menu_display[] = {
72 GNOMEUIINFO_RADIOITEM_DATA (N_("0.25"), NULL, select_zoomscale,
73 GUINT_TO_POINTER(0), NULL),
74 GNOMEUIINFO_RADIOITEM_DATA (N_("0.5"), NULL, select_zoomscale,
75 GUINT_TO_POINTER(1), NULL),
76 GNOMEUIINFO_RADIOITEM_DATA (N_("0.83"), NULL, select_zoomscale,
77 GUINT_TO_POINTER(2), NULL),
78 GNOMEUIINFO_RADIOITEM_DATA (N_("1.0"), NULL, select_zoomscale,
79 GUINT_TO_POINTER(3), NULL),
80 GNOMEUIINFO_RADIOITEM_DATA (N_("1.3"), NULL, select_zoomscale,
81 GUINT_TO_POINTER(4), NULL),
82 GNOMEUIINFO_RADIOITEM_DATA (N_("1.6"), NULL, select_zoomscale,
83 GUINT_TO_POINTER(5), NULL),
84 GNOMEUIINFO_RADIOITEM_DATA (N_("2.0"), NULL, select_zoomscale,
85 GUINT_TO_POINTER(6), NULL),
86 GNOMEUIINFO_RADIOITEM_DATA (N_("4.0"), NULL, select_zoomscale,
87 GUINT_TO_POINTER(7), NULL),
88 GNOMEUIINFO_END
93 static
94 GnomeUIInfo view_background_display[] = {
95 GNOMEUIINFO_RADIOITEM_DATA (N_("Blue background"), NULL,
96 select_view_background,
97 GUINT_TO_POINTER (0), NULL),
98 GNOMEUIINFO_RADIOITEM_DATA (N_("Black background"), NULL,
99 select_view_background,
100 GUINT_TO_POINTER (1), NULL),
101 GNOMEUIINFO_RADIOITEM_DATA (N_("Image A"), NULL,
102 select_view_background,
103 GUINT_TO_POINTER (2), NULL),
104 GNOMEUIINFO_RADIOITEM_DATA (N_("Image B"), NULL,
105 select_view_background,
106 GUINT_TO_POINTER (3), NULL),
107 GNOMEUIINFO_END
112 static
113 GnomeUIInfo view_background_radiolist[] = {
114 GNOMEUIINFO_RADIOLIST (view_background_display),
115 GNOMEUIINFO_END
120 static
121 GnomeUIInfo view_piv_display[] = {
122 GNOMEUIINFO_TOGGLEITEM (N_("Interrogation area's"), NULL,
123 view_toggle_intregs, NULL),
124 GNOMEUIINFO_TOGGLEITEM (N_("Velocity vectors"), NULL, view_toggle_piv, NULL),
125 GNOMEUIINFO_END
130 static
131 GnomeUIInfo view_scalardata_display[] = {
132 GNOMEUIINFO_RADIOITEM_DATA (N_("None"), NULL,
133 select_view_scalardata,
134 GUINT_TO_POINTER(0), NULL),
135 GNOMEUIINFO_RADIOITEM_DATA (N_("Vorticity"), NULL,
136 select_view_scalardata,
137 GUINT_TO_POINTER(1), NULL),
138 GNOMEUIINFO_RADIOITEM_DATA (N_("Shear strain"), NULL,
139 select_view_scalardata,
140 GUINT_TO_POINTER(2), NULL),
141 GNOMEUIINFO_RADIOITEM_DATA (N_("Normal strain"), NULL,
142 select_view_scalardata,
143 GUINT_TO_POINTER(3), NULL),
144 GNOMEUIINFO_END
149 static
150 GnomeUIInfo vectorscale_menu_display[] = {
151 GNOMEUIINFO_RADIOITEM_DATA (N_("1"), NULL, select_vectorscale,
152 GUINT_TO_POINTER(/* VECTOR_SCALE_0 */ 0), NULL),
153 GNOMEUIINFO_RADIOITEM_DATA (N_("2"), NULL, select_vectorscale,
154 GUINT_TO_POINTER(/* VECTOR_SCALE_1 */ 1), NULL),
155 GNOMEUIINFO_RADIOITEM_DATA (N_("4"), NULL, select_vectorscale,
156 GUINT_TO_POINTER(/* VECTOR_SCALE_2 */ 2), NULL),
157 GNOMEUIINFO_RADIOITEM_DATA (N_("8"), NULL, select_vectorscale,
158 GUINT_TO_POINTER(/* VECTOR_SCALE_3 */ 3), NULL),
159 GNOMEUIINFO_RADIOITEM_DATA (N_("16"), NULL, select_vectorscale,
160 GUINT_TO_POINTER(/* VECTOR_SCALE_4 */ 4), NULL),
161 GNOMEUIINFO_RADIOITEM_DATA (N_("32"), NULL, select_vectorscale,
162 GUINT_TO_POINTER(/* VECTOR_SCALE_5 */ 5), NULL),
163 GNOMEUIINFO_RADIOITEM_DATA (N_("64"), NULL, select_vectorscale,
164 GUINT_TO_POINTER(/* VECTOR_SCALE_6 */ 6), NULL),
165 GNOMEUIINFO_RADIOITEM_DATA (N_("128"), NULL, select_vectorscale,
166 GUINT_TO_POINTER(/* VECTOR_SCALE_7 */ 7), NULL),
167 GNOMEUIINFO_RADIOITEM_DATA (N_("256"), NULL, select_vectorscale,
168 GUINT_TO_POINTER(/* VECTOR_SCALE_8 */ 8), NULL),
170 GNOMEUIINFO_END
175 static
176 GnomeUIInfo vectorcolor_menu_display[] = {
177 GNOMEUIINFO_RADIOITEM_DATA (N_("Peak nr"), NULL, select_vectorcolor,
178 GUINT_TO_POINTER(SHOW_PEAKNR), NULL),
179 GNOMEUIINFO_RADIOITEM_DATA (N_("SNR"), NULL, select_vectorcolor,
180 GUINT_TO_POINTER(SHOW_SNR), NULL),
181 GNOMEUIINFO_RADIOITEM_DATA (N_("Magnitude gray"), NULL, select_vectorcolor,
182 GUINT_TO_POINTER(SHOW_MAGNITUDE_GRAY), NULL),
183 GNOMEUIINFO_RADIOITEM_DATA (N_("Magnitude color"), NULL, select_vectorcolor,
184 GUINT_TO_POINTER(SHOW_MAGNITUDE), NULL),
186 GNOMEUIINFO_END
191 static
192 GnomeUIInfo zoomscale_radiolist[] = {
193 GNOMEUIINFO_RADIOLIST (zoomscale_menu_display),
194 GNOMEUIINFO_END
199 static
200 GnomeUIInfo view_scalardata_radiolist[] = {
201 GNOMEUIINFO_RADIOLIST (view_scalardata_display),
202 GNOMEUIINFO_END
207 static
208 GnomeUIInfo vectorscale_radiolist[] = {
209 GNOMEUIINFO_RADIOLIST (vectorscale_menu_display),
210 GNOMEUIINFO_END
215 static
216 GnomeUIInfo vectorcolor_radiolist[] = {
217 GNOMEUIINFO_RADIOLIST (vectorcolor_menu_display),
218 GNOMEUIINFO_END
223 static
224 GnomeUIInfo display_menu_uiinfo[] = {
225 GNOMEUIINFO_TOGGLEITEM (N_("View menubar"), N_("Displays menubar in window"),
226 view_toggle_menubar, NULL),
227 GNOMEUIINFO_TOGGLEITEM (N_("View rulers"), N_("Displays rulers in window"),
228 view_toggle_rulers, NULL),
229 GNOMEUIINFO_TOGGLEITEM (N_("Stretch auto"), N_("Stretch display automatic when zooming"),
230 view_toggle_stretch_display_auto, NULL),
231 GNOMEUIINFO_ITEM_NONE (N_("Stretch display"),
232 N_("Stretch or fit display window to the image area"),
233 view_toggle_stretch_display),
234 GNOMEUIINFO_SUBTREE (N_("Zoom in/out"), zoomscale_radiolist),
235 GNOMEUIINFO_SEPARATOR,
236 GNOMEUIINFO_SUBTREE (N_("View background"),
237 view_background_radiolist),
238 GNOMEUIINFO_SUBTREE (N_("View piv data"), view_piv_display),
239 GNOMEUIINFO_SUBTREE (N_("View scalar data"),
240 view_scalardata_radiolist),
241 GNOMEUIINFO_SUBTREE (N_("Vector scale"), vectorscale_radiolist),
242 GNOMEUIINFO_SUBTREE (N_("Vector color"), vectorcolor_radiolist),
243 GNOMEUIINFO_END
247 #endif /* DISPLAY_MENUS_H */