src/objecttypes/modelobject.h

changeset 8
44679e468ba9
parent 6
73e448b2943d
child 13
6e838748867b
equal deleted inserted replaced
7:68443f5be176 8:44679e468ba9
9 namespace modelobjects 9 namespace modelobjects
10 { 10 {
11 enum class Property; 11 enum class Property;
12 class BaseObject; 12 class BaseObject;
13 class ColoredBaseObject; 13 class ColoredBaseObject;
14 class Empty;
14 } 15 }
15 16
16 enum class modelobjects::Property 17 enum class modelobjects::Property
17 { 18 {
18 Color, 19 Color,
25 ControlPoint2, 26 ControlPoint2,
26 Position, 27 Position,
27 Transformation, 28 Transformation,
28 ReferenceName, 29 ReferenceName,
29 IsInverted, 30 IsInverted,
31 ErrorMessage
30 }; 32 };
31 33
32 class modelobjects::BaseObject 34 class modelobjects::BaseObject
33 { 35 {
34 public: 36 public:
61 SetPropertyResult setProperty(Property id, const QVariant& value) override; 63 SetPropertyResult setProperty(Property id, const QVariant& value) override;
62 private: 64 private:
63 Color color_index = colors::main; 65 Color color_index = colors::main;
64 }; 66 };
65 67
68 class modelobjects::Empty : public BaseObject
69 {
70 QString textRepresentation() const override;
71 };
72
66 namespace modelobjects 73 namespace modelobjects
67 { 74 {
68 using Id = std::remove_const_t<decltype(BaseObject::id)>; 75 using Id = std::remove_const_t<decltype(BaseObject::id)>;
69 } 76 }

mercurial