krita
kis_autogradient.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef _KIS_AUTOGRADIENT_H_
00021 #define _KIS_AUTOGRADIENT_H_
00022
00023 #include "wdgautogradient.h"
00024
00025 class KisResource;
00026 class KisGradientSegment;
00027 class KisAutogradientResource;
00028
00029 class KisAutogradient : public KisWdgAutogradient
00030 {
00031 Q_OBJECT
00032
00033 public:
00034 KisAutogradient(QWidget *parent, const char* name, const QString& caption);
00035 void activate();
00036 signals:
00037 void activatedResource(KisResource *r);
00038 private:
00039 KisAutogradientResource* m_autogradientResource;
00040 private slots:
00041 void slotSelectedSegment(KisGradientSegment* segment);
00042 void slotChangedSegment(KisGradientSegment* segment);
00043 void slotChangedInterpolation(int type);
00044 void slotChangedColorInterpolation(int type);
00045 void slotChangedLeftColor( const QColor& color);
00046 void slotChangedRightColor( const QColor& color);
00047 void slotChangedLeftOpacity( int value );
00048 void slotChangedRightOpacity( int value );
00049 void paramChanged();
00050 };
00051
00052 #endif
|