Ocular Engine
RoutineDisplay.hpp
1 
17 #pragma once
18 #ifndef __H__OCULAR_EDITOR_ROUTINE_DISPLAY__H__
19 #define __H__OCULAR_EDITOR_ROUTINE_DISPLAY__H__
20 
21 #include "PropertiesDisplayBox.hpp"
22 
23 //------------------------------------------------------------------------------------------
24 
29 namespace Ocular
30 {
35  namespace Editor
36  {
41  {
42  public:
43 
44  RoutineDisplay(std::string const& routineName, QWidget* parent = nullptr);
45  ~RoutineDisplay();
46 
47  //------------------------------------------------------------
48 
49  virtual void setObject(Core::SceneObject* object) override;
50  virtual void updateProperties() override;
51 
52  protected:
53 
54  void buildProperties();
55  void removeProperties();
56 
57  //------------------------------------------------------------
58 
59  Core::ARoutine* m_Routine;
60  std::string m_RoutineName;
61 
62  private:
63 
64  std::vector<PropertyWidget*> m_Properties;
65 
66  };
67  }
71 }
76 //------------------------------------------------------------------------------------------
77 
78 #endif
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70
Definition: ARoutine.hpp:59
Definition: SceneObject.hpp:93
Definition: PropertiesDisplayBox.hpp:46
Definition: RoutineDisplay.hpp:40