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
9 Copyright (C) 2002 Gerber van der Graaf
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)
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 ----------------------------------------------------------------------*/
31 * Revision 1.13 2007-12-19 08:42:35 gerber
34 * Revision 1.12 2007-11-23 16:24:07 gerber
35 * release 0.5.0: Kafka
37 * Revision 1.11 2007-06-06 17:00:48 gerber
38 * Retreives images/data from URI using Gnome Virtual File System.
40 * Revision 1.10 2007-03-22 16:00:32 gerber
41 * Added image processing tabulator
43 * Revision 1.9 2007-01-29 11:27:43 gerber
44 * added image formats png, gif, tif png, bmp, improved buffer display
46 * Revision 1.8 2006-09-18 07:27:04 gerber
47 * *** empty log message ***
49 * Revision 1.7 2006/01/31 14:28:11 gerber
52 * Revision 1.6 2005/01/19 15:53:41 gerber
53 * Initiation of Data Acquisition (DAC); trigerring of lasers and camera
54 * by using RTAI and Realtime Linux, recording images from IEEE1394
55 * (Firewire) IIDC compliant camera's
57 * Revision 1.5 2004/06/14 21:19:23 gerber
58 * Image depth up to 16 bits.
59 * Improvement "single int" and "drag int" in Eval tab.
60 * Viewer's pop-up menu.
61 * Adaption for gpiv_matrix_* and gpiv_vector_*.
63 * See Changelog for further info.
65 * Revision 1.4 2003/09/04 13:31:55 gerber
66 * init of printing (unfinished)
68 * Revision 1.3 2003/09/01 11:17:14 gerber
69 * improved monitoring of interrogation process
71 * Revision 1.2 2003/08/22 15:24:52 gerber
72 * interactive spatial scaling
74 * Revision 1.1.1.1 2003/06/17 17:10:52 gerber
85 * Callback functions for main
89 on_clist_buf_rowselect (GtkWidget
*clist
,
92 GdkEventButton
*event
,
97 on_clist_buf_drag_data_received (GtkWidget
*widget
,
98 GdkDragContext
*context
,
101 GtkSelectionData
*selection_data
,
106 delete_console (GtkWidget
*widget
,
114 select_all (gpointer data
,
119 select_none (gpointer data
,
124 on_open_activate (GtkMenuItem
*menuitem
,
128 on_save_activate (GtkMenuItem
*menuitem
,
132 save_all_data (GpivConsole
*gpiv
);
135 on_print_activate (GtkMenuItem
*menuitem
,
138 on_execute_activate (GtkMenuItem
*menuitem
,
141 on_stop_activate (GtkMenuItem
*menuitem
,
145 on_close_activate (GtkMenuItem
*menuitem
,
149 on_save_as_activate (GtkMenuItem
*menuitem
,
153 /* file_saveas_ok_sel(GtkWidget *widget, */
154 /* GtkFileSelection * fs */
158 file_saveas_ok_sel (GpivConsole
*gpiv
,
163 on_exit_activate (GtkMenuItem
*menuitem
,
167 on_close_buffer_activate (GtkMenuItem
*menuitem
,
171 on_preferences_activate (GtkWidget
*widget
,
172 /* GtkMenuItem *menuitem, */
176 on_about_activate (GtkMenuItem
*menuitem
,
181 on_manual_activate (GtkMenuItem
*menuitem
,
185 on_button_open_clicked (GtkButton
*button
,
189 on_menubar_activate (GtkWidget
*widget
,
194 on_toolbuttons_activate (GtkWidget
*widget
,
199 on_gpivbuttons_activate (GtkWidget
*widget
,
204 on_tabulator_activate (GtkWidget
*widget
,
209 on_tooltip_activate (GtkWidget
*widget
,
214 on_buffer_set_focus (GtkWindow
*window
,
219 gtk_window_destroy (GtkButton
*button
,
223 on_view_options_clicked (GtkButton
*button
,
227 on_appbar_display_user_response (GnomeAppBar
*gnomeappbar
,
231 on_button_open_enter (GtkContainer
*container
,
232 GtkDirectionType direction
,
235 on_button_save_enter (GtkContainer
*container
,
236 GtkDirectionType direction
,
240 on_button_print_enter (GtkContainer
*container
,
241 GtkDirectionType direction
,
245 on_button_execute_enter (GtkContainer
*container
,
246 GtkDirectionType direction
,
250 on_button_stop_enter (GtkContainer
*container
,
251 GtkDirectionType direction
,
255 on_button_stop_press (GtkWidget
*widget
,
259 on_button_stop_release (GtkWidget
*widget
,
263 on_button_close_enter (GtkContainer
*container
,
264 GtkDirectionType direction
,
268 on_button_exit_enter (GtkContainer
*container
,
269 GtkDirectionType direction
,
274 * process toolbar callbacks
278 on_toolbar_checkbutton_cam (GtkWidget
*widget
,
280 #endif /* ENABLE_CAM */
284 on_toolbar_checkbutton_trig (GtkWidget
*widget
,
286 #endif /* ENABLE_TRIG */
288 #ifdef ENABLE_IMGPROC
290 on_toolbar_checkbutton_imgproc (GtkWidget
*widget
,
292 #endif /* ENABLE_IMGPROC */
294 on_toolbar_checkbutton_piv (GtkWidget
*widget
,
298 on_toolbar_checkbutton_gradient (GtkWidget
*widget
,
302 on_toolbar_checkbutton_resstats (GtkWidget
*widget
,
306 on_toolbar_checkbutton_errvec (GtkWidget
*widget
,
310 on_toolbar_checkbutton_peaklck (GtkWidget
*widget
,
314 on_toolbar_checkbutton_scale (GtkWidget
*widget
,
318 on_toolbar_checkbutton_average (GtkWidget
*widget
,
322 on_toolbar_checkbutton_subavg (GtkWidget
*widget
,
326 on_toolbar_checkbutton_vorstra (GtkWidget
*widget
,
331 /* on_button_quit_no_clicked (GtkButton *button, */
332 /* gpointer user_data); */
335 /* on_button_quit_gpiv_yes_clicked (GtkButton *button, */
336 /* gpointer user_data); */
339 /* on_button_message_clicked (GtkButton *button, */
340 /* gpointer user_data); */
343 /* on_button_error_clicked (GtkButton *button, */
344 /* gpointer user_data); */
347 on_button_message_clicked (GtkDialog
*dialog
,
353 on_notebook_switch_page (GtkNotebook
*notebook
,
354 GtkNotebookPage
*page
,
359 #endif /* CONSOLE_H */