Ocular Engine
Vector4Property.hpp
1 
17 #pragma once
18 #ifndef __H__OCULAR_EDITOR_VECTOR4_PROPERTY__H__
19 #define __H__OCULAR_EDITOR_VECTOR4_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  Vector4Property(QWidget* parent = nullptr);
48  ~Vector4Property();
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  protected:
59 
60  private:
61 
62  QLabel* m_LabelX;
63  QLabel* m_LabelY;
64  QLabel* m_LabelZ;
65  QLabel* m_LabelW;
66 
67  LineEdit* m_EditX;
68  LineEdit* m_EditY;
69  LineEdit* m_EditZ;
70  LineEdit* m_EditW;
71  };
72  }
76 }
81 //------------------------------------------------------------------------------------------
82 
83 #endif
virtual std::string getValue() const override
Definition: Vector4Property.cpp:144
Parent class for all general property widgets.
Definition: PropertyWidget.hpp:51
virtual bool updateProperties() override
Definition: Vector4Property.cpp:66
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: Vector4Property.cpp:118
Definition: Vector4Property.hpp:43
Definition: LineEdit.hpp:56