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) = 0;
60 
69  virtual void updateFromObject(RObject* object,
70  RDocument* document = NULL) = 0;
71 
77  virtual void clearEditor() = 0;
78 };
79 
81 
82 #endif
EntityType
Entity types used for property handling / filtering.
Definition: RS.h:75
Abstract base class for all objects.
Definition: RObject.h:48
#define QCADCORE_EXPORT
Definition: core_global.h:10
Abstract base class for classes that are interested in properties of the current selection or the cur...
Definition: RPropertyListener.h:43
Base class for all entity classes.
Definition: REntity.h:64
A graphics document contains and owns entities, layers, user coordinate systems, variables, block definitions, etc.
Definition: RDocument.h:63
Q_DECLARE_METATYPE(RMath *)
virtual ~RPropertyListener()
Definition: RPropertyListener.h:45
All entities (for filters)
Definition: RS.h:76