krita

kis_gradient_chooser.h

00001 /*
00002  *  Copyright (c) 2004 Adrian Page <adrian@pagenet.plus.com>
00003  *
00004  *  This program is free software; you can redistribute it and/or modify
00005  *  it under the terms of the GNU General Public License as published by
00006  *  the Free Software Foundation; either version 2 of the License, or
00007  *  (at your option) any later version.
00008  *
00009  *  This program is distributed in the hope that it will be useful,
00010  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  *  GNU General Public License for more details.
00013  *
00014  *  You should have received a copy of the GNU General Public License
00015  *  along with this program; if not, write to the Free Software
00016  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00017  */
00018 #ifndef KIS_GRADIENT_CHOOSER_H_
00019 #define KIS_GRADIENT_CHOOSER_H_
00020 
00021 #include <kdialogbase.h>
00022 
00023 #include "kis_itemchooser.h"
00024 
00025 class QLabel;
00026 class QPushButton;
00027 class KisView;
00028 
00029 class KisCustomGradientDialog : public KDialogBase {
00030 
00031     Q_OBJECT
00032 
00033 public:
00034 
00035     KisCustomGradientDialog(KisView * view, QWidget * parent, const char *name);
00036     
00037 private:
00038     
00039     KisAutogradient * m_page;
00040 
00041 };
00042 
00043 class KisGradientChooser : public KisItemChooser {
00044     typedef KisItemChooser super;
00045     Q_OBJECT
00046 
00047 public:
00048     // XXX: On library redesign, remove m_view parameter here, it's just a temporary hack for the autogradient dialog!
00049     KisGradientChooser(KisView * view, QWidget *parent = 0, const char *name = 0);
00050     virtual ~KisGradientChooser();
00051 
00052 protected:
00053     virtual void update(KoIconItem *item);
00054 
00055 private:
00056     QLabel *m_lbName;
00057     QPushButton * m_customGradient;
00058 };
00059 
00060 #endif // KIS_GRADIENT_CHOOSER_H_
00061 
KDE Home | KDE Accessibility Home | Description of Access Keys