aboutsummaryrefslogtreecommitdiff
path: root/editor/plugins/stream_editor_plugin.h
diff options
context:
space:
mode:
authorRémi Verschelde2017-03-19 00:36:26 +0100
committerRémi Verschelde2017-03-19 00:36:26 +0100
commitf8db8a3faa30b71dca33ced38be16d3f93f43e8a (patch)
tree3b798318132cca7eccfbca5818ab55656a2896d7 /editor/plugins/stream_editor_plugin.h
parent1d418afe863c9e553b69174ce63aef203c46d2f0 (diff)
downloadgodot-f8db8a3faa30b71dca33ced38be16d3f93f43e8a.tar.gz
godot-f8db8a3faa30b71dca33ced38be16d3f93f43e8a.tar.zst
godot-f8db8a3faa30b71dca33ced38be16d3f93f43e8a.zip
Bring that Whole New World to the Old Continent too
Applies the clang-format style to the 2.1 branch as done for master in 5dbf1809c6e3e905b94b8764e99491e608122261.
Diffstat (limited to '')
-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