You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
koffice/chalk/core/kis_types.h

91 lines
2.7 KiB

/*
* Copyright (c) 2002 Patrick Julien <freak@codepimps.org>
*
* This program 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 2 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, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef KISTYPES_H_
#define KISTYPES_H_
#include <tqvaluevector.h>
#include <tqmap.h>
#include <tqpoint.h>
#include <ksharedptr.h>
#include "kis_shared_ptr_vector.h"
/**
* Define lots of shared pointer versions of Chalk classes.
* Shared pointer classes have the advantage of near automatic
* memory management (but take care of circular references)
* and the disadvantage that inheritiance relations are no longer
* recognizable
*/
class KisImage;
typedef TDESharedPtr<KisImage> KisImageSP;
class KisPaintDevice;
typedef TDESharedPtr<KisPaintDevice> KisPaintDeviceSP;
typedef KisSharedPtrVector<KisPaintDevice> vKisPaintDeviceSP;
typedef vKisPaintDeviceSP::iterator vKisPaintDeviceSP_it;
typedef vKisPaintDeviceSP::const_iterator vKisPaintDeviceSP_cit;
class KisLayer;
typedef TDESharedPtr<KisLayer> KisLayerSP;
typedef KisSharedPtrVector<KisLayer> vKisLayerSP;
typedef vKisLayerSP::iterator vKisLayerSP_it;
typedef vKisLayerSP::const_iterator vKisLayerSP_cit;
class KisPartLayer;
typedef TDESharedPtr<KisPartLayer> KisPartLayerSP;
class KisPaintLayer;
typedef TDESharedPtr<KisPaintLayer> KisPaintLayerSP;
class KisAdjustmentLayer;
typedef TDESharedPtr<KisAdjustmentLayer> KisAdjustmentLayerSP;
class KisGroupLayer;
typedef TDESharedPtr<KisGroupLayer> KisGroupLayerSP;
class KisSelection;
typedef TDESharedPtr<KisSelection> KisSelectionSP;
class KisBackground;
typedef TDESharedPtr<KisBackground> KisBackgroundSP;
class KisSubstrate;
typedef TDESharedPtr<KisSubstrate> KisSubstrateSP;
class KisHistogram;
typedef TDESharedPtr<KisHistogram> KisHistogramSP;
class KisPaintOpFactory;
typedef TDESharedPtr<KisPaintOpFactory> KisPaintOpFactorySP;
typedef TQValueVector<TQPoint> vKisSegments;
//class KisGuide;
//typedef TDESharedPtr<KisGuide> KisGuideSP;
class KisAlphaMask;
typedef TDESharedPtr<KisAlphaMask> KisAlphaMaskSP;
class KisFilter;
typedef TDESharedPtr<KisFilter> KisFilterSP;
#endif // KISTYPES_H_