Ocular Engine
Vector2Property.hpp
1 
17 #pragma once
18 #ifndef __H__OCULAR_EDITOR_VECTOR2_PROPERTY__H__
19 #define __H__OCULAR_EDITOR_VECTOR2_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  Vector2Property(QWidget* parent = nullptr);
48  virtual ~Vector2Property();
49 
50  virtual bool updateProperties() override;
51 
55  virtual void setValue(void* value, uint32_t size) override;
56  virtual std::string getValue() const override;
57 
58  QLabel* m_LabelX;
59  QLabel* m_LabelY;
60 
61  LineEdit* m_EditX;
62  LineEdit* m_EditY;
63 
64  protected:
65 
66  private:
67  };
68  }
72 }
77 //------------------------------------------------------------------------------------------
78 
79 #endif
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
Definition: Vector2Property.hpp:43
virtual std::string getValue() const override
Definition: Vector2Property.cpp:112
virtual void setValue(void *value, uint32_t size) override
Definition: Vector2Property.cpp:90
Definition: LineEdit.hpp:56
virtual bool updateProperties() override
Definition: Vector2Property.cpp:58