|
Krita Source Code Documentation
|
#include <KisPaintopPropertiesBase.h>
Inheritance diagram for KisPaintopPropertiesCanvasResourcesBase:Public Member Functions | |
| template<typename KisPropertiesConfigurationPointer > | |
| QList< KoResourceLoadResult > | prepareEmbeddedResources (const KisPropertiesConfigurationPointer settings, KisResourcesInterfaceSP resourcesInterface) const |
| template<typename KisPropertiesConfigurationPointer > | |
| QList< KoResourceLoadResult > | prepareLinkedResources (const KisPropertiesConfigurationPointer settings, KisResourcesInterfaceSP resourcesInterface) const |
| template<typename KisPropertiesConfigurationPointer > | |
| void | readOptionSetting (KisPropertiesConfigurationPointer settings, KisResourcesInterfaceSP resourcesInterface, KoCanvasResourcesInterfaceSP canvasResourcesInterface) |
| template<typename KisPropertiesConfigurationPointer > | |
| void | writeOptionSetting (KisPropertiesConfigurationPointer settings) const |
| virtual | ~KisPaintopPropertiesCanvasResourcesBase () |
Protected Member Functions | |
| virtual QList< KoResourceLoadResult > | prepareEmbeddedResourcesImpl (const KisPropertiesConfiguration *settings, KisResourcesInterfaceSP resourcesInterface) const =0 |
| virtual QList< KoResourceLoadResult > | prepareLinkedResourcesImpl (const KisPropertiesConfiguration *settings, KisResourcesInterfaceSP resourcesInterface) const =0 |
| virtual void | readOptionSettingResourceImpl (const KisPropertiesConfiguration *settings, KisResourcesInterfaceSP resourcesInterface, KoCanvasResourcesInterfaceSP canvasResourcesInterface)=0 |
| virtual void | writeOptionSettingImpl (KisPropertiesConfiguration *settings) const =0 |
This is a special base class for all the options that load/save settings into a properties objects and do not store the properties themselves. A KisPaintOpOption derived class generates a QWidget for its configuration page. This cannot be created from a KisPaintO[
This class adapts your option to allow its easy use with both raw pointers and shared pointers.
Motivation: In quite a lot of places we call some options from the KisPaintOpSettings class itself with patting 'this' as a parameter into read/writeOptionSetting(). Conversion of 'this' into a shared pointer is extremely dangerous, and, ideally, should be prohibited. We cannot prohibit it atm, but we still can create a special interface for accepting raw pointers, which will be used automatically, when 'this' is passed.
Definition at line 42 of file KisPaintopPropertiesBase.h.
|
virtual |
Definition at line 22 of file KisPaintopPropertiesBase.cpp.
|
inline |
Definition at line 66 of file KisPaintopPropertiesBase.h.
References removeSharedPointer().
|
protectedpure virtual |
Implemented in KisBrushOptionProperties.
|
inline |
Definition at line 60 of file KisPaintopPropertiesBase.h.
References removeSharedPointer().
|
protectedpure virtual |
Implemented in KisBrushOptionProperties.
|
inline |
Definition at line 48 of file KisPaintopPropertiesBase.h.
References removeSharedPointer().
|
protectedpure virtual |
Implemented in KisBrushOptionProperties.
|
inline |
Definition at line 54 of file KisPaintopPropertiesBase.h.
References removeSharedPointer().
|
protectedpure virtual |
Implemented in KisBrushOptionProperties.