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.1 2003-06-17 17:10:52 gerber
39 /* #include "gpiv_gtk.h" */
41 #define THRESHOLD_MAX 16
45 on_widget_leave (GtkContainer
*container
,
46 GtkDirectionType direction
,
49 /*--------------------------------------------------------------------
50 --------------------------------------------------------------------
51 Callback functions for main */
53 void on_clist_buf_rowselect( GtkWidget
*clist
, gint row
, gint column
,
54 GdkEventButton
*event
, gpointer data
);
58 on_clist_buf_drag_data_received (GtkWidget
*widget
,
59 GdkDragContext
*context
,
62 GtkSelectionData
*data
,
66 /*--------------------------------------------------------------------
67 --------------------------------------------------------------------
68 Callback functions for pop-up meus */
70 on_my_popup_handler(GtkWidget
*widget
, GdkEvent
*event
);
73 GtkWidget
* create_window1 (void);
76 /*-- Select sub-menu ----------------------------------*/
78 select_all(gpointer data
,
83 select_none(gpointer data
,
91 on_open_activate(GtkMenuItem
*menuitem
,
95 on_save_activate(GtkMenuItem
*menuitem
,
99 save_all_data(GpivConsole
* gpiv
);
102 on_execute_activate(GtkMenuItem
*menuitem
,
105 on_stop_activate(GtkMenuItem
*menuitem
,
109 on_close_activate(GtkMenuItem
*menuitem
,
113 on_save_as_activate(GtkMenuItem
*menuitem
,
117 file_saveas_ok_sel(GtkWidget
* widget
,
118 GtkFileSelection
* fs
122 on_exit_activate(GtkMenuItem
*menuitem
,
126 on_close_buffer_activate(GtkMenuItem
*menuitem
,
130 on_preferences_activate(GtkWidget
* widget
,
131 /* GtkMenuItem *menuitem, */
135 on_about_activate(GtkMenuItem
*menuitem
,
140 on_manual_activate(GtkMenuItem
*menuitem
,
144 on_button_open_clicked(GtkButton
*button
,
148 on_menubar_activate (GtkWidget
*widget
,
153 on_toolbuttons_activate (GtkWidget
* widget
,
158 on_gpivbuttons_activate (GtkWidget
* widget
,
163 on_tabulator_activate (GtkWidget
* widget
,
168 on_tooltip_activate (GtkWidget
* widget
,
173 on_buffer_set_focus (GtkWindow
*window
,
178 gtk_window_destroy (GtkButton
*button
,
182 on_view_options_clicked (GtkButton
*button
,
186 on_appbar_display_user_response (GnomeAppBar
*gnomeappbar
,
190 on_button_open_enter (GtkContainer
*container
,
191 GtkDirectionType direction
,
194 on_button_save_enter (GtkContainer
*container
,
195 GtkDirectionType direction
,
199 on_button_execute_enter (GtkContainer
*container
,
200 GtkDirectionType direction
,
204 on_button_stop_enter (GtkContainer
*container
,
205 GtkDirectionType direction
,
209 on_button_stop_press (GtkWidget
*widget
,
213 on_button_stop_release (GtkWidget
*widget
,
217 on_button_close_enter (GtkContainer
*container
,
218 GtkDirectionType direction
,
222 on_button_exit_enter (GtkContainer
*container
,
223 GtkDirectionType direction
,
228 * process toolbar callbacks
231 on_toolbar_checkbutton_piv(GtkWidget
*widget
,
235 on_toolbar_checkbutton_gradient(GtkWidget
*widget
,
239 on_toolbar_checkbutton_resstats(GtkWidget
*widget
,
243 on_toolbar_checkbutton_errvec(GtkWidget
* widget
,
247 on_toolbar_checkbutton_peaklck(GtkWidget
*widget
,
251 on_toolbar_checkbutton_scale(GtkWidget
*widget
,
255 on_toolbar_checkbutton_average(GtkWidget
*widget
,
259 on_toolbar_checkbutton_subavg(GtkWidget
*widget
,
263 on_toolbar_checkbutton_vorstra(GtkWidget
* widget
,
268 * Exit, message, error dialog callbacks
271 on_button_quit_no_clicked (GtkButton
*button
,
275 on_button_quit_gpiv_yes_clicked (GtkButton
*button
,
279 on_button_message_clicked (GtkButton
*button
,
283 on_button_error_clicked (GtkButton
*button
,
286 #endif /* CONSOLE_H */