aboutsummaryrefslogtreecommitdiff
path: root/editor/plugins/stream_editor_plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'editor/plugins/stream_editor_plugin.h')
-rw-r--r--editor/plugins/stream_editor_plugin.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/editor/plugins/stream_editor_plugin.h b/editor/plugins/stream_editor_plugin.h
index a28dce2f1..0cd309f19 100644
--- a/editor/plugins/stream_editor_plugin.h
+++ b/editor/plugins/stream_editor_plugin.h
@@ -29,9 +29,8 @@
#ifndef STREAM_EDITOR_PLUGIN_H
#define STREAM_EDITOR_PLUGIN_H
-
-#include "editor/editor_plugin.h"
#include "editor/editor_node.h"
+#include "editor/editor_plugin.h"
#include "scene/audio/stream_player.h"
/**
@@ -40,35 +39,35 @@
class StreamEditor : public Control {
- OBJ_TYPE(StreamEditor, Control );
+ OBJ_TYPE(StreamEditor, Control);
- Button * play;
- Button * stop;
+ Button *play;
+ Button *stop;
Panel *panel;
Node *node;
void _play();
void _stop();
+
protected:
void _notification(int p_what);
void _node_removed(Node *p_node);
static void _bind_methods();
-public:
+public:
void edit(Node *p_stream);
StreamEditor();
};
class StreamEditorPlugin : public EditorPlugin {
- OBJ_TYPE( StreamEditorPlugin, EditorPlugin );
+ OBJ_TYPE(StreamEditorPlugin, EditorPlugin);
StreamEditor *stream_editor;
EditorNode *editor;
public:
-
virtual String get_name() const { return "Stream"; }
bool has_main_screen() const { return false; }
virtual void edit(Object *p_node);
@@ -77,7 +76,6 @@ public:
StreamEditorPlugin(EditorNode *p_node);
~StreamEditorPlugin();
-
};
#endif // STREAM_EDITOR_PLUGIN_H