TDME2
1.9.121
src
tdme
tools
editor
views
EditorView.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
tdme/tdme.h
>
4
#include <
tdme/engine/fwd-tdme.h
>
5
#include <
tdme/engine/prototype/fwd-tdme.h
>
6
#include <
tdme/gui/events/GUIInputEventHandler.h
>
7
#include <
tdme/gui/nodes/fwd-tdme.h
>
8
#include <
tdme/math/Vector3.h
>
9
#include <
tdme/tools/editor/controllers/fwd-tdme.h
>
10
#include <
tdme/tools/editor/misc/fwd-tdme.h
>
11
#include <
tdme/tools/editor/views/fwd-tdme.h
>
12
#include <
tdme/tools/editor/views/View.h
>
13
14
using
tdme::engine::Engine
;
15
using
tdme::gui::events::GUIInputEventHandler
;
16
using
tdme::gui::nodes::GUINode
;
17
using
tdme::math::Vector3
;
18
using
tdme::tools::editor::controllers::EditorScreenController
;
19
using
tdme::tools::editor::misc::PopUps
;
20
using
tdme::tools::editor::views::View
;
21
22
/**
23
* Editor View
24
* @author Andreas Drewke
25
* @version $Id$
26
*/
27
class
tdme::tools::editor::views::EditorView
final
28
:
public
View
29
,
public
GUIInputEventHandler
30
{
31
private
:
32
Engine
*
engine
{
nullptr
};
33
PopUps
*
popUps
{
nullptr
};
34
EditorScreenController
*
editorScreenController
{
nullptr
};
35
string
lastSelectedTabId
;
36
37
public
:
38
/**
39
* Public constructor
40
* @param popUps pop ups view
41
*/
42
EditorView
(
PopUps
*
popUps
);
43
44
/**
45
* Destructor
46
*/
47
~EditorView
();
48
49
/**
50
* @return pop ups
51
*/
52
PopUps
*
getPopUps
();
53
54
/**
55
* @return screen controller
56
*/
57
EditorScreenController
*
getScreenController
() {
58
return
editorScreenController
;
59
}
60
61
/**
62
* Init GUI elements
63
*/
64
void
updateGUIElements
();
65
66
// overridden methods
67
void
handleInputEvents
()
override
;
68
void
display
()
override
;
69
void
initialize
()
override
;
70
void
activate
()
override
;
71
void
deactivate
()
override
;
72
void
dispose
()
override
;
73
void
tick
()
override
;
74
75
/**
76
* Set outliner content
77
* @param xml xml
78
*/
79
void
setOutlinerContent
(
const
string
& xml);
80
81
/**
82
* Set outliner add drop down content
83
* @param xml xml
84
*/
85
void
setOutlinerAddDropDownContent
(
const
string
& xml);
86
87
/**
88
* Set details content
89
* @param xml xml
90
*/
91
void
setDetailsContent
(
const
string
& xml);
92
93
/**
94
* Reload tab outliner
95
* @param newSelectionValue new selection value
96
*/
97
void
reloadTabOutliner
(
const
string
& newSelectionValue =
string
());
98
99
/**
100
* Determine viewport screen constraints
101
* @param viewPortNode view port node
102
* @param left left
103
* @param top top
104
* @param width width
105
* @param height height
106
*/
107
void
getViewPort
(
GUINode
* viewPortNode,
int
& left,
int
& top,
int
& width,
int
& height);
108
109
};
GUIInputEventHandler.h
Vector3.h
View.h
tdme::engine::Engine
Engine main class.
Definition:
Engine.h:122
tdme::gui::nodes::GUINode
GUI node base class.
Definition:
GUINode.h:63
tdme::math::Vector3
3D vector 3 class
Definition:
Vector3.h:22
tdme::tools::editor::controllers::EditorScreenController
Editor screen controller.
Definition:
EditorScreenController.h:69
tdme::tools::editor::misc::PopUps
Pop ups controller accessor class.
Definition:
PopUps.h:19
tdme::tools::editor::views::EditorView
Editor View.
Definition:
EditorView.h:30
tdme::tools::editor::views::EditorView::engine
Engine * engine
Definition:
EditorView.h:32
tdme::tools::editor::views::EditorView::dispose
void dispose() override
Disposes the view.
Definition:
EditorView.cpp:198
tdme::tools::editor::views::EditorView::display
void display() override
Renders the view.
Definition:
EditorView.cpp:136
tdme::tools::editor::views::EditorView::editorScreenController
EditorScreenController * editorScreenController
Definition:
EditorView.h:34
tdme::tools::editor::views::EditorView::setOutlinerAddDropDownContent
void setOutlinerAddDropDownContent(const string &xml)
Set outliner add drop down content.
Definition:
EditorView.cpp:214
tdme::tools::editor::views::EditorView::setOutlinerContent
void setOutlinerContent(const string &xml)
Set outliner content.
Definition:
EditorView.cpp:210
tdme::tools::editor::views::EditorView::updateGUIElements
void updateGUIElements()
Init GUI elements.
Definition:
EditorView.cpp:162
tdme::tools::editor::views::EditorView::initialize
void initialize() override
Initiates the view.
Definition:
EditorView.cpp:166
tdme::tools::editor::views::EditorView::deactivate
void deactivate() override
Deactivate view.
Definition:
EditorView.cpp:194
tdme::tools::editor::views::EditorView::handleInputEvents
void handleInputEvents() override
Handle input events that have not yet been processed.
Definition:
EditorView.cpp:74
tdme::tools::editor::views::EditorView::tick
void tick() override
Tick.
Definition:
EditorView.cpp:204
tdme::tools::editor::views::EditorView::getPopUps
PopUps * getPopUps()
Definition:
EditorView.cpp:69
tdme::tools::editor::views::EditorView::setDetailsContent
void setDetailsContent(const string &xml)
Set details content.
Definition:
EditorView.cpp:218
tdme::tools::editor::views::EditorView::activate
void activate() override
Activate view.
Definition:
EditorView.cpp:180
tdme::tools::editor::views::EditorView::EditorView
EditorView(PopUps *popUps)
Public constructor.
Definition:
EditorView.cpp:58
tdme::tools::editor::views::EditorView::lastSelectedTabId
string lastSelectedTabId
Definition:
EditorView.h:35
tdme::tools::editor::views::EditorView::popUps
PopUps * popUps
Definition:
EditorView.h:33
tdme::tools::editor::views::EditorView::getScreenController
EditorScreenController * getScreenController()
Definition:
EditorView.h:57
tdme::tools::editor::views::EditorView::getViewPort
void getViewPort(GUINode *viewPortNode, int &left, int &top, int &width, int &height)
Determine viewport screen constraints.
Definition:
EditorView.cpp:237
tdme::tools::editor::views::EditorView::~EditorView
~EditorView()
Destructor.
Definition:
EditorView.cpp:65
tdme::tools::editor::views::EditorView::reloadTabOutliner
void reloadTabOutliner(const string &newSelectionValue=string())
Reload tab outliner.
Definition:
EditorView.cpp:222
fwd-tdme.h
fwd-tdme.h
fwd-tdme.h
tdme::gui::events::GUIInputEventHandler
GUI input event handler interface.
Definition:
GUIInputEventHandler.h:12
tdme::tools::editor::views::View
View interface, this combines application logic, regarding a application view, with screen controller...
Definition:
View.h:12
tdme.h
fwd-tdme.h
fwd-tdme.h
fwd-tdme.h
Generated by
1.9.3