QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
RPropertyChange.h
Go to the documentation of this file.
1
20#ifndef RPROPERTYCHANGE_H
21#define RPROPERTYCHANGE_H
22
23#include "core_global.h"
24
25#include <QVariant>
26
27#include "RPropertyTypeId.h"
28
29class RStorage;
30class RExporter;
31
39public:
41 RPropertyChange(RPropertyTypeId propertyTypeId, QVariant oldValue, QVariant newValue);
42
43 void setOldValue(const QVariant& v) {
44 oldValue = v;
45 }
46 QVariant getOldValue() const {
47 return oldValue;
48 }
49
50 void setNewValue(const QVariant& v) {
51 newValue = v;
52 }
53 QVariant getNewValue() const {
54 return newValue;
55 }
56
58 propertyTypeId = id;
59 }
61 return propertyTypeId;
62 }
63
64public:
66 QVariant oldValue;
67 QVariant newValue;
68};
69
70QCADCORE_EXPORT QDebug operator<<(QDebug dbg, const RPropertyChange& p);
71
77
78#endif
Q_DECLARE_METATYPE(RMath *)
QMap< int, QList< RPropertyChange > > _RMapIntPropertyChange
Definition RPropertyChange.h:72
QCADCORE_EXPORT QDebug operator<<(QDebug dbg, const RPropertyChange &p)
Definition RPropertyChange.cpp:156
Definition RDebug.h:38
Abstract base class for exporters.
Definition RExporter.h:78
Stores the change that was made to a property of an object.
Definition RPropertyChange.h:38
void setPropertyTypeId(const RPropertyTypeId &id)
Definition RPropertyChange.h:57
void setOldValue(const QVariant &v)
Definition RPropertyChange.h:43
RPropertyChange()
Definition RPropertyChange.h:40
RPropertyTypeId getPropertyTypeId() const
Definition RPropertyChange.h:60
QVariant oldValue
Definition RPropertyChange.h:66
RPropertyTypeId propertyTypeId
Definition RPropertyChange.h:65
QVariant getNewValue() const
Definition RPropertyChange.h:53
void setNewValue(const QVariant &v)
Definition RPropertyChange.h:50
QVariant newValue
Definition RPropertyChange.h:67
QVariant getOldValue() const
Definition RPropertyChange.h:46
Copyright (c) 2011-2018 by Andrew Mustun.
Definition RPropertyTypeId.h:54
This is the abstract base class for all storage implementations.
Definition RStorage.h:67
#define QCADCORE_EXPORT
Definition core_global.h:10