QCAD
Open Source 2D CAD
RPropertyListener.h
Go to the documentation of this file.
1 
20 #ifndef RPROPERTYLISTENER_H
21 #define RPROPERTYLISTENER_H
22 
23 #include "core_global.h"
24 
25 #include "RS.h"
26 #include "RPropertyTypeId.h"
27 
28 class RDocument;
29 class REntity;
30 class RDocument;
31 class RObject;
32 
33 
34 
44 public:
45  virtual ~RPropertyListener() {}
46 
58  virtual void updateFromDocument(RDocument* document, bool onlyChanges,
59  RS::EntityType entityTypeFilter = RS::EntityAll, bool manual = false, bool showOnRequest = false) = 0;
60 
69  virtual void updateFromObject(RObject* object, RDocument* document = NULL) = 0;
70 
76  virtual void clearEditor() = 0;
77 };
78 
80 
81 #endif
RPropertyListener
Abstract base class for classes that are interested in properties of the current selection or the cur...
Definition: RPropertyListener.h:43
RObject
Abstract base class for all objects.
Definition: RObject.h:61
RS::EntityType
EntityType
Entity types used for property handling / filtering.
Definition: RS.h:125
RS.h
RPropertyListener::clearEditor
virtual void clearEditor()=0
This method is called to signal that no properties are currently relevant.
REntity
Base class for all entity classes.
Definition: REntity.h:65
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(RMath *)
RS::EntityAll
@ EntityAll
All entities (for filters)
Definition: RS.h:138
core_global.h
RPropertyListener::updateFromDocument
virtual void updateFromDocument(RDocument *document, bool onlyChanges, RS::EntityType entityTypeFilter=RS::EntityAll, bool manual=false, bool showOnRequest=false)=0
This method is called whenever the relevant combined properties of the objects in document have chang...
RDocument
A graphics document contains and owns entities, layers, user coordinate systems, variables,...
Definition: RDocument.h:72
RPropertyTypeId.h
RPropertyListener::~RPropertyListener
virtual ~RPropertyListener()
Definition: RPropertyListener.h:45
QCADCORE_EXPORT
#define QCADCORE_EXPORT
Definition: core_global.h:10
RPropertyListener::updateFromObject
virtual void updateFromObject(RObject *object, RDocument *document=NULL)=0
This method is called if only the properties of the given property owner are currently relevant.