bugrepair VFS, update autotools files
[gpiv.git] / src / print.h
blob5d4d0767acab6ec7cd6882b2dafd608c4d841650
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
6 libraries.
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)
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 ----------------------------------------------------------------------*/
30 * $Log: print.h,v $
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
35 * version 0.3.0
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
50 * Imported gpiv
54 #ifndef PRINT_H
55 #define PRINT_H
56 /* #ifdef HAVE_CONFIG_H */
57 /* # include <config.h> */
58 /* #endif */
60 #define DEFAULT_PRINT_CMD "lpr"
61 #define DEFAULT_FNAME_PRINT "gpiv_print.pdf"
64 GtkDialog *
65 create_print_dialog (GpivConsole *gpiv);
69 * printer variables
72 typedef struct _PrintVar PrintVar;
73 struct _PrintVar {
74 gboolean print_to_printer;
75 char label_printer_state[GPIV_MAX_CHARS];
76 gchar *print_cmd;
77 gchar *fname_print;
79 gboolean select_range;
80 gint print_start;
81 gint print_end;
86 * print dialog interface widgets
89 typedef struct _PrintDialog PrintDialog;
90 struct _PrintDialog {
91 PrintVar var;
92 GtkDialog *dialog;
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;
106 GSList *range_group;
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; */
126 * Callback functions
127 * printer select
130 void
131 on_radiobutton_printer(GtkWidget *widget,
132 gpointer data);
134 void
135 on_entry_printer(GtkSpinButton *widget,
136 GtkWidget *entry);
138 void
139 on_radiobutton_file(GtkWidget *widget,
140 gpointer data);
142 void
143 on_entry_file(GtkSpinButton *widget,
144 GtkWidget *entry);
146 void
147 on_button_browse(GtkWidget *widget,
148 gpointer data);
151 * print range
154 void
155 on_radiobutton_all(GtkWidget *widget,
156 gpointer data);
158 void
159 on_radiobutton_range(GtkWidget *widget,
160 gpointer data);
163 void
164 on_spinbutton_range_start(GtkSpinButton * widget,
165 GtkWidget * entry);
167 void
168 on_spinbutton_range_end(GtkSpinButton * widget,
169 GtkWidget * entry);
173 * Dialog buttons
176 void
177 on_print_response(GtkDialog *dialog,
178 gint response,
179 gpointer data
182 /* void */
183 /* on_button_print(GtkWidget *widget, */
184 /* gpointer data); */
186 /* void */
187 /* on_button_preview(GtkWidget *widget, */
188 /* gpointer data); */
190 /* void */
191 /* on_button_print_cancel(GtkWidget *widget, */
192 /* gpointer data); */
195 #endif /* PRINT_H */