godot/editor/gui/editor_quick_open_dialog.cpp

/**************************************************************************/
/*  editor_quick_open_dialog.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_quick_open_dialog.h"

#include "editor/editor_file_system.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/themes/editor_scale.h"
#include "scene/gui/center_container.h"
#include "scene/gui/check_button.h"
#include "scene/gui/flow_container.h"
#include "scene/gui/margin_container.h"
#include "scene/gui/panel_container.h"
#include "scene/gui/separator.h"
#include "scene/gui/texture_rect.h"
#include "scene/gui/tree.h"

EditorQuickOpenDialog::EditorQuickOpenDialog() {}

String EditorQuickOpenDialog::get_dialog_title(const Vector<StringName> &p_base_types) {}

void EditorQuickOpenDialog::popup_dialog(const Vector<StringName> &p_base_types, const Callable &p_item_selected_callback) {}

void EditorQuickOpenDialog::ok_pressed() {}

void EditorQuickOpenDialog::cancel_pressed() {}

void EditorQuickOpenDialog::_search_box_text_changed(const String &p_query) {}

//------------------------- Result Container

QuickOpenResultContainer::QuickOpenResultContainer() {}

QuickOpenResultContainer::~QuickOpenResultContainer() {}

void QuickOpenResultContainer::init(const Vector<StringName> &p_base_types) {}

void QuickOpenResultContainer::_create_initial_results(bool p_include_addons) {}

void QuickOpenResultContainer::_find_candidates_in_folder(EditorFileSystemDirectory *p_directory, bool p_include_addons) {}

void QuickOpenResultContainer::update_results(const String &p_query) {}

int QuickOpenResultContainer::_sort_candidates(const String &p_query) {}

void QuickOpenResultContainer::_update_result_items(int p_new_visible_results_count, int p_new_selection_index) {}

void QuickOpenResultContainer::handle_search_box_input(const Ref<InputEvent> &p_ie) {}

void QuickOpenResultContainer::_move_selection_index(Key p_key) {}

void QuickOpenResultContainer::_select_item(int p_index) {}

void QuickOpenResultContainer::_item_input(const Ref<InputEvent> &p_ev, int p_index) {}

void QuickOpenResultContainer::_toggle_include_addons(bool p_pressed) {}

void QuickOpenResultContainer::_toggle_display_mode() {}

void QuickOpenResultContainer::_set_display_mode(QuickOpenDisplayMode p_display_mode) {}

bool QuickOpenResultContainer::has_nothing_selected() const {}

String QuickOpenResultContainer::get_selected() const {}

QuickOpenDisplayMode QuickOpenResultContainer::get_adaptive_display_mode(const Vector<StringName> &p_base_types) {}

void QuickOpenResultContainer::save_selected_item() {}

void QuickOpenResultContainer::cleanup() {}

void QuickOpenResultContainer::_notification(int p_what) {}

void QuickOpenResultContainer::_bind_methods() {}

//------------------------- Result Item

QuickOpenResultItem::QuickOpenResultItem() {}

void QuickOpenResultItem::set_display_mode(QuickOpenDisplayMode p_display_mode) {}

void QuickOpenResultItem::set_content(const Ref<Texture2D> &p_thumbnail, const String &p_file, const String &p_file_directory) {}

void QuickOpenResultItem::reset() {}

void QuickOpenResultItem::highlight_item(bool p_enabled) {}

void QuickOpenResultItem::_set_enabled(bool p_enabled) {}

void QuickOpenResultItem::_notification(int p_what) {}

//----------------- List item

QuickOpenResultListItem::QuickOpenResultListItem() {}

void QuickOpenResultListItem::set_content(const Ref<Texture2D> &p_thumbnail, const String &p_file, const String &p_file_directory) {}

void QuickOpenResultListItem::reset() {}

void QuickOpenResultListItem::highlight_item(const Color &p_color) {}

void QuickOpenResultListItem::remove_highlight() {}

void QuickOpenResultListItem::_notification(int p_what) {}

//--------------- Grid Item

QuickOpenResultGridItem::QuickOpenResultGridItem() {}

void QuickOpenResultGridItem::set_content(const Ref<Texture2D> &p_thumbnail, const String &p_file) {}

void QuickOpenResultGridItem::reset() {}

void QuickOpenResultGridItem::highlight_item(const Color &p_color) {}

void QuickOpenResultGridItem::remove_highlight() {}