Initial revision
[gpiv.git] / src / console.h
blob8c072a1475f82e0a76660a767c0588ab3647e792
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 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)
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 ----------------------------------------------------------------------*/
29 * General callbacks
30 * $Log: console.h,v $
31 * Revision 1.1 2003-06-17 17:10:52 gerber
32 * Initial revision
36 #ifndef CONSOLE_H
37 #define CONSOLE_H
39 /* #include "gpiv_gtk.h" */
41 #define THRESHOLD_MAX 16
44 void
45 on_widget_leave (GtkContainer *container,
46 GtkDirectionType direction,
47 gpointer user_data);
49 /*--------------------------------------------------------------------
50 --------------------------------------------------------------------
51 Callback functions for main */
53 void on_clist_buf_rowselect( GtkWidget *clist, gint row, gint column,
54 GdkEventButton *event, gpointer data);
57 void
58 on_clist_buf_drag_data_received (GtkWidget *widget,
59 GdkDragContext *context,
60 gint x,
61 gint y,
62 GtkSelectionData *data,
63 guint info,
64 guint time);
66 /*--------------------------------------------------------------------
67 --------------------------------------------------------------------
68 Callback functions for pop-up meus */
69 gint
70 on_my_popup_handler(GtkWidget *widget, GdkEvent *event);
73 GtkWidget* create_window1 (void);
76 /*-- Select sub-menu ----------------------------------*/
77 void
78 select_all(gpointer data,
79 guint action,
80 GtkWidget *widget);
82 void
83 select_none(gpointer data,
84 guint action,
85 GtkWidget *widget);
90 void
91 on_open_activate(GtkMenuItem *menuitem,
92 gpointer user_data);
94 void
95 on_save_activate(GtkMenuItem *menuitem,
96 gpointer user_data);
98 void
99 save_all_data(GpivConsole * gpiv);
101 void
102 on_execute_activate(GtkMenuItem *menuitem,
103 gpointer user_data);
104 void
105 on_stop_activate(GtkMenuItem *menuitem,
106 gpointer user_data);
108 void
109 on_close_activate(GtkMenuItem *menuitem,
110 gpointer user_data);
112 void
113 on_save_as_activate(GtkMenuItem *menuitem,
114 gpointer user_data);
116 void
117 file_saveas_ok_sel(GtkWidget * widget,
118 GtkFileSelection * fs
121 void
122 on_exit_activate(GtkMenuItem *menuitem,
123 gpointer user_data);
125 void
126 on_close_buffer_activate(GtkMenuItem *menuitem,
127 gpointer user_data);
129 void
130 on_preferences_activate(GtkWidget * widget,
131 /* GtkMenuItem *menuitem, */
132 gpointer user_data);
134 void
135 on_about_activate(GtkMenuItem *menuitem,
136 gpointer user_data);
139 void
140 on_manual_activate(GtkMenuItem *menuitem,
141 gpointer user_data);
143 void
144 on_button_open_clicked(GtkButton *button,
145 gpointer user_data);
147 void
148 on_menubar_activate (GtkWidget *widget,
149 gpointer data);
152 void
153 on_toolbuttons_activate (GtkWidget * widget,
154 gpointer data);
157 void
158 on_gpivbuttons_activate (GtkWidget * widget,
159 gpointer data);
162 void
163 on_tabulator_activate (GtkWidget * widget,
164 gpointer data);
167 void
168 on_tooltip_activate (GtkWidget * widget,
169 gpointer data);
172 void
173 on_buffer_set_focus (GtkWindow *window,
174 GtkWidget *widget,
175 gpointer user_data);
177 void
178 gtk_window_destroy (GtkButton *button,
179 gpointer user_data);
181 void
182 on_view_options_clicked (GtkButton *button,
183 gpointer user_data);
185 void
186 on_appbar_display_user_response (GnomeAppBar *gnomeappbar,
187 gpointer user_data);
189 void
190 on_button_open_enter (GtkContainer *container,
191 GtkDirectionType direction,
192 gpointer user_data);
193 void
194 on_button_save_enter (GtkContainer *container,
195 GtkDirectionType direction,
196 gpointer user_data);
198 void
199 on_button_execute_enter (GtkContainer *container,
200 GtkDirectionType direction,
201 gpointer user_data);
203 void
204 on_button_stop_enter (GtkContainer *container,
205 GtkDirectionType direction,
206 gpointer user_data);
208 void
209 on_button_stop_press (GtkWidget *widget,
210 gpointer data);
212 void
213 on_button_stop_release (GtkWidget *widget,
214 gpointer data);
216 void
217 on_button_close_enter (GtkContainer *container,
218 GtkDirectionType direction,
219 gpointer user_data);
221 void
222 on_button_exit_enter (GtkContainer *container,
223 GtkDirectionType direction,
224 gpointer user_data);
228 * process toolbar callbacks
230 void
231 on_toolbar_checkbutton_piv(GtkWidget *widget,
232 gpointer data);
234 void
235 on_toolbar_checkbutton_gradient(GtkWidget *widget,
236 gpointer data);
238 void
239 on_toolbar_checkbutton_resstats(GtkWidget *widget,
240 gpointer data);
242 void
243 on_toolbar_checkbutton_errvec(GtkWidget * widget,
244 gpointer data);
246 void
247 on_toolbar_checkbutton_peaklck(GtkWidget *widget,
248 gpointer data);
250 void
251 on_toolbar_checkbutton_scale(GtkWidget *widget,
252 gpointer data);
254 void
255 on_toolbar_checkbutton_average(GtkWidget *widget,
256 gpointer data);
258 void
259 on_toolbar_checkbutton_subavg(GtkWidget *widget,
260 gpointer data);
262 void
263 on_toolbar_checkbutton_vorstra(GtkWidget * widget,
264 gpointer data);
268 * Exit, message, error dialog callbacks
270 void
271 on_button_quit_no_clicked (GtkButton *button,
272 gpointer user_data);
274 void
275 on_button_quit_gpiv_yes_clicked (GtkButton *button,
276 gpointer user_data);
278 void
279 on_button_message_clicked (GtkButton *button,
280 gpointer user_data);
282 void
283 on_button_error_clicked (GtkButton *button,
284 gpointer user_data);
286 #endif /* CONSOLE_H */