]> git.sur5r.net Git - glabels/blob - src/prefs-model.h
Added Sigel template
[glabels] / src / prefs-model.h
1 /*
2  *  prefs-model.h
3  *  Copyright (C) 2001-2009  Jim Evins <evins@snaught.com>.
4  *
5  *  This file is part of gLabels.
6  *
7  *  gLabels is free software: you can redistribute it and/or modify
8  *  it under the terms of the GNU General Public License as published by
9  *  the Free Software Foundation, either version 3 of the License, or
10  *  (at your option) any later version.
11  *
12  *  gLabels is distributed in the hope that it will be useful,
13  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  *  GNU General Public License for more details.
16  *
17  *  You should have received a copy of the GNU General Public License
18  *  along with gLabels.  If not, see <http://www.gnu.org/licenses/>.
19  */
20
21 #ifndef __PREFS_MODEL_H__
22 #define __PREFS_MODEL_H__
23
24 #include <glib-object.h>
25 #include <pango/pango.h>
26 #include <libglabels/libglabels.h>
27
28 G_BEGIN_DECLS
29
30
31 #define GL_TYPE_PREFS_MODEL              (gl_prefs_model_get_type ())
32 #define GL_PREFS_MODEL(obj)              (G_TYPE_CHECK_INSTANCE_CAST ((obj), GL_TYPE_PREFS_MODEL, glPrefsModel))
33 #define GL_PREFS_MODEL_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), GL_TYPE_PREFS_MODEL, glPrefsModelClass))
34 #define GL_IS_PREFS_MODEL(obj)           (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GL_TYPE_PREFS_MODEL))
35 #define GL_IS_PREFS_MODEL_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), GL_TYPE_PREFS_MODEL))
36 #define GL_PREFS_MODEL_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), GL_TYPE_PREFS_MODEL, glPrefsModelClass))
37
38
39 typedef struct _glPrefsModel          glPrefsModel;
40 typedef struct _glPrefsModelClass     glPrefsModelClass;
41 typedef struct _glPrefsModelPrivate   glPrefsModelPrivate;
42
43
44 struct _glPrefsModel {
45         GObject              parent;
46
47         glPrefsModelPrivate *priv;
48 };
49
50 struct _glPrefsModelClass {
51         GObjectClass         parent_class;
52
53         void (*changed) (glPrefsModel *prefs_model,
54                          gpointer      user_data);
55 };
56
57
58 GType          gl_prefs_model_get_type                      (void) G_GNUC_CONST;
59
60 glPrefsModel  *gl_prefs_model_new                           (void);
61
62
63 void           gl_prefs_model_set_units                     (glPrefsModel     *this,
64                                                              lglUnits          units);
65
66 lglUnits       gl_prefs_model_get_units                     (glPrefsModel     *this);
67
68
69 void           gl_prefs_model_set_default_page_size         (glPrefsModel     *this,
70                                                              const gchar      *page_size);
71
72 gchar         *gl_prefs_model_get_default_page_size         (glPrefsModel     *this);
73
74
75 void           gl_prefs_model_set_default_font_family       (glPrefsModel     *this,
76                                                              const gchar      *family);
77
78 gchar         *gl_prefs_model_get_default_font_family       (glPrefsModel     *this);
79
80
81 void           gl_prefs_model_set_default_font_size         (glPrefsModel     *this,
82                                                              gdouble           size);
83
84 gdouble        gl_prefs_model_get_default_font_size         (glPrefsModel     *this);
85
86
87 void           gl_prefs_model_set_default_font_weight       (glPrefsModel     *this,
88                                                              PangoWeight       weight);
89
90 PangoWeight    gl_prefs_model_get_default_font_weight       (glPrefsModel     *this);
91
92
93 void           gl_prefs_model_set_default_font_italic_flag  (glPrefsModel     *this,
94                                                              gboolean          italic_flag);
95
96 gboolean       gl_prefs_model_get_default_font_italic_flag  (glPrefsModel     *this);
97
98
99 void           gl_prefs_model_set_default_text_color        (glPrefsModel     *this,
100                                                              guint             color);
101
102 guint          gl_prefs_model_get_default_text_color        (glPrefsModel     *this);
103
104
105 void           gl_prefs_model_set_default_text_alignment    (glPrefsModel     *this,
106                                                              PangoAlignment    alignment);
107
108 PangoAlignment gl_prefs_model_get_default_text_alignment    (glPrefsModel     *this);
109
110
111 void           gl_prefs_model_set_default_text_line_spacing (glPrefsModel     *this,
112                                                              gdouble           spacing);
113
114 gdouble        gl_prefs_model_get_default_text_line_spacing (glPrefsModel     *this);
115
116
117 void           gl_prefs_model_set_default_line_width        (glPrefsModel     *this,
118                                                              gdouble           width);
119
120 gdouble        gl_prefs_model_get_default_line_width        (glPrefsModel     *this);
121
122
123 void           gl_prefs_model_set_default_line_color        (glPrefsModel     *this,
124                                                              guint             color);
125
126 guint          gl_prefs_model_get_default_line_color        (glPrefsModel     *this);
127
128
129 void           gl_prefs_model_set_default_fill_color        (glPrefsModel     *this,
130                                                              guint             color);
131
132 guint          gl_prefs_model_get_default_fill_color        (glPrefsModel     *this);
133
134
135 void           gl_prefs_model_set_main_toolbar_visible      (glPrefsModel     *this,
136                                                              gboolean          visible);
137
138 gboolean       gl_prefs_model_get_main_toolbar_visible      (glPrefsModel     *this);
139
140
141 void           gl_prefs_model_set_drawing_toolbar_visible   (glPrefsModel     *this,
142                                                              gboolean          visible);
143
144 gboolean       gl_prefs_model_get_drawing_toolbar_visible   (glPrefsModel     *this);
145
146
147 void           gl_prefs_model_set_property_toolbar_visible  (glPrefsModel     *this,
148                                                              gboolean          visible);
149
150 gboolean       gl_prefs_model_get_property_toolbar_visible  (glPrefsModel     *this);
151
152
153 void           gl_prefs_model_set_grid_visible              (glPrefsModel     *this,
154                                                              gboolean          visible);
155
156 gboolean       gl_prefs_model_get_grid_visible              (glPrefsModel     *this);
157
158
159 void           gl_prefs_model_set_markup_visible            (glPrefsModel     *this,
160                                                              gboolean          visible);
161
162 gboolean       gl_prefs_model_get_markup_visible            (glPrefsModel     *this);
163
164
165 void           gl_prefs_model_set_max_recents               (glPrefsModel     *this,
166                                                              gint              max_recents);
167
168 gint           gl_prefs_model_get_max_recents               (glPrefsModel     *this);
169
170
171 G_END_DECLS
172
173 #endif /* __PREFS_MODEL_H__ */
174
175
176
177 /*
178  * Local Variables:       -- emacs
179  * mode: C                -- emacs
180  * c-basic-offset: 8      -- emacs
181  * tab-width: 8           -- emacs
182  * indent-tabs-mode: nil  -- emacs
183  * End:                   -- emacs
184  */