Ability to rename autoloads

The commit makes the 'Name' field of autoloads editable, with support
for undo/redo. Name clashes/invalid characters are handled. Fixes #3481.
This commit is contained in:
Johan Manuel 2016-05-26 16:30:34 +02:00
parent eb7227a20b
commit 4b80b6b0e3
2 changed files with 103 additions and 21 deletions

View file

@ -91,6 +91,7 @@ class ProjectSettings : public AcceptDialog {
Tree *autoload_list;
String selected_autoload;
EditorFileDialog *autoload_file_open;
LineEdit *autoload_add_name;
LineEdit *autoload_add_path;
@ -104,6 +105,7 @@ class ProjectSettings : public AcceptDialog {
void _autoload_edited();
void _autoload_file_open();
void _autoload_delete(Object *p_item,int p_column, int p_button);
void _autoload_selected();
bool updating_autoload;