aboutsummaryrefslogtreecommitdiff
path: root/src/stylesheet_editor.h
blob: 259fddbd8963a1ec0b6cc0c2171542d91f88cfda (plain)
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
/*
 * stylesheet_editor.h
 *
 * Copyright © 2013-2019 Thomas White <taw@bitwiz.org.uk>
 *
 * This file is part of Colloquium.
 *
 * Colloquium 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 3 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, see <http://www.gnu.org/licenses/>.
 *
 */

#ifndef STYLESHEET_EDITOR_H
#define STYLESHEET_EDITOR_H

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <gtk/gtk.h>

#include <narrative.h>

#define COLLOQUIUM_TYPE_STYLESHEET_EDITOR (stylesheet_editor_get_type())

#define COLLOQUIUM_STYLESHEET_EDITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \
                                             COLLOQUIUM_TYPE_STYLESHEET_EDITOR, \
                                             StylesheetEditor))

#define COLLOQUIUM_IS_STYLESHEET_EDITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
                                                COLLOQUIUM_TYPE_STYLESHEET_EDITOR))

#define COLLOQUIUM_STYLESHEET_EDITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((obj), \
                                                     COLLOQUIUM_TYPE_STYLESHEET_EDITOR, \
                                                     StylesheetEditorClass))

#define COLLOQUIUM_IS_STYLESHEET_EDITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((obj), \
                                                        COLLOQUIUM_TYPE_STYLESHEET_EDITOR))

#define COLLOQUIUM_STYLESHEET_EDITOR_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS((obj), \
                                                        COLLOQUIUM_TYPE_STYLESHEET_EDITOR, \
                                                        StylesheetEditorClass))


typedef struct _sspriv StylesheetEditorPrivate;

struct _stylesheeteditor
{
	GtkDialog parent_instance;
	GtkWidget *selector;
	GtkTreeStore *element_tree;
	GtkWidget *paraspace_l;
	GtkWidget *paraspace_r;
	GtkWidget *paraspace_t;
	GtkWidget *paraspace_b;
	GtkWidget *padding_l;
	GtkWidget *padding_r;
	GtkWidget *padding_t;
	GtkWidget *padding_b;
	GtkWidget *font;
	GtkWidget *fgcol;
	GtkWidget *bgcol;
	GtkWidget *bgcol2;
	GtkWidget *bggrad;
	GtkWidget *alignment;
	GtkWidget *w;
	GtkWidget *h;
	GtkWidget *x;
	GtkWidget *y;
	GtkWidget *w_units;
	GtkWidget *h_units;
	StylesheetEditorPrivate *priv;
};

struct _stylesheeteditorclass
{
	GtkDialogClass parent_class;
};

typedef struct _stylesheeteditor StylesheetEditor;
typedef struct _stylesheeteditorclass StylesheetEditorClass;

extern StylesheetEditor *stylesheet_editor_new(Stylesheet *ss);

#endif	/* STYLESHEET_EDITOR_H */