krita/ui
kis_cmb_composite.hGo to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef KIS_CMB_COMPOSITE_H_
00022 #define KIS_CMB_COMPOSITE_H_
00023
00024 #include <krita_export.h>
00025 #include "kcombobox.h"
00026 #include "KoCompositeOp.h"
00027
00028 class KisCompositeOpsModel;
00029 class KCategorizedSortFilterProxyModel;
00030
00036 class KRITAUI_EXPORT KisCmbComposite : public KComboBox
00037 {
00038
00039 Q_OBJECT
00040
00041 public:
00042
00043 KisCmbComposite(QWidget * parent = 0, const char * name = 0);
00044 virtual ~KisCmbComposite();
00045
00046 const QString& currentItem() const;
00047
00048 void setCompositeOpList(const QList<KoCompositeOp*>& list);
00049 void setCurrent(const KoCompositeOp* op);
00050 void setCurrent(const QString & s);
00051
00052 signals:
00053
00054 void activated(const QString&);
00055 void highlighted(const QString&);
00056
00057 private slots:
00058
00059 void slotOpActivated(int i);
00060 void slotOpHighlighted(int i);
00061
00062 private:
00063
00064 void setCurrentText(const QString & s);
00065 const QString& itemAt(int idx) const;
00066
00067 KisCompositeOpsModel* m_lastModel;
00068 KCategorizedSortFilterProxyModel* m_sortModel;
00069 };
00070
00071 #endif
|