krita

kis_cmb_composite.h

00001 /*
00002  *  kis_cmb_composite.h - part of KImageShop/Krayon/Krita
00003  *
00004  *  Copyright (c) 2004 Boudewijn Rempt (boud@valdyas.org)
00005  *
00006  *  This program is free software; you can redistribute it and/or modify
00007  *  it under the terms of the GNU General Public License as published by
00008  *  the Free Software Foundation; either version 2 of the License, or
00009  *  (at your option) any later version.
00010  *
00011  *  This program is distributed in the hope that it will be useful,
00012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *  GNU General Public License for more details.
00015  *
00016  *  You should have received a copy of the GNU General Public License
00017  *  along with this program; if not, write to the Free Software
00018  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00019  */
00020 
00021 #ifndef KIS_CMB_COMPOSITE_H_
00022 #define KIS_CMB_COMPOSITE_H_
00023 
00024 #include <koffice_export.h>
00025 #include "qcombobox.h"
00026 #include "kis_composite_op.h"
00027 
00039 class KRITAUI_EXPORT KisCmbComposite : public QComboBox
00040 {
00041     typedef QComboBox super;
00042 
00043     Q_OBJECT
00044 
00045  public:
00046 
00047     KisCmbComposite(QWidget * parent = 0, const char * name = 0 );
00048     virtual ~KisCmbComposite();
00049 
00050     KisCompositeOp currentItem() const;
00051 
00052     void setCompositeOpList(const KisCompositeOpList& list);
00053     void setCurrentItem(const KisCompositeOp& op);
00054     void setCurrentText(const QString & s);
00055 
00056 signals:
00057 
00058     void activated(const KisCompositeOp &);
00059     void highlighted(const KisCompositeOp &);
00060 
00061 private slots:
00062 
00063     void slotOpActivated(int i);
00064     void slotOpHighlighted(int i);
00065 
00066 private:
00067     KisCompositeOpList m_list;
00068 };
00069 
00070 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys