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
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)
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 * Image header window/tabulator callbacks
31 * Revision 1.1 2003-06-17 17:10:52 gerber
41 on_entry_imgh_project(GtkSpinButton
*widget
,
44 Imgheader
* imgh
= gtk_object_get_data(GTK_OBJECT(widget
), "imgh");
45 /* GpivConsole *gpiv = gtk_object_get_data(GTK_OBJECT(widget), "gpiv"); */
46 snprintf(image_par
.project
, MAX_CHARS
,"%s",
47 gtk_entry_get_text(GTK_ENTRY(imgh
->entry_project
)));
48 image_par
.project_logic
= 1;
50 if (display_act
!= NULL
) {
51 snprintf(display_act
->img
.image_par
.project
, MAX_CHARS
,"%s",
53 display_act
->img
.image_par
.project_logic
= 1;
59 on_entry_imgh_crdate(GtkSpinButton
*widget
,
62 Imgheader
* imgh
= gtk_object_get_data(GTK_OBJECT(widget
), "imgh");
63 /* GpivConsole *gpiv = gtk_object_get_data(GTK_OBJECT(widget), "gpiv"); */
64 snprintf(image_par
.creation_date
, MAX_CHARS
,"%s",
65 gtk_entry_get_text(GTK_ENTRY(imgh
->entry_crdate
)));
66 image_par
.creation_date_logic
= 1;
68 if (display_act
!= NULL
) {
69 snprintf(display_act
->img
.image_par
.creation_date
, MAX_CHARS
,"%s",
70 image_par
.creation_date
);
71 display_act
->img
.image_par
.creation_date_logic
= 1;
77 on_entry_imgh_location(GtkSpinButton
*widget
,
80 Imgheader
* imgh
= gtk_object_get_data(GTK_OBJECT(widget
), "imgh");
81 /* GpivConsole *gpiv = gtk_object_get_data(GTK_OBJECT(widget), "gpiv"); */
82 snprintf(image_par
.location
, MAX_CHARS
,"%s",
83 gtk_entry_get_text(GTK_ENTRY(imgh
->entry_location
)));
84 image_par
.location_logic
= 1;
86 if (display_act
!= NULL
) {
87 snprintf(display_act
->img
.image_par
.location
, MAX_CHARS
,"%s",
89 display_act
->img
.image_par
.location_logic
= 1;
95 on_entry_imgh_comment(GtkSpinButton
*widget
,
98 Imgheader
* imgh
= gtk_object_get_data(GTK_OBJECT(widget
), "imgh");
99 /* GpivConsole *gpiv = gtk_object_get_data(GTK_OBJECT(widget), "gpiv"); */
100 snprintf(image_par
.comment
, MAX_CHARS
,"%s",
101 gtk_entry_get_text(GTK_ENTRY(imgh
->entry_comment
)));
102 image_par
.comment_logic
= 1;
104 if (display_act
!= NULL
) {
105 snprintf(display_act
->img
.image_par
.comment
, MAX_CHARS
,"%s",
107 display_act
->img
.image_par
.comment_logic
= 1;