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, 2003, 2004, 2005, 2006, 2007, 2008
9 Gerber van der Graaf <gerber_graaf@users.sourceforge.net>
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.4 2007-06-06 17:00:48 gerber
32 * Retreives images/data from URI using Gnome Virtual File System.
34 * Revision 1.3 2006/01/31 14:28:13 gerber
37 * Revision 1.2 2004/10/15 19:24:05 gerber
38 * GPIV_ and Gpiv prefix to defines and structure names of libgpiv
40 * Revision 1.1 2003/09/04 13:31:55 gerber
41 * init of printing (unfinished)
43 * Revision 1.3 2003/08/22 15:24:53 gerber
44 * interactive spatial scaling
46 * Revision 1.2 2003/07/25 15:40:24 gerber
47 * removed/disabled setting of correlation in Eval tab, Correlation type in Image info tab
49 * Revision 1.1.1.1 2003/06/17 17:10:52 gerber
56 /* #ifdef HAVE_CONFIG_H */
57 /* # include <config.h> */
60 #define DEFAULT_PRINT_CMD "lpr"
61 #define DEFAULT_FNAME_PRINT "gpiv_print.pdf"
65 create_print_dialog (GpivConsole
*gpiv
);
72 typedef struct _PrintVar PrintVar
;
74 gboolean print_to_printer
;
75 char label_printer_state
[GPIV_MAX_CHARS
];
79 gboolean select_range
;
86 * print dialog interface widgets
89 typedef struct _PrintDialog PrintDialog
;
93 /* GtkWidget *vbox_dialog; */
95 GSList
*printer_group
;
96 GtkWidget
*frame_print
;
97 GtkWidget
*table_print
;
98 GtkWidget
*radiobutton_printer
;
99 GtkWidget
*entry_printer
;
100 GtkWidget
*radiobutton_file
;
101 GtkWidget
*entry_file
;
102 GtkWidget
*button_browse
;
103 GtkWidget
*label_label_printerstate
;
104 GtkWidget
*label_printerstate
;
107 GtkWidget
*frame_range
;
108 GtkWidget
*table_range
;
109 GtkWidget
*radiobutton_all
;
110 GtkWidget
*radiobutton_range
;
111 GtkWidget
*label_range_from
;
112 GtkObject
*spinbutton_adj_range_start
;
113 GtkWidget
*spinbutton_range_start
;
114 GtkWidget
*label_range_end
;
115 GtkObject
*spinbutton_adj_range_end
;
116 GtkWidget
*spinbutton_range_end
;
118 /* GtkWidget *dialog_action_area; */
119 /* GtkWidget *button_print; */
120 /* GtkWidget *button_preview; */
121 /* GtkWidget *button_print_cancel; */
131 on_radiobutton_printer(GtkWidget
*widget
,
135 on_entry_printer(GtkSpinButton
*widget
,
139 on_radiobutton_file(GtkWidget
*widget
,
143 on_entry_file(GtkSpinButton
*widget
,
147 on_button_browse(GtkWidget
*widget
,
155 on_radiobutton_all(GtkWidget
*widget
,
159 on_radiobutton_range(GtkWidget
*widget
,
164 on_spinbutton_range_start(GtkSpinButton
* widget
,
168 on_spinbutton_range_end(GtkSpinButton
* widget
,
177 on_print_response(GtkDialog
*dialog
,
183 /* on_button_print(GtkWidget *widget, */
184 /* gpointer data); */
187 /* on_button_preview(GtkWidget *widget, */
188 /* gpointer data); */
191 /* on_button_print_cancel(GtkWidget *widget, */
192 /* gpointer data); */