filters

xcf-private.h
1/* The GIMP -- an image manipulation program
2 * Copyright (C) 1995 Spencer Kimball and Peter Mattis
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 */
18
19#ifndef __XCF_PRIVATE_H__
20#define __XCF_PRIVATE_H__
21
22#include <tqcstring.h>
23
24typedef enum
25{
26 PROP_END = 0,
27 PROP_COLORMAP = 1,
28 PROP_ACTIVE_LAYER = 2,
29 PROP_ACTIVE_CHANNEL = 3,
30 PROP_SELECTION = 4,
31 PROP_FLOATING_SELECTION = 5,
32 PROP_OPACITY = 6,
33 PROP_MODE = 7,
34 PROP_VISIBLE = 8,
35 PROP_LINKED = 9,
36 PROP_LOCK_ALPHA = 10,
37 PROP_APPLY_MASK = 11,
38 PROP_EDIT_MASK = 12,
39 PROP_SHOW_MASK = 13,
40 PROP_SHOW_MASKED = 14,
41 PROP_OFFSETS = 15,
42 PROP_COLOR = 16,
43 PROP_COMPRESSION = 17,
44 PROP_GUIDES = 18,
45 PROP_RESOLUTION = 19,
46 PROP_TATTOO = 20,
47 PROP_PARASITES = 21,
48 PROP_UNIT = 22,
49 PROP_PATHS = 23,
50 PROP_USER_UNIT = 24,
51 PROP_VECTORS = 25,
52 PROP_TEXT_LAYER_FLAGS = 26
53} PropType;
54
55typedef enum
56{
57 COMPRESS_NONE = 0,
58 COMPRESS_RLE = 1,
59 COMPRESS_ZLIB = 2, /* unused */
60 COMPRESS_FRACTAL = 3 /* unused */
61} XcfCompressionType;
62
63typedef enum
64{
65 XCF_ORIENTATION_HORIZONTAL = 1,
66 XCF_ORIENTATION_VERTICAL = 2
67} XcfQt::OrientationType;
68
69typedef enum
70{
71 XCF_STROKETYPE_STROKE = 0,
72 XCF_STROKETYPE_BEZIER_STROKE = 1
73} XcfStrokeType;
74
75typedef struct _XcfInfo XcfInfo;
76
77struct _XcfInfo
78{
79 FILE *fp;
80 TQ_UINT32 cp;
81 const TQCString filename;
82 //GimpTattoo tattoo_state;
83 KisLayer *active_layer;
84 //GimpChannel *active_channel;
85 //GimpDrawable *floating_sel_drawable;
86 KisLayer *floating_sel;
87 TQ_UINT32 floating_sel_offset;
88 TQ_INT32 swap_num;
89 TQ_INT32 *ref_count;
90 XcfCompressionType compression;
91 TQ_INT32 file_version;
92};
93
94
95#endif /* __XCF_PRIVATE_H__ */