OpenLexocad  27.1
PropertyBoolDescriptor.h
Go to the documentation of this file.
1 #pragma once
3 
4 
5 namespace Core
6 {
7 /* @brief Saves and restores the characteristics of a PropertyBool
8  */
9 class LX_CORE_EXPORT PropertyBoolDescriptor : public Core::PropertyDescriptor
10 {
13 public:
14  friend class PropertyBoolDescriptor_Factory;
15 
16  enum class Style
17  {
18  DEFAULT = 0,
19  LOCKBUTTON = 1,
20  // CHECKBOX = 2,
21  };
22 
24  virtual ~PropertyBoolDescriptor();
25 
26  Type getType() const override;
27  Style getStyle() const;
28  void setStyle(PropertyBoolDescriptor::Style aStyle);
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
Definition: CoreDocument.h:210
Definition: PropertyInteger.h:10
Definition: Base.h:12
DECLARE_OBJECT_FACTORY_NOIFC(PropertyBoolDescriptor_Factory, PropertyBoolDescriptor)
Definition: PropertyDescriptor.h:15
Style
Definition: PropertyBoolDescriptor.h:16
LX_NODE_HEADER()
Definition: PropertyBoolDescriptor.h:9
std::map< Core::DocObject *, Core::DocObject * > DocObjectMap
Definition: DocObject.h:10
TYPESYSTEM_HEADER()
Definition: DocObject.h:51