Ocular Engine
Int16Property.hpp
1 
17 #pragma once
18 #ifndef __H__OCULAR_EDITOR_INT16_PROPERTY__H__
19 #define __H__OCULAR_EDITOR_INT16_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  Int16Property(QWidget* parent = nullptr);
50  virtual ~Int16Property();
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 void setValue(void *value, uint32_t size) override
Definition: Int16Property.cpp:71
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70
virtual std::string getValue() const override
Definition: Int16Property.cpp:91
virtual bool updateProperties() override
Definition: Int16Property.cpp:49
Definition: LineEdit.hpp:56
Definition: Int16Property.hpp:45