godot/editor/editor_settings.cpp

/**************************************************************************/
/*  editor_settings.cpp                                                   */
/**************************************************************************/
/*                         This file is part of:                          */
/*                             GODOT ENGINE                               */
/*                        https://godotengine.org                         */
/**************************************************************************/
/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */
/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                  */
/*                                                                        */
/* Permission is hereby granted, free of charge, to any person obtaining  */
/* a copy of this software and associated documentation files (the        */
/* "Software"), to deal in the Software without restriction, including    */
/* without limitation the rights to use, copy, modify, merge, publish,    */
/* distribute, sublicense, and/or sell copies of the Software, and to     */
/* permit persons to whom the Software is furnished to do so, subject to  */
/* the following conditions:                                              */
/*                                                                        */
/* The above copyright notice and this permission notice shall be         */
/* included in all copies or substantial portions of the Software.        */
/*                                                                        */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,        */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF     */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY   */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,   */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE      */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                 */
/**************************************************************************/

#include "editor_settings.h"

#include "core/config/project_settings.h"
#include "core/input/input_event.h"
#include "core/input/input_map.h"
#include "core/input/shortcut.h"
#include "core/io/certs_compressed.gen.h"
#include "core/io/dir_access.h"
#include "core/io/file_access.h"
#include "core/io/ip.h"
#include "core/io/resource_loader.h"
#include "core/io/resource_saver.h"
#include "core/object/class_db.h"
#include "core/os/keyboard.h"
#include "core/os/os.h"
#include "core/string/translation_server.h"
#include "core/version.h"
#include "editor/editor_node.h"
#include "editor/editor_paths.h"
#include "editor/editor_property_name_processor.h"
#include "editor/editor_translation.h"
#include "editor/engine_update_label.h"
#include "scene/gui/color_picker.h"
#include "scene/main/node.h"
#include "scene/main/scene_tree.h"
#include "scene/main/window.h"

// PRIVATE METHODS

Ref<EditorSettings> EditorSettings::singleton =;

// Properties

bool EditorSettings::_set(const StringName &p_name, const Variant &p_value) {}

bool EditorSettings::_set_only(const StringName &p_name, const Variant &p_value) {}

bool EditorSettings::_get(const StringName &p_name, Variant &r_ret) const {}

void EditorSettings::_initial_set(const StringName &p_name, const Variant &p_value, bool p_basic) {}

struct _EVCSort {};

void EditorSettings::_get_property_list(List<PropertyInfo> *p_list) const {}

void EditorSettings::_add_property_info_bind(const Dictionary &p_info) {}

// Default configs
bool EditorSettings::has_default_value(const String &p_setting) const {}

void EditorSettings::_set_initialized() {}

void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) {}

void EditorSettings::_load_godot2_text_editor_theme() {}

void EditorSettings::_load_default_visual_shader_editor_theme() {}

bool EditorSettings::_save_text_editor_theme(const String &p_file) {}

bool EditorSettings::_is_default_text_editor_theme(const String &p_theme_name) {}

const String EditorSettings::_get_project_metadata_path() const {}

#ifndef DISABLE_DEPRECATED
void EditorSettings::_remove_deprecated_settings() {}
#endif

// PUBLIC METHODS

EditorSettings *EditorSettings::get_singleton() {}

String EditorSettings::get_existing_settings_path() {}

String EditorSettings::get_newest_settings_path() {}

void EditorSettings::create() {}

void EditorSettings::setup_language() {}

void EditorSettings::setup_network() {}

void EditorSettings::save() {}

PackedStringArray EditorSettings::get_changed_settings() const {}

bool EditorSettings::check_changed_settings_in_group(const String &p_setting_prefix) const {}

void EditorSettings::mark_setting_changed(const String &p_setting) {}

void EditorSettings::destroy() {}

void EditorSettings::set_optimize_save(bool p_optimize) {}

// Properties

void EditorSettings::set_setting(const String &p_setting, const Variant &p_value) {}

Variant EditorSettings::get_setting(const String &p_setting) const {}

bool EditorSettings::has_setting(const String &p_setting) const {}

void EditorSettings::erase(const String &p_setting) {}

void EditorSettings::raise_order(const String &p_setting) {}

void EditorSettings::set_restart_if_changed(const StringName &p_setting, bool p_restart) {}

void EditorSettings::set_basic(const StringName &p_setting, bool p_basic) {}

void EditorSettings::set_initial_value(const StringName &p_setting, const Variant &p_value, bool p_update_current) {}

Variant _EDITOR_DEF(const String &p_setting, const Variant &p_default, bool p_restart_if_changed, bool p_basic) {}

Variant _EDITOR_GET(const String &p_setting) {}

bool EditorSettings::_property_can_revert(const StringName &p_name) const {}

bool EditorSettings::_property_get_revert(const StringName &p_name, Variant &r_property) const {}

void EditorSettings::add_property_hint(const PropertyInfo &p_hint) {}

// Metadata

void EditorSettings::set_project_metadata(const String &p_section, const String &p_key, const Variant &p_data) {}

Variant EditorSettings::get_project_metadata(const String &p_section, const String &p_key, const Variant &p_default) const {}

void EditorSettings::set_favorites(const Vector<String> &p_favorites) {}

Vector<String> EditorSettings::get_favorites() const {}

void EditorSettings::set_recent_dirs(const Vector<String> &p_recent_dirs) {}

Vector<String> EditorSettings::get_recent_dirs() const {}

void EditorSettings::load_favorites_and_recent_dirs() {}

void EditorSettings::list_text_editor_themes() {}

void EditorSettings::load_text_editor_theme() {}

bool EditorSettings::import_text_editor_theme(const String &p_file) {}

bool EditorSettings::save_text_editor_theme() {}

bool EditorSettings::save_text_editor_theme_as(String p_file) {}

bool EditorSettings::is_default_text_editor_theme() {}

Vector<String> EditorSettings::get_script_templates(const String &p_extension, const String &p_custom_path) {}

String EditorSettings::get_editor_layouts_config() const {}

float EditorSettings::get_auto_display_scale() const {}

// Shortcuts

void EditorSettings::_add_shortcut_default(const String &p_name, const Ref<Shortcut> &p_shortcut) {}

void EditorSettings::add_shortcut(const String &p_name, const Ref<Shortcut> &p_shortcut) {}

bool EditorSettings::is_shortcut(const String &p_name, const Ref<InputEvent> &p_event) const {}

Ref<Shortcut> EditorSettings::get_shortcut(const String &p_name) const {}

void EditorSettings::get_shortcut_list(List<String> *r_shortcuts) {}

Ref<Shortcut> ED_GET_SHORTCUT(const String &p_path) {}

void ED_SHORTCUT_OVERRIDE(const String &p_path, const String &p_feature, Key p_keycode, bool p_physical) {}

void ED_SHORTCUT_OVERRIDE_ARRAY(const String &p_path, const String &p_feature, const PackedInt32Array &p_keycodes, bool p_physical) {}

Ref<Shortcut> ED_SHORTCUT(const String &p_path, const String &p_name, Key p_keycode, bool p_physical) {}

Ref<Shortcut> ED_SHORTCUT_ARRAY(const String &p_path, const String &p_name, const PackedInt32Array &p_keycodes, bool p_physical) {}

void EditorSettings::set_builtin_action_override(const String &p_name, const TypedArray<InputEvent> &p_events) {}

const Array EditorSettings::get_builtin_action_overrides(const String &p_name) const {}

void EditorSettings::notify_changes() {}

#ifdef TOOLS_ENABLED
void EditorSettings::get_argument_options(const StringName &p_function, int p_idx, List<String> *r_options) const {}
#endif

void EditorSettings::_bind_methods() {}

EditorSettings::EditorSettings() {}