]> git.sur5r.net Git - glabels/blob - glabels2/src/wdgt-bc-style.h
Initial revision
[glabels] / glabels2 / src / wdgt-bc-style.h
1 /*
2  *  (GLABELS) Label and Business Card Creation program for GNOME
3  *
4  *  wdgt_bc_style.h:  barcode style selection widget module header file
5  *
6  *  Copyright (C) 2001-2002  Jim Evins <evins@snaught.com>.
7  *
8  *  This program is free software; you can redistribute it and/or modify
9  *  it under the terms of the GNU General Public License as published by
10  *  the Free Software Foundation; either version 2 of the License, or
11  *  (at your option) any later version.
12  *
13  *  This program is distributed in the hope that it will be useful,
14  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  *  GNU General Public License for more details.
17  *
18  *  You should have received a copy of the GNU General Public License
19  *  along with this program; if not, write to the Free Software
20  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
21  */
22
23 #ifndef __WDGT_BC_STYLE_H__
24 #define __WDGT_BC_STYLE_H__
25
26 #include <gnome.h>
27 #include "bc.h"
28
29 #define GL_TYPE_WDGT_BC_STYLE (gl_wdgt_bc_style_get_type ())
30 #define GL_WDGT_BC_STYLE(obj) \
31         (GTK_CHECK_CAST((obj), GL_TYPE_WDGT_BC_STYLE, glWdgtBCStyle ))
32 #define GL_WDGT_BC_STYLE_CLASS(klass) \
33         (GTK_CHECK_CLASS_CAST ((klass), GL_TYPE_WDGT_BC_STYLE, glWdgtBCStyleClass))
34 #define GL_IS_WDGT_BC_STYLE(obj) \
35         (GTK_CHECK_TYPE ((obj), GL_TYPE_WDGT_BC_STYLE))
36 #define GL_IS_WDGT_BC_STYLE_CLASS(klass) \
37         (GTK_CHECK_CLASS_TYPE ((klass), GL_TYPE_WDGT_BC_STYLE))
38
39 typedef struct _glWdgtBCStyle glWdgtBCStyle;
40 typedef struct _glWdgtBCStyleClass glWdgtBCStyleClass;
41
42 struct _glWdgtBCStyle {
43         GtkVBox parent_widget;
44
45         GtkWidget *postnet_radio;
46         GtkWidget *ean_radio;
47         GtkWidget *upc_radio;
48         GtkWidget *isbn_radio;
49         GtkWidget *code39_radio;
50         GtkWidget *code128_radio;
51         GtkWidget *code128c_radio;
52         GtkWidget *code128b_radio;
53         GtkWidget *i25_radio;
54         GtkWidget *cbr_radio;
55         GtkWidget *msi_radio;
56         GtkWidget *pls_radio;
57
58         GtkWidget *text_check;
59 };
60
61 struct _glWdgtBCStyleClass {
62         GtkVBoxClass parent_class;
63
64         void (*changed) (glWdgtBCStyle * prop, gpointer user_data);
65 };
66
67 extern guint gl_wdgt_bc_style_get_type (void);
68
69 extern GtkWidget *gl_wdgt_bc_style_new (gchar * label);
70
71 extern void gl_wdgt_bc_style_get_params (glWdgtBCStyle * prop_style,
72                                          glBarcodeStyle * style,
73                                          gboolean * text_flag);
74
75 extern void gl_wdgt_bc_style_set_params (glWdgtBCStyle * prop_style,
76                                          glBarcodeStyle style,
77                                          gboolean text_flag);
78
79 #endif