|
Krita Source Code Documentation
|
#include <kis_widget_chooser.h>
Inheritance diagram for KisWidgetChooser:Classes | |
| struct | Data |
Public Slots | |
| void | showPopupWidget () |
| void | updateThemedIcons () |
Public Member Functions | |
| void | addLabelWidget (const QString &id, const QString &label, QWidget *widget) |
| template<class TWidget > | |
| TWidget * | addWidget (const QString &id, const QString &label="") |
| QWidget * | chooseWidget (const QString &id) |
| QWidget * | getWidget (const QString &id) const |
| template<class TWidget > | |
| TWidget * | getWidget (const QString &id) const |
| KisWidgetChooser (int id, QWidget *parent=0) | |
| ~KisWidgetChooser () override | |
Protected Slots | |
| void | slotButtonPressed () |
| void | slotWidgetChosen (int index) |
Protected Member Functions | |
| void | changeEvent (QEvent *e) override |
Private Types | |
| typedef QList< Data >::const_iterator | ConstIterator |
| typedef QList< Data >::iterator | Iterator |
Private Member Functions | |
| QLayout * | createLayout () |
| QLayout * | createPopupLayout () |
| void | removeWidget (const QString &id) |
| void | updateArrowIcon () |
Private Attributes | |
| QIcon | m_acceptIcon |
| QToolButton * | m_arrowButton |
| QButtonGroup * | m_buttons |
| int | m_chooserid |
| QString | m_chosenID |
| QFrame * | m_popup |
| QList< Data > | m_widgets |
Definition at line 19 of file kis_widget_chooser.h.
|
private |
Definition at line 43 of file kis_widget_chooser.h.
|
private |
Definition at line 42 of file kis_widget_chooser.h.
| KisWidgetChooser::KisWidgetChooser | ( | int | id, |
| QWidget * | parent = 0 ) |
Definition at line 24 of file kis_widget_chooser.cpp.
References connect(), KisIconUtils::loadIcon(), m_acceptIcon, m_arrowButton, m_buttons, m_popup, slotButtonPressed(), and updateArrowIcon().
|
override |
Definition at line 42 of file kis_widget_chooser.cpp.
References m_arrowButton, m_buttons, and m_popup.
| void KisWidgetChooser::addLabelWidget | ( | const QString & | id, |
| const QString & | label, | ||
| QWidget * | widget ) |
Definition at line 70 of file kis_widget_chooser.cpp.
References createLayout(), createPopupLayout(), m_popup, m_widgets, and removeWidget().
|
inline |
Definition at line 54 of file kis_widget_chooser.h.
|
overrideprotected |
Definition at line 255 of file kis_widget_chooser.cpp.
References updateArrowIcon().
| QWidget * KisWidgetChooser::chooseWidget | ( | const QString & | id | ) |
Definition at line 178 of file kis_widget_chooser.cpp.
References createLayout(), createPopupLayout(), m_chooserid, m_popup, m_widgets, and KisConfig::setToolbarSlider().
|
private |
Definition at line 89 of file kis_widget_chooser.cpp.
References m_arrowButton, and m_widgets.
|
private |
Definition at line 108 of file kis_widget_chooser.cpp.
References buttons(), connect(), KisIconUtils::loadIcon(), m_acceptIcon, m_buttons, m_widgets, and slotWidgetChosen().
| QWidget * KisWidgetChooser::getWidget | ( | const QString & | id | ) | const |
Definition at line 203 of file kis_widget_chooser.cpp.
References m_widgets.
|
inline |
Definition at line 65 of file kis_widget_chooser.h.
|
private |
Definition at line 158 of file kis_widget_chooser.cpp.
References createPopupLayout(), m_popup, and m_widgets.
|
slot |
Definition at line 213 of file kis_widget_chooser.cpp.
References m_popup.
|
protectedslot |
Definition at line 243 of file kis_widget_chooser.cpp.
References showPopupWidget().
|
protectedslot |
Definition at line 248 of file kis_widget_chooser.cpp.
References chooseWidget(), m_popup, and m_widgets.
|
private |
Definition at line 49 of file kis_widget_chooser.cpp.
References m_arrowButton, and palette.
|
slot |
Definition at line 234 of file kis_widget_chooser.cpp.
References length(), KisIconUtils::loadIcon(), and m_buttons.
|
private |
Definition at line 89 of file kis_widget_chooser.h.
|
private |
Definition at line 90 of file kis_widget_chooser.h.
|
private |
Definition at line 91 of file kis_widget_chooser.h.
|
private |
Definition at line 88 of file kis_widget_chooser.h.
|
private |
Definition at line 93 of file kis_widget_chooser.h.
|
private |
Definition at line 92 of file kis_widget_chooser.h.
Definition at line 94 of file kis_widget_chooser.h.