diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-11-20 09:12:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-20 09:12:14 +0100 |
commit | 3dad0ce8f4815165966751705a07fae6e6e2b796 (patch) | |
tree | db67f749b569777544590d4b3e542a1110cac433 /editor/dependency_editor.h | |
parent | 7b5c44730176a17f179a49dde4fbf119e4652221 (diff) | |
parent | 13b07fef8167459a6074759bc989c9380aa05eae (diff) |
Merge pull request #12942 from sersoong/master-test
3.0 - add open feture to dependency_editor.cpp(View Owner..)
Diffstat (limited to 'editor/dependency_editor.h')
-rw-r--r-- | editor/dependency_editor.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/editor/dependency_editor.h b/editor/dependency_editor.h index c7e9baa5c2..9b0aca67d5 100644 --- a/editor/dependency_editor.h +++ b/editor/dependency_editor.h @@ -36,6 +36,7 @@ #include "scene/gui/tree.h" class EditorFileSystemDirectory; +class EditorNode; class DependencyEditor : public AcceptDialog { GDCLASS(DependencyEditor, AcceptDialog); @@ -71,12 +72,25 @@ class DependencyEditorOwners : public AcceptDialog { GDCLASS(DependencyEditorOwners, AcceptDialog); ItemList *owners; + PopupMenu *file_options; + EditorNode *editor; String editing; + void _fill_owners(EditorFileSystemDirectory *efsd); + static void _bind_methods(); + void _list_rmb_select(int p_item, const Vector2 &p_pos); + void _select_file(int p_idx); + void _file_option(int p_option); + +private: + enum FileMenu { + FILE_OPEN + }; + public: void show(const String &p_path); - DependencyEditorOwners(); + DependencyEditorOwners(EditorNode *p_editor); }; class DependencyRemoveDialog : public ConfirmationDialog { |