|
Krita Source Code Documentation
|
#include <kis_selection_options.h>
Inheritance diagram for KisSelectionOptions:Classes | |
| class | Private |
Public Types | |
| enum | ReferenceLayers { CurrentLayer , AllLayers , ColorLabeledLayers } |
Public Member Functions | |
| SelectionAction | action () const |
| bool | antiAliasSelection () const |
| int | featherSelection () const |
| int | growSelection () const |
| KisSelectionOptions (QWidget *parent=nullptr) | |
| SelectionMode | mode () const |
| ReferenceLayers | referenceLayers () const |
| QList< int > | selectedColorLabels () const |
| void | setAction (SelectionAction newAction) |
| void | setActionSectionVisible (bool visible) |
| void | setAdjustmentsSectionVisible (bool visible) |
| void | setAntiAliasSelection (bool newAntiAliasSelection) |
| void | setFeatherSelection (int newFeatherSelection) |
| void | setGrowSelection (int newGrowSelection) |
| void | setMode (SelectionMode newMode) |
| void | setModeSectionVisible (bool visible) |
| void | setReferenceLayers (ReferenceLayers newReferenceLayers) |
| void | setReferenceSectionVisible (bool visible) |
| void | setSelectedColorLabels (const QList< int > &newSelectedColorLabels) |
| void | setStopGrowingAtDarkestPixel (bool newStopGrowingAtDarkestPixel) |
| void | setStopGrowingAtDarkestPixelButtonVisible (bool visible) |
| bool | stopGrowingAtDarkestPixel () const |
| void | updateActionButtonToolTip (SelectionAction action, const QKeySequence &shortcut) |
| ~KisSelectionOptions () override | |
Public Member Functions inherited from KisOptionCollectionWidget | |
| void | appendWidget (const QString &id, QWidget *widget) |
| Insert the given widget with the given id at the end of the list. The list widget takes ownership of the inserted widget. | |
| bool | containsWidget (const QString &id) const |
| Get if the list contains a widget with the given id. | |
| QWidget * | findWidget (const QString &path) const |
| Get the widget that is at the given path. The path must be a forward slash separated list of ids. If the list contains some other KisOptionCollectionWidget or KisOptionCollectionWidgetWithHeader, and they do as well, then they form a hierarchy tree, so the path is searched recursively through all those child widgets. | |
| template<typename T > | |
| T | findWidgetAs (const QString &path) const |
| Get the widget that is at the given path casted to some other class. | |
| void | insertWidget (int index, const QString &id, QWidget *widget) |
| Insert the given widget with the given id at the given position. The list widget takes ownership of the inserted widget. | |
| KisOptionCollectionWidget (QWidget *parent=nullptr) | |
| int | numberOfVisibleWidgets () const |
| Get the number of visible widgets in the list. | |
| void | removeWidget (const QString &id) |
| Remove the widget that has the given id from the list. This also destroys the widget. | |
| void | removeWidget (int index) |
| Remove the widget that is at the given position from the list. This also destroys the widget. | |
| void | setOrientation (Qt::Orientation orientation, bool recursive=false) |
| Set the orientation of the list of widgets. | |
| void | setSeparatorsVisible (bool visible) |
| Set the visibility of the separators. | |
| void | setWidgetsMargin (int margin) |
| Set the margins of the widgets. This allows to indent the widgets with respect to the separators. The separators themselves are not changed. | |
| void | setWidgetVisible (const QString &id, bool visible) |
| Set the visibility of the widget that has the given id. Use this function instead of the widget's one directly to get better visual results. | |
| void | setWidgetVisible (int index, bool visible) |
| Set the visibility of the widget that is at the given position. Use this function instead of the widget's one directly to get better visual results. | |
| int | size () const |
| Get the number of widgets in the list. | |
| QWidget * | takeWidget (const QString &id) |
| Remove the widget that has the given id from the list. The widget is returned instead of being destroyed. | |
| QWidget * | takeWidget (int index) |
| Remove the widget that is at the given position from the list. The widget is returned instead of being destroyed. | |
| QWidget * | widget (const QString &id) const |
| Get the widget with the given id. | |
| QWidget * | widget (int index) const |
| Get the widget that is at the given position. | |
| template<typename T > | |
| T | widgetAs (const QString &id) const |
| Get the widget with the given id casted to some other class. | |
| template<typename T > | |
| T | widgetAs (int index) const |
| Get the widget that is at the given position casted to some other class. | |
| int | widgetIndexFromId (const QString &id) const |
| Get the index of the widget that has the given id. | |
| ~KisOptionCollectionWidget () override | |
Private Attributes | |
| QScopedPointer< Private > | m_d |
Definition at line 17 of file kis_selection_options.h.
| Enumerator | |
|---|---|
| CurrentLayer | |
| AllLayers | |
| ColorLabeledLayers | |
Definition at line 22 of file kis_selection_options.h.
| KisSelectionOptions::KisSelectionOptions | ( | QWidget * | parent = nullptr | ) |
Definition at line 152 of file kis_selection_options.cc.
References KisOptionButtonStrip::addButton(), antiAliasSelectionChanged(), KisOptionCollectionWidget::appendWidget(), KisOptionCollectionWidgetWithHeader::appendWidget(), KisOptionButtonStrip::buttonToggled(), connect(), featherSelectionChanged(), growSelectionChanged(), KisOptionCollectionWidget::KisOptionCollectionWidget(), KisIconUtils::loadIcon(), m_d, selectedColorLabelsChanged(), KisColorLabelSelectorWidget::setExclusive(), KisOptionCollectionWidget::setOrientation(), KisOptionCollectionWidgetWithHeader::setPrimaryWidget(), KisSliderSpinBox::setRange(), KisOptionCollectionWidget::setSeparatorsVisible(), KisOptionCollectionWidget::setWidgetVisible(), KisOptionCollectionWidgetWithHeader::setWidgetVisible(), and stopGrowingAtDarkestPixelChanged().
|
override |
Definition at line 320 of file kis_selection_options.cc.
| SelectionAction KisSelectionOptions::action | ( | ) | const |
Definition at line 330 of file kis_selection_options.cc.
References m_d.
|
signal |
| bool KisSelectionOptions::antiAliasSelection | ( | ) | const |
Definition at line 336 of file kis_selection_options.cc.
References m_d.
|
signal |
| int KisSelectionOptions::featherSelection | ( | ) | const |
Definition at line 351 of file kis_selection_options.cc.
References m_d.
|
signal |
| int KisSelectionOptions::growSelection | ( | ) | const |
Definition at line 341 of file kis_selection_options.cc.
References m_d.
|
signal |
| SelectionMode KisSelectionOptions::mode | ( | ) | const |
Definition at line 324 of file kis_selection_options.cc.
References m_d.
|
signal |
| KisSelectionOptions::ReferenceLayers KisSelectionOptions::referenceLayers | ( | ) | const |
Definition at line 357 of file kis_selection_options.cc.
References m_d.
|
signal |
| QList< int > KisSelectionOptions::selectedColorLabels | ( | ) | const |
Definition at line 363 of file kis_selection_options.cc.
References m_d.
|
signal |
| void KisSelectionOptions::setAction | ( | SelectionAction | newAction | ) |
Definition at line 377 of file kis_selection_options.cc.
References button(), KIS_SAFE_ASSERT_RECOVER_RETURN, and m_d.
| void KisSelectionOptions::setActionSectionVisible | ( | bool | visible | ) |
Definition at line 426 of file kis_selection_options.cc.
References KisOptionCollectionWidget::setWidgetVisible().
| void KisSelectionOptions::setAdjustmentsSectionVisible | ( | bool | visible | ) |
Definition at line 438 of file kis_selection_options.cc.
References KisOptionCollectionWidget::setWidgetVisible().
| void KisSelectionOptions::setAntiAliasSelection | ( | bool | newAntiAliasSelection | ) |
Definition at line 386 of file kis_selection_options.cc.
References m_d.
| void KisSelectionOptions::setFeatherSelection | ( | int | newFeatherSelection | ) |
Definition at line 401 of file kis_selection_options.cc.
References m_d.
| void KisSelectionOptions::setGrowSelection | ( | int | newGrowSelection | ) |
Definition at line 391 of file kis_selection_options.cc.
References m_d.
| void KisSelectionOptions::setMode | ( | SelectionMode | newMode | ) |
Definition at line 368 of file kis_selection_options.cc.
References button(), KIS_SAFE_ASSERT_RECOVER_RETURN, and m_d.
| void KisSelectionOptions::setModeSectionVisible | ( | bool | visible | ) |
Definition at line 421 of file kis_selection_options.cc.
References KisOptionCollectionWidget::setWidgetVisible().
| void KisSelectionOptions::setReferenceLayers | ( | ReferenceLayers | newReferenceLayers | ) |
Definition at line 406 of file kis_selection_options.cc.
References button(), KIS_SAFE_ASSERT_RECOVER_RETURN, and m_d.
| void KisSelectionOptions::setReferenceSectionVisible | ( | bool | visible | ) |
Definition at line 443 of file kis_selection_options.cc.
References KisOptionCollectionWidget::setWidgetVisible().
Definition at line 415 of file kis_selection_options.cc.
References m_d.
| void KisSelectionOptions::setStopGrowingAtDarkestPixel | ( | bool | newStopGrowingAtDarkestPixel | ) |
Definition at line 396 of file kis_selection_options.cc.
References m_d.
| void KisSelectionOptions::setStopGrowingAtDarkestPixelButtonVisible | ( | bool | visible | ) |
Definition at line 431 of file kis_selection_options.cc.
References KisOptionCollectionWidget::setWidgetVisible().
| bool KisSelectionOptions::stopGrowingAtDarkestPixel | ( | ) | const |
Definition at line 346 of file kis_selection_options.cc.
References m_d.
|
signal |
| void KisSelectionOptions::updateActionButtonToolTip | ( | SelectionAction | action, |
| const QKeySequence & | shortcut ) |
Definition at line 448 of file kis_selection_options.cc.
References action(), m_d, SELECTION_ADD, SELECTION_DEFAULT, SELECTION_INTERSECT, SELECTION_REPLACE, SELECTION_SUBTRACT, and SELECTION_SYMMETRICDIFFERENCE.
|
private |
Definition at line 66 of file kis_selection_options.h.