bugrepair VFS, update autotools files
[gpiv.git] / src / console.h
blob7ed163c6e4147149cd475a7fb758ce6bc2ef3e4b
1 /* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 c-style: "K&R" -*- */
4 /*----------------------------------------------------------------------
6 gpiv - Graphic program for Particle Image Velocimetry, based on gtk/gnome
7 libraries.
9 Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008
10 Gerber van der Graaf <gerber_graaf@users.sourceforge.net>
12 This file is part of gpiv.
14 Gpiv is free software; you can redistribute it and/or modify
15 it under the terms of the GNU General Public License as published by
16 the Free Software Foundation; either version 2, or (at your option)
17 any later version.
19 This program is distributed in the hope that it will be useful,
20 but WITHOUT ANY WARRANTY; without even the implied warranty of
21 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 GNU General Public License for more details.
24 You should have received a copy of the GNU General Public License
25 along with this program; if not, write to the Free Software Foundation,
26 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
28 ----------------------------------------------------------------------*/
30 * General callbacks
31 * $Log: console.h,v $
32 * Revision 1.13 2007-12-19 08:42:35 gerber
33 * debugged
35 * Revision 1.12 2007-11-23 16:24:07 gerber
36 * release 0.5.0: Kafka
38 * Revision 1.11 2007-06-06 17:00:48 gerber
39 * Retreives images/data from URI using Gnome Virtual File System.
41 * Revision 1.10 2007-03-22 16:00:32 gerber
42 * Added image processing tabulator
44 * Revision 1.9 2007-01-29 11:27:43 gerber
45 * added image formats png, gif, tif png, bmp, improved buffer display
47 * Revision 1.8 2006-09-18 07:27:04 gerber
48 * *** empty log message ***
50 * Revision 1.7 2006/01/31 14:28:11 gerber
51 * version 0.3.0
53 * Revision 1.6 2005/01/19 15:53:41 gerber
54 * Initiation of Data Acquisition (DAC); trigerring of lasers and camera
55 * by using RTAI and Realtime Linux, recording images from IEEE1394
56 * (Firewire) IIDC compliant camera's
58 * Revision 1.5 2004/06/14 21:19:23 gerber
59 * Image depth up to 16 bits.
60 * Improvement "single int" and "drag int" in Eval tab.
61 * Viewer's pop-up menu.
62 * Adaption for gpiv_matrix_* and gpiv_vector_*.
63 * Resizing console.
64 * See Changelog for further info.
66 * Revision 1.4 2003/09/04 13:31:55 gerber
67 * init of printing (unfinished)
69 * Revision 1.3 2003/09/01 11:17:14 gerber
70 * improved monitoring of interrogation process
72 * Revision 1.2 2003/08/22 15:24:52 gerber
73 * interactive spatial scaling
75 * Revision 1.1.1.1 2003/06/17 17:10:52 gerber
76 * Imported gpiv
80 #ifndef CONSOLE_H
81 #define CONSOLE_H
83 GtkWidget *gpiv_exit;
86 * Callback functions for main
89 void
90 on_clist_buf_rowselect (GtkWidget *clist,
91 gint row,
92 gint column,
93 GdkEventButton *event,
94 gpointer data);
97 void
98 on_clist_buf_drag_data_received (GtkWidget *widget,
99 GdkDragContext *context,
100 gint x,
101 gint y,
102 GtkSelectionData *selection_data,
103 guint info,
104 guint time);
106 void
107 delete_console (GtkWidget *widget,
108 GdkEvent *event,
109 gpointer data);
112 * Select sub-menu
114 void
115 select_all (gpointer data,
116 guint action,
117 GtkWidget *widget);
119 void
120 select_none (gpointer data,
121 guint action,
122 GtkWidget *widget);
124 void
125 on_open_activate (GtkMenuItem *menuitem,
126 gpointer user_data);
128 void
129 on_save_activate (GtkMenuItem *menuitem,
130 gpointer user_data);
132 void
133 save_all_data (GpivConsole *gpiv);
135 void
136 on_print_activate (GtkMenuItem *menuitem,
137 gpointer user_data);
138 void
139 on_execute_activate (GtkMenuItem *menuitem,
140 gpointer user_data);
141 void
142 on_stop_activate (GtkMenuItem *menuitem,
143 gpointer user_data);
145 void
146 on_close_activate (GtkMenuItem *menuitem,
147 gpointer user_data);
149 void
150 on_save_as_activate (GtkMenuItem *menuitem,
151 gpointer user_data);
153 /* void */
154 /* file_saveas_ok_sel(GtkWidget *widget, */
155 /* GtkFileSelection * fs */
156 /* ); */
158 void
159 file_saveas_ok_sel (GpivConsole *gpiv,
160 GtkWidget *dialog
163 void
164 on_exit_activate (GtkMenuItem *menuitem,
165 gpointer user_data);
167 void
168 on_close_buffer_activate (GtkMenuItem *menuitem,
169 gpointer user_data);
171 void
172 on_preferences_activate (GtkWidget *widget,
173 /* GtkMenuItem *menuitem, */
174 gpointer user_data);
176 void
177 on_about_activate (GtkMenuItem *menuitem,
178 gpointer user_data);
181 void
182 on_manual_activate (GtkMenuItem *menuitem,
183 gpointer user_data);
185 void
186 on_button_open_clicked (GtkButton *button,
187 gpointer user_data);
189 void
190 on_menubar_activate (GtkWidget *widget,
191 gpointer data);
194 void
195 on_toolbuttons_activate (GtkWidget *widget,
196 gpointer data);
199 void
200 on_gpivbuttons_activate (GtkWidget *widget,
201 gpointer data);
204 void
205 on_tabulator_activate (GtkWidget *widget,
206 gpointer data);
209 void
210 on_tooltip_activate (GtkWidget *widget,
211 gpointer data);
214 void
215 on_buffer_set_focus (GtkWindow *window,
216 GtkWidget *widget,
217 gpointer user_data);
219 void
220 gtk_window_destroy (GtkButton *button,
221 gpointer user_data);
223 void
224 on_view_options_clicked (GtkButton *button,
225 gpointer user_data);
227 void
228 on_appbar_display_user_response (GnomeAppBar *gnomeappbar,
229 gpointer user_data);
231 void
232 on_button_open_enter (GtkContainer *container,
233 GtkDirectionType direction,
234 gpointer user_data);
235 void
236 on_button_save_enter (GtkContainer *container,
237 GtkDirectionType direction,
238 gpointer user_data);
240 void
241 on_button_print_enter (GtkContainer *container,
242 GtkDirectionType direction,
243 gpointer user_data);
245 void
246 on_button_execute_enter (GtkContainer *container,
247 GtkDirectionType direction,
248 gpointer user_data);
250 void
251 on_button_stop_enter (GtkContainer *container,
252 GtkDirectionType direction,
253 gpointer user_data);
255 void
256 on_button_stop_press (GtkWidget *widget,
257 gpointer data);
259 void
260 on_button_stop_release (GtkWidget *widget,
261 gpointer data);
263 void
264 on_button_close_enter (GtkContainer *container,
265 GtkDirectionType direction,
266 gpointer user_data);
268 void
269 on_button_exit_enter (GtkContainer *container,
270 GtkDirectionType direction,
271 gpointer user_data);
275 * process toolbar callbacks
277 #ifdef ENABLE_CAM
278 void
279 on_toolbar_checkbutton_cam (GtkWidget *widget,
280 gpointer data);
281 #endif /* ENABLE_CAM */
283 #ifdef ENABLE_TRIG
284 void
285 on_toolbar_checkbutton_trig (GtkWidget *widget,
286 gpointer data);
287 #endif /* ENABLE_TRIG */
289 #ifdef ENABLE_IMGPROC
290 void
291 on_toolbar_checkbutton_imgproc (GtkWidget *widget,
292 gpointer data);
293 #endif /* ENABLE_IMGPROC */
294 void
295 on_toolbar_checkbutton_piv (GtkWidget *widget,
296 gpointer data);
298 void
299 on_toolbar_checkbutton_gradient (GtkWidget *widget,
300 gpointer data);
302 void
303 on_toolbar_checkbutton_resstats (GtkWidget *widget,
304 gpointer data);
306 void
307 on_toolbar_checkbutton_errvec (GtkWidget *widget,
308 gpointer data);
310 void
311 on_toolbar_checkbutton_peaklck (GtkWidget *widget,
312 gpointer data);
314 void
315 on_toolbar_checkbutton_scale (GtkWidget *widget,
316 gpointer data);
318 void
319 on_toolbar_checkbutton_average (GtkWidget *widget,
320 gpointer data);
322 void
323 on_toolbar_checkbutton_subavg (GtkWidget *widget,
324 gpointer data);
326 void
327 on_toolbar_checkbutton_vorstra (GtkWidget *widget,
328 gpointer data);
331 /* void */
332 /* on_button_quit_no_clicked (GtkButton *button, */
333 /* gpointer user_data); */
335 /* void */
336 /* on_button_quit_gpiv_yes_clicked (GtkButton *button, */
337 /* gpointer user_data); */
339 /* void */
340 /* on_button_message_clicked (GtkButton *button, */
341 /* gpointer user_data); */
343 /* void */
344 /* on_button_error_clicked (GtkButton *button, */
345 /* gpointer user_data); */
347 void
348 on_button_message_clicked (GtkDialog *dialog,
349 gint response,
350 gpointer data
353 void
354 on_notebook_switch_page (GtkNotebook *notebook,
355 GtkNotebookPage *page,
356 gint page_num,
357 gpointer user_data);
360 #endif /* CONSOLE_H */