Ocular Engine
BoolProperty.hpp
1 
17 #pragma once
18 #ifndef __H__OCULAR_EDITOR_BOOL_PROPERTY__H__
19 #define __H__OCULAR_EDITOR_BOOL_PROPERTY__H__
20 
21 #include "Widgets/Properties/PropertyWidget.hpp"
22 #include "Widgets/Standard/CheckBox.hpp"
23 
24 //------------------------------------------------------------------------------------------
25 
30 namespace Ocular
31 {
36  namespace Editor
37  {
44  {
45  public:
46 
47  BoolProperty(QWidget* parent = nullptr);
48  virtual ~BoolProperty();
49 
50  virtual bool updateProperties() override;
51  virtual void setValue(void* value, uint32_t size) override;
52  virtual std::string getValue() const override;
53 
54  protected:
55 
56  private:
57 
58  CheckBox* m_CheckValue;
59  };
60  }
64 }
69 //------------------------------------------------------------------------------------------
70 
71 #endif
Parent class for all general property widgets.
Definition: PropertyWidget.hpp:51
virtual void setValue(void *value, uint32_t size) override
Definition: BoolProperty.cpp:71
virtual std::string getValue() const override
Definition: BoolProperty.cpp:91
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70
Definition: CheckBox.hpp:42
virtual bool updateProperties() override
Definition: BoolProperty.cpp:49
Definition: BoolProperty.hpp:43