/* * Copyright (c) 2002 Patrick Julien * * 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 #include #include #include #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 KisImageSP; class KisPaintDevice; typedef TDESharedPtr KisPaintDeviceSP; typedef KisSharedPtrVector vKisPaintDeviceSP; typedef vKisPaintDeviceSP::iterator vKisPaintDeviceSP_it; typedef vKisPaintDeviceSP::const_iterator vKisPaintDeviceSP_cit; class KisLayer; typedef TDESharedPtr KisLayerSP; typedef KisSharedPtrVector vKisLayerSP; typedef vKisLayerSP::iterator vKisLayerSP_it; typedef vKisLayerSP::const_iterator vKisLayerSP_cit; class KisPartLayer; typedef TDESharedPtr KisPartLayerSP; class KisPaintLayer; typedef TDESharedPtr KisPaintLayerSP; class KisAdjustmentLayer; typedef TDESharedPtr KisAdjustmentLayerSP; class KisGroupLayer; typedef TDESharedPtr KisGroupLayerSP; class KisSelection; typedef TDESharedPtr KisSelectionSP; class KisBackground; typedef TDESharedPtr KisBackgroundSP; class KisSubstrate; typedef TDESharedPtr KisSubstrateSP; class KisHistogram; typedef TDESharedPtr KisHistogramSP; class KisPaintOpFactory; typedef TDESharedPtr KisPaintOpFactorySP; typedef TQValueVector vKisSegments; //class KisGuide; //typedef TDESharedPtr KisGuideSP; class KisAlphaMask; typedef TDESharedPtr KisAlphaMaskSP; class KisFilter; typedef TDESharedPtr KisFilterSP; #endif // KISTYPES_H_