TDME2  1.9.200
EmptyEditorTabView.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <memory>
4 #include <string>
5 
6 #include <tdme/tdme.h>
7 #include <tdme/engine/fwd-tdme.h>
16 
17 using std::string;
18 using std::unique_ptr;
19 
30 
31 /**
32  * Empty editor tab view
33  * @author Andreas Drewke
34  */
36  : public TabView
37 {
38 protected:
39  unique_ptr<Engine> engine;
40 
41 private:
42  EditorView* editorView { nullptr };
43  string tabId;
44  PopUps* popUps { nullptr };
45  unique_ptr<EmptyEditorTabController> emptyEditorTabController;
47 
48  unique_ptr<Prototype> prototype;
49  unique_ptr<CameraRotationInputHandler> cameraRotationInputHandler;
50 
51 public:
52  // forbid class copy
54 
55  /**
56  * Public constructor
57  * @param editorView editor view
58  * @param tabId tab id
59  * @param prototype prototype
60  */
62 
63  /**
64  * Destructor
65  */
67 
68  /**
69  * @return editor view
70  */
72  return editorView;
73  }
74 
75  /**
76  * @return associated tab controller
77  */
78  inline TabController* getTabController() override {
79  return emptyEditorTabController.get();
80  }
81 
82  /**
83  * @return pop up views
84  */
85  inline PopUps* getPopUps() {
86  return popUps;
87  }
88 
89  /**
90  * @return prototype
91  */
92  inline Prototype* getPrototype() {
93  return prototype.get();
94  }
95 
96  // overridden methods
97  void handleInputEvents() override;
98  void display() override;
99  inline const string& getTabId() override {
100  return tabId;
101  }
102  void initialize() override;
103  void dispose() override;
104  Engine* getEngine() override;
105  void activate() override;
106  void deactivate() override;
107  void reloadOutliner() override;
108  void updateRendering() override;
109  inline bool hasFixedSize() override{ return false; };
110  /**
111  * Saving prototype as tempty prototype
112  * @param pathName path name
113  * @param fileName file name
114  */
115  void saveFile(const string& pathName, const string& fileName);
116 
117 };
Engine main class.
Definition: Engine.h:131
Frame buffer class.
Definition: FrameBuffer.h:22
Prototype definition.
Definition: Prototype.h:55
Scene definition.
Definition: Scene.h:50
Pop ups controller accessor class.
Definition: PopUps.h:29
void saveFile(const string &pathName, const string &fileName)
Saving prototype as tempty prototype.
bool hasFixedSize() override
If this viewport framebuffer has a fixed size.
void handleInputEvents() override
Handle input events that have not yet been processed.
EmptyEditorTabView(EditorView *editorView, const string &tabId, Prototype *prototype)
Public constructor.
unique_ptr< CameraRotationInputHandler > cameraRotationInputHandler
unique_ptr< EmptyEditorTabController > emptyEditorTabController
Tab controller, which connects UI with logic.
Definition: TabController.h:34
#define FORBID_CLASS_COPY(CLASS)
Definition: tdme.h:6