OpenLexocad  28.0
PropertyBoolDescriptor.h
Go to the documentation of this file.
1 #pragma once
2 
4 
5 
6 namespace Core
7 {
8 /* @brief Saves and restores the characteristics of a PropertyBool
9  */
10 class LX_CORE_EXPORT PropertyBoolDescriptor : public Core::PropertyDescriptor
11 {
14 public:
15  friend class PropertyBoolDescriptor_Factory;
16 
17  enum class Style
18  {
19  DEFAULT = 0,
20  LOCKBUTTON = 1,
21  // CHECKBOX = 2,
22  };
23 
25 
26  Type getType() const override;
27  Style getStyle() const;
29 
30 protected:
31  Core::DocObject* copy(Core::CoreDocument* toDoc, DocObjectMap& copyMap) override;
32 
33 private:
34  PropertyInteger style;
35 };
36 
37 DECLARE_OBJECT_FACTORY_NOIFC(PropertyBoolDescriptor_Factory, PropertyBoolDescriptor);
38 } // namespace Core
Core::PropertyBoolDescriptor::getStyle
Style getStyle() const
Core::CoreDocument
Definition: CoreDocument.h:269
Core::DocObjectMap
std::map< Core::DocObject *, Core::DocObject * > DocObjectMap
Definition: DocObject.h:50
Core::PropertyBoolDescriptor::setStyle
void setStyle(PropertyBoolDescriptor::Style aStyle)
Core::PropertyDescriptor::Type
Type
Definition: PropertyDescriptor.h:18
Core::PropertyBoolDescriptor::Style
Style
Definition: PropertyBoolDescriptor.h:18
PropertyDescriptor.h
Core::PropertyBoolDescriptor::PropertyBoolDescriptor
PropertyBoolDescriptor()
Core::DocObject
Definition: DocObject.h:54
Core
Definition: Base.h:5
LX_NODE_HEADER
#define LX_NODE_HEADER()
Definition: PropertyMacros.h:7
Core::PropertyDescriptor
Definition: PropertyDescriptor.h:11
Core::PropertyBoolDescriptor::copy
Core::DocObject * copy(Core::CoreDocument *toDoc, DocObjectMap &copyMap) override
Core::DECLARE_OBJECT_FACTORY_NOIFC
DECLARE_OBJECT_FACTORY_NOIFC(PropertyBoolDescriptor_Factory, PropertyBoolDescriptor)
Core::PropertyBoolDescriptor
Definition: PropertyBoolDescriptor.h:11
Core::PropertyBoolDescriptor::getType
Type getType() const override
TYPESYSTEM_HEADER
#define TYPESYSTEM_HEADER()
define for subclassing Base::BaseClass
Definition: Base.h:12
Core::PropertyInteger
Definition: PropertyInteger.h:8