filters

xcf-private.h

00001 /* The GIMP -- an image manipulation program
00002  * Copyright (C) 1995 Spencer Kimball and Peter Mattis
00003  *
00004  * This program is free software; you can redistribute it and/or modify
00005  * it under the terms of the GNU General Public License as published by
00006  * the Free Software Foundation; either version 2 of the License, or
00007  * (at your option) any later version.
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software
00016  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00017  */
00018 
00019 #ifndef __XCF_PRIVATE_H__
00020 #define __XCF_PRIVATE_H__
00021 
00022 #include <qcstring.h>
00023 
00024 typedef enum
00025 {
00026   PROP_END                =  0,
00027   PROP_COLORMAP           =  1,
00028   PROP_ACTIVE_LAYER       =  2,
00029   PROP_ACTIVE_CHANNEL     =  3,
00030   PROP_SELECTION          =  4,
00031   PROP_FLOATING_SELECTION =  5,
00032   PROP_OPACITY            =  6,
00033   PROP_MODE               =  7,
00034   PROP_VISIBLE            =  8,
00035   PROP_LINKED             =  9,
00036   PROP_LOCK_ALPHA         = 10,
00037   PROP_APPLY_MASK         = 11,
00038   PROP_EDIT_MASK          = 12,
00039   PROP_SHOW_MASK          = 13,
00040   PROP_SHOW_MASKED        = 14,
00041   PROP_OFFSETS            = 15,
00042   PROP_COLOR              = 16,
00043   PROP_COMPRESSION        = 17,
00044   PROP_GUIDES             = 18,
00045   PROP_RESOLUTION         = 19,
00046   PROP_TATTOO             = 20,
00047   PROP_PARASITES          = 21,
00048   PROP_UNIT               = 22,
00049   PROP_PATHS              = 23,
00050   PROP_USER_UNIT          = 24,
00051   PROP_VECTORS            = 25,
00052   PROP_TEXT_LAYER_FLAGS   = 26
00053 } PropType;
00054 
00055 typedef enum
00056 {
00057   COMPRESS_NONE              =  0,
00058   COMPRESS_RLE               =  1,
00059   COMPRESS_ZLIB              =  2,  /* unused */
00060   COMPRESS_FRACTAL           =  3   /* unused */
00061 } XcfCompressionType;
00062 
00063 typedef enum
00064 {
00065   XCF_ORIENTATION_HORIZONTAL = 1,
00066   XCF_ORIENTATION_VERTICAL   = 2
00067 } XcfOrientationType;
00068 
00069 typedef enum
00070 {
00071   XCF_STROKETYPE_STROKE        = 0,
00072   XCF_STROKETYPE_BEZIER_STROKE = 1
00073 } XcfStrokeType;
00074 
00075 typedef struct _XcfInfo  XcfInfo;
00076 
00077 struct _XcfInfo
00078 {
00079   FILE               *fp;
00080   Q_UINT32           cp;
00081   const QCString     filename;
00082   //GimpTattoo         tattoo_state;
00083   KisLayer           *active_layer;
00084   //GimpChannel        *active_channel;
00085   //GimpDrawable       *floating_sel_drawable;
00086   KisLayer           *floating_sel;
00087   Q_UINT32           floating_sel_offset;
00088   Q_INT32            swap_num;
00089   Q_INT32            *ref_count;
00090   XcfCompressionType compression;
00091   Q_INT32            file_version;
00092 };
00093 
00094 
00095 #endif /* __XCF_PRIVATE_H__ */
KDE Home | KDE Accessibility Home | Description of Access Keys