Ocular Engine
QuatAsEulerProperty.hpp
1 
17 #pragma once
18 #ifndef __H__OCULAR_EDITOR_QUAT_AS_EULER_PROPERTY__H__
19 #define __H__OCULAR_EDITOR_QUAT_AS_EULER_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  {
47  {
48  public:
49 
50  QuatAsEulerProperty(QWidget* parent = nullptr);
51  virtual ~QuatAsEulerProperty();
52 
53  virtual bool updateProperties() override;
54 
58  virtual void setValue(void* value, uint32_t size) override;
59 
60  virtual std::string getValue() const override;
61 
62  protected:
63 
64  private:
65 
66  QLabel* m_LabelX;
67  QLabel* m_LabelY;
68  QLabel* m_LabelZ;
69 
70  LineEdit* m_EditX;
71  LineEdit* m_EditY;
72  LineEdit* m_EditZ;
73  };
74  }
78 }
83 //------------------------------------------------------------------------------------------
84 
85 #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
virtual std::string getValue() const override
Definition: QuatAsEulerProperty.cpp:143
Definition: QuatAsEulerProperty.hpp:46
virtual bool updateProperties() override
Definition: QuatAsEulerProperty.cpp:63
Definition: LineEdit.hpp:56
virtual void setValue(void *value, uint32_t size) override
Definition: QuatAsEulerProperty.cpp:117