diff options
| author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2019-05-15 18:08:17 +0200 |
|---|---|---|
| committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2019-05-15 18:08:17 +0200 |
| commit | a95563208f4ba5081dd3f59da9c8f7a652b61db5 (patch) | |
| tree | 35643e3ad05aa08d13a4324c117ad1be29011ac4 /modules/gdnative/gdnative_library_singleton_editor.h | |
| parent | aa3c5f59f27055245004ef19622e895e7b99a297 (diff) | |
| download | redot-engine-a95563208f4ba5081dd3f59da9c8f7a652b61db5.tar.gz | |
Update GDNativeLibrarySingletonEditor.
Moved GDNative singletons discoverer from register_types to
GDNativeSingletonEditor.
Fix enable/disable switch in GDNativeLibrarySingletonEditor.
Separate `gdnative/singletons` and `gdnative/singletons_disabled`
project settings, keeping "on by default" behavior.
Diffstat (limited to 'modules/gdnative/gdnative_library_singleton_editor.h')
| -rw-r--r-- | modules/gdnative/gdnative_library_singleton_editor.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/modules/gdnative/gdnative_library_singleton_editor.h b/modules/gdnative/gdnative_library_singleton_editor.h index cf5ab23501..b43080dfdb 100644 --- a/modules/gdnative/gdnative_library_singleton_editor.h +++ b/modules/gdnative/gdnative_library_singleton_editor.h @@ -36,18 +36,24 @@ #include "editor/project_settings_editor.h" class GDNativeLibrarySingletonEditor : public VBoxContainer { + GDCLASS(GDNativeLibrarySingletonEditor, VBoxContainer); + +private: Tree *libraries; + UndoRedo *undo_redo; bool updating; - void _update_libraries(); - void _find_gdnative_singletons(EditorFileSystemDirectory *p_dir, const Set<String> &enabled_list); - void _item_edited(); + static Set<String> _find_singletons_recursive(EditorFileSystemDirectory *p_dir); protected: void _notification(int p_what); static void _bind_methods(); + void _discover_singletons(); + void _item_edited(); + void _update_libraries(); + public: GDNativeLibrarySingletonEditor(); }; |
