diff options
author | steincodes <swarnimarun11@gmail.com> | 2018-07-22 21:23:40 +0530 |
---|---|---|
committer | steincodes <swarnimarun11@gmail.com> | 2018-07-22 21:23:40 +0530 |
commit | a1dee44e21c3b9c61a77d4ba51806c743c5d0cb4 (patch) | |
tree | 1fbfd67eeb48b466998b2acdf8070ec593cd19aa /editor/filesystem_dock.h | |
parent | 89e1b302b504feb1cea218adcc6fac77c8ae0052 (diff) |
Ability to add Resource from FileSystem Dock
Diffstat (limited to 'editor/filesystem_dock.h')
-rw-r--r-- | editor/filesystem_dock.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/editor/filesystem_dock.h b/editor/filesystem_dock.h index e8ab803cca..6a0c73d52e 100644 --- a/editor/filesystem_dock.h +++ b/editor/filesystem_dock.h @@ -47,6 +47,8 @@ #include "os/dir_access.h" #include "os/thread.h" +#include "create_dialog.h" + #include "dependency_editor.h" #include "editor_dir_dialog.h" #include "editor_file_system.h" @@ -78,7 +80,8 @@ private: FILE_NEW_FOLDER, FILE_NEW_SCRIPT, FILE_SHOW_IN_EXPLORER, - FILE_COPY_PATH + FILE_COPY_PATH, + FILE_NEW_RESOURCE }; enum FolderMenu { @@ -131,6 +134,7 @@ private: LineEdit *make_dir_dialog_text; ConfirmationDialog *overwrite_dialog; ScriptCreateDialog *make_script_dialog_text; + CreateDialog *new_resource_dialog; class FileOrFolder { public: @@ -191,6 +195,7 @@ private: void _update_favorite_dirs_list_after_move(const Map<String, String> &p_renames) const; void _update_project_settings_after_move(const Map<String, String> &p_renames) const; + void _resource_created() const; void _make_dir_confirm(); void _rename_operation_confirm(); void _duplicate_operation_confirm(); |