Ocular Engine
UInt8Property.hpp
1 
17 #pragma once
18 #ifndef __H__OCULAR_EDITOR_UINT8_PROPERTY__H__
19 #define __H__OCULAR_EDITOR_UINT8_PROPERTY__H__
20 
21 #include "Widgets/Properties/PropertyWidget.hpp"
22 #include "Widgets/Standard/LineEdit.hpp"
23 
24 #include <cstdint>
25 
26 //------------------------------------------------------------------------------------------
27 
32 namespace Ocular
33 {
38  namespace Editor
39  {
46  {
47  public:
48 
49  UInt8Property(QWidget* parent = nullptr);
50  virtual ~UInt8Property();
51 
52  virtual bool updateProperties() override;
53  virtual void setValue(void* value, uint32_t size) override;
54  virtual std::string getValue() const override;
55 
56  LineEdit* getLineEdit();
57 
58  protected:
59 
60  private:
61 
62  LineEdit* m_EditValue;
63  };
64  }
68 }
73 //------------------------------------------------------------------------------------------
74 
75 #endif
Parent class for all general property widgets.
Definition: PropertyWidget.hpp:51
virtual std::string getValue() const override
Definition: UInt8Property.cpp:91
Definition: UInt8Property.hpp:45
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70
virtual void setValue(void *value, uint32_t size) override
Definition: UInt8Property.cpp:71
Definition: LineEdit.hpp:56
virtual bool updateProperties() override
Definition: UInt8Property.cpp:49