]> git.sur5r.net Git - glabels/blob - glabels1/src/prop_text_entry.h
06c5deeb1fa97f9318a9716a2d13d6289dd3b707
[glabels] / glabels1 / src / prop_text_entry.h
1 /*
2  *  (GLABELS) Label and Business Card Creation program for GNOME
3  *
4  *  prop_text_entry.h:  text entry 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 __PROP_TEXT_ENTRY_H__
24 #define __PROP_TEXT_ENTRY_H__
25
26 #include <gnome.h>
27
28 #include "merge.h"
29
30 #define GL_TYPE_PROP_TEXT_ENTRY (gl_prop_text_entry_get_type ())
31 #define GL_PROP_TEXT_ENTRY(obj) \
32         (GTK_CHECK_CAST((obj), GL_TYPE_PROP_TEXT_ENTRY, glPropTextEntry ))
33 #define GL_PROP_TEXT_ENTRY_CLASS(klass) \
34         (GTK_CHECK_CLASS_CAST ((klass), GL_TYPE_PROP_TEXT_ENTRY, glPropTextEntryClass))
35 #define GL_IS_PROP_TEXT_ENTRY(obj) \
36         (GTK_CHECK_TYPE ((obj), GL_TYPE_PROP_TEXT_ENTRY))
37 #define GL_IS_PROP_TEXT_ENTRY_CLASS(klass) \
38         (GTK_CHECK_CLASS_TYPE ((klass), GL_TYPE_PROP_TEXT_ENTRY))
39
40 typedef struct _glPropTextEntry glPropTextEntry;
41 typedef struct _glPropTextEntryClass glPropTextEntryClass;
42
43 struct _glPropTextEntry {
44         GtkVBox parent_widget;
45
46         GtkWidget *text_entry;
47         GtkWidget *key_entry;
48         GtkWidget *insert_button;
49 };
50
51 struct _glPropTextEntryClass {
52         GtkVBoxClass parent_class;
53
54         void (*changed) (glPropTextEntry * text_entry, gpointer user_data);
55 };
56
57 extern guint gl_prop_text_entry_get_type (void);
58
59 extern GtkWidget *gl_prop_text_entry_new (gchar * label, GList * field_defs);
60
61 extern GList *gl_prop_text_entry_get_text (glPropTextEntry * text_entry);
62
63 extern void gl_prop_text_entry_set_text (glPropTextEntry * text_entry,
64                                          gboolean merge_flag,
65                                          GList * lines);
66
67 #endif