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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
|
/*
* mini-preview.h
* Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
* This file is part of gLabels.
*
* gLabels 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.
*
* gLabels 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 gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __MINI_PREVIEW_H__
#define __MINI_PREVIEW_H__
#include <gtk/gtk.h>
#include "label.h"
G_BEGIN_DECLS
#define GL_TYPE_MINI_PREVIEW (gl_mini_preview_get_type ())
#define GL_MINI_PREVIEW(obj) \
(G_TYPE_CHECK_INSTANCE_CAST((obj), GL_TYPE_MINI_PREVIEW, glMiniPreview ))
#define GL_MINI_PREVIEW_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST ((klass), GL_TYPE_MINI_PREVIEW, glMiniPreviewClass))
#define GL_IS_MINI_PREVIEW(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), GL_TYPE_MINI_PREVIEW))
#define GL_IS_MINI_PREVIEW_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE ((klass), GL_TYPE_MINI_PREVIEW))
typedef struct _glMiniPreview glMiniPreview;
typedef struct _glMiniPreviewPrivate glMiniPreviewPrivate;
typedef struct _glMiniPreviewClass glMiniPreviewClass;
struct _glMiniPreview {
GtkEventBox parent;
glMiniPreviewPrivate *priv;
};
struct _glMiniPreviewClass {
GtkEventBoxClass parent_class;
void (*clicked) (glMiniPreview *this,
gint index,
gpointer user_data);
void (*pressed) (glMiniPreview *this,
gint index1,
gint index2,
gpointer user_data);
void (*released) (glMiniPreview *this,
gint index1,
gint index2,
gpointer user_data);
};
GType gl_mini_preview_get_type (void) G_GNUC_CONST;
GtkWidget *gl_mini_preview_new (gint height,
gint width);
void gl_mini_preview_set_by_name (glMiniPreview *this,
const gchar *name);
void gl_mini_preview_set_template (glMiniPreview *this,
const lglTemplate *template);
void gl_mini_preview_highlight_range (glMiniPreview *this,
gint first_label,
gint last_label);
void gl_mini_preview_set_draw_arrow (glMiniPreview *this,
gboolean draw_arrow_flag);
void gl_mini_preview_set_rotate (glMiniPreview *this,
gboolean rotate_flag);
/*
* If label is set, the preview will be rich.
*/
void gl_mini_preview_set_label (glMiniPreview *this,
glLabel *label);
void gl_mini_preview_set_page (glMiniPreview *this,
gint n_sheets);
void gl_mini_preview_set_n_sheets (glMiniPreview *this,
gint n_sheets);
void gl_mini_preview_set_n_copies (glMiniPreview *this,
gint n_copies);
void gl_mini_preview_set_first (glMiniPreview *this,
gint first);
void gl_mini_preview_set_last (glMiniPreview *this,
gint last);
void gl_mini_preview_set_collate_flag (glMiniPreview *this,
gboolean collate_flag);
void gl_mini_preview_set_outline_flag (glMiniPreview *this,
gboolean outline_flag);
void gl_mini_preview_set_reverse_flag (glMiniPreview *this,
gboolean reverse_flag);
void gl_mini_preview_set_crop_marks_flag (glMiniPreview *this,
gboolean crop_marks_flag);
G_END_DECLS
#endif
/*
* Local Variables: -- emacs
* mode: C -- emacs
* c-basic-offset: 8 -- emacs
* tab-width: 8 -- emacs
* indent-tabs-mode: nil -- emacs
* End: -- emacs
*/
|