Ocular Engine
StringProperty.hpp
1 
17 #pragma once
18 #ifndef __H__OCULAR_EDITOR_STRING_PROPERTY__H__
19 #define __H__OCULAR_EDITOR_STRING_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  StringProperty(QWidget* parent = nullptr);
48  virtual ~StringProperty();
49 
50  virtual bool updateProperties() override;
51 
56  virtual void setValue(void* value, uint32_t size = 0) override;
57  virtual std::string getValue() const override;
58 
59  protected:
60 
61  private:
62 
63  LineEdit* m_LineValue;
64  };
65  }
69 }
74 //------------------------------------------------------------------------------------------
75 
76 #endif
virtual void setValue(void *value, uint32_t size=0) override
Definition: StringProperty.cpp:71
Parent class for all general property widgets.
Definition: PropertyWidget.hpp:51
Definition: StringProperty.hpp:43
virtual std::string getValue() const override
Definition: StringProperty.cpp:91
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70
virtual bool updateProperties() override
Definition: StringProperty.cpp:49
Definition: LineEdit.hpp:56