]> git.sur5r.net Git - glabels/blob - glabels2/src/template-designer.h
2005-04-17 Jim Evins <evins@snaught.com>
[glabels] / glabels2 / src / template-designer.h
1 /*
2  *  (GLABELS) Label and Business Card Creation program for GNOME
3  *
4  *  template-designer.h:  Template designer module header file
5  *
6  *  Copyright (C) 2003  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 __TEMPLATE_DESIGNER_H__
24 #define __TEMPLATE_DESIGNER_H__
25
26 #include <gtk/gtkwindow.h>
27
28 G_BEGIN_DECLS
29
30 #define GL_TYPE_TEMPLATE_DESIGNER            (gl_template_designer_get_type ())
31 #define GL_TEMPLATE_DESIGNER(obj)            (GTK_CHECK_CAST ((obj), GL_TYPE_TEMPLATE_DESIGNER, glTemplateDesigner))
32 #define GL_TEMPLATE_DESIGNER_CLASS(klass)    (GTK_CHECK_CLASS_CAST ((klass), GL_TYPE_TEMPLATE_DESIGNER, glTemplateDesignerClass))
33 #define GL_IS_TEMPLATE_DESIGNER(obj)         (GTK_CHECK_TYPE ((obj), GL_TYPE_TEMPLATE_DESIGNER))
34 #define GL_IS_TEMPLATE_DESIGNER_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GL_TYPE_TEMPLATE_DESIGNER))
35 #define GL_TEMPLATE_DESIGNER_GET_CLASS(obj)  (GTK_CHECK_GET_CLASS ((obj), GL_TYPE_TEMPLATE_DESIGNER, glTemplateDesignerClass))
36
37
38 typedef struct _glTemplateDesigner              glTemplateDesigner;
39 typedef struct _glTemplateDesignerClass         glTemplateDesignerClass;
40
41 typedef struct _glTemplateDesignerPrivate       glTemplateDesignerPrivate;
42
43 struct _glTemplateDesigner
44 {
45         GtkWindow                  parent_instance;
46
47         glTemplateDesignerPrivate *priv;
48
49 };
50
51 struct  _glTemplateDesignerClass
52 {
53         GtkWindowClass             parent_class;
54 };
55
56 GType           gl_template_designer_get_type               (void) G_GNUC_CONST;
57
58 GtkWidget      *gl_template_designer_new                    (GtkWindow *parent);
59
60 /* Semi-public, for use by libglade: */
61 GtkWidget      *gl_template_designer_construct_mini_preview (gchar *name,
62                                                              gchar *string1,
63                                                              gchar *string2,
64                                                              gint   int1,
65                                                              gint   int2);
66
67
68 G_END_DECLS
69
70 #endif /* __TEMPLATE_DESIGNER_H__ */