OpenLexocad  27.0
PropertyFont.h
Go to the documentation of this file.
1 #pragma once
2 #include <memory>
3 #include <string>
4 
5 #include "Core/Property.h"
6 #include "Core/Variant.h"
7 
8 class QFont;
9 
10 namespace Core
11 {
13 {
15 
16 public:
17  PropertyFont(void);
18  PropertyFont(const PropertyFont& o);
19  PropertyFont& operator=(const PropertyFont& o);
20  virtual ~PropertyFont(void);
21 
22  void setValue(const QFont& font);
23  bool setValueFromVariant(const Core::Variant& value);
24  void copyValue(Core::Property* p);
25 
26  const QFont& getValue() const;
27  Core::Variant getVariant(void) const;
28 
29  virtual void save(Base::AbstractWriter& writer, Base::PersistanceVersion& save_version);
30  virtual void restore(Base::AbstractXMLReader& reader, Base::PersistanceVersion& version);
31  virtual bool isEqual(const Property*) const;
32 
33 protected:
34  class Impl;
35  std::unique_ptr<Impl> _M_impl;
36 };
37 
38 
39 DECLARE_PROPERTY_FACTORY(PropertyFont_Factory, Core::PropertyFont);
40 
41 
42 } // namespace Core
#define CORE_EXPORT
Definition: core_defines2.h:10
std::unique_ptr< Impl > _M_impl
Definition: PropertyFont.h:34
Definition: Persistance.h:20
LX_CORE_EXPORT Version & version
Definition: Variant.h:90
Definition: PropertyFont.h:12
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)