added gpiv_logo.xpm
[gpiv.git] / src / print.h
blob2140912033ef26c11c2efc37094e698a7e939d9d
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 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 * $Log: print.h,v $
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
34 * version 0.3.0
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
49 * Imported gpiv
53 #ifndef PRINT_H
54 #define PRINT_H
55 /* #ifdef HAVE_CONFIG_H */
56 /* # include <config.h> */
57 /* #endif */
59 #define DEFAULT_PRINT_CMD "lpr"
60 #define DEFAULT_FNAME_PRINT "gpiv_print.pdf"
63 GtkDialog *
64 create_print_dialog (GpivConsole *gpiv);
68 * printer variables
71 typedef struct _PrintVar PrintVar;
72 struct _PrintVar {
73 gboolean print_to_printer;
74 char label_printer_state[GPIV_MAX_CHARS];
75 gchar *print_cmd;
76 gchar *fname_print;
78 gboolean select_range;
79 gint print_start;
80 gint print_end;
85 * print dialog interface widgets
88 typedef struct _PrintDialog PrintDialog;
89 struct _PrintDialog {
90 PrintVar var;
91 GtkDialog *dialog;
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;
105 GSList *range_group;
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; */
125 * Callback functions
126 * printer select
129 void
130 on_radiobutton_printer(GtkWidget *widget,
131 gpointer data);
133 void
134 on_entry_printer(GtkSpinButton *widget,
135 GtkWidget *entry);
137 void
138 on_radiobutton_file(GtkWidget *widget,
139 gpointer data);
141 void
142 on_entry_file(GtkSpinButton *widget,
143 GtkWidget *entry);
145 void
146 on_button_browse(GtkWidget *widget,
147 gpointer data);
150 * print range
153 void
154 on_radiobutton_all(GtkWidget *widget,
155 gpointer data);
157 void
158 on_radiobutton_range(GtkWidget *widget,
159 gpointer data);
162 void
163 on_spinbutton_range_start(GtkSpinButton * widget,
164 GtkWidget * entry);
166 void
167 on_spinbutton_range_end(GtkSpinButton * widget,
168 GtkWidget * entry);
172 * Dialog buttons
175 void
176 on_print_response(GtkDialog *dialog,
177 gint response,
178 gpointer data
181 /* void */
182 /* on_button_print(GtkWidget *widget, */
183 /* gpointer data); */
185 /* void */
186 /* on_button_preview(GtkWidget *widget, */
187 /* gpointer data); */
189 /* void */
190 /* on_button_print_cancel(GtkWidget *widget, */
191 /* gpointer data); */
194 #endif /* PRINT_H */