summaryrefslogtreecommitdiff
path: root/editor/connections_dialog.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-07-02 21:43:58 +0200
committerGitHub <noreply@github.com>2019-07-02 21:43:58 +0200
commitd8ce7aeddcaeea503d8d247c55a2cd83ccbbc2c4 (patch)
treed5dca3ec91d253599e81f9a01a7cf23dddecde21 /editor/connections_dialog.h
parent4dec1bde77d40d802b25f7fe1f0f529b8f55d0bd (diff)
parent190e866e4d65c013ed1cf3dfc383f71542f097b6 (diff)
Merge pull request #30253 from akien-mga/signals-tooltip
ConnectionsDock: Add tooltip with signal description
Diffstat (limited to 'editor/connections_dialog.h')
-rw-r--r--editor/connections_dialog.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/editor/connections_dialog.h b/editor/connections_dialog.h
index 195c9e1e7d..3846fa4d9f 100644
--- a/editor/connections_dialog.h
+++ b/editor/connections_dialog.h
@@ -106,6 +106,13 @@ public:
//////////////////////////////////////////
+// Custom Tree needed to use a RichTextLabel as tooltip control
+// when display signal documentation.
+class ConnectionsDockTree : public Tree {
+
+ virtual Control *make_custom_tooltip(const String &p_text) const;
+};
+
class ConnectionsDock : public VBoxContainer {
GDCLASS(ConnectionsDock, VBoxContainer);
@@ -123,7 +130,7 @@ class ConnectionsDock : public VBoxContainer {
};
Node *selectedNode;
- Tree *tree;
+ ConnectionsDockTree *tree;
EditorNode *editor;
ConfirmationDialog *disconnect_all_dialog;
@@ -133,6 +140,8 @@ class ConnectionsDock : public VBoxContainer {
PopupMenu *slot_menu;
UndoRedo *undo_redo;
+ Map<StringName, Map<StringName, String> > descr_cache;
+
void _make_or_edit_connection();
void _connect(Connection cToMake);
void _disconnect(TreeItem &item);