chalk

kis_autogradient.h
1/*
2 * Copyright (c) 2004 Cyrille Berger <cberger@cberger.net>
3 * 2004 Sven Langkamp <longamp@reallygood.de>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * 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#define _KIS_AUTOGRADIENT_H_
22
23#include "wdgautogradient.h"
24
25class KisResource;
26class KisGradientSegment;
27class KisAutogradientResource;
28
29class KisAutogradient : public KisWdgAutogradient
30{
31 TQ_OBJECT
32
33
34 public:
35 KisAutogradient(TQWidget *parent, const char* name, const TQString& caption);
36 void activate();
37 signals:
38 void activatedResource(KisResource *r);
39 private:
40 KisAutogradientResource* m_autogradientResource;
41 private slots:
42 void slotSelectedSegment(KisGradientSegment* segment);
43 void slotChangedSegment(KisGradientSegment* segment);
44 void slotChangedInterpolation(int type);
45 void slotChangedColorInterpolation(int type);
46 void slotChangedLeftColor( const TQColor& color);
47 void slotChangedRightColor( const TQColor& color);
48 void slotChangedLeftOpacity( int value );
49 void slotChangedRightOpacity( int value );
50 void paramChanged();
51};
52
53#endif
The KisResource class provides a representation of Chalk image resources.