summaryrefslogtreecommitdiff
path: root/editor/editor_settings.h
diff options
context:
space:
mode:
Diffstat (limited to 'editor/editor_settings.h')
-rw-r--r--editor/editor_settings.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/editor/editor_settings.h b/editor/editor_settings.h
index 078abcb4d9..4f25259a01 100644
--- a/editor/editor_settings.h
+++ b/editor/editor_settings.h
@@ -31,15 +31,13 @@
#ifndef EDITOR_SETTINGS_H
#define EDITOR_SETTINGS_H
-#include "core/input/shortcut.h"
#include "core/io/config_file.h"
#include "core/io/resource.h"
-#include "core/object/class_db.h"
#include "core/os/thread_safe.h"
-#include "core/string/translation.h"
-#include "editor/editor_paths.h"
class EditorPlugin;
+class InputEvent;
+class Shortcut;
class EditorSettings : public Resource {
GDCLASS(EditorSettings, Resource);
@@ -79,6 +77,8 @@ private:
static Ref<EditorSettings> singleton;
+ Set<String> changed_settings;
+
HashMap<String, PropertyInfo> hints;
HashMap<String, VariantContainer> props;
int last_order;
@@ -92,8 +92,8 @@ private:
Vector<String> favorites;
Vector<String> recent_dirs;
- bool save_changed_setting;
- bool optimize_save; //do not save stuff that came from config but was not set from engine
+ bool save_changed_setting = true;
+ bool optimize_save = true; //do not save stuff that came from config but was not set from engine
bool _set(const StringName &p_name, const Variant &p_value);
bool _set_only(const StringName &p_name, const Variant &p_value);
@@ -142,6 +142,9 @@ public:
bool property_can_revert(const String &p_setting);
Variant property_get_revert(const String &p_setting);
void add_property_hint(const PropertyInfo &p_hint);
+ Array get_changed_settings() const;
+ bool check_changed_settings_in_group(const String &p_setting_prefix) const;
+ void mark_setting_changed(const String &p_setting);
void set_resource_clipboard(const Ref<Resource> &p_resource) { clipboard = p_resource; }
Ref<Resource> get_resource_clipboard() const { return clipboard; }