Ocular Engine
CommonDisplay.hpp
1 
17 #pragma once
18 #ifndef __H__OCULAR_EDITOR_COMMON_DISPLAY__H__
19 #define __H__OCULAR_EDITOR_COMMON_DISPLAY__H__
20 
21 #include "PropertiesDisplayBox.hpp"
22 #include "Widgets/Standard/CheckBox.hpp"
23 
24 #include <QtWidgets/qframe.h>
25 #include <QtWidgets/qlabel.h>
26 #include <QtWidgets/qlineedit.h>
27 
28 //------------------------------------------------------------------------------------------
29 
34 namespace Ocular
35 {
40  namespace Editor
41  {
42  class LineEdit;
43 
48  {
49  public:
50 
51  CommonDisplay(QWidget* parent = nullptr);
52  ~CommonDisplay();
53 
54  //------------------------------------------------------------
55 
56  virtual void setObject(Core::SceneObject* object) override;
57  virtual void updateProperties() override;
58 
59  protected:
60 
61  void buildName();
62  void buildTransform();
63 
64  //------------------------------------------------------------
65 
66  // Name / IsActive
67 
68  QHBoxLayout* m_NameActiveLayout;
69 
70  QLabel* m_LabelTransform;
71  LineEdit* m_LineName;
72 
73  CheckBox* m_ActiveCheckBox;
74 
75  // Trnasform
76 
77  PropertyWidget* m_PropertyPosition;
78  PropertyWidget* m_PropertyRotation;
79  PropertyWidget* m_PropertyScale;
80 
81  private:
82  };
83  }
87 }
92 //------------------------------------------------------------------------------------------
93 
94 #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: CheckBox.hpp:42
Definition: SceneObject.hpp:93
Definition: PropertiesDisplayBox.hpp:46
Definition: CommonDisplay.hpp:47
Definition: LineEdit.hpp:56