1 #pragma once |
|
2 #include "object.h" |
|
3 |
|
4 namespace ldraw |
|
5 { |
|
6 class ErrorLine; |
|
7 } |
|
8 |
|
9 class ldraw::ErrorLine : public Object |
|
10 { |
|
11 public: |
|
12 using BaseClass = Object; |
|
13 ErrorLine(QStringView text = u"", QStringView message = u""); |
|
14 QVariant getProperty(Property property) const override; |
|
15 QString textRepresentation() const override; |
|
16 QBrush textRepresentationForeground() const override; |
|
17 QBrush textRepresentationBackground() const override; |
|
18 Type typeIdentifier() const override; |
|
19 QDataStream& serialize(QDataStream& stream) const override; |
|
20 QDataStream& deserialize(QDataStream& stream) override; |
|
21 QString toLDrawCode() const override; |
|
22 QString iconName() const override; |
|
23 QString typeName() const override; |
|
24 QString text; |
|
25 QString message; |
|
26 protected: |
|
27 void setProperty(SetPropertyResult* result, const PropertyKeyValue& pair) override; |
|
28 }; |
|