kiconselectaction.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef KICONSELECTACTION_H
00021 #define KICONSELECTACTION_H
00022
00023 #include <kaction.h>
00024
00025 class KIconSelectActionPrivate;
00026
00027 class KIconSelectAction : public KSelectAction
00028 {
00029 Q_OBJECT
00030 public:
00031 KIconSelectAction(const QString& text, int accel = 0, QObject* parent = 0, const char* name = 0);
00032 virtual ~KIconSelectAction();
00033
00034 virtual int plug(QWidget* widget, int index = -1);
00035
00036 public slots:
00037 virtual void setItems(const QStringList& lst, const QStringList& iconlst);
00038 virtual void setCurrentItem(int index);
00039
00040 protected:
00041 void createPopupMenu();
00042 void updateIcons();
00043 virtual void updateCurrentItem(int id);
00044
00045 private:
00046 KIconSelectActionPrivate* d;
00047 };
00048
00049 #endif
|