krita

kis_cmb_idlist.h

00001 /*
00002  *  kis_cmb_imagetype.h - part of KImageShop/Krayon/Krita
00003  *
00004  *  Copyright (c) 2005 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_IDLIST_H_
00022 #define KIS_CMB_IDLIST_H_
00023 
00024 #include "qcombobox.h"
00025 
00026 #include "kis_id.h"
00027 
00033 class KisCmbIDList : public QComboBox
00034 {
00035     typedef QComboBox super;
00036 
00037     Q_OBJECT
00038 
00039 public:
00040 
00041     KisCmbIDList(QWidget * parent = 0, const char * name = 0 );
00042     virtual ~KisCmbIDList();
00043 
00044 
00045 public:
00046     void setIDList(const KisIDList & list);
00047     void setCurrent(const KisID id);
00048     void setCurrentText(const QString & s);
00049 
00050     KisID currentItem() const;
00051 
00052 signals:
00053 
00054     void activated(const KisID &);
00055     void highlighted(const KisID &);
00056 
00057 private slots:
00058 
00059     void slotIDActivated(int i);
00060     void slotIDHighlighted(int i);
00061 
00062 private:
00063 
00064     KisIDList m_list;
00065 
00066 };
00067 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys