TDME2
1.9.121
src
tdme
tools
editor
tabviews
EmptyEditorTabView.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <string>
4
5
#include <
tdme/tdme.h
>
6
#include <
tdme/engine/fwd-tdme.h
>
7
#include <
tdme/engine/prototype/fwd-tdme.h
>
8
#include <
tdme/engine/scene/Scene.h
>
9
#include <
tdme/tools/editor/misc/fwd-tdme.h
>
10
#include <
tdme/tools/editor/tabcontrollers/fwd-tdme.h
>
11
#include <
tdme/tools/editor/tabcontrollers/EmptyEditorTabController.h
>
12
#include <
tdme/tools/editor/tabviews/fwd-tdme.h
>
13
#include <
tdme/tools/editor/tabviews/TabView.h
>
14
#include <
tdme/tools/editor/views/fwd-tdme.h
>
15
16
using
std::string;
17
18
using
tdme::engine::prototype::Prototype
;
19
using
tdme::engine::scene::Scene
;
20
using
tdme::engine::Engine
;
21
using
tdme::engine::FrameBuffer
;
22
using
tdme::tools::editor::misc::CameraRotationInputHandler
;
23
using
tdme::tools::editor::misc::PopUps
;
24
using
tdme::tools::editor::tabcontrollers::EmptyEditorTabController
;
25
using
tdme::tools::editor::tabcontrollers::TabController
;
26
using
tdme::tools::editor::tabviews::TabView
;
27
using
tdme::tools::editor::views::EditorView
;
28
29
/**
30
* Empty editor tab view
31
* @author Andreas Drewke
32
* @version $Id$
33
*/
34
class
tdme::tools::editor::tabviews::EmptyEditorTabView
final
35
:
public
TabView
36
{
37
protected
:
38
Engine
*
engine
{
nullptr
};
39
40
private
:
41
EditorView
*
editorView
{
nullptr
};
42
string
tabId
;
43
PopUps
*
popUps
{
nullptr
};
44
EmptyEditorTabController
*
emptyEditorTabController
{
nullptr
};
45
TabView::OutlinerState
outlinerState
;
46
47
Prototype
*
prototype
{
nullptr
};
48
CameraRotationInputHandler
*
cameraRotationInputHandler
{
nullptr
};
49
50
public
:
51
/**
52
* Public constructor
53
* @param editorView editor view
54
* @param tabId tab id
55
* @param prototype prototype
56
*/
57
EmptyEditorTabView
(
EditorView
*
editorView
,
const
string
&
tabId
,
Prototype
*
prototype
);
58
59
/**
60
* Destructor
61
*/
62
~EmptyEditorTabView
();
63
64
/**
65
* @return editor view
66
*/
67
inline
EditorView
*
getEditorView
() {
68
return
editorView
;
69
}
70
71
/**
72
* @return associated tab controller
73
*/
74
inline
TabController
*
getTabController
()
override
{
75
return
emptyEditorTabController
;
76
}
77
78
/**
79
* @return pop up views
80
*/
81
inline
PopUps
*
getPopUps
() {
82
return
popUps
;
83
}
84
85
/**
86
* @return prototype
87
*/
88
inline
Prototype
*
getPrototype
() {
89
return
prototype
;
90
}
91
92
// overridden methods
93
void
handleInputEvents
()
override
;
94
void
display
()
override
;
95
inline
const
string
&
getTabId
()
override
{
96
return
tabId
;
97
}
98
void
initialize
()
override
;
99
void
dispose
()
override
;
100
Engine
*
getEngine
()
override
;
101
void
activate
()
override
;
102
void
deactivate
()
override
;
103
void
reloadOutliner
()
override
;
104
void
updateRendering
()
override
;
105
inline
bool
hasFixedSize
()
override
{
return
false
; };
106
/**
107
* Saving prototype as tempty prototype
108
* @param pathName path name
109
* @param fileName file name
110
*/
111
void
saveFile
(
const
string
& pathName,
const
string
& fileName);
112
113
};
EmptyEditorTabController.h
Scene.h
TabView.h
tdme::engine::Engine
Engine main class.
Definition:
Engine.h:122
tdme::engine::FrameBuffer
Frame buffer class.
Definition:
FrameBuffer.h:21
tdme::engine::prototype::Prototype
Prototype definition.
Definition:
Prototype.h:49
tdme::engine::scene::Scene
Scene definition.
Definition:
Scene.h:41
tdme::tools::editor::misc::CameraRotationInputHandler
Camera Rotation Input Handler.
Definition:
CameraRotationInputHandler.h:23
tdme::tools::editor::misc::PopUps
Pop ups controller accessor class.
Definition:
PopUps.h:19
tdme::tools::editor::tabcontrollers::EmptyEditorTabController
Empty editor tab controller.
Definition:
EmptyEditorTabController.h:38
tdme::tools::editor::tabviews::EmptyEditorTabView
Empty editor tab view.
Definition:
EmptyEditorTabView.h:36
tdme::tools::editor::tabviews::EmptyEditorTabView::engine
Engine * engine
Definition:
EmptyEditorTabView.h:38
tdme::tools::editor::tabviews::EmptyEditorTabView::saveFile
void saveFile(const string &pathName, const string &fileName)
Saving prototype as tempty prototype.
Definition:
EmptyEditorTabView.cpp:111
tdme::tools::editor::tabviews::EmptyEditorTabView::dispose
void dispose() override
Disposes the view.
Definition:
EmptyEditorTabView.cpp:83
tdme::tools::editor::tabviews::EmptyEditorTabView::emptyEditorTabController
EmptyEditorTabController * emptyEditorTabController
Definition:
EmptyEditorTabView.h:44
tdme::tools::editor::tabviews::EmptyEditorTabView::hasFixedSize
bool hasFixedSize() override
If this viewport framebuffer has a fixed size.
Definition:
EmptyEditorTabView.h:105
tdme::tools::editor::tabviews::EmptyEditorTabView::display
void display() override
Renders the view.
Definition:
EmptyEditorTabView.cpp:65
tdme::tools::editor::tabviews::EmptyEditorTabView::reloadOutliner
void reloadOutliner() override
Reload outliner.
Definition:
EmptyEditorTabView.cpp:106
tdme::tools::editor::tabviews::EmptyEditorTabView::getTabController
TabController * getTabController() override
Definition:
EmptyEditorTabView.h:74
tdme::tools::editor::tabviews::EmptyEditorTabView::tabId
string tabId
Definition:
EmptyEditorTabView.h:42
tdme::tools::editor::tabviews::EmptyEditorTabView::initialize
void initialize() override
Initiates the view.
Definition:
EmptyEditorTabView.cpp:71
tdme::tools::editor::tabviews::EmptyEditorTabView::deactivate
void deactivate() override
Deactivate.
Definition:
EmptyEditorTabView.cpp:102
tdme::tools::editor::tabviews::EmptyEditorTabView::getEngine
Engine * getEngine() override
Definition:
EmptyEditorTabView.cpp:91
tdme::tools::editor::tabviews::EmptyEditorTabView::handleInputEvents
void handleInputEvents() override
Handle input events that have not yet been processed.
Definition:
EmptyEditorTabView.cpp:61
tdme::tools::editor::tabviews::EmptyEditorTabView::EmptyEditorTabView
EmptyEditorTabView(EditorView *editorView, const string &tabId, Prototype *prototype)
Public constructor.
Definition:
EmptyEditorTabView.cpp:38
tdme::tools::editor::tabviews::EmptyEditorTabView::outlinerState
TabView::OutlinerState outlinerState
Definition:
EmptyEditorTabView.h:45
tdme::tools::editor::tabviews::EmptyEditorTabView::~EmptyEditorTabView
~EmptyEditorTabView()
Destructor.
Definition:
EmptyEditorTabView.cpp:53
tdme::tools::editor::tabviews::EmptyEditorTabView::cameraRotationInputHandler
CameraRotationInputHandler * cameraRotationInputHandler
Definition:
EmptyEditorTabView.h:48
tdme::tools::editor::tabviews::EmptyEditorTabView::getPopUps
PopUps * getPopUps()
Definition:
EmptyEditorTabView.h:81
tdme::tools::editor::tabviews::EmptyEditorTabView::activate
void activate() override
Activate.
Definition:
EmptyEditorTabView.cpp:95
tdme::tools::editor::tabviews::EmptyEditorTabView::getTabId
const string & getTabId() override
Definition:
EmptyEditorTabView.h:95
tdme::tools::editor::tabviews::EmptyEditorTabView::popUps
PopUps * popUps
Definition:
EmptyEditorTabView.h:43
tdme::tools::editor::tabviews::EmptyEditorTabView::getPrototype
Prototype * getPrototype()
Definition:
EmptyEditorTabView.h:88
tdme::tools::editor::tabviews::EmptyEditorTabView::prototype
Prototype * prototype
Definition:
EmptyEditorTabView.h:47
tdme::tools::editor::tabviews::EmptyEditorTabView::updateRendering
void updateRendering() override
Update rendering.
Definition:
EmptyEditorTabView.cpp:88
tdme::tools::editor::tabviews::EmptyEditorTabView::editorView
EditorView * editorView
Definition:
EmptyEditorTabView.h:41
tdme::tools::editor::tabviews::EmptyEditorTabView::getEditorView
EditorView * getEditorView()
Definition:
EmptyEditorTabView.h:67
tdme::tools::editor::views::EditorView
Editor View.
Definition:
EditorView.h:30
fwd-tdme.h
fwd-tdme.h
tdme::tools::editor::tabcontrollers::TabController
Tab controller, which connects UI with logic.
Definition:
TabController.h:23
tdme::tools::editor::tabviews::TabView::OutlinerState
Definition:
TabView.h:29
tdme::tools::editor::tabviews::TabView
Tab view interface.
Definition:
TabView.h:28
tdme.h
fwd-tdme.h
fwd-tdme.h
fwd-tdme.h
fwd-tdme.h
Generated by
1.9.3