Skip to content

RLayerListener

Class in Core Module
Header: #include <src/core/RLayerListener.h>
Inherited by: RPropertyEditor

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.

virtual ~RLayerListener()
virtual void clearLayers()=0 = 0
This method is called to signal that no document is currently active.
virtual void setCurrentLayer(RDocumentInterface *documentInterface, RObject::Id previousLayerId)=0 = 0
This method is called when a different layer becomes the new current layer.
virtual void updateLayers(RDocumentInterface *documentInterface, QList< RObject::Id > &layerIds)=0 = 0
This method is called whenever at least one layer in the given document has changed.

virtual RLayerListener::~RLayerListener()

virtual inline

virtual void RLayerListener::clearLayers()=0 = 0

pure virtual

This method is called to signal that no document is currently active.

Reimplemented in clearLayers.

virtual void RLayerListener::setCurrentLayer(RDocumentInterface *documentInterface, RObject::Id previousLayerId)=0 = 0

pure virtual

This method is called when a different layer becomes the new current layer.

Reimplemented in setCurrentLayer.

virtual void RLayerListener::updateLayers(RDocumentInterface *documentInterface, QList< RObject::Id > &layerIds)=0 = 0

pure virtual

This method is called whenever at least one layer in the given document has changed.

Reimplemented in updateLayers.