Retreives images/data from URI using Gnome Virtual File System.
[gpiv.git] / src / console_interface.h
blob7f615f217211c8da3c4860450c0b11a40a79e491
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 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)
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 -----------------------------------------------------------------------------*/
29 * $Log: console_interface.h,v $
30 * Revision 1.8 2007-06-06 17:00:48 gerber
31 * Retreives images/data from URI using Gnome Virtual File System.
33 * Revision 1.7 2007-03-22 16:00:32 gerber
34 * Added image processing tabulator
36 * Revision 1.6 2007-01-29 11:27:43 gerber
37 * added image formats png, gif, tif png, bmp, improved buffer display
39 * Revision 1.5 2006-09-18 07:27:05 gerber
40 * *** empty log message ***
42 * Revision 1.4 2006/01/31 14:28:11 gerber
43 * version 0.3.0
45 * Revision 1.2 2005/01/19 15:53:41 gerber
46 * Initiation of Data Acquisition (DAC); trigerring of lasers and camera
47 * by using RTAI and Realtime Linux, recording images from IEEE1394
48 * (Firewire) IIDC compliant camera's
50 * Revision 1.1.1.1 2003/06/17 17:10:52 gerber
51 * Imported gpiv
54 /* -- widgets from GtkWidget *gpiv_gui_gtk ------------*/
55 /* #ifdef HAVE_CONFIG_H */
56 /* # include <config.h> */
57 /* #endif */
59 /* GtkWidget* create_exit (void); */
61 #ifndef CONSOLE_INTERFACE_H
62 #define CONSOLE_INTERFACE_H
64 #include "gpiv_gui.h"
65 #ifdef ENABLE_DAC
66 #include "dac_interface.h"
67 #endif /* ENABLE_DAC */
68 #include "imgh_interface.h"
69 #ifdef ENABLE_IMGPROC
70 #include "imgproc_interface.h"
71 #endif /* ENABLE_IMGPROC */
72 #include "piveval_interface.h"
73 #include "pivvalid_interface.h"
74 #include "pivpost_interface.h"
77 * widget for pop-up menu
80 typedef struct _GpivConsole GpivConsole;
81 struct _GpivConsole {
83 * General widgets for gpiv-gui
85 GnomeApp *console;
86 GtkWidget *appbar;
87 GtkTooltips *tooltips;
89 GtkWidget *dock1;
90 GtkWidget *alignment3;
91 GtkWidget *menubar;
92 GtkWidget *eventbox1;
93 GtkWidget *toolbar1;
94 gint tmp_toolbar_icon_size;
95 GtkWidget *button_open;
96 GtkWidget *button_save;
97 /* GtkWidget *button_print; */
98 GtkWidget *button_execute;
99 GtkWidget *button_stop;
100 GtkWidget *button_close;
101 GtkWidget *vseparator;
102 GtkWidget *button_exit;
103 GtkWidget *hbox_main;
104 GtkWidget *handlebox_buf;
107 * Menu widgets
109 GtkWidget *toggle_view_buttons;
110 const GtkWidget *toggle_view_tool;
111 const GtkWidget *toggle_view_tab;
114 * Buffer handlebox & clist
116 gint first_selected_row;
117 gint last_selected_row;
118 GtkWidget *alignment_buf;
119 GtkWidget *eventbox_buf;
120 GtkWidget *scrolledwindow_buf;
121 GtkObject *scrolledwindow_buf_adj;
122 GtkWidget *button_buf;
123 GtkWidget *viewport_buf;
124 #ifdef GTK4
125 GtkTreeStore *list_buf;
126 #else
127 #endif /* GTK4 */
128 GtkWidget *clist_buf;
129 GtkWidget *label_buf_1;
130 GtkWidget *label_buf_2;
131 GtkWidget *vbox_main;
134 * gpiv toolbox
136 GtkWidget *handlebox1;
137 GtkWidget *scrolledwindow_handbox1;
138 GtkWidget *viewport_handbox1;
139 GtkWidget *toolbar2;
140 GtkWidget *hbox_toolbar2;
141 #ifdef ENABLE_CAM
142 GtkWidget *button_toolbar_cam;
143 #endif
144 #ifdef ENABLE_TRIG
145 GtkWidget *button_toolbar_trig;
146 #endif
147 #ifdef ENABLE_IMGPROC
148 GtkWidget *button_toolbar_imgproc;
149 #endif
150 GtkWidget *button_toolbar_piv;
151 GtkWidget *button_toolbar_gradient;
152 GtkWidget *button_toolbar_resstats;
153 GtkWidget *button_toolbar_errvec;
154 GtkWidget *button_toolbar_peaklock;
155 GtkWidget *button_toolbar_scale;
156 GtkWidget *button_toolbar_average;
157 GtkWidget *button_toolbar_subavg;
158 GtkWidget *button_toolbar_vorstra;
161 * Tabulator
163 GtkWidget *notebook;
164 #ifdef ENABLE_CAM
165 Dac *dac;
166 GtkWidget *tablabel_dac;
167 #else /* ENABLE_CAM */
168 #ifdef ENABLE_TRIG
169 Dac *dac;
170 GtkWidget *tablabel_dac;
171 #endif /* ENABLE_TRIG */
172 #endif /* ENABLE_CAM */
173 Imgheader *imgh;
174 GtkWidget *tablabel_imgh;
175 #ifdef ENABLE_IMGPROC
176 Imgprocess *imgproc;
177 GtkWidget *tablabel_imgproc;
178 #endif
179 PivEval *piveval;
180 GtkWidget *tablabel_piveval;
181 PivValid *pivvalid;
182 GtkWidget *tablabel_pivvalid;
183 PivPost *pivpost;
184 GtkWidget *tablabel_pivpost;
186 GSList *mouse_sel_group;
191 GpivConsole *
192 create_gpiv(void);
194 GtkWidget *
195 create_menu_gpiv_popup (GpivConsole * gpiv);
199 * widget for display menu
201 /* GtkWidget* create_display_menu (void); */
202 /* GtkWidget *display_menu; */
205 * widget for closing buffer
207 gint
208 close_buffer_yes_no (GpivConsole * gpiv,
209 char *message);
213 #endif /* CONSOLE_INTERFACE_H */