QCAD
Open Source 2D CAD
RLayerListener.h
Go to the documentation of this file.
1 
20 #ifndef RLAYERLISTENER_H
21 #define RLAYERLISTENER_H
22 
23 #include "core_global.h"
24 
25 #include "RLayer.h"
26 
27 class RDocumentInterface;
28 
29 
30 
40 public:
41  virtual ~RLayerListener() {}
42 
47  virtual void updateLayers(RDocumentInterface* documentInterface, QList<RLayer::Id>& layerIds) = 0;
48 
52  virtual void setCurrentLayer(RDocumentInterface* documentInterface, RLayer::Id previousLayerId) = 0;
53 
57  virtual void clearLayers() = 0;
58 };
59 
61 
62 #endif
RLayerListener::setCurrentLayer
virtual void setCurrentLayer(RDocumentInterface *documentInterface, RLayer::Id previousLayerId)=0
This method is called when a different layer becomes the new current layer.
RLayerListener::clearLayers
virtual void clearLayers()=0
This method is called to signal that no document is currently active.
RLayerListener
Abstract base class for classes that are interested in being notified whenever a layer has been added...
Definition: RLayerListener.h:39
RLayerListener::updateLayers
virtual void updateLayers(RDocumentInterface *documentInterface, QList< RLayer::Id > &layerIds)=0
This method is called whenever at least one layer in the given document has changed.
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(RMath *)
RObject::Id
int Id
Definition: RObject.h:66
core_global.h
RLayer.h
RLayerListener::~RLayerListener
virtual ~RLayerListener()
Definition: RLayerListener.h:41
RDocumentInterface
Interface for interaction between a graphics document and a user.
Definition: RDocumentInterface.h:85
QCADCORE_EXPORT
#define QCADCORE_EXPORT
Definition: core_global.h:10