krita

kis_autogradient.h

00001 /*
00002  *  Copyright (c) 2004 Cyrille Berger <cberger@cberger.net>
00003  *                2004 Sven Langkamp <longamp@reallygood.de>
00004  *
00005  *  This program is free software; you can redistribute it and/or modify
00006  *  it under the terms of the GNU General Public License as published by
00007  *  the Free Software Foundation; either version 2 of the License, or
00008  *  (at your option) any later version.
00009  *
00010  *  This program is distributed in the hope that it will be useful,
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *  GNU General Public License for more details.
00014  *
00015  *  You should have received a copy of the GNU General Public License
00016  *  along with this program; if not, write to the Free Software
00017  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
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
KDE Home | KDE Accessibility Home | Description of Access Keys