|
Krita Source Code Documentation
|
#include <kis_dlg_layer_style.h>
Inheritance diagram for KisDlgLayerStyle:Signals | |
| void | configChanged () |
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 () |
Public Member Functions | |
| KisDlgLayerStyle (KisPSDLayerStyleSP layerStyle, KisCanvasResourceProvider *resourceProvider, QWidget *parent=0) | |
| KisPSDLayerStyleSP | style () const |
| ~KisDlgLayerStyle () 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 | |
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 } |
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 255 of file kis_dlg_layer_style.h.
|
explicit |
Definition at line 99 of file kis_dlg_layer_style.cpp.
References KoDialog::Cancel, changePage(), configChanged(), DropShadow::DropShadowMode, InnerGlow::InnerGlowMode, DropShadow::InnerShadowMode, m_bevelAndEmboss, m_blendingOptions, m_colorOverlay, m_configChangedCompressor, m_contour, m_dropShadow, m_gradientOverlay, m_innerGlow, m_innerShadow, m_outerGlow, m_patternOverlay, m_satin, m_stroke, m_stylesSelector, m_texture, notifyGuiConfigChanged(), notifyPredefinedStyleSelected(), KoDialog::Ok, InnerGlow::OuterGlowMode, palette, KisSignalCompressor::POSTPONE, KisConfig::readEntry(), KoDialog::setButtons(), KoDialog::setCaption(), KoDialog::setDefaultButton(), KoDialog::setMainWidget(), slotBevelAndEmbossChanged(), slotLoadStyle(), slotMasterFxSwitchChanged(), slotNewStyle(), slotNotifyOnAccept(), slotNotifyOnReject(), slotSaveStyle(), syncGlobalAngle(), and wdgLayerStyles.
|
override |
Definition at line 213 of file kis_dlg_layer_style.cpp.
|
slot |
Definition at line 458 of file kis_dlg_layer_style.cpp.
References wdgLayerStyles.
|
signal |
|
slot |
Definition at line 227 of file kis_dlg_layer_style.cpp.
References m_configChangedCompressor, m_isSwitchingPredefinedStyle, m_layerStyle, m_sanityLayerStyleDirty, m_stylesSelector, StylesSelector::notifyExternalStyleChanged(), and KisSignalCompressor::start().
|
slot |
Definition at line 237 of file kis_dlg_layer_style.cpp.
References m_configChangedCompressor, m_isSwitchingPredefinedStyle, setStyle(), KisSignalCompressor::start(), and style().
|
slot |
Upload all the unknown resources into the temporary storage so that immutable resource selectors could see them
Copy all the public resources into the internal storage
We only copy the KoResource-resources into the local storage, while keeping KoCanvasResource-resources still detached, hence we cannot use cloneWithResourcesSnapshot() here, which bakes canvas resources as well
Definition at line 466 of file kis_dlg_layer_style.cpp.
References KisAllResourcesModel::addResourceDeduplicateFileName(), KisRequiredResourcesOperators::createLocalResourcesSnapshot(), KoResourceSignature::filename, KisRequiredResourcesOperators::hasLocalResourcesSnapshot(), KisGlobalResourcesInterface::instance(), KIS_SAFE_ASSERT_RECOVER_NOOP, m_bevelAndEmboss, m_colorOverlay, m_dropShadow, m_gradientOverlay, m_innerGlow, m_innerShadow, m_layerStyle, m_outerGlow, m_patternOverlay, m_sanityLayerStyleDirty, m_satin, m_stroke, m_stylesSelector, m_temporaryStorageLock, KoResourceSignature::md5sum, KoResourceSignature::name, StylesSelector::notifyExternalStyleChanged(), KisResourceModelProvider::resourceModel(), BevelAndEmboss::setBevelAndEmboss(), ColorOverlay::setColorOverlay(), InnerGlow::setConfig(), GradientOverlay::setGradientOverlay(), PatternOverlay::setPatternOverlay(), Satin::setSatin(), DropShadow::setShadow(), Stroke::setStroke(), slotMasterFxSwitchChanged(), KisTemporaryResourceStorageLockAdapter::storageLocation(), style(), and wdgLayerStyles.
|
slot |
Definition at line 245 of file kis_dlg_layer_style.cpp.
References wdgLayerStyles.
|
slot |
Definition at line 375 of file kis_dlg_layer_style.cpp.
References KoResourcePaths::getAppDataLocation(), KisResourceLocator::instance(), KIS_ASSERT, m_stylesSelector, KoFileDialog::OpenFile, and StylesSelector::refillCollections().
|
slot |
Definition at line 217 of file kis_dlg_layer_style.cpp.
References notifyGuiConfigChanged(), value(), and wdgLayerStyles.
|
slot |
Definition at line 313 of file kis_dlg_layer_style.cpp.
References StylesSelector::addNewStyle(), KisResourceUserOperations::addResourceWithUserInput(), KisResourceLocator::addStorage(), KoResource::filename, KoResourcePaths::getAppDataLocation(), KisRequiredResourcesOperators::hasLocalResourcesSnapshot(), KisGlobalResourcesInterface::instance(), KisResourceLocator::instance(), KIS_SAFE_ASSERT_RECOVER_NOOP, ResourceType::LayerStyles, m_stylesSelector, KoResource::md5Sum(), KisPSDLayerStyle::name, KisAslLayerStyleSerializer::saveToFile(), setStyle(), KisAslLayerStyleSerializer::setStyles(), KisAslLayerStyleSerializer::sideLoadLinkedResources(), style(), and wdgLayerStyles.
|
slot |
Definition at line 272 of file kis_dlg_layer_style.cpp.
References configChanged(), KisSignalCompressor::isActive(), m_configChangedCompressor, and KisSignalCompressor::stop().
|
slot |
Definition at line 280 of file kis_dlg_layer_style.cpp.
References configChanged(), m_configChangedCompressor, m_initialLayerStyle, notifyPredefinedStyleSelected(), and KisSignalCompressor::stop().
|
slot |
Definition at line 439 of file kis_dlg_layer_style.cpp.
References KoFileDialog::SaveFile, and style().
| KisPSDLayerStyleSP KisDlgLayerStyle::style | ( | ) | const |
Definition at line 560 of file kis_dlg_layer_style.cpp.
References BevelAndEmboss::fetchBevelAndEmboss(), ColorOverlay::fetchColorOverlay(), InnerGlow::fetchConfig(), GradientOverlay::fetchGradientOverlay(), PatternOverlay::fetchPatternOverlay(), Satin::fetchSatin(), DropShadow::fetchShadow(), Stroke::fetchStroke(), m_bevelAndEmboss, m_colorOverlay, m_dropShadow, m_gradientOverlay, m_innerGlow, m_innerShadow, m_layerStyle, m_outerGlow, m_patternOverlay, m_sanityLayerStyleDirty, m_satin, m_stroke, m_stylesSelector, StylesSelector::notifyExternalStyleChanged(), and wdgLayerStyles.
|
slot |
Definition at line 603 of file kis_dlg_layer_style.cpp.
References m_bevelAndEmboss, m_dropShadow, m_innerShadow, m_layerStyle, BevelAndEmboss::setBevelAndEmboss(), and DropShadow::setShadow().
|
private |
Definition at line 295 of file kis_dlg_layer_style.h.
|
private |
Definition at line 296 of file kis_dlg_layer_style.h.
|
private |
Definition at line 297 of file kis_dlg_layer_style.h.
|
private |
Definition at line 310 of file kis_dlg_layer_style.h.
|
private |
Definition at line 298 of file kis_dlg_layer_style.h.
|
private |
Definition at line 299 of file kis_dlg_layer_style.h.
|
private |
Definition at line 300 of file kis_dlg_layer_style.h.
|
private |
Definition at line 291 of file kis_dlg_layer_style.h.
|
private |
Definition at line 301 of file kis_dlg_layer_style.h.
|
private |
Definition at line 302 of file kis_dlg_layer_style.h.
|
private |
Definition at line 311 of file kis_dlg_layer_style.h.
|
private |
Definition at line 290 of file kis_dlg_layer_style.h.
|
private |
Definition at line 303 of file kis_dlg_layer_style.h.
|
private |
Definition at line 304 of file kis_dlg_layer_style.h.
|
mutableprivate |
Used for debugging purposes only to track if m_layerStyle is in sync with what is stored in the GUI
Definition at line 317 of file kis_dlg_layer_style.h.
|
private |
Definition at line 305 of file kis_dlg_layer_style.h.
|
private |
Definition at line 306 of file kis_dlg_layer_style.h.
|
private |
Definition at line 307 of file kis_dlg_layer_style.h.
|
private |
Definition at line 319 of file kis_dlg_layer_style.h.
|
private |
Definition at line 308 of file kis_dlg_layer_style.h.
|
private |
Definition at line 293 of file kis_dlg_layer_style.h.