godot/editor/editor_resource_picker.cpp

/**************************************************************************/
/*  editor_resource_picker.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_resource_picker.h"

#include "editor/audio_stream_preview.h"
#include "editor/editor_help.h"
#include "editor/editor_node.h"
#include "editor/editor_resource_preview.h"
#include "editor/editor_settings.h"
#include "editor/editor_string_names.h"
#include "editor/filesystem_dock.h"
#include "editor/gui/editor_file_dialog.h"
#include "editor/gui/editor_quick_open_dialog.h"
#include "editor/plugins/editor_resource_conversion_plugin.h"
#include "editor/plugins/script_editor_plugin.h"
#include "editor/scene_tree_dock.h"
#include "editor/themes/editor_scale.h"
#include "scene/gui/button.h"
#include "scene/gui/texture_rect.h"
#include "scene/resources/gradient_texture.h"
#include "scene/resources/image_texture.h"

void EditorResourcePicker::_update_resource() {}

void EditorResourcePicker::_update_resource_preview(const String &p_path, const Ref<Texture2D> &p_preview, const Ref<Texture2D> &p_small_preview, ObjectID p_obj) {}

void EditorResourcePicker::_resource_selected() {}

void EditorResourcePicker::_file_selected(const String &p_path) {}

void EditorResourcePicker::_resource_saved(Object *p_resource) {}

void EditorResourcePicker::_update_menu() {}

void EditorResourcePicker::_update_menu_items() {}

void EditorResourcePicker::_edit_menu_cbk(int p_which) {}

void EditorResourcePicker::set_create_options(Object *p_menu_node) {}

bool EditorResourcePicker::handle_menu_selected(int p_which) {}

void EditorResourcePicker::_button_draw() {}

void EditorResourcePicker::_button_input(const Ref<InputEvent> &p_event) {}

String EditorResourcePicker::_get_resource_type(const Ref<Resource> &p_resource) const {}

static void _add_allowed_type(const StringName &p_type, HashSet<StringName> *p_vector) {}

void EditorResourcePicker::_ensure_allowed_types() const {}

bool EditorResourcePicker::_is_drop_valid(const Dictionary &p_drag_data) const {}

bool EditorResourcePicker::_is_type_valid(const String &p_type_name, const HashSet<StringName> &p_allowed_types) const {}

Variant EditorResourcePicker::get_drag_data_fw(const Point2 &p_point, Control *p_from) {}

bool EditorResourcePicker::can_drop_data_fw(const Point2 &p_point, const Variant &p_data, Control *p_from) const {}

void EditorResourcePicker::drop_data_fw(const Point2 &p_point, const Variant &p_data, Control *p_from) {}

void EditorResourcePicker::_bind_methods() {}

void EditorResourcePicker::_notification(int p_what) {}

void EditorResourcePicker::set_assign_button_min_size(const Size2i &p_size) {}

void EditorResourcePicker::set_base_type(const String &p_base_type) {}

String EditorResourcePicker::get_base_type() const {}

Vector<String> EditorResourcePicker::get_allowed_types() const {}

void EditorResourcePicker::set_edited_resource(Ref<Resource> p_resource) {}

void EditorResourcePicker::set_edited_resource_no_check(Ref<Resource> p_resource) {}

Ref<Resource> EditorResourcePicker::get_edited_resource() {}

void EditorResourcePicker::set_toggle_mode(bool p_enable) {}

bool EditorResourcePicker::is_toggle_mode() const {}

void EditorResourcePicker::set_toggle_pressed(bool p_pressed) {}

void EditorResourcePicker::set_editable(bool p_editable) {}

bool EditorResourcePicker::is_editable() const {}

void EditorResourcePicker::_ensure_resource_menu() {}

void EditorResourcePicker::_gather_resources_to_duplicate(const Ref<Resource> p_resource, TreeItem *p_item, const String &p_property_name) const {}

void EditorResourcePicker::_duplicate_selected_resources() {}

EditorResourcePicker::EditorResourcePicker(bool p_hide_assign_button_controls) {}

// EditorScriptPicker

void EditorScriptPicker::set_create_options(Object *p_menu_node) {}

bool EditorScriptPicker::handle_menu_selected(int p_which) {}

void EditorScriptPicker::set_script_owner(Node *p_owner) {}

Node *EditorScriptPicker::get_script_owner() const {}

void EditorScriptPicker::_bind_methods() {}

EditorScriptPicker::EditorScriptPicker() {}

// EditorShaderPicker

void EditorShaderPicker::set_create_options(Object *p_menu_node) {}

bool EditorShaderPicker::handle_menu_selected(int p_which) {}

void EditorShaderPicker::set_edited_material(ShaderMaterial *p_material) {}

ShaderMaterial *EditorShaderPicker::get_edited_material() const {}

void EditorShaderPicker::set_preferred_mode(int p_mode) {}

EditorShaderPicker::EditorShaderPicker() {}

//////////////

void EditorAudioStreamPicker::_notification(int p_what) {}

void EditorAudioStreamPicker::_update_resource() {}

void EditorAudioStreamPicker::_preview_draw() {}

EditorAudioStreamPicker::EditorAudioStreamPicker() :{}