Sun, 03 Nov 2019 12:56:42 +0200
added saving of splitter state and recent files
3 | 1 | #pragma once |
2 | #include "modelobject.h" | |
8
44679e468ba9
major update with many things
Teemu Piippo <teemu@hecknology.net>
parents:
6
diff
changeset
|
3 | #include "matrix.h" |
3 | 4 | |
5 | namespace modelobjects | |
6 | { | |
7 | class SubfileReference; | |
8 | } | |
9 | ||
8
44679e468ba9
major update with many things
Teemu Piippo <teemu@hecknology.net>
parents:
6
diff
changeset
|
10 | class modelobjects::SubfileReference : public ColoredBaseObject |
3 | 11 | { |
12 | public: | |
13 | SubfileReference() = default; | |
8
44679e468ba9
major update with many things
Teemu Piippo <teemu@hecknology.net>
parents:
6
diff
changeset
|
14 | SubfileReference( |
44679e468ba9
major update with many things
Teemu Piippo <teemu@hecknology.net>
parents:
6
diff
changeset
|
15 | const Vertex& position, |
44679e468ba9
major update with many things
Teemu Piippo <teemu@hecknology.net>
parents:
6
diff
changeset
|
16 | const Matrix3x3& transformation, |
44679e468ba9
major update with many things
Teemu Piippo <teemu@hecknology.net>
parents:
6
diff
changeset
|
17 | const QString &referenceName, |
44679e468ba9
major update with many things
Teemu Piippo <teemu@hecknology.net>
parents:
6
diff
changeset
|
18 | const Color color = colors::main); |
3 | 19 | QVariant getProperty(Property property) const override; |
8
44679e468ba9
major update with many things
Teemu Piippo <teemu@hecknology.net>
parents:
6
diff
changeset
|
20 | SetPropertyResult setProperty(Property property, const QVariant& value) override; |
6 | 21 | QString textRepresentation() const override; |
3 | 22 | private: |
23 | Vertex position; | |
8
44679e468ba9
major update with many things
Teemu Piippo <teemu@hecknology.net>
parents:
6
diff
changeset
|
24 | Matrix3x3 transformation; |
3 | 25 | QString referenceName; |
26 | }; |