kpresenter
KPrGradientCollection.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef kpgradientcollection_h
00022 #define kpgradientcollection_h
00023
00024 #include <qptrlist.h>
00025 #include "global.h"
00026 #include "KPrGradient.h"
00027
00028 class QPixmap;
00029
00038 class KPrGradientCollection
00039 {
00040 public:
00041 KPrGradientCollection()
00042 { gradientList.setAutoDelete( true ); }
00043
00044 ~KPrGradientCollection()
00045 { gradientList.clear(); }
00046
00048 const QPixmap& getGradient( const QColor &_color1, const QColor &_color2, BCType _bcType, const QSize &_size,
00049 bool _unbalanced, int _xfactor, int _yfactor, bool addref = true );
00050
00052 void removeRef( const QColor &_color1, const QColor &_color2, BCType _bcType, const QSize &_size,
00053 bool _unbalanced, int _xfactor, int _yfactor );
00054
00055 protected:
00056 KPrGradient* inGradientList( const QColor &_color1, const QColor &_color2, BCType _bcType, const QSize &_size,
00057 bool _unbalanced, int _xfactor, int _yfactor ) const;
00058
00059 private:
00060 QPtrList<KPrGradient> gradientList;
00061 };
00062
00063 #endif
|