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 "core/string/fuzzy_search.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"

void HighlightedLabel::draw_substr_rects(const Vector2i &p_substr, Vector2 p_offset, int p_line_limit, int line_spacing) {}

void HighlightedLabel::add_highlight(const Vector2i &p_interval) {}

void HighlightedLabel::reset_highlights() {}

void HighlightedLabel::_notification(int p_notification) {}

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

void style_button(Button *p_button) {}

QuickOpenResultContainer::QuickOpenResultContainer() {}

void QuickOpenResultContainer::_ensure_result_vector_capacity() {}

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

void QuickOpenResultContainer::_create_initial_results() {}

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

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

void QuickOpenResultContainer::_setup_candidate(QuickOpenResultCandidate &candidate, const String &filepath) {}

void QuickOpenResultContainer::_setup_candidate(QuickOpenResultCandidate &p_candidate, const FuzzySearchResult &p_result) {}

void QuickOpenResultContainer::update_results() {}

void QuickOpenResultContainer::_use_default_candidates() {}

void QuickOpenResultContainer::_update_fuzzy_search_results() {}

void QuickOpenResultContainer::_score_and_sort_candidates() {}

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_fuzzy_search(bool p_pressed) {}

void QuickOpenResultContainer::_toggle_include_addons(bool p_pressed) {}

void QuickOpenResultContainer::_toggle_display_mode() {}

CanvasItem *QuickOpenResultContainer::_get_result_root() {}

void QuickOpenResultContainer::_layout_result_item(QuickOpenResultItem *item) {}

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 QuickOpenResultCandidate &p_candidate) {}

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

static Vector2i _get_path_interval(const Vector2i &p_interval, int p_dir_index) {}

static Vector2i _get_name_interval(const Vector2i &p_interval, int p_dir_index) {}

QuickOpenResultListItem::QuickOpenResultListItem() {}

void QuickOpenResultListItem::set_content(const QuickOpenResultCandidate &p_candidate, bool p_highlight) {}

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 QuickOpenResultCandidate &p_candidate, bool p_highlight) {}

void QuickOpenResultGridItem::reset() {}

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

void QuickOpenResultGridItem::remove_highlight() {}