TDME2
1.9.200
src
tdme
tools
editor
tabviews
SoundTabView.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/audio/fwd-tdme.h
>
8
#include <
tdme/engine/fwd-tdme.h
>
9
#include <
tdme/gui/nodes/fwd-tdme.h
>
10
#include <
tdme/tools/editor/misc/PopUps.h
>
11
#include <
tdme/tools/editor/tabcontrollers/fwd-tdme.h
>
12
#include <
tdme/tools/editor/tabcontrollers/SoundTabController.h
>
13
#include <
tdme/tools/editor/tabcontrollers/TabController.h
>
14
#include <
tdme/tools/editor/tabviews/fwd-tdme.h
>
15
#include <
tdme/tools/editor/tabviews/TabView.h
>
16
#include <
tdme/tools/editor/views/fwd-tdme.h
>
17
18
using
std::string;
19
using
std::unique_ptr;
20
21
using
tdme::audio::Audio
;
22
using
tdme::audio::AudioEntity
;
23
using
tdme::engine::Engine
;
24
using
tdme::engine::FrameBuffer
;
25
using
tdme::gui::nodes::GUIScreenNode
;
26
using
tdme::tools::editor::misc::PopUps
;
27
using
tdme::tools::editor::tabcontrollers::SoundTabController
;
28
using
tdme::tools::editor::tabcontrollers::TabController
;
29
using
tdme::tools::editor::tabviews::TabView
;
30
using
tdme::tools::editor::views::EditorView
;
31
32
/**
33
* Sound tab view
34
* @author Andreas Drewke
35
*/
36
class
tdme::tools::editor::tabviews::SoundTabView
final
37
:
public
TabView
38
{
39
protected
:
40
unique_ptr<Engine>
engine
;
41
Audio
*
audio
{
nullptr
};
42
43
private
:
44
EditorView
*
editorView
{
nullptr
};
45
string
tabId
;
46
GUIScreenNode
*
screenNode
{
nullptr
};
47
PopUps
*
popUps
{
nullptr
};
48
unique_ptr<SoundTabController>
soundTabController
;
49
TabView::OutlinerState
outlinerState
;
50
AudioEntity
*
audioEntity
{
nullptr
};
51
52
public
:
53
// forbid class copy
54
FORBID_CLASS_COPY
(
SoundTabView
)
55
56
/**
57
* Public constructor
58
* @param editorView editor view
59
* @param tabId tab id
60
* @param screenNode screenNode
61
* @param audioEntity audioEntity
62
*/
63
SoundTabView
(
EditorView
*
editorView
,
const
string
&
tabId
,
GUIScreenNode
*
screenNode
,
AudioEntity
*
audioEntity
);
64
65
/**
66
* Destructor
67
*/
68
~SoundTabView
();
69
70
/**
71
* @return editor view
72
*/
73
inline
EditorView
*
getEditorView
() {
74
return
editorView
;
75
}
76
77
/**
78
* @return associated tab controller
79
*/
80
inline
TabController
*
getTabController
()
override
{
81
return
soundTabController
.get();
82
}
83
84
/**
85
* @return pop up views
86
*/
87
inline
PopUps
*
getPopUps
() {
88
return
popUps
;
89
}
90
91
// overridden methods
92
void
handleInputEvents
()
override
;
93
void
display
()
override
;
94
inline
const
string
&
getTabId
()
override
{
95
return
tabId
;
96
}
97
void
initialize
()
override
;
98
void
dispose
()
override
;
99
Engine
*
getEngine
()
override
;
100
void
activate
()
override
;
101
void
deactivate
()
override
;
102
void
reloadOutliner
()
override
;
103
inline
bool
hasFixedSize
()
override
{
return
false
; };
104
void
updateRendering
()
override
;
105
106
/**
107
* Play
108
*/
109
void
play
();
110
111
/**
112
* Stop
113
*/
114
void
stop
();
115
};
PopUps.h
SoundTabController.h
TabController.h
TabView.h
fwd-tdme.h
tdme::audio::AudioEntity
Audio entity base class.
Definition:
AudioEntity.h:19
tdme::audio::Audio
Interface to audio module.
Definition:
Audio.h:29
tdme::engine::Engine
Engine main class.
Definition:
Engine.h:131
tdme::engine::FrameBuffer
Frame buffer class.
Definition:
FrameBuffer.h:22
tdme::gui::nodes::GUIScreenNode
GUI screen node that represents a screen that can be rendered via GUI system.
Definition:
GUIScreenNode.h:72
tdme::tools::editor::misc::PopUps
Pop ups controller accessor class.
Definition:
PopUps.h:29
tdme::tools::editor::tabcontrollers::SoundTabController
Sound tab controller.
Definition:
SoundTabController.h:48
tdme::tools::editor::tabviews::SoundTabView
Sound tab view.
Definition:
SoundTabView.h:38
tdme::tools::editor::tabviews::SoundTabView::dispose
void dispose() override
Disposes the view.
Definition:
SoundTabView.cpp:78
tdme::tools::editor::tabviews::SoundTabView::SoundTabView
SoundTabView(EditorView *editorView, const string &tabId, GUIScreenNode *screenNode, AudioEntity *audioEntity)
Public constructor.
Definition:
SoundTabView.cpp:36
tdme::tools::editor::tabviews::SoundTabView::hasFixedSize
bool hasFixedSize() override
If this viewport framebuffer has a fixed size.
Definition:
SoundTabView.h:103
tdme::tools::editor::tabviews::SoundTabView::display
void display() override
Renders the view.
Definition:
SoundTabView.cpp:59
tdme::tools::editor::tabviews::SoundTabView::audio
Audio * audio
Definition:
SoundTabView.h:41
tdme::tools::editor::tabviews::SoundTabView::reloadOutliner
void reloadOutliner() override
Reload outliner.
Definition:
SoundTabView.cpp:103
tdme::tools::editor::tabviews::SoundTabView::tabId
string tabId
Definition:
SoundTabView.h:45
tdme::tools::editor::tabviews::SoundTabView::engine
unique_ptr< Engine > engine
Definition:
SoundTabView.h:40
tdme::tools::editor::tabviews::SoundTabView::initialize
void initialize() override
Initiates the view.
Definition:
SoundTabView.cpp:65
tdme::tools::editor::tabviews::SoundTabView::deactivate
void deactivate() override
Deactivate.
Definition:
SoundTabView.cpp:99
tdme::tools::editor::tabviews::SoundTabView::getEngine
Engine * getEngine() override
Definition:
SoundTabView.cpp:87
tdme::tools::editor::tabviews::SoundTabView::getTabId
const string & getTabId() override
Definition:
SoundTabView.h:94
tdme::tools::editor::tabviews::SoundTabView::getTabController
TabController * getTabController() override
Definition:
SoundTabView.h:80
tdme::tools::editor::tabviews::SoundTabView::handleInputEvents
void handleInputEvents() override
Handle input events that have not yet been processed.
Definition:
SoundTabView.cpp:54
tdme::tools::editor::tabviews::SoundTabView::audioEntity
AudioEntity * audioEntity
Definition:
SoundTabView.h:50
tdme::tools::editor::tabviews::SoundTabView::outlinerState
TabView::OutlinerState outlinerState
Definition:
SoundTabView.h:49
tdme::tools::editor::tabviews::SoundTabView::play
void play()
Play.
Definition:
SoundTabView.cpp:108
tdme::tools::editor::tabviews::SoundTabView::activate
void activate() override
Activate.
Definition:
SoundTabView.cpp:91
tdme::tools::editor::tabviews::SoundTabView::stop
void stop()
Stop.
Definition:
SoundTabView.cpp:113
tdme::tools::editor::tabviews::SoundTabView::getPopUps
PopUps * getPopUps()
Definition:
SoundTabView.h:87
tdme::tools::editor::tabviews::SoundTabView::screenNode
GUIScreenNode * screenNode
Definition:
SoundTabView.h:46
tdme::tools::editor::tabviews::SoundTabView::getEditorView
EditorView * getEditorView()
Definition:
SoundTabView.h:73
tdme::tools::editor::tabviews::SoundTabView::popUps
PopUps * popUps
Definition:
SoundTabView.h:47
tdme::tools::editor::tabviews::SoundTabView::updateRendering
void updateRendering() override
Update rendering.
Definition:
SoundTabView.cpp:84
tdme::tools::editor::tabviews::SoundTabView::~SoundTabView
~SoundTabView()
Destructor.
Definition:
SoundTabView.cpp:51
tdme::tools::editor::tabviews::SoundTabView::soundTabController
unique_ptr< SoundTabController > soundTabController
Definition:
SoundTabView.h:48
tdme::tools::editor::tabviews::SoundTabView::editorView
EditorView * editorView
Definition:
SoundTabView.h:44
tdme::tools::editor::views::EditorView
Editor View.
Definition:
EditorView.h:38
fwd-tdme.h
fwd-tdme.h
tdme::tools::editor::tabcontrollers::TabController
Tab controller, which connects UI with logic.
Definition:
TabController.h:34
tdme::tools::editor::tabviews::TabView::OutlinerState
Definition:
TabView.h:28
tdme::tools::editor::tabviews::TabView
Tab view interface.
Definition:
TabView.h:27
tdme.h
FORBID_CLASS_COPY
#define FORBID_CLASS_COPY(CLASS)
Definition:
tdme.h:6
fwd-tdme.h
fwd-tdme.h
fwd-tdme.h
Generated by
1.9.1