summaryrefslogtreecommitdiff
path: root/editor/node_dock.h
diff options
context:
space:
mode:
Diffstat (limited to 'editor/node_dock.h')
-rw-r--r--editor/node_dock.h28
1 files changed, 17 insertions, 11 deletions
diff --git a/editor/node_dock.h b/editor/node_dock.h
index 280369bb09..35af1a8121 100644
--- a/editor/node_dock.h
+++ b/editor/node_dock.h
@@ -5,8 +5,8 @@
/* GODOT ENGINE */
/* https://godotengine.org */
/*************************************************************************/
-/* Copyright (c) 2007-2021 Juan Linietsky, Ariel Manzur. */
-/* Copyright (c) 2014-2021 Godot Engine contributors (cf. AUTHORS.md). */
+/* Copyright (c) 2007-2022 Juan Linietsky, Ariel Manzur. */
+/* Copyright (c) 2014-2022 Godot Engine contributors (cf. AUTHORS.md). */
/* */
/* Permission is hereby granted, free of charge, to any person obtaining */
/* a copy of this software and associated documentation files (the */
@@ -31,29 +31,34 @@
#ifndef NODE_DOCK_H
#define NODE_DOCK_H
-#include "connections_dialog.h"
#include "groups_editor.h"
+class ConnectionsDock;
+
class NodeDock : public VBoxContainer {
GDCLASS(NodeDock, VBoxContainer);
- Button *connections_button;
- Button *groups_button;
+ Button *connections_button = nullptr;
+ Button *groups_button = nullptr;
+
+ ConnectionsDock *connections = nullptr;
+ GroupsEditor *groups = nullptr;
- ConnectionsDock *connections;
- GroupsEditor *groups;
+ HBoxContainer *mode_hb = nullptr;
- HBoxContainer *mode_hb;
+ Label *select_a_node = nullptr;
- Label *select_a_node;
+private:
+ static NodeDock *singleton;
+
+public:
+ static NodeDock *get_singleton() { return singleton; }
protected:
static void _bind_methods();
void _notification(int p_what);
public:
- static NodeDock *singleton;
-
void set_node(Node *p_node);
void show_groups();
@@ -62,6 +67,7 @@ public:
void update_lists();
NodeDock();
+ ~NodeDock();
};
#endif // NODE_DOCK_H