1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
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 ----------------------------------------------------------------------*/
30 * Revision 1.4 2007-06-06 17:00:48 gerber
31 * Retreives images/data from URI using Gnome Virtual File System.
33 * Revision 1.3 2006/01/31 14:28:13 gerber
36 * Revision 1.2 2004/10/15 19:24:05 gerber
37 * GPIV_ and Gpiv prefix to defines and structure names of libgpiv
39 * Revision 1.1 2003/09/04 13:31:55 gerber
40 * init of printing (unfinished)
42 * Revision 1.3 2003/08/22 15:24:53 gerber
43 * interactive spatial scaling
45 * Revision 1.2 2003/07/25 15:40:24 gerber
46 * removed/disabled setting of correlation in Eval tab, Correlation type in Image info tab
48 * Revision 1.1.1.1 2003/06/17 17:10:52 gerber
55 /* #ifdef HAVE_CONFIG_H */
56 /* # include <config.h> */
59 #define DEFAULT_PRINT_CMD "lpr"
60 #define DEFAULT_FNAME_PRINT "gpiv_print.pdf"
64 create_print_dialog (GpivConsole
*gpiv
);
71 typedef struct _PrintVar PrintVar
;
73 gboolean print_to_printer
;
74 char label_printer_state
[GPIV_MAX_CHARS
];
78 gboolean select_range
;
85 * print dialog interface widgets
88 typedef struct _PrintDialog PrintDialog
;
92 /* GtkWidget *vbox_dialog; */
94 GSList
*printer_group
;
95 GtkWidget
*frame_print
;
96 GtkWidget
*table_print
;
97 GtkWidget
*radiobutton_printer
;
98 GtkWidget
*entry_printer
;
99 GtkWidget
*radiobutton_file
;
100 GtkWidget
*entry_file
;
101 GtkWidget
*button_browse
;
102 GtkWidget
*label_label_printerstate
;
103 GtkWidget
*label_printerstate
;
106 GtkWidget
*frame_range
;
107 GtkWidget
*table_range
;
108 GtkWidget
*radiobutton_all
;
109 GtkWidget
*radiobutton_range
;
110 GtkWidget
*label_range_from
;
111 GtkObject
*spinbutton_adj_range_start
;
112 GtkWidget
*spinbutton_range_start
;
113 GtkWidget
*label_range_end
;
114 GtkObject
*spinbutton_adj_range_end
;
115 GtkWidget
*spinbutton_range_end
;
117 /* GtkWidget *dialog_action_area; */
118 /* GtkWidget *button_print; */
119 /* GtkWidget *button_preview; */
120 /* GtkWidget *button_print_cancel; */
130 on_radiobutton_printer(GtkWidget
*widget
,
134 on_entry_printer(GtkSpinButton
*widget
,
138 on_radiobutton_file(GtkWidget
*widget
,
142 on_entry_file(GtkSpinButton
*widget
,
146 on_button_browse(GtkWidget
*widget
,
154 on_radiobutton_all(GtkWidget
*widget
,
158 on_radiobutton_range(GtkWidget
*widget
,
163 on_spinbutton_range_start(GtkSpinButton
* widget
,
167 on_spinbutton_range_end(GtkSpinButton
* widget
,
176 on_print_response(GtkDialog
*dialog
,
182 /* on_button_print(GtkWidget *widget, */
183 /* gpointer data); */
186 /* on_button_preview(GtkWidget *widget, */
187 /* gpointer data); */
190 /* on_button_print_cancel(GtkWidget *widget, */
191 /* gpointer data); */