chalk

kis_gradient_chooser.h
1/*
2 * Copyright (c) 2004 Adrian Page <adrian@pagenet.plus.com>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 */
18#ifndef KIS_GRADIENT_CHOOSER_H_
19#define KIS_GRADIENT_CHOOSER_H_
20
21#include <kdialogbase.h>
22
23#include "kis_itemchooser.h"
24
25class TQLabel;
26class TQPushButton;
27class KisView;
28
29class KisCustomGradientDialog : public KDialogBase {
30
31 TQ_OBJECT
32
33
34public:
35
36 KisCustomGradientDialog(KisView * view, TQWidget * parent, const char *name);
37
38private:
39
40 KisAutogradient * m_page;
41
42};
43
44class KisGradientChooser : public KisItemChooser {
45 typedef KisItemChooser super;
46 TQ_OBJECT
47
48
49public:
50 // XXX: On library redesign, remove m_view parameter here, it's just a temporary hack for the autogradient dialog!
51 KisGradientChooser(KisView * view, TQWidget *parent = 0, const char *name = 0);
52 virtual ~KisGradientChooser();
53
54protected:
55 virtual void update(KoIconItem *item);
56
57private:
58 TQLabel *m_lbName;
59 TQPushButton * m_customGradient;
60};
61
62#endif // KIS_GRADIENT_CHOOSER_H_
63