QCAD
Open Source 2D CAD
RPropertyEvent.h
Go to the documentation of this file.
1 
20 #ifndef RPROPERTYEVENT_H
21 #define RPROPERTYEVENT_H
22 
23 #include "core_global.h"
24 
25 #include <QVariant>
26 
27 #include "RPropertyTypeId.h"
28 #include "RPropertyAttributes.h"
29 
30 
31 
41 public:
43  propertyTypeId(-1) {
44  }
45 
50  RPropertyEvent(RPropertyTypeId propertyTypeId, const QVariant& value,
51  RS::EntityType entityTypeFilter = RS::EntityAll)
52  : propertyTypeId(propertyTypeId),
53  value(value),
54  entityTypeFilter(entityTypeFilter) {
55  }
56 
61  return propertyTypeId;
62  }
63 
67  QVariant getValue() const {
68  return value;
69  }
70 
75  return entityTypeFilter;
76  }
77 
78 private:
80  QVariant value;
82 };
83 
87 
88 #endif
RS::EntityType getEntityTypeFilter() const
Definition: RPropertyEvent.h:74
EntityType
Entity types used for property handling / filtering.
Definition: RS.h:76
Copyright (c) 2011-2016 by Andrew Mustun.
Definition: RPropertyTypeId.h:58
#define QCADCORE_EXPORT
Definition: core_global.h:10
Copyright (c) 2011-2016 by Andrew Mustun.
Definition: RPropertyEvent.h:40
RS::EntityType entityTypeFilter
Definition: RPropertyEvent.h:81
QVariant getValue() const
Definition: RPropertyEvent.h:67
Q_DECLARE_METATYPE(RMath *)
RPropertyTypeId propertyTypeId
Definition: RPropertyEvent.h:79
QVariant value
Definition: RPropertyEvent.h:80
RPropertyTypeId getPropertyTypeId() const
Definition: RPropertyEvent.h:60
All entities (for filters)
Definition: RS.h:86
RPropertyEvent(RPropertyTypeId propertyTypeId, const QVariant &value, RS::EntityType entityTypeFilter=RS::EntityAll)
Definition: RPropertyEvent.h:50
RPropertyEvent()
Definition: RPropertyEvent.h:42