1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
/*
* (GLABELS) Label and Business Card Creation program for GNOME
*
* label.h: GLabels label module header file
*
* Copyright (C) 2001-2002 Jim Evins <evins@snaught.com>.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef __LABEL_H__
#define __LABEL_H__
#include <glib-object.h>
#include "merge.h"
#include "template.h"
G_BEGIN_DECLS
#define GL_TYPE_LABEL (gl_label_get_type ())
#define GL_LABEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GL_TYPE_LABEL, glLabel))
#define GL_LABEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GL_TYPE_LABEL, glLabelClass))
#define GL_IS_LABEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GL_TYPE_LABEL))
#define GL_IS_LABEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GL_TYPE_LABEL))
typedef struct _glLabel glLabel;
typedef struct _glLabelClass glLabelClass;
typedef struct _glLabelPrivate glLabelPrivate;
#include "label-object.h"
struct _glLabel {
GObject object;
GList *objects;
glLabelPrivate *private;
};
struct _glLabelClass {
GObjectClass parent_class;
void (*changed) (glLabel *label, gpointer user_data);
void (*name_changed) (glLabel *label, gpointer user_data);
void (*modified_changed) (glLabel *label, gpointer user_data);
};
extern GType gl_label_get_type (void);
extern GObject *gl_label_new (void);
extern void gl_label_add_object (glLabel *label,
glLabelObject *object);
extern void gl_label_remove_object (glLabel *label,
glLabelObject *object);
extern void gl_label_raise_object_to_top (glLabel *label,
glLabelObject * object);
extern void gl_label_lower_object_to_bottom (glLabel *label,
glLabelObject * object);
extern void gl_label_set_template (glLabel * label,
glTemplate *template);
extern void gl_label_set_rotate_flag (glLabel * label,
gboolean rotate_flag);
extern glTemplate *gl_label_get_template (glLabel * label);
extern gboolean gl_label_get_rotate_flag (glLabel * label);
extern void gl_label_get_size (glLabel * label,
gdouble *w,
gdouble *h);
extern void gl_label_set_merge (glLabel * label,
glMerge * merge);
extern glMerge *gl_label_get_merge (glLabel * label);
extern gchar *gl_label_get_filename (glLabel * label);
extern gchar *gl_label_get_short_name (glLabel * label);
extern gboolean gl_label_is_modified (glLabel * label);
extern gboolean gl_label_is_untitled (glLabel * label);
extern gboolean gl_label_can_undo (glLabel * label);
extern gboolean gl_label_can_redo (glLabel * label);
extern void gl_label_set_filename (glLabel *label,
const gchar *filename);
extern void gl_label_clear_modified (glLabel *label);
G_END_DECLS
#endif /* __LABEL_H__ */
|