improved monitoring of interrogation process
[gpiv.git] / src / piveval_interface.c
blobcfc6402128cd1b132061b4633dfa3605eb4623f1
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
6 libraries.
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)
15 any later version.
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 * PIV evaluation interface
30 * $Log: piveval_interface.c,v $
31 * Revision 1.4 2003-09-01 11:17:15 gerber
32 * improved monitoring of interrogation process
34 * Revision 1.3 2003/08/22 15:24:52 gerber
35 * interactive spatial scaling
37 * Revision 1.2 2003/07/25 15:40:24 gerber
38 * removed/disabled setting of correlation in Eval tab, Correlation type in Image info tab
40 * Revision 1.1.1.1 2003/06/17 17:10:52 gerber
41 * Imported gpiv
45 #ifdef HAVE_CONFIG_H
46 # include <config.h>
47 #endif
49 #include "gpiv_gtk.h"
50 #include "utils.h"
51 #include "piveval_interface.h"
52 #include "piveval.h"
56 PivEval *
57 create_piveval (GtkWidget *main_window,
58 GtkWidget *container)
60 GpivConsole * gpiv = gtk_object_get_data(GTK_OBJECT(main_window), "gpiv");
61 PivEval * eval = g_new0(PivEval, 1);
63 eval->mon.pi_da.nx = 1;
64 eval->mon.pi_da.ny = 1;
65 gpiv_alloc_pivdata(&eval->mon.pi_da);
67 eval->mon.int_size_old = 0;
68 eval->mon.affine[0] = gpiv_var.piv_disproc_zoom;
69 eval->mon.affine[1] = 0.0;
70 eval->mon.affine[2] = 0.0;
71 eval->mon.affine[3] = gpiv_var.piv_disproc_zoom;
72 eval->mon.affine[4] = 0.0;
73 eval->mon.affine[5] = 0.0;
75 eval->mon.int_size_old = 0;
76 eval->mon.affine_vl[0] = gpiv_var.piv_disproc_vlength;
77 eval->mon.affine_vl[1] = 0.0;
78 eval->mon.affine_vl[2] = 0.0;
79 eval->mon.affine_vl[3] = gpiv_var.piv_disproc_vlength;
80 eval->mon.affine_vl[4] = 0.0;
81 eval->mon.affine_vl[5] = 0.0;
83 eval->tooltips = gtk_tooltips_new();
86 eval->vbox_label = gtk_vbox_new(FALSE,
87 0);
88 gtk_widget_ref(eval->vbox_label);
89 gtk_object_set_data_full(GTK_OBJECT(main_window),
90 "vbox_label",
91 eval->vbox_label,
92 (GtkDestroyNotify) gtk_widget_unref);
93 gtk_widget_show(eval->vbox_label);
94 gtk_container_add(GTK_CONTAINER(container),
95 eval->vbox_label);
97 eval->label_title = gtk_label_new(_("Piv: image evaluation"));
98 gtk_widget_ref(eval->label_title);
99 gtk_object_set_data_full(GTK_OBJECT(main_window),
100 "label_title",
101 eval->label_title,
102 (GtkDestroyNotify) gtk_widget_unref);
103 gtk_widget_show(eval->label_title);
104 gtk_box_pack_start(GTK_BOX(eval->vbox_label),
105 eval->label_title,
106 FALSE,
107 FALSE,
111 * Scrolled window
113 eval->vbox_scroll = gtk_vbox_new(FALSE,
115 gtk_widget_ref(eval->vbox_scroll);
116 gtk_object_set_data_full(GTK_OBJECT(main_window),
117 "vbox_scroll",
118 eval->vbox_scroll,
119 (GtkDestroyNotify) gtk_widget_unref);
120 gtk_widget_show(eval->vbox_scroll);
121 gtk_box_pack_start(GTK_BOX(eval->vbox_label),
122 eval->vbox_scroll, TRUE,
123 TRUE,
126 eval->scrolledwindow = gtk_scrolled_window_new(NULL,
127 NULL);
128 gtk_widget_ref(eval->scrolledwindow);
129 gtk_object_set_data_full(GTK_OBJECT(main_window),
130 "scrolledwindow",
131 eval->scrolledwindow,
132 (GtkDestroyNotify) gtk_widget_unref);
133 gtk_widget_show(eval->scrolledwindow);
134 gtk_box_pack_start(GTK_BOX(eval->vbox_scroll),
135 eval->scrolledwindow,
136 TRUE,
137 TRUE,
139 gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(eval->scrolledwindow),
140 GTK_POLICY_NEVER,
141 GTK_POLICY_AUTOMATIC);
143 eval->viewport = gtk_viewport_new(NULL,
144 NULL);
145 gtk_widget_ref(eval->viewport);
146 gtk_object_set_data_full(GTK_OBJECT(main_window),
147 "viewport",
148 eval->viewport,
149 (GtkDestroyNotify) gtk_widget_unref);
150 gtk_widget_show(eval->viewport);
151 gtk_container_add(GTK_CONTAINER(eval->scrolledwindow),
152 eval->viewport);
153 gtk_widget_set_usize(GTK_WIDGET(eval->scrolledwindow),
154 410,
155 375);
158 * main table for PIV
160 eval->table = gtk_table_new(2,
162 FALSE);
163 gtk_widget_ref(eval->table);
164 gtk_object_set_data_full(GTK_OBJECT(main_window),
165 "table",
166 eval->table,
167 (GtkDestroyNotify) gtk_widget_unref);
168 gtk_widget_show(eval->table);
169 gtk_container_add(GTK_CONTAINER(eval->viewport),
170 eval->table);
174 * table for entries of first, last and pre-shift columns/rows
176 eval->table_aoi = gtk_table_new(4,
178 FALSE);
179 gtk_widget_ref(eval->table_aoi);
180 gtk_object_set_data_full(GTK_OBJECT(main_window),
181 "table_aoi",
182 eval->table_aoi,
183 (GtkDestroyNotify) gtk_widget_unref);
184 gtk_widget_show(eval->table_aoi);
185 gtk_table_attach(GTK_TABLE(eval->table),
186 eval->table_aoi,
191 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
192 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
198 eval->label_colstart = gtk_label_new(_("first col:"));
199 gtk_widget_ref(eval->label_colstart);
200 gtk_object_set_data_full(GTK_OBJECT(main_window),
201 "label_colstart",
202 eval->label_colstart,
203 (GtkDestroyNotify) gtk_widget_unref);
204 gtk_widget_show(eval->label_colstart);
205 gtk_table_attach(GTK_TABLE(eval->table_aoi),
206 eval->label_colstart,
211 (GtkAttachOptions) (0),
212 (GtkAttachOptions) (0),
218 eval->label_colend = gtk_label_new(_("last col:"));
219 gtk_widget_ref(eval->label_colend);
220 gtk_object_set_data_full(GTK_OBJECT(main_window),
221 "label_colend",
222 eval->label_colend,
223 (GtkDestroyNotify) gtk_widget_unref);
224 gtk_widget_show(eval->label_colend);
225 gtk_table_attach(GTK_TABLE(eval->table_aoi),
226 eval->label_colend,
231 (GtkAttachOptions) (0),
232 (GtkAttachOptions) (0),
238 eval->label_preshiftcol = gtk_label_new(_("pre-shift col:"));
239 gtk_widget_ref(eval->label_preshiftcol);
240 gtk_object_set_data_full(GTK_OBJECT(main_window),
241 "label_preshiftcol",
242 eval->label_preshiftcol,
243 (GtkDestroyNotify) gtk_widget_unref);
244 gtk_widget_show(eval->label_preshiftcol);
245 gtk_table_attach(GTK_TABLE(eval->table_aoi),
246 eval->label_preshiftcol,
251 (GtkAttachOptions) (0),
252 (GtkAttachOptions) (0),
258 eval->label_rowstart = gtk_label_new(_("first row:"));
259 gtk_widget_ref(eval->label_rowstart);
260 gtk_object_set_data_full(GTK_OBJECT(main_window),
261 "label_rowstart",
262 eval->label_rowstart,
263 (GtkDestroyNotify) gtk_widget_unref);
264 gtk_widget_show(eval->label_rowstart);
265 gtk_table_attach(GTK_TABLE(eval->table_aoi),
266 eval->label_rowstart,
271 (GtkAttachOptions) (0),
272 (GtkAttachOptions) (0),
278 eval->label_rowend = gtk_label_new(_("last row:"));
279 gtk_widget_ref(eval->label_rowend);
280 gtk_object_set_data_full(GTK_OBJECT(main_window),
281 "label_rowend",
282 eval->label_rowend,
283 (GtkDestroyNotify) gtk_widget_unref);
284 gtk_widget_show(eval->label_rowend);
285 gtk_table_attach(GTK_TABLE(eval->table_aoi),
286 eval->label_rowend,
291 (GtkAttachOptions) (0),
292 (GtkAttachOptions) (0),
298 eval->label_preshiftrow = gtk_label_new(_("pre-shift row:"));
299 gtk_widget_ref(eval->label_preshiftrow);
300 gtk_object_set_data_full(GTK_OBJECT(main_window),
301 "label_preshiftrow",
302 eval->label_preshiftrow,
303 (GtkDestroyNotify) gtk_widget_unref);
304 gtk_widget_show(eval->label_preshiftrow);
305 gtk_table_attach(GTK_TABLE(eval->table_aoi),
306 eval->label_preshiftrow,
311 (GtkAttachOptions) (0),
312 (GtkAttachOptions) (0),
318 * spinner for colstart
320 eval->spinbutton_adj_colstart =
321 gtk_adjustment_new(piv_eval_par.col_start,
323 gpiv_par.img_width - 1,
325 10,
326 10);
327 eval->spinbutton_colstart =
328 gtk_spin_button_new(GTK_ADJUSTMENT(eval->spinbutton_adj_colstart),
331 gtk_widget_ref(eval->spinbutton_colstart);
332 gtk_object_set_data_full(GTK_OBJECT(main_window),
333 "spinbutton_colstart",
334 eval->spinbutton_colstart,
335 (GtkDestroyNotify) gtk_widget_unref);
336 gtk_widget_show(eval->spinbutton_colstart);
337 gtk_table_attach(GTK_TABLE(eval->table_aoi),
338 eval->spinbutton_colstart,
343 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
344 (GtkAttachOptions) (0),
347 gtk_spin_button_set_numeric(GTK_SPIN_BUTTON(eval->spinbutton_colstart),
348 TRUE);
350 gtk_object_set_data(GTK_OBJECT(eval->spinbutton_colstart),
351 "eval",
352 eval);
353 gtk_object_set_data(GTK_OBJECT(eval->spinbutton_colstart),
354 "var_type",
355 "0");
356 /* gtk_signal_connect (GTK_OBJECT (eval->spinbutton_colstart),
357 "activate",
358 on_eval->spinbutton_colstart_activate,
359 eval->spinbutton_colstart);
361 gtk_signal_connect(GTK_OBJECT(eval->spinbutton_colstart),
362 "changed",
363 on_spinbutton_piv_int,
364 eval->spinbutton_colstart);
367 * spinner for colend
369 eval->spinbutton_adj_colend =
370 gtk_adjustment_new(piv_eval_par.col_end,
372 gpiv_par.img_width - 1,
375 10);
376 eval->spinbutton_colend =
377 gtk_spin_button_new(GTK_ADJUSTMENT(eval->spinbutton_adj_colend),
380 gtk_widget_ref(eval->spinbutton_colend);
381 gtk_object_set_data_full(GTK_OBJECT(main_window),
382 "spinbutton_colend",
383 eval->spinbutton_colend,
384 (GtkDestroyNotify) gtk_widget_unref);
385 gtk_widget_show(eval->spinbutton_colend);
386 gtk_table_attach(GTK_TABLE(eval->table_aoi),
387 eval->spinbutton_colend,
392 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
393 (GtkAttachOptions) (0),
396 gtk_spin_button_set_numeric(GTK_SPIN_BUTTON(eval->spinbutton_colend),
397 TRUE);
399 gtk_object_set_data(GTK_OBJECT(eval->spinbutton_colend),
400 "eval",
401 eval);
402 gtk_object_set_data(GTK_OBJECT(eval->spinbutton_colend),
403 "var_type",
404 "1");
405 gtk_signal_connect(GTK_OBJECT(eval->spinbutton_colend),
406 "changed",
407 on_spinbutton_piv_int,
408 eval->spinbutton_colend);
412 * spinner for preshiftcol
414 eval->spinbutton_adj_preshiftcol =
415 gtk_adjustment_new(piv_eval_par.pre_shift_col,
416 -(gpiv_par.img_width - 1),
417 gpiv_par.img_width - 1,
419 10,
420 10);
421 eval->spinbutton_preshiftcol =
422 gtk_spin_button_new(GTK_ADJUSTMENT(eval->spinbutton_adj_preshiftcol),
425 gtk_widget_ref(eval->spinbutton_preshiftcol);
426 gtk_object_set_data_full(GTK_OBJECT(main_window),
427 "spinbutton_preshiftcol",
428 eval->spinbutton_preshiftcol,
429 (GtkDestroyNotify) gtk_widget_unref);
430 gtk_widget_show(eval->spinbutton_preshiftcol);
431 gtk_table_attach(GTK_TABLE(eval->table_aoi),
432 eval->spinbutton_preshiftcol,
437 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
438 (GtkAttachOptions) (0),
441 gtk_spin_button_set_numeric(GTK_SPIN_BUTTON
442 (eval->spinbutton_preshiftcol),
443 TRUE);
445 gtk_object_set_data(GTK_OBJECT(eval->spinbutton_preshiftcol),
446 "eval",
447 eval);
448 gtk_object_set_data(GTK_OBJECT(eval->spinbutton_preshiftcol),
449 "var_type",
450 "2");
451 gtk_signal_connect(GTK_OBJECT(eval->spinbutton_preshiftcol),
452 "changed",
453 on_spinbutton_piv_int,
454 eval->spinbutton_preshiftcol);
458 * spinner for rowstart
460 eval->spinbutton_adj_rowstart =
461 gtk_adjustment_new(piv_eval_par.row_start,
463 gpiv_par.img_height - 1,
465 10,
466 10);
467 eval->spinbutton_rowstart =
468 gtk_spin_button_new(GTK_ADJUSTMENT(eval->spinbutton_adj_rowstart),
471 gtk_widget_ref(eval->spinbutton_rowstart);
472 gtk_object_set_data_full(GTK_OBJECT(main_window),
473 "spinbutton_rowstart",
474 eval->spinbutton_rowstart,
475 (GtkDestroyNotify) gtk_widget_unref);
476 gtk_widget_show(eval->spinbutton_rowstart);
477 gtk_table_attach(GTK_TABLE(eval->table_aoi),
478 eval->spinbutton_rowstart,
483 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
484 (GtkAttachOptions) (0),
487 gtk_spin_button_set_numeric(GTK_SPIN_BUTTON(eval->spinbutton_rowstart),
488 TRUE);
490 gtk_object_set_data(GTK_OBJECT(eval->spinbutton_rowstart),
491 "eval",
492 eval);
493 gtk_object_set_data(GTK_OBJECT(eval->spinbutton_rowstart),
494 "var_type",
495 "3");
496 gtk_signal_connect(GTK_OBJECT(eval->spinbutton_rowstart),
497 "changed",
498 on_spinbutton_piv_int,
499 eval->spinbutton_rowstart);
503 * spinner for rowend
505 eval->spinbutton_adj_rowend =
506 gtk_adjustment_new(piv_eval_par.row_end,
508 gpiv_par.img_height - 1,
510 10,
511 10);
512 eval->spinbutton_rowend =
513 gtk_spin_button_new(GTK_ADJUSTMENT(eval->spinbutton_adj_rowend),
516 gtk_widget_ref(eval->spinbutton_rowend);
517 gtk_object_set_data_full(GTK_OBJECT(main_window),
518 "spinbutton_rowend",
519 eval->spinbutton_rowend,
520 (GtkDestroyNotify) gtk_widget_unref);
521 gtk_widget_show(eval->spinbutton_rowend);
522 gtk_table_attach(GTK_TABLE(eval->table_aoi),
523 eval->spinbutton_rowend,
528 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
529 (GtkAttachOptions) (0),
533 gtk_object_set_data(GTK_OBJECT(eval->spinbutton_rowend),
534 "eval",
535 eval);
536 gtk_object_set_data(GTK_OBJECT(eval->spinbutton_rowend),
537 "var_type",
538 "4");
539 gtk_signal_connect(GTK_OBJECT(eval->spinbutton_rowend),
540 "changed",
541 on_spinbutton_piv_int,
542 eval->spinbutton_rowend);
546 * spinner for preshiftrow
548 eval->spinbutton_adj_preshiftrow =
549 gtk_adjustment_new(piv_eval_par.pre_shift_row,
550 -(gpiv_par.img_height - 1),
551 gpiv_par.img_height - 1,
553 10,
554 10);
555 eval->spinbutton_preshiftrow =
556 gtk_spin_button_new(GTK_ADJUSTMENT(eval->spinbutton_adj_preshiftrow),
559 gtk_widget_ref(eval->spinbutton_preshiftrow);
560 gtk_object_set_data_full(GTK_OBJECT(main_window),
561 "spinbutton_preshiftrow",
562 eval->spinbutton_preshiftrow,
563 (GtkDestroyNotify) gtk_widget_unref);
564 gtk_widget_show(eval->spinbutton_preshiftrow);
565 gtk_table_attach(GTK_TABLE(eval->table_aoi),
566 eval->spinbutton_preshiftrow,
571 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
572 (GtkAttachOptions) (0),
576 gtk_object_set_data(GTK_OBJECT(eval->spinbutton_preshiftrow),
577 "eval",
578 eval);
579 gtk_object_set_data(GTK_OBJECT(eval->spinbutton_preshiftrow),
580 "var_type",
581 "5");
582 gtk_signal_connect(GTK_OBJECT(eval->spinbutton_preshiftrow),
583 "changed",
584 on_spinbutton_piv_int,
585 eval->spinbutton_preshiftrow);
589 * radio buttons and spinners for interrogation size 1
592 eval->hbox_intreg = gtk_hbox_new(FALSE, 0);
593 gtk_widget_ref(eval->hbox_intreg);
594 gtk_object_set_data_full(GTK_OBJECT(main_window),
595 "hbox_intreg",
596 eval->hbox_intreg,
597 (GtkDestroyNotify) gtk_widget_unref);
598 gtk_widget_show(eval->hbox_intreg);
599 gtk_table_attach(GTK_TABLE(eval->table), eval->hbox_intreg,
604 (GtkAttachOptions) (GTK_FILL),
605 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
607 eval->frame_2 = gtk_frame_new(_("Int Size 1"));
608 gtk_widget_ref(eval->frame_2);
609 gtk_object_set_data_full(GTK_OBJECT(main_window),
610 "frame_2",
611 eval->frame_2,
612 (GtkDestroyNotify) gtk_widget_unref);
613 gtk_widget_show(eval->frame_2);
614 gtk_box_pack_start(GTK_BOX(eval->hbox_intreg),
615 eval->frame_2,
616 TRUE,
617 TRUE,
620 eval->vbox_intsize1 = gtk_vbox_new(FALSE, 0);
621 gtk_widget_ref(eval->vbox_intsize1);
622 gtk_object_set_data_full(GTK_OBJECT(main_window),
623 "vbox_intsize1",
624 eval->vbox_intsize1,
625 (GtkDestroyNotify) gtk_widget_unref);
626 gtk_widget_show(eval->vbox_intsize1);
627 gtk_container_add(GTK_CONTAINER(eval->frame_2),
628 eval->vbox_intsize1);
632 * spinner for interrogation size 1
634 eval->spinbutton_adj_intsize1 =
635 gtk_adjustment_new(piv_eval_par.int_size_1,
636 MIN_INTERR_SIZE,
637 MAX_INTERR_SIZE,
639 10,
640 10);
641 eval->spinbutton_intsize1 =
642 gtk_spin_button_new(GTK_ADJUSTMENT(eval->spinbutton_adj_intsize1),
645 gtk_widget_ref(eval->spinbutton_intsize1);
646 gtk_object_set_data_full(GTK_OBJECT(main_window),
647 "spinbutton_intsize1",
648 eval->spinbutton_intsize1,
649 (GtkDestroyNotify) gtk_widget_unref);
650 gtk_widget_show(eval->spinbutton_intsize1);
651 gtk_box_pack_start(GTK_BOX(eval->vbox_intsize1),
652 eval->spinbutton_intsize1,
653 FALSE, FALSE, 0);
655 gtk_object_set_data(GTK_OBJECT(eval->spinbutton_intsize1),
656 "eval",
657 eval);
658 gtk_object_set_data(GTK_OBJECT(eval->spinbutton_intsize1),
659 "var_type",
660 "6");
661 gtk_signal_connect(GTK_OBJECT(eval->spinbutton_intsize1),
662 "changed",
663 on_spinbutton_piv_int,
664 eval->spinbutton_intsize1);
669 * radio buttons for interrogation size 1
672 /* eval->radiobutton_intsize1_1 = */
673 /* gtk_radio_button_new_with_label(eval->int_size_1_group, _("8")); */
674 /* eval->int_size_1_group = */
675 /* gtk_radio_button_group(GTK_RADIO_BUTTON */
676 /* (eval->radiobutton_intsize1_1)); */
677 /* gtk_widget_ref(eval->radiobutton_intsize1_1); */
678 /* gtk_object_set_data_full(GTK_OBJECT(main_window), */
679 /* "radiobutton_intsize1_1", */
680 /* eval->radiobutton_intsize1_1, */
681 /* (GtkDestroyNotify) gtk_widget_unref); */
682 /* gtk_widget_show(eval->radiobutton_intsize1_1); */
683 /* gtk_box_pack_start(GTK_BOX(eval->vbox_intsize1), */
684 /* eval->radiobutton_intsize1_1, FALSE, FALSE, 0); */
686 /* gtk_object_set_data(GTK_OBJECT(eval->radiobutton_intsize1_1), "intsize1", */
687 /* "8"); */
688 /* gtk_object_set_data(GTK_OBJECT(eval->radiobutton_intsize1_1), "var_type", */
689 /* "0"); */
690 /* gtk_signal_connect(GTK_OBJECT(eval->radiobutton_intsize1_1), "toggled", */
691 /* GTK_SIGNAL_FUNC(on_eval->radiobutton_int), NULL); */
694 eval->radiobutton_intsize1_2 =
695 gtk_radio_button_new_with_label(eval->int_size_1_group,
696 _("16"));
697 eval->int_size_1_group =
698 gtk_radio_button_group(GTK_RADIO_BUTTON
699 (eval->radiobutton_intsize1_2));
700 gtk_widget_ref(eval->radiobutton_intsize1_2);
701 gtk_object_set_data_full(GTK_OBJECT(main_window),
702 "radiobutton_intsize1_2",
703 eval->radiobutton_intsize1_2,
704 (GtkDestroyNotify) gtk_widget_unref);
705 gtk_widget_show(eval->radiobutton_intsize1_2);
706 gtk_box_pack_start(GTK_BOX(eval->vbox_intsize1),
707 eval->radiobutton_intsize1_2,
708 FALSE,
709 FALSE,
712 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_intsize1_2),
713 "eval",
714 eval);
715 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_intsize1_2),
716 "intsize1",
717 "16");
718 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_intsize1_2),
719 "var_type",
720 "0");
721 gtk_signal_connect(GTK_OBJECT(eval->radiobutton_intsize1_2),
722 "toggled",
723 GTK_SIGNAL_FUNC(on_radiobutton_piv_int),
724 NULL);
728 eval->radiobutton_intsize1_3 =
729 gtk_radio_button_new_with_label(eval->int_size_1_group,
730 _("32"));
731 eval->int_size_1_group =
732 gtk_radio_button_group(GTK_RADIO_BUTTON
733 (eval->radiobutton_intsize1_3));
734 gtk_widget_ref(eval->radiobutton_intsize1_3);
735 gtk_object_set_data_full(GTK_OBJECT(main_window),
736 "radiobutton_intsize1_3",
737 eval->radiobutton_intsize1_3,
738 (GtkDestroyNotify) gtk_widget_unref);
739 gtk_widget_show(eval->radiobutton_intsize1_3);
740 gtk_box_pack_start(GTK_BOX(eval->vbox_intsize1),
741 eval->radiobutton_intsize1_3,
742 FALSE,
743 FALSE,
746 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_intsize1_3),
747 "eval",
748 eval);
749 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_intsize1_3),
750 "intsize1",
751 "32");
752 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_intsize1_3),
753 "var_type",
754 "0");
755 gtk_signal_connect(GTK_OBJECT(eval->radiobutton_intsize1_3),
756 "toggled",
757 GTK_SIGNAL_FUNC(on_radiobutton_piv_int),
758 NULL);
762 eval->radiobutton_intsize1_4 =
763 gtk_radio_button_new_with_label(eval->int_size_1_group,
764 _("64"));
765 eval->int_size_1_group =
766 gtk_radio_button_group(GTK_RADIO_BUTTON
767 (eval->radiobutton_intsize1_4));
768 gtk_widget_ref(eval->radiobutton_intsize1_4);
769 gtk_object_set_data_full(GTK_OBJECT(main_window),
770 "radiobutton_intsize1_4",
771 eval->radiobutton_intsize1_4,
772 (GtkDestroyNotify) gtk_widget_unref);
773 gtk_widget_show(eval->radiobutton_intsize1_4);
774 gtk_box_pack_start(GTK_BOX(eval->vbox_intsize1),
775 eval->radiobutton_intsize1_4,
776 FALSE,
777 FALSE,
780 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_intsize1_4),
781 "eval",
782 eval);
783 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_intsize1_4),
784 "intsize1",
785 "64");
786 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_intsize1_4),
787 "var_type",
788 "0");
789 gtk_signal_connect(GTK_OBJECT(eval->radiobutton_intsize1_4),
790 "toggled",
791 GTK_SIGNAL_FUNC(on_radiobutton_piv_int),
792 NULL);
796 eval->radiobutton_intsize1_5 =
797 gtk_radio_button_new_with_label(eval->int_size_1_group,
798 _("128"));
799 eval->int_size_1_group =
800 gtk_radio_button_group(GTK_RADIO_BUTTON
801 (eval->radiobutton_intsize1_5));
802 gtk_widget_ref(eval->radiobutton_intsize1_5);
803 gtk_object_set_data_full(GTK_OBJECT(main_window),
804 "radiobutton_intsize1_5",
805 eval->radiobutton_intsize1_5,
806 (GtkDestroyNotify) gtk_widget_unref);
807 gtk_widget_show(eval->radiobutton_intsize1_5);
808 gtk_box_pack_start(GTK_BOX(eval->vbox_intsize1),
809 eval->radiobutton_intsize1_5,
810 FALSE,
811 FALSE,
814 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_intsize1_5),
815 "eval",
816 eval);
817 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_intsize1_5),
818 "intsize1",
819 "128");
820 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_intsize1_5),
821 "var_type",
822 "0");
823 gtk_signal_connect(GTK_OBJECT(eval->radiobutton_intsize1_5),
824 "toggled",
825 GTK_SIGNAL_FUNC(on_radiobutton_piv_int),
826 NULL);
830 * radio buttons for interrogation size 2
833 eval->frame_3 = gtk_frame_new(_("Int Size 2"));
834 gtk_widget_ref(eval->frame_3);
835 gtk_object_set_data_full(GTK_OBJECT(main_window),
836 "frame_3",
837 eval->frame_3,
838 (GtkDestroyNotify) gtk_widget_unref);
839 gtk_widget_show(eval->frame_3);
840 gtk_box_pack_start(GTK_BOX(eval->hbox_intreg),
841 eval->frame_3,
842 TRUE,
843 TRUE,
847 eval->vbox_intsize2 = gtk_vbox_new(FALSE,
849 gtk_widget_ref(eval->vbox_intsize2);
850 gtk_object_set_data_full(GTK_OBJECT(main_window),
851 "vbox_intsize2",
852 eval->vbox_intsize2,
853 (GtkDestroyNotify) gtk_widget_unref);
854 gtk_widget_show(eval->vbox_intsize2);
855 gtk_container_add(GTK_CONTAINER(eval->frame_3),
856 eval->vbox_intsize2);
860 * spinner for interrogation size 2
862 eval->spinbutton_adj_intsize2 =
863 gtk_adjustment_new(piv_eval_par.int_size_2,
864 MIN_INTERR_SIZE,
865 MAX_INTERR_SIZE,
868 10);
869 eval->spinbutton_intsize2 =
870 gtk_spin_button_new(GTK_ADJUSTMENT(eval->spinbutton_adj_intsize2),
873 gtk_widget_ref(eval->spinbutton_intsize2);
874 gtk_object_set_data_full(GTK_OBJECT(main_window),
875 "spinbutton_intsize2",
876 eval->spinbutton_intsize2,
877 (GtkDestroyNotify) gtk_widget_unref);
878 gtk_widget_show(eval->spinbutton_intsize2);
879 gtk_box_pack_start(GTK_BOX(eval->vbox_intsize2),
880 eval->spinbutton_intsize2,
881 FALSE,
882 FALSE,
885 gtk_object_set_data(GTK_OBJECT(eval->spinbutton_intsize2),
886 "eval",
887 eval);
888 gtk_object_set_data(GTK_OBJECT(eval->spinbutton_intsize2),
889 "var_type",
890 "7");
891 gtk_signal_connect(GTK_OBJECT(eval->spinbutton_intsize2),
892 "changed",
893 on_spinbutton_piv_int,
894 eval->spinbutton_intsize2);
899 /* eval->radiobutton_intsize2_1 = */
900 /* gtk_radio_button_new_with_label(eval->int_size_2_group, _("8")); */
901 /* eval->int_size_2_group = */
902 /* gtk_radio_button_group(GTK_RADIO_BUTTON */
903 /* (eval->radiobutton_intsize2_1)); */
904 /* gtk_widget_ref(eval->radiobutton_intsize2_1); */
905 /* gtk_object_set_data_full(GTK_OBJECT(main_window), */
906 /* "radiobutton_intsize2_1", */
907 /* eval->radiobutton_intsize2_1, */
908 /* (GtkDestroyNotify) gtk_widget_unref); */
909 /* gtk_widget_show(eval->radiobutton_intsize2_1); */
910 /* gtk_box_pack_start(GTK_BOX(eval->vbox_intsize2), */
911 /* eval->radiobutton_intsize2_1, FALSE, FALSE, 0); */
913 /* gtk_object_set_data(GTK_OBJECT(eval->radiobutton_intsize2_1),
914 "eval", eval); */
915 /* gtk_object_set_data(GTK_OBJECT(eval->radiobutton_intsize2_1), "intsize2", */
916 /* "8"); */
917 /* gtk_object_set_data(GTK_OBJECT(eval->radiobutton_intsize2_1), "var_type", */
918 /* "1"); */
919 /* gtk_signal_connect(GTK_OBJECT(eval->radiobutton_intsize2_1), "toggled", */
920 /* GTK_SIGNAL_FUNC(on_radiobutton_piv_int), NULL); */
923 eval->radiobutton_intsize2_2 =
924 gtk_radio_button_new_with_label(eval->int_size_2_group,
925 _("16"));
926 eval->int_size_2_group =
927 gtk_radio_button_group(GTK_RADIO_BUTTON
928 (eval->radiobutton_intsize2_2));
929 gtk_widget_ref(eval->radiobutton_intsize2_2);
930 gtk_object_set_data_full(GTK_OBJECT(main_window),
931 "radiobutton_intsize2_2",
932 eval->radiobutton_intsize2_2,
933 (GtkDestroyNotify) gtk_widget_unref);
934 gtk_widget_show(eval->radiobutton_intsize2_2);
935 gtk_box_pack_start(GTK_BOX(eval->vbox_intsize2),
936 eval->radiobutton_intsize2_2,
937 FALSE,
938 FALSE,
941 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_intsize2_2),
942 "eval",
943 eval);
944 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_intsize2_2),
945 "intsize2",
946 "16");
947 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_intsize2_2),
948 "var_type",
949 "1");
950 gtk_signal_connect(GTK_OBJECT(eval->radiobutton_intsize2_2),
951 "toggled",
952 GTK_SIGNAL_FUNC(on_radiobutton_piv_int),
953 NULL);
957 eval->radiobutton_intsize2_3 =
958 gtk_radio_button_new_with_label(eval->int_size_2_group,
959 _("32"));
960 eval->int_size_2_group =
961 gtk_radio_button_group(GTK_RADIO_BUTTON
962 (eval->radiobutton_intsize2_3));
963 gtk_widget_ref(eval->radiobutton_intsize2_3);
964 gtk_object_set_data_full(GTK_OBJECT(main_window),
965 "radiobutton_intsize2_3",
966 eval->radiobutton_intsize2_3,
967 (GtkDestroyNotify) gtk_widget_unref);
968 gtk_widget_show(eval->radiobutton_intsize2_3);
969 gtk_box_pack_start(GTK_BOX(eval->vbox_intsize2),
970 eval->radiobutton_intsize2_3,
971 FALSE,
972 FALSE,
975 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_intsize2_3),
976 "eval",
977 eval);
978 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_intsize2_3),
979 "intsize2",
980 "32");
981 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_intsize2_3),
982 "var_type",
983 "1");
984 gtk_signal_connect(GTK_OBJECT(eval->radiobutton_intsize2_3),
985 "toggled",
986 GTK_SIGNAL_FUNC(on_radiobutton_piv_int),
987 NULL);
991 eval->radiobutton_intsize2_4 =
992 gtk_radio_button_new_with_label(eval->int_size_2_group,
993 _("64"));
994 eval->int_size_2_group =
995 gtk_radio_button_group(GTK_RADIO_BUTTON
996 (eval->radiobutton_intsize2_4));
997 gtk_widget_ref(eval->radiobutton_intsize2_4);
998 gtk_object_set_data_full(GTK_OBJECT(main_window),
999 "radiobutton_intsize2_4",
1000 eval->radiobutton_intsize2_4,
1001 (GtkDestroyNotify) gtk_widget_unref);
1002 gtk_widget_show(eval->radiobutton_intsize2_4);
1003 gtk_box_pack_start(GTK_BOX(eval->vbox_intsize2),
1004 eval->radiobutton_intsize2_4,
1005 FALSE,
1006 FALSE,
1009 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_intsize2_4),
1010 "eval", eval);
1011 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_intsize2_4),
1012 "intsize2",
1013 "64");
1014 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_intsize2_4),
1015 "var_type",
1016 "1");
1017 gtk_signal_connect(GTK_OBJECT(eval->radiobutton_intsize2_4),
1018 "toggled",
1019 GTK_SIGNAL_FUNC(on_radiobutton_piv_int),
1020 NULL);
1024 eval->radiobutton_intsize2_5 =
1025 gtk_radio_button_new_with_label(eval->int_size_2_group,
1026 _("128"));
1027 eval->int_size_2_group =
1028 gtk_radio_button_group(GTK_RADIO_BUTTON
1029 (eval->radiobutton_intsize2_5));
1030 gtk_widget_ref(eval->radiobutton_intsize2_5);
1031 gtk_object_set_data_full(GTK_OBJECT(main_window),
1032 "radiobutton_intsize2_5",
1033 eval->radiobutton_intsize2_5,
1034 (GtkDestroyNotify) gtk_widget_unref);
1035 gtk_widget_show(eval->radiobutton_intsize2_5);
1036 gtk_box_pack_start(GTK_BOX(eval->vbox_intsize2),
1037 eval->radiobutton_intsize2_5,
1038 FALSE,
1039 FALSE,
1042 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_intsize2_5),
1043 "eval",
1044 eval);
1045 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_intsize2_5),
1046 "intsize2",
1047 "128");
1048 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_intsize2_5)
1049 , "var_type",
1050 "1");
1051 gtk_signal_connect(GTK_OBJECT(eval->radiobutton_intsize2_5),
1052 "toggled",
1053 GTK_SIGNAL_FUNC(on_radiobutton_piv_int),
1054 NULL);
1058 * radio buttons for shifted distance of interrogation areas
1061 eval->frame_4 = gtk_frame_new(_("Shift"));
1062 gtk_widget_ref(eval->frame_4);
1063 gtk_object_set_data_full(GTK_OBJECT(main_window),
1064 "frame_4",
1065 eval->frame_4,
1066 (GtkDestroyNotify) gtk_widget_unref);
1067 gtk_widget_show(eval->frame_4);
1068 gtk_box_pack_start(GTK_BOX(eval->hbox_intreg),
1069 eval->frame_4,
1070 TRUE,
1071 TRUE,
1074 eval->vbox_shift = gtk_vbox_new(FALSE,
1076 gtk_widget_ref(eval->vbox_shift);
1077 gtk_object_set_data_full(GTK_OBJECT(main_window),
1078 "vbox_shift",
1079 eval->vbox_shift,
1080 (GtkDestroyNotify) gtk_widget_unref);
1081 gtk_widget_show(eval->vbox_shift);
1082 gtk_container_add(GTK_CONTAINER(eval->frame_4),
1083 eval->vbox_shift);
1087 * spinner for interrogation shift
1089 eval->spinbutton_adj_intshift =
1090 gtk_adjustment_new(piv_eval_par.int_shift,
1092 MAX_INTERR_SIZE,
1095 10);
1096 eval->spinbutton_intshift =
1097 gtk_spin_button_new(GTK_ADJUSTMENT(eval->spinbutton_adj_intshift),
1100 gtk_widget_ref(eval->spinbutton_intshift);
1101 gtk_object_set_data_full(GTK_OBJECT(main_window),
1102 "spinbutton_intshift",
1103 eval->spinbutton_intshift,
1104 (GtkDestroyNotify) gtk_widget_unref);
1105 gtk_widget_show(eval->spinbutton_intshift);
1106 gtk_box_pack_start(GTK_BOX(eval->vbox_shift), eval->spinbutton_intshift,
1107 FALSE,
1108 FALSE,
1111 gtk_object_set_data(GTK_OBJECT(eval->spinbutton_intshift),
1113 "eval", eval);
1114 gtk_object_set_data(GTK_OBJECT(eval->spinbutton_intshift),
1115 "var_type",
1116 "8");
1117 gtk_signal_connect(GTK_OBJECT(eval->spinbutton_intshift),
1118 "changed",
1119 on_spinbutton_piv_int,
1120 eval->spinbutton_intshift);
1124 eval->radiobutton_intshift_1 =
1125 gtk_radio_button_new_with_label(eval->int_shift_group,
1126 _("8"));
1127 eval->int_shift_group =
1128 gtk_radio_button_group(GTK_RADIO_BUTTON
1129 (eval->radiobutton_intshift_1));
1130 gtk_widget_ref(eval->radiobutton_intshift_1);
1131 gtk_object_set_data_full(GTK_OBJECT(main_window),
1133 "radiobutton_intshift_1",
1134 eval->radiobutton_intshift_1,
1135 (GtkDestroyNotify) gtk_widget_unref);
1136 gtk_widget_show(eval->radiobutton_intshift_1);
1137 gtk_box_pack_start(GTK_BOX(eval->vbox_shift),
1138 eval->radiobutton_intshift_1,
1139 FALSE,
1140 FALSE,
1143 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_intshift_1),
1144 "eval",
1145 eval);
1146 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_intshift_1),
1147 "intshift",
1148 "8");
1149 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_intshift_1),
1150 "var_type",
1151 "2");
1152 gtk_signal_connect(GTK_OBJECT(eval->radiobutton_intshift_1),
1153 "toggled",
1154 GTK_SIGNAL_FUNC(on_radiobutton_piv_int),
1155 NULL);
1159 eval->radiobutton_intshift_2 =
1160 gtk_radio_button_new_with_label(eval->int_shift_group,
1161 _("16"));
1162 eval->int_shift_group =
1163 gtk_radio_button_group(GTK_RADIO_BUTTON
1164 (eval->radiobutton_intshift_2));
1165 gtk_widget_ref(eval->radiobutton_intshift_2);
1166 gtk_object_set_data_full(GTK_OBJECT(main_window),
1167 "radiobutton_intshift_2",
1168 eval->radiobutton_intshift_2,
1169 (GtkDestroyNotify) gtk_widget_unref);
1170 gtk_widget_show(eval->radiobutton_intshift_2);
1171 gtk_box_pack_start(GTK_BOX(eval->vbox_shift),
1172 eval->radiobutton_intshift_2,
1173 FALSE,
1174 FALSE,
1177 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_intshift_2),
1178 "eval",
1179 eval);
1180 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_intshift_2),
1181 "intshift",
1182 "16");
1183 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_intshift_2),
1184 "var_type",
1185 "2");
1186 gtk_signal_connect(GTK_OBJECT(eval->radiobutton_intshift_2),
1187 "toggled",
1188 GTK_SIGNAL_FUNC(on_radiobutton_piv_int),
1189 NULL);
1193 eval->radiobutton_intshift_3 =
1194 gtk_radio_button_new_with_label(eval->int_shift_group,
1195 _("32"));
1196 eval->int_shift_group =
1197 gtk_radio_button_group(GTK_RADIO_BUTTON
1198 (eval->radiobutton_intshift_3));
1199 gtk_widget_ref(eval->radiobutton_intshift_3);
1200 gtk_object_set_data_full(GTK_OBJECT(main_window),
1201 "radiobutton_intshift_3",
1202 eval->radiobutton_intshift_3,
1203 (GtkDestroyNotify) gtk_widget_unref);
1204 gtk_widget_show(eval->radiobutton_intshift_3);
1205 gtk_box_pack_start(GTK_BOX(eval->vbox_shift),
1206 eval->radiobutton_intshift_3,
1207 FALSE,
1208 FALSE,
1211 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_intshift_3),
1212 "eval",
1213 eval);
1214 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_intshift_3),
1215 "intshift",
1216 "32");
1217 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_intshift_3),
1218 "var_type",
1219 "2");
1220 gtk_signal_connect(GTK_OBJECT(eval->radiobutton_intshift_3),
1221 "toggled",
1222 GTK_SIGNAL_FUNC(on_radiobutton_piv_int),
1223 NULL);
1227 eval->radiobutton_intshift_4 =
1228 gtk_radio_button_new_with_label(eval->int_shift_group,
1229 _("64"));
1230 eval->int_shift_group =
1231 gtk_radio_button_group(GTK_RADIO_BUTTON
1232 (eval->radiobutton_intshift_4));
1233 gtk_widget_ref(eval->radiobutton_intshift_4);
1234 gtk_object_set_data_full(GTK_OBJECT(main_window),
1235 "radiobutton_intshift_4",
1236 eval->radiobutton_intshift_4,
1237 (GtkDestroyNotify) gtk_widget_unref);
1238 gtk_widget_show(eval->radiobutton_intshift_4);
1239 gtk_box_pack_start(GTK_BOX(eval->vbox_shift),
1240 eval->radiobutton_intshift_4,
1241 FALSE,
1242 FALSE,
1245 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_intshift_4),
1246 "eval",
1247 eval);
1248 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_intshift_4),
1249 "intshift",
1250 "64");
1251 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_intshift_4),
1252 "var_type",
1253 "2");
1254 gtk_signal_connect(GTK_OBJECT(eval->radiobutton_intshift_4),
1255 "toggled",
1256 GTK_SIGNAL_FUNC(on_radiobutton_piv_int),
1257 NULL);
1261 eval->radiobutton_intshift_5 =
1262 gtk_radio_button_new_with_label(eval->int_shift_group,
1263 _("128"));
1264 eval->int_shift_group =
1265 gtk_radio_button_group(GTK_RADIO_BUTTON
1266 (eval->radiobutton_intshift_5));
1267 gtk_widget_ref(eval->radiobutton_intshift_5);
1268 gtk_object_set_data_full(GTK_OBJECT(main_window),
1269 "radiobutton_intshift_5",
1270 eval->radiobutton_intshift_5,
1271 (GtkDestroyNotify) gtk_widget_unref);
1272 gtk_widget_show(eval->radiobutton_intshift_5);
1273 gtk_box_pack_start(GTK_BOX(eval->vbox_shift),
1274 eval->radiobutton_intshift_5,
1275 FALSE,
1276 FALSE,
1279 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_intshift_5),
1280 "eval",
1281 eval);
1282 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_intshift_5),
1283 "intshift",
1284 "128");
1285 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_intshift_5),
1286 "var_type",
1287 "2");
1288 gtk_signal_connect(GTK_OBJECT(eval->radiobutton_intshift_5),
1289 "toggled",
1290 GTK_SIGNAL_FUNC(on_radiobutton_piv_int),
1291 NULL);
1295 * radio button for mouse selecting
1298 eval->frame_1 = gtk_frame_new(_("Mouse select"));
1299 gtk_widget_ref(eval->frame_1);
1300 gtk_object_set_data_full(GTK_OBJECT(main_window),
1301 "frame_1",
1302 eval->frame_1,
1303 (GtkDestroyNotify) gtk_widget_unref);
1304 gtk_widget_show(eval->frame_1);
1305 gtk_table_attach(GTK_TABLE(eval->table),
1306 eval->frame_1,
1311 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
1312 (GtkAttachOptions) (GTK_FILL),
1317 eval->vbox_mouseselect = gtk_vbox_new(FALSE,
1319 gtk_widget_ref(eval->vbox_mouseselect);
1320 gtk_object_set_data_full(GTK_OBJECT(main_window),
1321 "vbox_mouseselect",
1322 eval->vbox_mouseselect,
1323 (GtkDestroyNotify) gtk_widget_unref);
1324 gtk_widget_show(eval->vbox_mouseselect);
1325 gtk_container_add(GTK_CONTAINER(eval->frame_1),
1326 eval->vbox_mouseselect);
1329 eval->radiobutton_mouse_1 =
1330 gtk_radio_button_new_with_label(gpiv->mouse_sel_group,
1331 _("None"));
1332 gpiv->mouse_sel_group =
1333 gtk_radio_button_group(GTK_RADIO_BUTTON(eval->radiobutton_mouse_1));
1334 gtk_widget_ref(eval->radiobutton_mouse_1);
1335 gtk_object_set_data_full(GTK_OBJECT(main_window),
1336 "radiobutton_mouse_1",
1337 eval->radiobutton_mouse_1,
1338 (GtkDestroyNotify) gtk_widget_unref);
1339 gtk_widget_show(eval->radiobutton_mouse_1);
1340 gtk_box_pack_start(GTK_BOX(eval->vbox_mouseselect),
1341 eval->radiobutton_mouse_1,
1342 FALSE,
1343 FALSE,
1346 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_mouse_1),
1347 "eval",
1348 eval);
1349 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_mouse_1),
1350 "mouse_select",
1351 "0" /* NO_MS */);
1352 gtk_signal_connect(GTK_OBJECT(eval->radiobutton_mouse_1),
1353 "enter",
1354 GTK_SIGNAL_FUNC(on_radiobutton_piv_mouse1_enter),
1355 NULL);
1356 gtk_signal_connect(GTK_OBJECT(eval->radiobutton_mouse_1),
1357 "leave",
1358 GTK_SIGNAL_FUNC(on_widget_leave),
1359 NULL);
1360 gtk_signal_connect(GTK_OBJECT(eval->radiobutton_mouse_1),
1361 "toggled",
1362 GTK_SIGNAL_FUNC(on_radiobutton_piv_mouse),
1363 NULL);
1367 eval->radiobutton_mouse_2 =
1368 gtk_radio_button_new_with_label(gpiv->mouse_sel_group,
1369 _("Area"));
1370 gpiv->mouse_sel_group =
1371 gtk_radio_button_group(GTK_RADIO_BUTTON(eval->radiobutton_mouse_2));
1372 gtk_widget_ref(eval->radiobutton_mouse_2);
1373 gtk_object_set_data_full(GTK_OBJECT(main_window),
1374 "radiobutton_mouse_2",
1375 eval->radiobutton_mouse_2,
1376 (GtkDestroyNotify) gtk_widget_unref);
1377 gtk_widget_show(eval->radiobutton_mouse_2);
1378 gtk_box_pack_start(GTK_BOX(eval->vbox_mouseselect),
1379 eval->radiobutton_mouse_2,
1380 FALSE,
1381 FALSE,
1384 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_mouse_2),
1385 "eval",
1386 eval);
1387 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_mouse_2),
1388 "mouse_select",
1389 "1" /* AOI_MS */);
1390 gtk_signal_connect(GTK_OBJECT(eval->radiobutton_mouse_2),
1391 "enter",
1392 GTK_SIGNAL_FUNC(on_radiobutton_piv_mouse2_enter),
1393 NULL);
1394 gtk_signal_connect(GTK_OBJECT(eval->radiobutton_mouse_2),
1395 "leave",
1396 GTK_SIGNAL_FUNC(on_widget_leave),
1397 NULL);
1398 gtk_signal_connect(GTK_OBJECT(eval->radiobutton_mouse_2),
1399 "toggled",
1400 GTK_SIGNAL_FUNC(on_radiobutton_piv_mouse),
1401 NULL);
1405 eval->radiobutton_mouse_3 =
1406 gtk_radio_button_new_with_label(gpiv->mouse_sel_group,
1407 _("Single int."));
1408 gpiv->mouse_sel_group =
1409 gtk_radio_button_group(GTK_RADIO_BUTTON(eval->radiobutton_mouse_3));
1410 gtk_widget_ref(eval->radiobutton_mouse_3);
1411 gtk_object_set_data_full(GTK_OBJECT(main_window),
1412 "radiobutton_mouse_3",
1413 eval->radiobutton_mouse_3,
1414 (GtkDestroyNotify) gtk_widget_unref);
1415 gtk_widget_show(eval->radiobutton_mouse_3);
1416 gtk_box_pack_start(GTK_BOX(eval->vbox_mouseselect),
1417 eval->radiobutton_mouse_3,
1418 FALSE,
1419 FALSE,
1422 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_mouse_3),
1423 "eval",
1424 eval);
1425 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_mouse_3),
1426 "mouse_select",
1427 "2" /* SINGLE_AREA_MS */);
1428 gtk_signal_connect(GTK_OBJECT(eval->radiobutton_mouse_3),
1429 "enter",
1430 GTK_SIGNAL_FUNC(on_radiobutton_piv_mouse3_enter),
1431 NULL);
1432 gtk_signal_connect(GTK_OBJECT(eval->radiobutton_mouse_3),
1433 "leave",
1434 GTK_SIGNAL_FUNC(on_widget_leave),
1435 NULL);
1436 gtk_signal_connect(GTK_OBJECT(eval->radiobutton_mouse_3),
1437 "toggled",
1438 GTK_SIGNAL_FUNC(on_radiobutton_piv_mouse),
1439 NULL);
1443 eval->radiobutton_mouse_4 =
1444 gtk_radio_button_new_with_label(gpiv->mouse_sel_group,
1445 _("Single point"));
1446 gpiv->mouse_sel_group =
1447 gtk_radio_button_group(GTK_RADIO_BUTTON(eval->radiobutton_mouse_4));
1448 gtk_widget_ref(eval->radiobutton_mouse_4);
1449 gtk_object_set_data_full(GTK_OBJECT(main_window),
1450 "radiobutton_mouse_4",
1451 eval->radiobutton_mouse_4,
1452 (GtkDestroyNotify) gtk_widget_unref);
1453 gtk_widget_show(eval->radiobutton_mouse_4);
1454 gtk_box_pack_start(GTK_BOX(eval->vbox_mouseselect),
1455 eval->radiobutton_mouse_4,
1456 FALSE,
1457 FALSE,
1460 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_mouse_4),
1461 "eval",
1462 eval);
1463 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_mouse_4),
1464 "mouse_select",
1465 "3" /* SINGLE_POINT_MS */);
1466 gtk_signal_connect(GTK_OBJECT(eval->radiobutton_mouse_4),
1467 "enter",
1468 GTK_SIGNAL_FUNC(on_radiobutton_piv_mouse4_enter),
1469 NULL);
1470 gtk_signal_connect(GTK_OBJECT(eval->radiobutton_mouse_4),
1471 "leave",
1472 GTK_SIGNAL_FUNC(on_widget_leave),
1473 NULL);
1474 gtk_signal_connect(GTK_OBJECT(eval->radiobutton_mouse_4),
1475 "toggled",
1476 GTK_SIGNAL_FUNC(on_radiobutton_piv_mouse),
1477 NULL);
1481 eval->radiobutton_mouse_5 =
1482 gtk_radio_button_new_with_label(gpiv->mouse_sel_group,
1483 _("Drag int."));
1484 gpiv->mouse_sel_group =
1485 gtk_radio_button_group(GTK_RADIO_BUTTON(eval->radiobutton_mouse_5));
1486 gtk_widget_ref(eval->radiobutton_mouse_5);
1487 gtk_object_set_data_full(GTK_OBJECT(main_window),
1488 "radiobutton_mouse_5",
1489 eval->radiobutton_mouse_5,
1490 (GtkDestroyNotify) gtk_widget_unref);
1491 gtk_widget_show(eval->radiobutton_mouse_5);
1492 gtk_box_pack_start(GTK_BOX(eval->vbox_mouseselect),
1493 eval->radiobutton_mouse_5,
1494 FALSE,
1495 FALSE,
1498 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_mouse_5),
1499 "eval",
1500 eval);
1501 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_mouse_5),
1502 "mouse_select",
1503 "4" /* DRAG_MS */);
1504 gtk_signal_connect(GTK_OBJECT(eval->radiobutton_mouse_5),
1505 "enter",
1506 GTK_SIGNAL_FUNC(on_radiobutton_piv_mouse5_enter),
1507 NULL);
1508 gtk_signal_connect(GTK_OBJECT(eval->radiobutton_mouse_5),
1509 "leave",
1510 GTK_SIGNAL_FUNC(on_widget_leave),
1511 NULL);
1512 gtk_signal_connect(GTK_OBJECT(eval->radiobutton_mouse_5),
1513 "toggled",
1514 GTK_SIGNAL_FUNC(on_radiobutton_piv_mouse),
1515 NULL);
1519 eval->radiobutton_mouse_6 =
1520 gtk_radio_button_new_with_label(gpiv->mouse_sel_group,
1521 _("Vert. Line"));
1522 gpiv->mouse_sel_group =
1523 gtk_radio_button_group(GTK_RADIO_BUTTON(eval->radiobutton_mouse_6));
1524 gtk_widget_ref(eval->radiobutton_mouse_6);
1525 gtk_object_set_data_full(GTK_OBJECT(main_window),
1526 "radiobutton_mouse_6",
1527 eval->radiobutton_mouse_6,
1528 (GtkDestroyNotify) gtk_widget_unref);
1529 gtk_widget_show(eval->radiobutton_mouse_6);
1530 gtk_box_pack_start(GTK_BOX(eval->vbox_mouseselect),
1531 eval->radiobutton_mouse_6,
1532 FALSE,
1533 FALSE,
1536 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_mouse_6),
1537 "eval",
1538 eval);
1539 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_mouse_6),
1540 "mouse_select",
1541 "5" /* V_LINE_MS */);
1542 gtk_signal_connect(GTK_OBJECT(eval->radiobutton_mouse_6),
1543 "enter",
1544 GTK_SIGNAL_FUNC(on_radiobutton_piv_mouse6_enter),
1545 NULL);
1546 gtk_signal_connect(GTK_OBJECT(eval->radiobutton_mouse_6),
1547 "leave",
1548 GTK_SIGNAL_FUNC(on_widget_leave),
1549 NULL);
1550 gtk_signal_connect(GTK_OBJECT(eval->radiobutton_mouse_6),
1551 "toggled",
1552 GTK_SIGNAL_FUNC(on_radiobutton_piv_mouse),
1553 NULL);
1557 eval->radiobutton_mouse_7 =
1558 gtk_radio_button_new_with_label(gpiv->mouse_sel_group,
1559 _("Hor. Line"));
1560 gpiv->mouse_sel_group =
1561 gtk_radio_button_group(GTK_RADIO_BUTTON(eval->radiobutton_mouse_7));
1562 gtk_widget_ref(eval->radiobutton_mouse_7);
1563 gtk_object_set_data_full(GTK_OBJECT(main_window),
1564 "radiobutton_mouse_7",
1565 eval->radiobutton_mouse_7,
1566 (GtkDestroyNotify) gtk_widget_unref);
1567 gtk_widget_show(eval->radiobutton_mouse_7);
1568 gtk_box_pack_start(GTK_BOX(eval->vbox_mouseselect),
1569 eval->radiobutton_mouse_7,
1570 FALSE,
1571 FALSE,
1574 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_mouse_7),
1575 "eval",
1576 eval);
1577 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_mouse_7),
1578 "mouse_select",
1579 "6" /* H_LINE_MS */);
1580 gtk_signal_connect(GTK_OBJECT(eval->radiobutton_mouse_7),
1581 "enter",
1582 GTK_SIGNAL_FUNC(on_radiobutton_piv_mouse7_enter),
1583 NULL);
1584 gtk_signal_connect(GTK_OBJECT(eval->radiobutton_mouse_7),
1585 "leave",
1586 GTK_SIGNAL_FUNC(on_widget_leave),
1587 NULL);
1588 gtk_signal_connect(GTK_OBJECT(eval->radiobutton_mouse_7),
1589 "toggled",
1590 GTK_SIGNAL_FUNC(on_radiobutton_piv_mouse),
1591 NULL);
1595 * radio buttons for sub-pixel interpolation scheme
1598 eval->frame_5 = gtk_frame_new(_("Interpolation scheme"));
1599 gtk_widget_ref(eval->frame_5);
1600 gtk_object_set_data_full(GTK_OBJECT(main_window),
1601 "frame_5",
1602 eval->frame_5,
1603 (GtkDestroyNotify) gtk_widget_unref);
1604 gtk_widget_show(eval->frame_5);
1605 gtk_table_attach(GTK_TABLE(eval->table),
1606 eval->frame_5,
1611 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
1612 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
1617 eval->vbox10 = gtk_vbox_new(FALSE,
1619 gtk_widget_ref(eval->vbox10);
1620 gtk_object_set_data_full(GTK_OBJECT(main_window),
1621 "vbox10",
1622 eval->vbox10,
1623 (GtkDestroyNotify) gtk_widget_unref);
1624 gtk_widget_show(eval->vbox10);
1625 gtk_container_add(GTK_CONTAINER(eval->frame_5),
1626 eval->vbox10);
1629 eval->radiobutton_fit_none =
1630 gtk_radio_button_new_with_label(eval->vbox10_group,
1631 _("None"));
1632 eval->vbox10_group =
1633 gtk_radio_button_group(GTK_RADIO_BUTTON(eval->radiobutton_fit_none));
1634 gtk_widget_ref(eval->radiobutton_fit_none);
1635 gtk_object_set_data_full(GTK_OBJECT(main_window),
1636 "radiobutton_fit_none",
1637 eval->radiobutton_fit_none,
1638 (GtkDestroyNotify) gtk_widget_unref);
1639 gtk_widget_show(eval->radiobutton_fit_none);
1640 gtk_box_pack_start(GTK_BOX(eval->vbox10),
1641 eval->radiobutton_fit_none,
1642 FALSE,
1643 FALSE,
1646 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_fit_none),
1647 "eval",
1648 eval);
1649 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_fit_none),
1650 "ifit",
1651 "0");
1652 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_fit_none),
1653 "var_type",
1654 "0");
1655 gtk_signal_connect(GTK_OBJECT(eval->radiobutton_fit_none),
1656 "toggled",
1657 GTK_SIGNAL_FUNC(on_toggle_piv),
1658 NULL);
1662 eval->radiobutton_fit_gauss =
1663 gtk_radio_button_new_with_label(eval->vbox10_group,
1664 _("Gauss"));
1665 eval->vbox10_group =
1666 gtk_radio_button_group(GTK_RADIO_BUTTON
1667 (eval->radiobutton_fit_gauss));
1668 gtk_widget_ref(eval->radiobutton_fit_gauss);
1669 gtk_object_set_data_full(GTK_OBJECT(main_window),
1670 "radiobutton_fit_gauss",
1671 eval->radiobutton_fit_gauss,
1672 (GtkDestroyNotify) gtk_widget_unref);
1673 gtk_widget_show(eval->radiobutton_fit_gauss);
1674 gtk_box_pack_start(GTK_BOX(eval->vbox10),
1675 eval->radiobutton_fit_gauss,
1676 FALSE,
1677 FALSE,
1680 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_fit_gauss),
1681 "eval",
1682 eval);
1683 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_fit_gauss),
1684 "ifit",
1685 "1");
1686 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_fit_gauss),
1687 "var_type",
1688 "0");
1689 gtk_signal_connect(GTK_OBJECT(eval->radiobutton_fit_gauss),
1690 "toggled",
1691 GTK_SIGNAL_FUNC(on_toggle_piv),
1692 NULL);
1696 eval->radiobutton_fit_power =
1697 gtk_radio_button_new_with_label(eval->vbox10_group,
1698 _("Power"));
1699 eval->vbox10_group =
1700 gtk_radio_button_group(GTK_RADIO_BUTTON
1701 (eval->radiobutton_fit_power));
1702 gtk_widget_ref(eval->radiobutton_fit_power);
1703 gtk_object_set_data_full(GTK_OBJECT(main_window),
1704 "radiobutton_fit_power",
1705 eval->radiobutton_fit_power,
1706 (GtkDestroyNotify) gtk_widget_unref);
1707 gtk_widget_show(eval->radiobutton_fit_power);
1708 gtk_box_pack_start(GTK_BOX(eval->vbox10),
1709 eval->radiobutton_fit_power,
1710 FALSE,
1711 FALSE,
1714 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_fit_power),
1715 "eval",
1716 eval);
1717 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_fit_power),
1718 "ifit",
1719 "2");
1720 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_fit_power),
1721 "var_type",
1722 "0");
1723 gtk_signal_connect(GTK_OBJECT(eval->radiobutton_fit_power),
1724 "toggled",
1725 GTK_SIGNAL_FUNC(on_toggle_piv),
1726 NULL);
1730 eval->radiobutton_fit_gravity =
1731 gtk_radio_button_new_with_label(eval->vbox10_group,
1732 _("Gravity"));
1733 eval->vbox10_group =
1734 gtk_radio_button_group(GTK_RADIO_BUTTON
1735 (eval->radiobutton_fit_gravity));
1736 gtk_widget_ref(eval->radiobutton_fit_gravity);
1737 gtk_object_set_data_full(GTK_OBJECT(main_window),
1738 "radiobutton_fit_gravity",
1739 eval->radiobutton_fit_gravity,
1740 (GtkDestroyNotify) gtk_widget_unref);
1741 gtk_widget_show(eval->radiobutton_fit_gravity);
1742 gtk_box_pack_start(GTK_BOX(eval->vbox10),
1743 eval->radiobutton_fit_gravity,
1744 FALSE,
1745 FALSE,
1748 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_fit_gravity),
1749 "eval",
1750 eval);
1751 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_fit_gravity),
1752 "ifit",
1753 "3");
1754 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_fit_gravity),
1755 "var_type",
1756 "0");
1757 gtk_signal_connect(GTK_OBJECT(eval->radiobutton_fit_gravity),
1758 "toggled",
1759 GTK_SIGNAL_FUNC(on_toggle_piv),
1760 NULL);
1764 /* eval->radiobutton_fit_marquardt = gtk_radio_button_new_with_label (eval->vbox10_group,
1765 _("Marquardt")); */
1766 /* eval->vbox10_group = gtk_radio_button_group (GTK_RADIO_BUTTON (eval->radiobutton_fit_marquardt)); */
1767 /* gtk_widget_ref (eval->radiobutton_fit_marquardt); */
1768 /* gtk_object_set_data_full (GTK_OBJECT (main_window),
1769 "radiobutton_fit_marquardt",
1770 eval->radiobutton_fit_marquardt, */
1771 /* (GtkDestroyNotify) gtk_widget_unref); */
1772 /* gtk_widget_show (eval->radiobutton_fit_marquardt); */
1773 /* gtk_box_pack_start (GTK_BOX (eval->vbox10),
1774 eval->radiobutton_fit_marquardt,
1775 FALSE,
1776 FALSE,
1777 0); */
1779 /* gtk_object_set_data(GTK_OBJECT (eval->radiobutton_fit_marquardt), */
1780 /* "ifit",
1781 "4"); */
1782 /* gtk_object_set_data(GTK_OBJECT(eval->radiobutton_fit_marquardt),
1783 "eval",
1784 eval); */
1785 /* gtk_object_set_data(GTK_OBJECT (eval->radiobutton_fit_marquardt), */
1786 /* "var_type",
1787 "0"); */
1788 /* gtk_signal_connect (GTK_OBJECT (eval->radiobutton_fit_marquardt),
1789 "toggled", */
1790 /* GTK_SIGNAL_FUNC (on_toggle_piv), */
1791 /* NULL); */
1796 * radio buttons for correlation peak number to be detected
1798 eval->frame_6 = gtk_frame_new(_("Peak #"));
1799 gtk_widget_ref(eval->frame_6);
1800 gtk_object_set_data_full(GTK_OBJECT(main_window),
1801 "frame_6",
1802 eval->frame_6,
1803 (GtkDestroyNotify) gtk_widget_unref);
1804 gtk_widget_show(eval->frame_6);
1805 gtk_table_attach(GTK_TABLE(eval->table),
1806 eval->frame_6,
1811 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
1812 (GtkAttachOptions) (GTK_FILL),
1816 eval->vbox11 = gtk_vbox_new(FALSE,
1818 gtk_widget_ref(eval->vbox11);
1819 gtk_object_set_data_full(GTK_OBJECT(main_window),
1820 "vbox11",
1821 eval->vbox11,
1822 (GtkDestroyNotify) gtk_widget_unref);
1823 gtk_widget_show(eval->vbox11);
1824 gtk_container_add(GTK_CONTAINER(eval->frame_6),
1825 eval->vbox11);
1827 eval->radiobutton_peak_1 =
1828 gtk_radio_button_new_with_label(eval->vbox11_group,
1829 _("1"));
1830 eval->vbox11_group =
1831 gtk_radio_button_group(GTK_RADIO_BUTTON(eval->radiobutton_peak_1));
1832 gtk_widget_ref(eval->radiobutton_peak_1);
1833 gtk_object_set_data_full(GTK_OBJECT(main_window),
1834 "radiobutton_peak_1",
1835 eval->radiobutton_peak_1,
1836 (GtkDestroyNotify) gtk_widget_unref);
1837 gtk_widget_show(eval->radiobutton_peak_1);
1838 gtk_box_pack_start(GTK_BOX(eval->vbox11),
1839 eval->radiobutton_peak_1,
1840 FALSE,
1841 FALSE,
1844 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_peak_1),
1845 "eval",
1846 eval);
1847 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_peak_1),
1848 "peak",
1849 "1");
1850 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_peak_1),
1851 "var_type",
1852 "1");
1853 gtk_signal_connect(GTK_OBJECT(eval->radiobutton_peak_1),
1854 "toggled",
1855 GTK_SIGNAL_FUNC(on_toggle_piv),
1856 NULL);
1860 eval->radiobutton_peak_2 =
1861 gtk_radio_button_new_with_label(eval->vbox11_group,
1862 _("2"));
1863 eval->vbox11_group =
1864 gtk_radio_button_group(GTK_RADIO_BUTTON(eval->radiobutton_peak_2));
1865 gtk_widget_ref(eval->radiobutton_peak_2);
1866 gtk_object_set_data_full(GTK_OBJECT(main_window),
1867 "radiobutton_peak_2",
1868 eval->radiobutton_peak_2,
1869 (GtkDestroyNotify) gtk_widget_unref);
1870 gtk_widget_show(eval->radiobutton_peak_2);
1871 gtk_box_pack_start(GTK_BOX(eval->vbox11),
1872 eval->radiobutton_peak_2,
1873 FALSE,
1874 FALSE,
1877 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_peak_2),
1878 "eval",
1879 eval);
1880 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_peak_2),
1881 "peak",
1882 "2");
1883 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_peak_2),
1884 "var_type",
1885 "1");
1886 gtk_signal_connect(GTK_OBJECT(eval->radiobutton_peak_2),
1887 "toggled",
1888 GTK_SIGNAL_FUNC(on_toggle_piv),
1889 NULL);
1893 eval->radiobutton_peak_3 =
1894 gtk_radio_button_new_with_label(eval->vbox11_group,
1895 _("3"));
1896 eval->vbox11_group =
1897 gtk_radio_button_group(GTK_RADIO_BUTTON(eval->radiobutton_peak_3));
1898 gtk_widget_ref(eval->radiobutton_peak_3);
1899 gtk_object_set_data_full(GTK_OBJECT(main_window),
1900 "radiobutton_peak_3",
1901 eval->radiobutton_peak_3,
1902 (GtkDestroyNotify) gtk_widget_unref);
1903 gtk_widget_show(eval->radiobutton_peak_3);
1904 gtk_box_pack_start(GTK_BOX(eval->vbox11),
1905 eval->radiobutton_peak_3,
1906 FALSE,
1907 FALSE,
1910 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_peak_3),
1911 "eval",
1912 eval);
1913 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_peak_3),
1914 "peak",
1915 "3");
1916 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_peak_3),
1917 "var_type",
1918 "1");
1919 gtk_signal_connect(GTK_OBJECT(eval->radiobutton_peak_3),
1920 "toggled",
1921 GTK_SIGNAL_FUNC(on_toggle_piv),
1922 NULL);
1926 * additonal calculation schemes for correlation detection
1929 eval->frame_7 = gtk_frame_new(_("Interrogation with:"));
1930 gtk_widget_ref(eval->frame_7);
1931 gtk_object_set_data_full(GTK_OBJECT(main_window),
1932 "frame_7",
1933 eval->frame_7,
1934 (GtkDestroyNotify) gtk_widget_unref);
1935 gtk_widget_show(eval->frame_7);
1936 gtk_table_attach(GTK_TABLE(eval->table),
1937 eval->frame_7,
1942 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
1943 (GtkAttachOptions) (GTK_FILL),
1948 eval->vbox12 = gtk_vbox_new(FALSE,
1950 gtk_widget_ref(eval->vbox12);
1951 gtk_object_set_data_full(GTK_OBJECT(main_window),
1952 "vbox12",
1953 eval->vbox12,
1954 (GtkDestroyNotify) gtk_widget_unref);
1955 gtk_widget_show(eval->vbox12);
1956 gtk_container_add(GTK_CONTAINER(eval->frame_7),
1957 eval->vbox12);
1960 eval->checkbutton_weightkernel =
1961 gtk_check_button_new_with_label(_("Weight Kernel"));
1962 gtk_widget_ref(eval->checkbutton_weightkernel);
1963 gtk_object_set_data_full(GTK_OBJECT(main_window),
1964 "checkbutton_weightkernel",
1965 eval->checkbutton_weightkernel,
1966 (GtkDestroyNotify) gtk_widget_unref);
1967 gtk_widget_show(eval->checkbutton_weightkernel);
1968 gtk_box_pack_start(GTK_BOX(eval->vbox12),
1969 eval->checkbutton_weightkernel,
1970 FALSE,
1971 FALSE,
1974 gtk_object_set_data(GTK_OBJECT(eval->checkbutton_weightkernel),
1975 "eval",
1976 eval);
1977 gtk_object_set_data(GTK_OBJECT(eval->checkbutton_weightkernel),
1978 "var_type",
1979 "2");
1980 gtk_signal_connect(GTK_OBJECT(eval->checkbutton_weightkernel),
1981 "toggled",
1982 GTK_SIGNAL_FUNC(on_toggle_piv),
1983 NULL);
1987 eval->checkbutton_zerooff =
1988 gtk_check_button_new_with_label(_("Zero off-set"));
1989 gtk_widget_ref(eval->checkbutton_zerooff);
1990 gtk_object_set_data_full(GTK_OBJECT(main_window),
1991 "checkbutton_zerooff",
1992 eval->checkbutton_zerooff,
1993 (GtkDestroyNotify) gtk_widget_unref);
1994 gtk_widget_show(eval->checkbutton_zerooff);
1995 gtk_box_pack_start(GTK_BOX(eval->vbox12),
1996 eval->checkbutton_zerooff,
1997 FALSE,
1998 FALSE,
2001 gtk_object_set_data(GTK_OBJECT(eval->checkbutton_zerooff),
2002 "eval",
2003 eval);
2004 gtk_object_set_data(GTK_OBJECT(eval->checkbutton_zerooff),
2005 "var_type",
2006 "3");
2007 gtk_signal_connect(GTK_OBJECT(eval->checkbutton_zerooff),
2008 "toggled",
2009 GTK_SIGNAL_FUNC(on_toggle_piv),
2010 NULL);
2014 eval->checkbutton_centraldiff =
2015 gtk_check_button_new_with_label(_("Central diff."));
2016 gtk_widget_ref(eval->checkbutton_centraldiff);
2017 gtk_object_set_data_full(GTK_OBJECT(main_window),
2018 "checkbutton_centraldiff",
2019 eval->checkbutton_centraldiff,
2020 (GtkDestroyNotify) gtk_widget_unref);
2021 gtk_widget_show(eval->checkbutton_centraldiff);
2022 gtk_box_pack_start(GTK_BOX(eval->vbox12),
2023 eval->checkbutton_centraldiff,
2024 FALSE,
2025 FALSE,
2026 0);
2028 gtk_object_set_data(GTK_OBJECT(eval->checkbutton_centraldiff),
2029 "eval",
2030 eval);
2031 gtk_object_set_data(GTK_OBJECT(eval->checkbutton_centraldiff),
2032 "var_type",
2033 "4");
2034 gtk_signal_connect(GTK_OBJECT(eval->checkbutton_centraldiff),
2035 "toggled",
2036 GTK_SIGNAL_FUNC(on_toggle_piv),
2037 NULL);
2041 * radio buttons for cross-or auto correlation
2042 * defined in header, not user definable
2045 eval->frame_8 = gtk_frame_new(_("Correlation"));
2046 gtk_widget_ref(eval->frame_8);
2047 gtk_object_set_data_full(GTK_OBJECT(main_window),
2048 "frame_8",
2049 eval->frame_8,
2050 (GtkDestroyNotify) gtk_widget_unref);
2051 gtk_widget_show(eval->frame_8);
2052 gtk_table_attach(GTK_TABLE(eval->table),
2053 eval->frame_8,
2058 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
2059 (GtkAttachOptions) (GTK_FILL),
2063 eval->vbox13 = gtk_vbox_new(FALSE,
2065 gtk_widget_ref(eval->vbox13);
2066 gtk_object_set_data_full(GTK_OBJECT(main_window),
2067 "vbox13",
2068 eval->vbox13,
2069 (GtkDestroyNotify) gtk_widget_unref);
2070 gtk_widget_show(eval->vbox13);
2071 gtk_container_add(GTK_CONTAINER(eval->frame_8),
2072 eval->vbox13);
2076 eval->radiobutton_cross_1 =
2077 gtk_radio_button_new_with_label(eval->vbox13_group,
2078 _("Auto"));
2079 eval->vbox13_group =
2080 gtk_radio_button_group(GTK_RADIO_BUTTON(eval->radiobutton_cross_1));
2081 gtk_widget_ref(eval->radiobutton_cross_1);
2082 gtk_object_set_data_full(GTK_OBJECT(main_window),
2083 "radiobutton_cross_1",
2084 eval->radiobutton_cross_1,
2085 (GtkDestroyNotify) gtk_widget_unref);
2086 gtk_widget_show(eval->radiobutton_cross_1);
2087 gtk_box_pack_start(GTK_BOX(eval->vbox13),
2088 eval->radiobutton_cross_1,
2089 FALSE,
2090 FALSE,
2093 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_cross_1),
2094 "eval",
2095 eval);
2096 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_cross_1),
2097 "x_corr",
2098 "0");
2099 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_cross_1),
2100 "var_type",
2101 "5");
2102 gtk_signal_connect(GTK_OBJECT(eval->radiobutton_cross_1),
2103 "toggled",
2104 GTK_SIGNAL_FUNC(on_toggle_piv),
2105 NULL);
2109 eval->radiobutton_cross_2 =
2110 gtk_radio_button_new_with_label(eval->vbox13_group,
2111 _("Cross"));
2112 eval->vbox13_group =
2113 gtk_radio_button_group(GTK_RADIO_BUTTON(eval->radiobutton_cross_2));
2114 gtk_widget_ref(eval->radiobutton_cross_2);
2115 gtk_object_set_data_full(GTK_OBJECT(main_window),
2116 "radiobutton_cross_2",
2117 eval->radiobutton_cross_2,
2118 (GtkDestroyNotify) gtk_widget_unref);
2119 gtk_widget_show(eval->radiobutton_cross_2);
2120 gtk_box_pack_start(GTK_BOX(eval->vbox13),
2121 eval->radiobutton_cross_2,
2122 FALSE,
2123 FALSE,
2126 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_cross_2),
2127 "eval",
2128 eval);
2129 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_cross_2),
2130 "x_corr",
2131 "1");
2132 gtk_object_set_data(GTK_OBJECT(eval->radiobutton_cross_2),
2133 "var_type",
2134 "5");
2135 gtk_signal_connect(GTK_OBJECT(eval->radiobutton_cross_2),
2136 "toggled",
2137 GTK_SIGNAL_FUNC(on_toggle_piv),
2138 NULL);
2143 * Monitoring the process by displaying interrogation area's in correlation
2144 * function
2146 eval->frame_monitor =
2147 gtk_frame_new(_("Interrogation areas and correlation"));
2148 gtk_widget_ref(eval->frame_monitor);
2149 gtk_object_set_data_full(GTK_OBJECT(main_window),
2150 "frame_monitor",
2151 eval->frame_monitor,
2152 (GtkDestroyNotify) gtk_widget_unref);
2153 gtk_widget_show(eval->frame_monitor);
2154 gtk_table_attach(GTK_TABLE(eval->table),
2155 eval->frame_monitor,
2160 (GtkAttachOptions) (GTK_FILL),
2161 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
2166 eval->table_monitor = gtk_table_new(2,
2168 FALSE);
2169 gtk_widget_ref(eval->table_monitor);
2170 gtk_object_set_data_full(GTK_OBJECT(main_window),
2171 "table_monitor",
2172 eval->table_monitor,
2173 (GtkDestroyNotify) gtk_widget_unref);
2174 gtk_widget_show(eval->table_monitor);
2175 gtk_container_add(GTK_CONTAINER(eval->frame_monitor),
2176 eval->table_monitor);
2180 * gnome canvas interrogation area1
2182 eval->frame_monitor_int1 = gtk_frame_new(_("Int. area 1"));
2183 gtk_widget_ref(eval->frame_monitor_int1);
2184 gtk_object_set_data_full(GTK_OBJECT(main_window),
2185 "frame_monitor_int1",
2186 eval->frame_monitor_int1,
2187 (GtkDestroyNotify) gtk_widget_unref);
2188 gtk_widget_show(eval->frame_monitor_int1);
2189 gtk_table_attach(GTK_TABLE(eval->table_monitor),
2190 eval->frame_monitor_int1,
2195 (GtkAttachOptions) (GTK_FILL),
2196 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
2199 gtk_widget_set_usize(GTK_WIDGET(eval->frame_monitor_int1),
2200 MAX_INTERR_SIZE,
2201 MAX_INTERR_SIZE + 25);
2205 gtk_widget_push_visual (gdk_imlib_get_visual ());
2206 gtk_widget_push_colormap (gdk_imlib_get_colormap ());
2207 eval->canvas_monitor_int1 = gnome_canvas_new ();
2209 gtk_widget_pop_colormap ();
2210 gtk_widget_pop_visual ();
2211 gtk_widget_ref (eval->canvas_monitor_int1);
2212 gtk_object_set_data_full (GTK_OBJECT (main_window),
2213 "canvas_monitor_int1",
2214 eval->canvas_monitor_int1,
2215 (GtkDestroyNotify) gtk_widget_unref);
2216 gtk_widget_show (eval->canvas_monitor_int1);
2217 gtk_container_add (GTK_CONTAINER (eval->frame_monitor_int1 ),
2218 eval->canvas_monitor_int1);
2223 * gnome canvas interrogation area2
2225 eval->frame_monitor_int2 = gtk_frame_new(_("Int. area 2"));
2226 gtk_widget_ref(eval->frame_monitor_int2);
2227 gtk_object_set_data_full(GTK_OBJECT(main_window),
2228 "frame_monitor_int2",
2229 eval->frame_monitor_int2,
2230 (GtkDestroyNotify) gtk_widget_unref);
2231 gtk_widget_show(eval->frame_monitor_int2);
2232 gtk_table_attach(GTK_TABLE(eval->table_monitor),
2233 eval->frame_monitor_int2,
2238 (GtkAttachOptions) (GTK_FILL),
2239 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
2242 gtk_widget_set_usize(GTK_WIDGET(eval->frame_monitor_int2),
2243 MAX_INTERR_SIZE,
2244 MAX_INTERR_SIZE + 25);
2249 /* gtk_widget_push_visual (gdk_rgb_get_visual ()); */
2250 /* gtk_widget_push_colormap (gdk_rgb_get_cmap ()); */
2251 /* eval->canvas_monitor_int2 = gnome_canvas_new_aa (); */
2253 gtk_widget_push_visual (gdk_imlib_get_visual ());
2254 gtk_widget_push_colormap (gdk_imlib_get_colormap ());
2255 eval->canvas_monitor_int2 = gnome_canvas_new ();
2257 gtk_widget_pop_colormap ();
2258 gtk_widget_pop_visual ();
2259 gtk_widget_ref (eval->canvas_monitor_int2);
2260 gtk_object_set_data_full (GTK_OBJECT (main_window),
2261 "canvas_monitor_int2",
2262 eval->canvas_monitor_int2,
2263 (GtkDestroyNotify) gtk_widget_unref);
2264 gtk_widget_show (eval->canvas_monitor_int2);
2265 gtk_container_add (GTK_CONTAINER (eval->frame_monitor_int2),
2266 eval->canvas_monitor_int2);
2270 * Gnome canvas display corr function
2272 eval->frame_monitor_cov = gtk_frame_new(_("Correlation"));
2273 gtk_widget_ref(eval->frame_monitor_cov);
2274 gtk_object_set_data_full(GTK_OBJECT(main_window),
2275 "frame_monitor_cov",
2276 eval->frame_monitor_cov,
2277 (GtkDestroyNotify) gtk_widget_unref);
2278 gtk_widget_show(eval->frame_monitor_cov);
2279 gtk_table_attach(GTK_TABLE(eval->table_monitor),
2280 eval->frame_monitor_cov,
2285 (GtkAttachOptions) (GTK_FILL),
2286 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
2289 gtk_widget_set_usize(GTK_WIDGET(eval->frame_monitor_cov),
2290 MAX_INTERR_SIZE,
2291 MAX_INTERR_SIZE + 25);
2295 gtk_widget_push_visual (gdk_imlib_get_visual ());
2296 gtk_widget_push_colormap (gdk_imlib_get_colormap ());
2298 eval->canvas_monitor_cov = gnome_canvas_new ();
2299 gtk_widget_pop_colormap ();
2300 gtk_widget_pop_visual ();
2301 gtk_widget_ref (eval->canvas_monitor_cov);
2302 gtk_object_set_data_full (GTK_OBJECT (main_window),
2303 "canvas_monitor_cov",
2304 eval->canvas_monitor_cov,
2305 (GtkDestroyNotify) gtk_widget_unref);
2306 gtk_widget_show (eval->canvas_monitor_cov);
2307 gtk_container_add (GTK_CONTAINER (eval->frame_monitor_cov),
2308 eval->canvas_monitor_cov);
2312 * gnome canvas display values
2314 eval->frame_monitor_vec = gtk_frame_new(_("Estimator"));
2315 gtk_widget_ref(eval->frame_monitor_vec);
2316 gtk_object_set_data_full(GTK_OBJECT(main_window),
2317 "frame_monitor_vec",
2318 eval->frame_monitor_vec,
2319 (GtkDestroyNotify) gtk_widget_unref);
2320 gtk_widget_show(eval->frame_monitor_vec);
2321 gtk_table_attach(GTK_TABLE(eval->table_monitor),
2322 eval->frame_monitor_vec,
2327 (GtkAttachOptions) (GTK_FILL),
2328 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
2331 gtk_widget_set_usize(GTK_WIDGET(eval->frame_monitor_vec),
2332 MAX_INTERR_SIZE,
2333 MAX_INTERR_SIZE + 25);
2335 /* gtk_widget_push_visual (gdk_rgb_get_visual ()); */
2336 /* gtk_widget_push_colormap (gdk_rgb_get_cmap ()); */
2337 /* eval->canvas_monitor_vec = gnome_canvas_new_aa (); */
2339 gtk_widget_push_visual(gdk_imlib_get_visual());
2340 gtk_widget_push_colormap(gdk_imlib_get_colormap());
2341 eval->canvas_monitor_vec = gnome_canvas_new();
2343 gtk_widget_pop_colormap();
2344 gtk_widget_pop_visual();
2345 gtk_widget_ref(eval->canvas_monitor_vec);
2346 gtk_object_set_data_full(GTK_OBJECT(main_window),
2347 "canvas_monitor_vec",
2348 eval->canvas_monitor_vec,
2349 (GtkDestroyNotify) gtk_widget_unref);
2350 gtk_widget_show(eval->canvas_monitor_vec);
2351 gtk_container_add(GTK_CONTAINER(eval->frame_monitor_vec),
2352 eval->canvas_monitor_vec);
2356 * Define button to switched on/off
2358 eval->hbox_monitor = gtk_hbox_new(FALSE, 0);
2359 gtk_widget_ref(eval->hbox_monitor);
2360 gtk_object_set_data_full(GTK_OBJECT(main_window),
2361 "hbox_monitor",
2362 eval->hbox_monitor,
2363 (GtkDestroyNotify) gtk_widget_unref);
2364 gtk_widget_show(eval->hbox_monitor);
2365 gtk_table_attach(GTK_TABLE(eval->table_monitor),
2366 eval->hbox_monitor,
2371 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
2372 (GtkAttachOptions) (GTK_FILL),
2376 eval->checkbutton_monitor =
2377 gtk_check_button_new_with_label(_("Monitor"));
2378 gtk_widget_ref(eval->checkbutton_monitor);
2379 gtk_object_set_data_full(GTK_OBJECT(main_window),
2380 "checkbutton_monitor",
2381 eval->checkbutton_monitor,
2382 (GtkDestroyNotify) gtk_widget_unref);
2383 gtk_widget_show(eval->checkbutton_monitor);
2384 gtk_box_pack_start(GTK_BOX(eval->hbox_monitor),
2385 eval->checkbutton_monitor,
2386 TRUE,
2387 TRUE,
2390 gtk_object_set_data(GTK_OBJECT(eval->checkbutton_monitor),
2391 "eval",
2392 eval);
2393 gtk_signal_connect(GTK_OBJECT(eval->checkbutton_monitor),
2394 "enter",
2395 GTK_SIGNAL_FUNC(on_checkbutton_piv_monitor_enter),
2396 NULL);
2397 gtk_signal_connect(GTK_OBJECT(eval->checkbutton_monitor),
2398 "leave",
2399 GTK_SIGNAL_FUNC(on_widget_leave),
2400 NULL);
2401 gtk_signal_connect(GTK_OBJECT(eval->checkbutton_monitor),
2402 "clicked",
2403 GTK_SIGNAL_FUNC(on_checkbutton_piv_monitor),
2404 NULL);
2409 * spinner for zoom
2411 eval->label_monitor_zoom = gtk_label_new(_("Zoom:"));
2412 gtk_widget_ref(eval->label_monitor_zoom);
2413 gtk_object_set_data_full(GTK_OBJECT(main_window),
2414 "eval_label_monitor_zoom",
2415 eval->label_monitor_zoom,
2416 (GtkDestroyNotify) gtk_widget_unref);
2417 gtk_widget_show(eval->label_monitor_zoom);
2418 gtk_box_pack_start(GTK_BOX(eval->hbox_monitor),
2419 eval->label_monitor_zoom,
2420 TRUE,
2421 TRUE,
2426 eval->spinbutton_adj_monitor_zoom =
2427 gtk_adjustment_new(gpiv_var.piv_disproc_zoom,
2428 0.5,
2430 0.5,
2436 eval->spinbutton_monitor_zoom =
2437 gtk_spin_button_new(GTK_ADJUSTMENT(eval->spinbutton_adj_monitor_zoom),
2440 gtk_widget_ref(eval->spinbutton_monitor_zoom);
2441 gtk_widget_show(eval->spinbutton_monitor_zoom);
2442 gtk_box_pack_start(GTK_BOX(eval->hbox_monitor),
2443 eval->spinbutton_monitor_zoom,
2444 TRUE,
2445 TRUE,
2447 gtk_entry_set_editable(GTK_ENTRY(eval->spinbutton_monitor_zoom),
2448 TRUE);
2449 gtk_spin_button_set_numeric(GTK_SPIN_BUTTON(eval->spinbutton_monitor_zoom),
2450 TRUE);
2452 gtk_object_set_data(GTK_OBJECT(eval->spinbutton_monitor_zoom),
2453 "eval",
2454 eval);
2455 gtk_signal_connect(GTK_OBJECT(eval->spinbutton_monitor_zoom),
2456 "changed",
2457 on_spinbutton_piv_monitor_zoom,
2458 eval->spinbutton_monitor_zoom);
2463 * spinner for vector length
2465 eval->label_monitor_vectorscale = gtk_label_new(_("Vector scale:"));
2466 gtk_widget_ref(eval->label_monitor_vectorscale);
2467 gtk_object_set_data_full(GTK_OBJECT(main_window),
2468 "eval_label_monitor_vectorscale",
2469 eval->label_monitor_vectorscale,
2470 (GtkDestroyNotify) gtk_widget_unref);
2471 gtk_widget_show(eval->label_monitor_vectorscale);
2472 gtk_box_pack_start(GTK_BOX(eval->hbox_monitor),
2473 eval->label_monitor_vectorscale,
2474 TRUE,
2475 TRUE,
2480 eval->spinbutton_adj_monitor_vectorscale =
2481 gtk_adjustment_new(gpiv_var.piv_disproc_vlength,
2486 32);
2490 eval->spinbutton_monitor_vectorscale =
2491 gtk_spin_button_new(GTK_ADJUSTMENT(eval->spinbutton_adj_monitor_vectorscale),
2494 gtk_widget_ref(eval->spinbutton_monitor_vectorscale);
2495 gtk_widget_show(eval->spinbutton_monitor_vectorscale);
2496 gtk_box_pack_start(GTK_BOX(eval->hbox_monitor),
2497 eval->spinbutton_monitor_vectorscale,
2498 TRUE,
2499 TRUE,
2501 gtk_entry_set_editable(GTK_ENTRY(eval->spinbutton_monitor_vectorscale),
2502 TRUE);
2503 gtk_spin_button_set_numeric(GTK_SPIN_BUTTON(eval->spinbutton_monitor_vectorscale),
2504 TRUE);
2506 gtk_object_set_data(GTK_OBJECT(eval->spinbutton_monitor_vectorscale),
2507 "eval",
2508 eval);
2509 gtk_signal_connect(GTK_OBJECT(eval->spinbutton_monitor_vectorscale),
2510 "changed",
2511 on_spinbutton_piv_monitor_vectorscale,
2512 eval->spinbutton_monitor_vectorscale);
2517 * PIV activating button
2519 eval->button = gtk_button_new_with_label(_("piv"));
2520 gtk_widget_ref(eval->button);
2521 gtk_object_set_data_full(GTK_OBJECT(main_window),
2522 "button",
2523 eval->button,
2524 (GtkDestroyNotify) gtk_widget_unref);
2525 gtk_widget_show(eval->button);
2526 gtk_table_attach(GTK_TABLE(eval->table),
2527 eval->button,
2532 (GtkAttachOptions) (GTK_FILL),
2533 (GtkAttachOptions) (GTK_FILL),
2536 gtk_tooltips_set_tip(eval->tooltips,
2537 eval->button,
2538 _("analyses a PIV image (pair) resulting into mean displacements of the particle images within the interrogation areas"),
2539 NULL);
2541 gtk_object_set_data(GTK_OBJECT(eval->button),
2542 "eval",
2543 eval);
2544 gtk_signal_connect(GTK_OBJECT(eval->button),
2545 "enter",
2546 GTK_SIGNAL_FUNC(on_button_piv_enter),
2547 NULL);
2548 gtk_signal_connect(GTK_OBJECT(eval->button),
2549 "leave",
2550 GTK_SIGNAL_FUNC(on_widget_leave),
2551 NULL);
2552 gtk_signal_connect(GTK_OBJECT(eval->button),
2553 "clicked",
2554 GTK_SIGNAL_FUNC(on_button_piv),
2555 NULL);
2559 * Setting initial values
2563 /* if (piv_eval_par.int_size_1 == 8) { */
2564 /* gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON */
2565 /* (eval->radiobutton_intsize1_1),
2566 TRUE); */
2567 /* } */
2570 if (piv_eval_par.int_size_1 == 16) {
2571 gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON
2572 (eval->radiobutton_intsize1_2),
2573 TRUE);
2577 if (piv_eval_par.int_size_1 == 32) {
2578 gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON
2579 (eval->radiobutton_intsize1_3),
2580 TRUE);
2584 if (piv_eval_par.int_size_1 == 64) {
2585 gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON
2586 (eval->radiobutton_intsize1_4),
2587 TRUE);
2591 if (piv_eval_par.int_size_1 == 128) {
2592 gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON
2593 (eval->radiobutton_intsize1_5),
2594 TRUE);
2599 /* if (piv_eval_par.int_size_2 == 8) { */
2600 /* gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON */
2601 /* (eval->radiobutton_intsize2_1),
2602 TRUE); */
2603 /* } */
2606 if (piv_eval_par.int_size_2 == 16) {
2607 gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON
2608 (eval->radiobutton_intsize2_2),
2609 TRUE);
2613 if (piv_eval_par.int_size_2 == 32) {
2614 gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON
2615 (eval->radiobutton_intsize2_3),
2616 TRUE);
2620 if (piv_eval_par.int_size_2 == 64) {
2621 gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON
2622 (eval->radiobutton_intsize2_4),
2623 TRUE);
2627 if (piv_eval_par.int_size_2 == 128) {
2628 gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON
2629 (eval->radiobutton_intsize2_5),
2630 TRUE);
2636 if (piv_eval_par.int_shift == 8) {
2637 gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON
2638 (eval->radiobutton_intshift_1),
2639 TRUE);
2643 if (piv_eval_par.int_shift == 16) {
2644 gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON
2645 (eval->radiobutton_intshift_2),
2646 TRUE);
2650 if (piv_eval_par.int_shift == 32) {
2651 gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON
2652 (eval->radiobutton_intshift_3),
2653 TRUE);
2657 if (piv_eval_par.int_shift == 64) {
2658 gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON
2659 (eval->radiobutton_intshift_4),
2660 TRUE);
2664 if (piv_eval_par.int_shift == 128) {
2665 gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON
2666 (eval->radiobutton_intshift_5),
2667 TRUE);
2671 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON
2672 (eval->radiobutton_mouse_1),
2673 TRUE);
2676 if (piv_eval_par.ifit == 0) {
2677 gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON
2678 (eval->radiobutton_fit_none),
2679 TRUE);
2683 if (piv_eval_par.ifit == 1) {
2684 gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON
2685 (eval->radiobutton_fit_gauss),
2686 TRUE);
2690 if (piv_eval_par.ifit == 2) {
2691 gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON
2692 (eval->radiobutton_fit_power),
2693 TRUE);
2697 if (piv_eval_par.ifit == 3) {
2698 gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON
2699 (eval->radiobutton_fit_gravity),
2700 TRUE);
2704 /* if (ifit == -1) { */
2705 /* gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (eval->radiobutton_fit_marquardt),
2706 TRUE); */
2707 /* } */
2710 if (piv_eval_par.peak == 1) {
2711 gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON
2712 (eval->radiobutton_peak_1),
2713 TRUE);
2717 if (piv_eval_par.peak == 2) {
2718 gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON
2719 (eval->radiobutton_peak_2),
2720 TRUE);
2724 if (piv_eval_par.peak == 3) {
2725 gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON
2726 (eval->radiobutton_peak_3),
2727 TRUE);
2731 if (piv_eval_par.weight == 1) {
2732 gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON
2733 (eval->checkbutton_weightkernel),
2734 TRUE);
2735 } else {
2736 gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON
2737 (eval->checkbutton_weightkernel),
2738 FALSE);
2741 if (piv_eval_par.zero_off == 1) {
2742 gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON
2743 (eval->checkbutton_zerooff),
2744 TRUE);
2745 } else {
2746 gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON
2747 (eval->checkbutton_zerooff),
2748 FALSE);
2751 if (piv_eval_par.central_diff == 1) {
2752 gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON
2753 (eval->checkbutton_centraldiff),
2754 TRUE);
2755 } else {
2756 gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON
2757 (eval->checkbutton_centraldiff),
2758 FALSE);
2762 if (image_par.x_corr == 0) {
2763 gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON
2764 (eval->radiobutton_cross_1),
2765 TRUE);
2769 if (image_par.x_corr == 1) {
2770 gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON
2771 (eval->radiobutton_cross_2),
2772 TRUE);
2779 if (gpiv_par.display_process == 1) {
2780 gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON
2781 (eval->checkbutton_monitor),
2782 TRUE);
2783 } else {
2784 gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON
2785 (eval->checkbutton_monitor),
2786 FALSE);
2791 return eval;