|
Krita Source Code Documentation
|
#include <kis_dlg_stroke_selection_properties.h>
Inheritance diagram for KisDlgStrokeSelection:Public Member Functions | |
| KoColor | getFillSelectedColor () const |
| LinePosition | getLinePosition () const |
| int | getLineSize () const |
| StrokeSelectionOptions | getParams () const |
| KoColor | getSelectedColor () const |
| bool | isBrushSelected () const |
| KisDlgStrokeSelection (KisImageWSP image, KisViewManager *view, bool isVectorLayer) | |
| ~KisDlgStrokeSelection () override | |
Public Member Functions inherited from KoDialog | |
| QPushButton * | button (ButtonCode id) const |
| QIcon | buttonIcon (ButtonCode id) const |
| QString | buttonText (ButtonCode id) const |
| QString | buttonToolTip (ButtonCode id) const |
| QString | buttonWhatsThis (ButtonCode id) const |
| ButtonCode | defaultButton () const |
| QString | helpLinkText () const |
| void | incrementInitialSize (const QSize &size) |
| bool | isButtonEnabled (ButtonCode id) const |
| KoDialog (QWidget *parent=0, Qt::WindowFlags f=Qt::WindowFlags()) | |
| QWidget * | mainWidget () |
| QSize | minimumSizeHint () const override |
| void | setButtonFocus (ButtonCode id) |
| void | setButtonGuiItem (ButtonCode id, const KGuiItem &item) |
| void | setButtonIcon (ButtonCode id, const QIcon &icon) |
| void | setButtons (ButtonCodes buttonMask) |
| void | setButtonsOrientation (Qt::Orientation orientation) |
| void | setButtonText (ButtonCode id, const QString &text) |
| void | setButtonToolTip (ButtonCode id, const QString &text) |
| void | setButtonWhatsThis (ButtonCode id, const QString &text) |
| void | setDefaultButton (ButtonCode id) |
| void | setEscapeButton (ButtonCode id) |
| void | setInitialSize (const QSize &size) |
| void | setMainWidget (QWidget *widget) |
| void | showButton (ButtonCode id, bool state) |
| void | showButtonSeparator (bool state) |
| QSize | sizeHint () const override |
| ~KoDialog () override | |
Private Slots | |
| void | colorChanged (const QColor &newColor) |
| void | colorFillChanged (const QColor &newColor) |
| void | setColorButton () |
| void | setColorFillButton () |
Private Attributes | |
| KisDisplayColorConverter * | m_converter {0} |
| KisImageWSP | m_image |
| bool | m_isVectorLayer {false} |
| WdgStrokeSelection * | m_page {0} |
| KoCanvasResourceProvider * | m_resourceManager {0} |
Additional Inherited Members | |
Public Types inherited from KoDialog | |
| enum | ButtonCode { None = 0x00000000 , Help = 0x00000001 , Default = 0x00000002 , Ok = 0x00000004 , Apply = 0x00000008 , Try = 0x00000010 , Cancel = 0x00000020 , Close = 0x00000040 , No = 0x00000080 , Yes = 0x00000100 , Reset = 0x00000200 , Details = 0x00000400 , User1 = 0x00001000 , User2 = 0x00002000 , User3 = 0x00004000 , NoDefault = 0x00008000 } |
| enum | ButtonPopupMode { InstantPopup = 0 , DelayedPopup = 1 } |
| enum | CaptionFlag { NoCaptionFlags = 0 , AppNameCaption = 1 , ModifiedCaption = 2 , HIGCompliantCaption = AppNameCaption } |
Public Slots inherited from KoDialog | |
| void | delayedDestruct () |
| void | enableButton (ButtonCode id, bool state) |
| void | enableButtonApply (bool state) |
| void | enableButtonCancel (bool state) |
| void | enableButtonOk (bool state) |
| void | enableLinkedHelp (bool state) |
| bool | isDetailsWidgetVisible () const |
| virtual void | setCaption (const QString &caption) |
| virtual void | setCaption (const QString &caption, bool modified) |
| void | setDetailsWidget (QWidget *detailsWidget) |
| void | setDetailsWidgetVisible (bool visible) |
| void | setHelp (const QString &anchor, const QString &appname=QString()) |
| void | setHelpLinkText (const QString &text) |
| virtual void | setPlainCaption (const QString &caption) |
Signals inherited from KoDialog | |
| void | aboutToShowDetails () |
| void | applyClicked () |
| void | buttonClicked (KoDialog::ButtonCode button) |
| void | cancelClicked () |
| void | closeClicked () |
| void | defaultClicked () |
| void | finished () |
| void | helpClicked () |
| void | hidden () |
| void | layoutHintChanged () |
| void | noClicked () |
| void | okClicked () |
| void | resetClicked () |
| void | tryClicked () |
| void | user1Clicked () |
| void | user2Clicked () |
| void | user3Clicked () |
| void | yesClicked () |
Static Public Member Functions inherited from KoDialog | |
| static int | groupSpacingHint () |
| static QString | makeStandardCaption (const QString &userCaption, QWidget *window=0, CaptionFlags flags=HIGCompliantCaption) |
| static int | marginHint () |
| static void | resizeLayout (QLayout *lay, int margin, int spacing) |
| static void | resizeLayout (QWidget *widget, int margin, int spacing) |
| static int | spacingHint () |
Protected Slots inherited from KoDialog | |
| virtual void | slotButtonClicked (int button) |
Protected Member Functions inherited from KoDialog | |
| void | closeEvent (QCloseEvent *e) override |
| void | hideEvent (QHideEvent *) override |
| void | keyPressEvent (QKeyEvent *) override |
| void | showEvent (QShowEvent *e) override |
Definition at line 82 of file kis_dlg_stroke_selection_properties.h.
| KisDlgStrokeSelection::KisDlgStrokeSelection | ( | KisImageWSP | image, |
| KisViewManager * | view, | ||
| bool | isVectorLayer ) |
Definition at line 42 of file kis_dlg_stroke_selection_properties.cpp.
References StrokeSelectionOptions::brushSelected, KoDialog::Cancel, KisViewManager::canvasBase(), StrokeSelectionOptions::color, colorChanged(), colorFillChanged(), StrokeSelectionOptions::colorFillSource, StrokeSelectionOptions::colorLineSource, connect(), CustomColor, StrokeSelectionOptions::customColor, KisCanvas2::displayColorConverter, WdgStrokeSelection::enableControls(), KisConfig::exportConfiguration(), getFillSelectedColor(), getSelectedColor(), StrokeSelectionOptions::lineDimension, StrokeSelectionOptions::lineSize, WdgStrokeSelection::m_cfg, m_converter, m_image, WdgStrokeSelection::m_isVectorLayer, WdgStrokeSelection::m_options, m_page, m_resourceManager, KisViewManager::mainWindow(), KoDialog::Ok, KisMainWindow::resourceManager(), KoDialog::setButtons(), KoDialog::setCaption(), setColorButton(), setColorFillButton(), KoDialog::setDefaultButton(), KoDialog::setMainWidget(), and KoColor::toQColor().
|
override |
Definition at line 96 of file kis_dlg_stroke_selection_properties.cpp.
References StrokeSelectionOptions::brushSelected, StrokeSelectionOptions::color, StrokeSelectionOptions::colorFillSource, StrokeSelectionOptions::colorLineSource, StrokeSelectionOptions::customColor, StrokeSelectionOptions::fillColor, StrokeSelectionOptions::lineDimension, StrokeSelectionOptions::lineSize, WdgStrokeSelection::m_options, m_page, and KisConfig::setExportConfiguration().
|
privateslot |
Definition at line 226 of file kis_dlg_stroke_selection_properties.cpp.
References KisDisplayColorConverter::approximateFromRenderedQColor(), KoCanvasResource::BackgroundColor, BGColor, StrokeSelectionOptions::color, CustomColor, FGColor, KoCanvasResource::ForegroundColor, m_converter, WdgStrokeSelection::m_options, m_page, m_resourceManager, PaintColor, and KoCanvasResourceProvider::resource().
|
privateslot |
Definition at line 250 of file kis_dlg_stroke_selection_properties.cpp.
References KisDisplayColorConverter::approximateFromRenderedQColor(), KoCanvasResource::BackgroundColor, BGColor, CustomColor, StrokeSelectionOptions::customColor, FGColor, StrokeSelectionOptions::fillColor, KoCanvasResource::ForegroundColor, m_converter, WdgStrokeSelection::m_options, m_page, m_resourceManager, PaintColor, and KoCanvasResourceProvider::resource().
| KoColor KisDlgStrokeSelection::getFillSelectedColor | ( | ) | const |
Definition at line 141 of file kis_dlg_stroke_selection_properties.cpp.
References KisDisplayColorConverter::approximateFromRenderedQColor(), KoCanvasResource::BackgroundColor, BGColor, StrokeSelectionOptions::customColor, FGColor, KoCanvasResource::ForegroundColor, m_converter, WdgStrokeSelection::m_options, m_page, m_resourceManager, PaintColor, and KoCanvasResourceProvider::resource().
| LinePosition KisDlgStrokeSelection::getLinePosition | ( | ) | const |
Definition at line 209 of file kis_dlg_stroke_selection_properties.cpp.
References Center.
| int KisDlgStrokeSelection::getLineSize | ( | ) | const |
Definition at line 192 of file kis_dlg_stroke_selection_properties.cpp.
References KoUnit::convertFromUnitToUnit(), KoUnit::Inch, m_page, KoUnit::Millimeter, KoUnit::Pixel, and value().
| StrokeSelectionOptions KisDlgStrokeSelection::getParams | ( | ) | const |
Definition at line 165 of file kis_dlg_stroke_selection_properties.cpp.
References StrokeSelectionOptions::brushSelected, StrokeSelectionOptions::color, StrokeSelectionOptions::colorFillSource, StrokeSelectionOptions::colorLineSource, StrokeSelectionOptions::customColor, StrokeSelectionOptions::fillColor, getFillSelectedColor(), getLineSize(), getSelectedColor(), isBrushSelected(), StrokeSelectionOptions::lineDimension, StrokeSelectionOptions::lineSize, WdgStrokeSelection::m_options, and m_page.
| KoColor KisDlgStrokeSelection::getSelectedColor | ( | ) | const |
Definition at line 126 of file kis_dlg_stroke_selection_properties.cpp.
References KoCanvasResource::BackgroundColor, BGColor, StrokeSelectionOptions::color, FGColor, KoCanvasResource::ForegroundColor, WdgStrokeSelection::m_options, m_page, m_resourceManager, and KoCanvasResourceProvider::resource().
| bool KisDlgStrokeSelection::isBrushSelected | ( | ) | const |
Definition at line 160 of file kis_dlg_stroke_selection_properties.cpp.
References CurrentBrush, and m_page.
|
privateslot |
Definition at line 187 of file kis_dlg_stroke_selection_properties.cpp.
References getSelectedColor(), and m_page.
|
privateslot |
Definition at line 182 of file kis_dlg_stroke_selection_properties.cpp.
References getFillSelectedColor(), and m_page.
|
private |
Definition at line 102 of file kis_dlg_stroke_selection_properties.h.
|
private |
Definition at line 100 of file kis_dlg_stroke_selection_properties.h.
|
private |
Definition at line 103 of file kis_dlg_stroke_selection_properties.h.
|
private |
Definition at line 99 of file kis_dlg_stroke_selection_properties.h.
|
private |
Definition at line 101 of file kis_dlg_stroke_selection_properties.h.