]> git.sur5r.net Git - glabels/blob - glabels2/src/wdgt-media-select.h
Initial revision
[glabels] / glabels2 / src / wdgt-media-select.h
1 /*
2  *  (GLABELS) Label and Business Card Creation program for GNOME
3  *
4  *  wdgt_media_select.h:  media 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_MEDIA_SELECT_H__
24 #define __WDGT_MEDIA_SELECT_H__
25
26 #include <gnome.h>
27
28 #define GL_TYPE_WDGT_MEDIA_SELECT (gl_wdgt_media_select_get_type ())
29 #define GL_WDGT_MEDIA_SELECT(obj) \
30         (GTK_CHECK_CAST((obj), GL_TYPE_WDGT_MEDIA_SELECT, glWdgtMediaSelect ))
31 #define GL_WDGT_MEDIA_SELECT_CLASS(klass) \
32         (GTK_CHECK_CLASS_CAST ((klass), GL_TYPE_WDGT_MEDIA_SELECT, glWdgtMediaSelectClass))
33 #define GL_IS_WDGT_MEDIA_SELECT(obj) \
34         (GTK_CHECK_TYPE ((obj), GL_TYPE_WDGT_MEDIA_SELECT))
35 #define GL_IS_WDGT_MEDIA_SELECT_CLASS(klass) \
36         (GTK_CHECK_CLASS_TYPE ((klass), GL_TYPE_WDGT_MEDIA_SELECT))
37
38 typedef struct _glWdgtMediaSelect      glWdgtMediaSelect;
39 typedef struct _glWdgtMediaSelectClass glWdgtMediaSelectClass;
40
41 struct _glWdgtMediaSelect {
42         GtkVBox   parent_widget;
43
44         GtkWidget *page_size_entry;
45         GtkWidget *template_combo;
46         GtkWidget *template_entry;
47
48         GtkWidget *mini_preview;
49
50         GtkWidget *desc_label;
51         GtkWidget *sheet_size_label;
52         GtkWidget *number_label;
53         GtkWidget *label_size_label;
54 };
55
56 struct _glWdgtMediaSelectClass {
57         GtkVBoxClass parent_class;
58
59         void (*changed) (glWdgtMediaSelect * media_select, gpointer user_data);
60 };
61
62 extern guint gl_wdgt_media_select_get_type       (void);
63
64 extern GtkWidget *gl_wdgt_media_select_new       (void);
65
66 extern gchar *gl_wdgt_media_select_get_name      (glWdgtMediaSelect * media_select);
67
68 extern void   gl_wdgt_media_select_set_name      (glWdgtMediaSelect * media_select,
69                                                   gchar * name);
70
71 extern gchar *gl_wdgt_media_select_get_page_size (glWdgtMediaSelect * media_select);
72
73 extern void   gl_wdgt_media_select_set_page_size (glWdgtMediaSelect * media_select,
74                                                   gchar * page_size);
75
76 #endif