RLayerListener
Class in Core Module
Header: #include <src/core/RLayerListener.h>
Inherited by: RPropertyEditor
Description
Section titled “Description”Abstract base class for classes that are interested in being notified whenever a layer has been added or changed.
This can for example be a widget that lists all layers.
Scriptable: This class is available in script environments.
Public Functions
Section titled “Public Functions”| virtual | ~RLayerListener() |
| virtual void | clearLayers()=0 = 0This method is called to signal that no document is currently active. |
| virtual void | setCurrentLayer(RDocumentInterface *documentInterface, RObject::Id previousLayerId)=0 = 0This method is called when a different layer becomes the new current layer. |
| virtual void | updateLayers(RDocumentInterface *documentInterface, QList< RObject::Id > &layerIds)=0 = 0This method is called whenever at least one layer in the given document has changed. |
Member Documentation
Section titled “Member Documentation”~RLayerListener
Section titled “~RLayerListener”virtual RLayerListener::~RLayerListener()virtual inline
clearLayers
Section titled “clearLayers”virtual void RLayerListener::clearLayers()=0 = 0pure virtual
This method is called to signal that no document is currently active.
Reimplemented in clearLayers.
setCurrentLayer
Section titled “setCurrentLayer”virtual void RLayerListener::setCurrentLayer(RDocumentInterface *documentInterface, RObject::Id previousLayerId)=0 = 0pure virtual
This method is called when a different layer becomes the new current layer.
Reimplemented in setCurrentLayer.
updateLayers
Section titled “updateLayers”virtual void RLayerListener::updateLayers(RDocumentInterface *documentInterface, QList< RObject::Id > &layerIds)=0 = 0pure virtual
This method is called whenever at least one layer in the given document has changed.
Reimplemented in updateLayers.