Ocular Engine
FloatProperty.hpp
1 
17 #pragma once
18 #ifndef __H__OCULAR_EDITOR_FLOAT_PROPERTY__H__
19 #define __H__OCULAR_EDITOR_FLOAT_PROPERTY__H__
20 
21 #include "Widgets/Properties/PropertyWidget.hpp"
22 #include "Widgets/Standard/LineEdit.hpp"
23 
24 //------------------------------------------------------------------------------------------
25 
30 namespace Ocular
31 {
36  namespace Editor
37  {
44  {
45  public:
46 
47  FloatProperty(QWidget* parent = nullptr);
48  virtual ~FloatProperty();
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  LineEdit* getLineEdit();
55 
56  protected:
57 
58  private:
59 
60  LineEdit* m_EditValue;
61  };
62  }
66 }
71 //------------------------------------------------------------------------------------------
72 
73 #endif
virtual bool updateProperties() override
Definition: FloatProperty.cpp:49
Parent class for all general property widgets.
Definition: PropertyWidget.hpp:51
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70
virtual std::string getValue() const override
Definition: FloatProperty.cpp:91
virtual void setValue(void *value, uint32_t size) override
Definition: FloatProperty.cpp:71
Definition: FloatProperty.hpp:43
Definition: LineEdit.hpp:56