3 * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
5 * This file is part of gLabels.
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.
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.
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/>.
21 #ifndef __PREFS_MODEL_H__
22 #define __PREFS_MODEL_H__
24 #include <glib-object.h>
25 #include <pango/pango.h>
26 #include <libglabels/libglabels.h>
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))
39 typedef struct _glPrefsModel glPrefsModel;
40 typedef struct _glPrefsModelClass glPrefsModelClass;
41 typedef struct _glPrefsModelPrivate glPrefsModelPrivate;
44 struct _glPrefsModel {
47 glPrefsModelPrivate *priv;
50 struct _glPrefsModelClass {
51 GObjectClass parent_class;
53 void (*changed) (glPrefsModel *prefs_model,
58 GType gl_prefs_model_get_type (void) G_GNUC_CONST;
60 glPrefsModel *gl_prefs_model_new (void);
63 void gl_prefs_model_set_units (glPrefsModel *this,
66 lglUnits gl_prefs_model_get_units (glPrefsModel *this);
69 void gl_prefs_model_set_default_page_size (glPrefsModel *this,
70 const gchar *page_size);
72 gchar *gl_prefs_model_get_default_page_size (glPrefsModel *this);
75 void gl_prefs_model_set_default_font_family (glPrefsModel *this,
78 gchar *gl_prefs_model_get_default_font_family (glPrefsModel *this);
81 void gl_prefs_model_set_default_font_size (glPrefsModel *this,
84 gdouble gl_prefs_model_get_default_font_size (glPrefsModel *this);
87 void gl_prefs_model_set_default_font_weight (glPrefsModel *this,
90 PangoWeight gl_prefs_model_get_default_font_weight (glPrefsModel *this);
93 void gl_prefs_model_set_default_font_italic_flag (glPrefsModel *this,
94 gboolean italic_flag);
96 gboolean gl_prefs_model_get_default_font_italic_flag (glPrefsModel *this);
99 void gl_prefs_model_set_default_text_color (glPrefsModel *this,
102 guint gl_prefs_model_get_default_text_color (glPrefsModel *this);
105 void gl_prefs_model_set_default_text_alignment (glPrefsModel *this,
106 PangoAlignment alignment);
108 PangoAlignment gl_prefs_model_get_default_text_alignment (glPrefsModel *this);
111 void gl_prefs_model_set_default_text_line_spacing (glPrefsModel *this,
114 gdouble gl_prefs_model_get_default_text_line_spacing (glPrefsModel *this);
117 void gl_prefs_model_set_default_line_width (glPrefsModel *this,
120 gdouble gl_prefs_model_get_default_line_width (glPrefsModel *this);
123 void gl_prefs_model_set_default_line_color (glPrefsModel *this,
126 guint gl_prefs_model_get_default_line_color (glPrefsModel *this);
129 void gl_prefs_model_set_default_fill_color (glPrefsModel *this,
132 guint gl_prefs_model_get_default_fill_color (glPrefsModel *this);
135 void gl_prefs_model_set_main_toolbar_visible (glPrefsModel *this,
138 gboolean gl_prefs_model_get_main_toolbar_visible (glPrefsModel *this);
141 void gl_prefs_model_set_drawing_toolbar_visible (glPrefsModel *this,
144 gboolean gl_prefs_model_get_drawing_toolbar_visible (glPrefsModel *this);
147 void gl_prefs_model_set_property_toolbar_visible (glPrefsModel *this,
150 gboolean gl_prefs_model_get_property_toolbar_visible (glPrefsModel *this);
153 void gl_prefs_model_set_grid_visible (glPrefsModel *this,
156 gboolean gl_prefs_model_get_grid_visible (glPrefsModel *this);
159 void gl_prefs_model_set_markup_visible (glPrefsModel *this,
162 gboolean gl_prefs_model_get_markup_visible (glPrefsModel *this);
165 void gl_prefs_model_set_max_recents (glPrefsModel *this,
168 gint gl_prefs_model_get_max_recents (glPrefsModel *this);
173 #endif /* __PREFS_MODEL_H__ */
178 * Local Variables: -- emacs
180 * c-basic-offset: 8 -- emacs
181 * tab-width: 8 -- emacs
182 * indent-tabs-mode: nil -- emacs