kis_autogradient.h 1.73 KB
Newer Older
1 2
/*
 *  Copyright (c) 2004 Cyrille Berger <cberger@cberger.net>
3
 *                2004 Sven Langkamp <sven.langkamp@gmail.com>
4 5 6 7 8 9 10 11 12 13 14 15 16
 *
 *  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
17
 *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 19
 */

20
#ifndef _KIS_AUTOGRADIENT_H_
21 22
#define _KIS_AUTOGRADIENT_H_

Adrian Page's avatar
Adrian Page committed
23
#include "ui_wdgautogradient.h"
24

25
class KoGradientSegment;
Sven Langkamp's avatar
Sven Langkamp committed
26
class KoSegmentGradient;
27

Adrian Page's avatar
Adrian Page committed
28
class KisAutogradient : public QWidget, public Ui::KisWdgAutogradient
29
{
30
    Q_OBJECT
31

Boudewijn Rempt's avatar
Boudewijn Rempt committed
32
public:
Sven Langkamp's avatar
Sven Langkamp committed
33
    KisAutogradient(KoSegmentGradient* gradient, QWidget *parent, const char* name, const QString& caption);
Boudewijn Rempt's avatar
Boudewijn Rempt committed
34 35
    void activate();
private:
Sven Langkamp's avatar
Sven Langkamp committed
36
    KoSegmentGradient* m_autogradientResource;
37
private Q_SLOTS:
Boudewijn Rempt's avatar
Boudewijn Rempt committed
38 39 40 41
    void slotSelectedSegment(KoGradientSegment* segment);
    void slotChangedSegment(KoGradientSegment* segment);
    void slotChangedInterpolation(int type);
    void slotChangedColorInterpolation(int type);
42 43
    void slotChangedLeftColor(const KoColor& color);
    void slotChangedRightColor(const KoColor& color);
Boudewijn Rempt's avatar
Boudewijn Rempt committed
44 45
    void slotChangedLeftOpacity(int value);
    void slotChangedRightOpacity(int value);
46
    void slotChangedName();
Boudewijn Rempt's avatar
Boudewijn Rempt committed
47
    void paramChanged();
48 49 50
};

#endif