|
Krita Source Code Documentation
|
The KisPaletteComboBox class A combobox used with KisPaletteView. More...
#include <KisPaletteComboBox.h>
Inheritance diagram for KisPaletteComboBox:Signals | |
| void | sigColorSelected (const KoColor &) |
Public Member Functions | |
| KisPaletteComboBox (QWidget *parent=0) | |
| void | setCompanionView (KisPaletteView *) |
| ~KisPaletteComboBox () | |
Public Member Functions inherited from KisSqueezedComboBox | |
| void | addSqueezedItem (const QIcon &icon, const QString &newItem, QVariant userData=QVariant()) |
| void | addSqueezedItem (const QString &newItem, QVariant userData=QVariant()) |
| bool | contains (const QString &text) const |
| QString | currentUnsqueezedText () |
| qint32 | findOriginalText (const QString &text) const |
| void | insertSqueezedItem (const QIcon &icon, const QString &newItem, int index, QVariant userData=QVariant()) |
| void | insertSqueezedItem (const QString &newItem, int index, QVariant userData=QVariant()) |
| KisSqueezedComboBox (QWidget *parent=0, const char *name=0) | |
| QStringList | originalTexts () const |
| void | removeSqueezedItem (int index) |
| void | resetOriginalTexts (const QStringList &texts) |
| void | setCurrent (const QString &itemText) |
| QSize | sizeHint () const override |
| ~KisSqueezedComboBox () override | |
Private Types | |
| typedef QHash< SwatchPosType, int > | PosIdxMapType |
| typedef QPair< int, int > | SwatchPosType |
Private Slots | |
| void | setPaletteModel (const KisPaletteModel *) |
| void | slotIndexUpdated (int) |
| void | slotPaletteChanged () |
| void | slotSwatchSelected (const QModelIndex &index) |
Private Member Functions | |
| QPixmap | createColorSquare (const KisSwatch &swatch) const |
Static Private Member Functions | |
| static bool | swatchInfoLess (const KisSwatchGroup::SwatchInfo &, const KisSwatchGroup::SwatchInfo &) |
Private Attributes | |
| QHash< QString, PosIdxMapType > | m_groupMapMap |
| QVector< KisSwatch > | m_idxSwatchMap |
| QPointer< const KisPaletteModel > | m_model |
| QPointer< KisPaletteView > | m_view |
Additional Inherited Members | |
Static Public Member Functions inherited from KisSqueezedComboBox | |
| static QString | squeezeText (const QString &original, const QWidget *widget) |
The KisPaletteComboBox class A combobox used with KisPaletteView.
Definition at line 27 of file KisPaletteComboBox.h.
|
private |
Definition at line 33 of file KisPaletteComboBox.h.
|
private |
Definition at line 32 of file KisPaletteComboBox.h.
|
explicit |
Definition at line 19 of file KisPaletteComboBox.cpp.
References connect(), and slotIndexUpdated().
| KisPaletteComboBox::~KisPaletteComboBox | ( | ) |
Definition at line 31 of file KisPaletteComboBox.cpp.
|
private |
Definition at line 106 of file KisPaletteComboBox.cpp.
References KisSwatch::color(), KisSwatch::spotColor(), and KoColor::toQColor().
| void KisPaletteComboBox::setCompanionView | ( | KisPaletteView * | view | ) |
Definition at line 46 of file KisPaletteComboBox.cpp.
References connect(), m_view, KisPaletteView::paletteModel(), setPaletteModel(), and slotSwatchSelected().
|
privateslot |
Definition at line 34 of file KisPaletteComboBox.cpp.
References connect(), m_model, and slotPaletteChanged().
|
privateslot |
Definition at line 143 of file KisPaletteComboBox.cpp.
References m_idxSwatchMap, and sigColorSelected().
|
privateslot |
Definition at line 57 of file KisPaletteComboBox.cpp.
References KisSqueezedComboBox::addSqueezedItem(), KisPaletteModel::CheckSlotRole, createColorSquare(), KisSwatch::id(), KisPaletteModel::IsGroupNameRole, m_groupMapMap, m_idxSwatchMap, m_model, m_view, KisSwatch::name(), slotSwatchSelected(), and swatchInfoLess().
|
privateslot |
Definition at line 130 of file KisPaletteComboBox.cpp.
References KisPaletteModel::CheckSlotRole, KisPaletteModel::GroupNameRole, KisPaletteModel::IsGroupNameRole, m_groupMapMap, and KisPaletteModel::RowInGroupRole.
|
staticprivate |
Definition at line 101 of file KisPaletteComboBox.cpp.
|
private |
Definition at line 60 of file KisPaletteComboBox.h.
Definition at line 61 of file KisPaletteComboBox.h.
|
private |
Definition at line 58 of file KisPaletteComboBox.h.
|
private |
Definition at line 59 of file KisPaletteComboBox.h.