Wed, 25 May 2022 18:33:38 +0300
fix up things and remove unnecessary code
3 | 1 | #pragma once |
183
97b591813c8b
- Add editors for string and bool properties
Teemu Piippo <teemu@hecknology.net>
parents:
177
diff
changeset
|
2 | #include "compoundobject.h" |
97b591813c8b
- Add editors for string and bool properties
Teemu Piippo <teemu@hecknology.net>
parents:
177
diff
changeset
|
3 | #include "invert.h" |
3 | 4 | |
21 | 5 | class Model; |
6 | ||
35
98906a94732f
renamed the linetypes namespace to ldraw namespace and added more structures to it
Teemu Piippo <teemu@hecknology.net>
parents:
33
diff
changeset
|
7 | namespace ldraw |
3 | 8 | { |
9 | class SubfileReference; | |
10 | } | |
11 | ||
183
97b591813c8b
- Add editors for string and bool properties
Teemu Piippo <teemu@hecknology.net>
parents:
177
diff
changeset
|
12 | class ldraw::SubfileReference : public CompoundObject |
3 | 13 | { |
14 | public: | |
15 | SubfileReference() = default; | |
8
44679e468ba9
major update with many things
Teemu Piippo <teemu@hecknology.net>
parents:
6
diff
changeset
|
16 | SubfileReference( |
33
4c41bfe2ec6e
replaced matrix and vertex classes with glm
Teemu Piippo <teemu@hecknology.net>
parents:
26
diff
changeset
|
17 | const glm::mat4& transformation, |
8
44679e468ba9
major update with many things
Teemu Piippo <teemu@hecknology.net>
parents:
6
diff
changeset
|
18 | const QString &referenceName, |
139
72098474d362
Document and refactor colors.cpp and colors.h
Teemu Piippo <teemu@hecknology.net>
parents:
132
diff
changeset
|
19 | const Color color = ldraw::MAIN_COLOR); |
3 | 20 | QVariant getProperty(Property property) const override; |
6 | 21 | QString textRepresentation() const override; |
21 | 22 | void getPolygons(std::vector<gl::Polygon>& polygons, GetPolygonsContext* context) const override; |
148 | 23 | Model* resolve(const ModelId callingModelId, DocumentManager* documents) const; |
132
488d0ba6070b
Begin work with serialization
Teemu Piippo <teemu@hecknology.net>
parents:
86
diff
changeset
|
24 | Type typeIdentifier() const override; |
488d0ba6070b
Begin work with serialization
Teemu Piippo <teemu@hecknology.net>
parents:
86
diff
changeset
|
25 | QDataStream& serialize(QDataStream& stream) const override; |
488d0ba6070b
Begin work with serialization
Teemu Piippo <teemu@hecknology.net>
parents:
86
diff
changeset
|
26 | QDataStream& deserialize(QDataStream& stream) override; |
141 | 27 | QString toLDrawCode() const override; |
158
5bd755eaa5a8
Add icons from ionicons
Teemu Piippo <teemu@hecknology.net>
parents:
148
diff
changeset
|
28 | QString iconName() const override; |
177
f69d53c053df
Show type of object in the object editor
Teemu Piippo <teemu@hecknology.net>
parents:
158
diff
changeset
|
29 | QString typeName() const override; |
3 | 30 | QString referenceName; |
86
4bec0525ef1b
PolygonObjectEditor can now modify the object properly
Teemu Piippo <teemu@hecknology.net>
parents:
77
diff
changeset
|
31 | protected: |
4bec0525ef1b
PolygonObjectEditor can now modify the object properly
Teemu Piippo <teemu@hecknology.net>
parents:
77
diff
changeset
|
32 | void setProperty(SetPropertyResult* result, const PropertyKeyValue& pair) override; |
3 | 33 | }; |