krita/ui

kis_autogradient.h

Go to the documentation of this file.
00001 /*
00002  *  Copyright (c) 2004 Cyrille Berger <cberger@cberger.net>
00003  *                2004 Sven Langkamp <sven.langkamp@gmail.com>
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 "ui_wdgautogradient.h"
00024 
00025 class KoResource;
00026 class KoGradientSegment;
00027 class KisAutogradientResource;
00028 
00029 class KisAutogradient : public QWidget, public Ui::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(KoResource *r);
00038 private:
00039     KisAutogradientResource* m_autogradientResource;
00040 private slots:
00041     void slotSelectedSegment(KoGradientSegment* segment);
00042     void slotChangedSegment(KoGradientSegment* 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