OpenLexocad  27.0
PropertyPen.h
Go to the documentation of this file.
1 #pragma once
2 #include <Core/core_defines2.h>
3 
4 #include <QPen>
5 #include <string>
6 
7 #include "Core/Property.h"
8 #include "Core/Variant.h"
9 
10 namespace Core
11 {
13 {
15 
16 public:
17  PropertyPen(void);
18  virtual ~PropertyPen(void);
19 
20  void setValue(const QPen& pen);
21  bool setValueFromVariant(const Core::Variant& value);
22  void copyValue(Core::Property* p);
23 
24  const QPen& getValue() const;
25  Core::Variant getVariant(void) const;
26 
27  virtual void save(Base::AbstractWriter& writer, Base::PersistanceVersion& save_version);
28  virtual void restore(Base::AbstractXMLReader& reader, Base::PersistanceVersion& version);
29  virtual bool isEqual(const Property*) const;
30 
31 protected:
32  QPen _pen;
33 };
34 
35 DECLARE_PROPERTY_FACTORY(PropertyPen_Factory, Core::PropertyPen);
36 
37 
38 } // namespace Core
#define CORE_EXPORT
Definition: core_defines2.h:10
Definition: PropertyPen.h:12
QPen _pen
Definition: PropertyPen.h:32
Definition: Persistance.h:20
LX_CORE_EXPORT Version & version
Definition: Variant.h:90
Definition: AbstractXMLReader.h:10
Definition: Base.h:19
Definition: Writer.h:27
Definition: Property.h:81
TYPESYSTEM_HEADER()
DECLARE_PROPERTY_FACTORY(PropertyAxis1_Factory, Core::PropertyAxis1)