godot/editor/code_editor.cpp

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

#include "core/input/input.h"
#include "core/os/keyboard.h"
#include "core/string/string_builder.h"
#include "editor/editor_node.h"
#include "editor/editor_settings.h"
#include "editor/editor_string_names.h"
#include "editor/plugins/script_editor_plugin.h"
#include "editor/themes/editor_scale.h"
#include "editor/themes/editor_theme_manager.h"
#include "scene/gui/menu_button.h"
#include "scene/gui/separator.h"
#include "scene/resources/font.h"

void GotoLineDialog::popup_find_line(CodeEdit *p_edit) {}

int GotoLineDialog::get_line() const {}

void GotoLineDialog::ok_pressed() {}

GotoLineDialog::GotoLineDialog() {}

void FindReplaceBar::_notification(int p_what) {}

void FindReplaceBar::unhandled_input(const Ref<InputEvent> &p_event) {}

void FindReplaceBar::_focus_lost() {}

void FindReplaceBar::_update_flags(bool p_direction_backwards) {}

bool FindReplaceBar::_search(uint32_t p_flags, int p_from_line, int p_from_col) {}

void FindReplaceBar::_replace() {}

void FindReplaceBar::_replace_all() {}

void FindReplaceBar::_get_search_from(int &r_line, int &r_col, SearchMode p_search_mode) {}

void FindReplaceBar::_update_results_count() {}

void FindReplaceBar::_update_matches_display() {}

bool FindReplaceBar::search_current() {}

bool FindReplaceBar::search_prev() {}

bool FindReplaceBar::search_next() {}

void FindReplaceBar::_hide_bar(bool p_force_focus) {}

void FindReplaceBar::_update_toggle_replace_button(bool p_replace_visible) {}

void FindReplaceBar::_show_search(bool p_with_replace, bool p_show_only) {}

void FindReplaceBar::popup_search(bool p_show_only) {}

void FindReplaceBar::popup_replace() {}

void FindReplaceBar::_search_options_changed(bool p_pressed) {}

void FindReplaceBar::_editor_text_changed() {}

void FindReplaceBar::_search_text_changed(const String &p_text) {}

void FindReplaceBar::_search_text_submitted(const String &p_text) {}

void FindReplaceBar::_replace_text_submitted(const String &p_text) {}

void FindReplaceBar::_toggle_replace_pressed() {}

String FindReplaceBar::get_search_text() const {}

String FindReplaceBar::get_replace_text() const {}

bool FindReplaceBar::is_case_sensitive() const {}

bool FindReplaceBar::is_whole_words() const {}

bool FindReplaceBar::is_selection_only() const {}

void FindReplaceBar::set_error(const String &p_label) {}

void FindReplaceBar::set_text_edit(CodeTextEditor *p_text_editor) {}

void FindReplaceBar::_bind_methods() {}

FindReplaceBar::FindReplaceBar() {}

/*** CODE EDITOR ****/

static constexpr float ZOOM_FACTOR_PRESETS[8] =;

// This function should be used to handle shortcuts that could otherwise
// be handled too late if they weren't handled here.
void CodeTextEditor::input(const Ref<InputEvent> &event) {}

void CodeTextEditor::_text_editor_gui_input(const Ref<InputEvent> &p_event) {}

void CodeTextEditor::_line_col_changed() {}

void CodeTextEditor::_text_changed() {}

void CodeTextEditor::_code_complete_timer_timeout() {}

void CodeTextEditor::_complete_request() {}

Ref<Texture2D> CodeTextEditor::_get_completion_icon(const ScriptLanguage::CodeCompletionOption &p_option) {}

void CodeTextEditor::update_editor_settings() {}

void CodeTextEditor::set_find_replace_bar(FindReplaceBar *p_bar) {}

void CodeTextEditor::remove_find_replace_bar() {}

void CodeTextEditor::trim_trailing_whitespace() {}

void CodeTextEditor::trim_final_newlines() {}

void CodeTextEditor::insert_final_newline() {}

void CodeTextEditor::convert_case(CaseStyle p_case) {}

void CodeTextEditor::set_indent_using_spaces(bool p_use_spaces) {}

void CodeTextEditor::toggle_inline_comment(const String &delimiter) {}

void CodeTextEditor::goto_line(int p_line, int p_column) {}

void CodeTextEditor::goto_line_selection(int p_line, int p_begin, int p_end) {}

void CodeTextEditor::goto_line_centered(int p_line, int p_column) {}

void CodeTextEditor::set_executing_line(int p_line) {}

void CodeTextEditor::clear_executing_line() {}

Variant CodeTextEditor::get_edit_state() {}

Variant CodeTextEditor::get_previous_state() {}

void CodeTextEditor::store_previous_state() {}

void CodeTextEditor::set_edit_state(const Variant &p_state) {}

Variant CodeTextEditor::get_navigation_state() {}

void CodeTextEditor::set_error(const String &p_error) {}

void CodeTextEditor::set_error_pos(int p_line, int p_column) {}

Point2i CodeTextEditor::get_error_pos() const {}

void CodeTextEditor::goto_error() {}

void CodeTextEditor::_update_text_editor_theme() {}

void CodeTextEditor::_update_font_ligatures() {}

void CodeTextEditor::_text_changed_idle_timeout() {}

void CodeTextEditor::validate_script() {}

void CodeTextEditor::_error_button_pressed() {}

void CodeTextEditor::_warning_button_pressed() {}

void CodeTextEditor::_zoom_popup_id_pressed(int p_idx) {}

void CodeTextEditor::_set_show_errors_panel(bool p_show) {}

void CodeTextEditor::_set_show_warnings_panel(bool p_show) {}

void CodeTextEditor::_toggle_scripts_pressed() {}

void CodeTextEditor::_error_pressed(const Ref<InputEvent> &p_event) {}

void CodeTextEditor::_notification(int p_what) {}

void CodeTextEditor::set_error_count(int p_error_count) {}

void CodeTextEditor::set_warning_count(int p_warning_count) {}

void CodeTextEditor::toggle_bookmark() {}

void CodeTextEditor::goto_next_bookmark() {}

void CodeTextEditor::goto_prev_bookmark() {}

void CodeTextEditor::remove_all_bookmarks() {}

void CodeTextEditor::_zoom_in() {}

void CodeTextEditor::_zoom_out() {}

void CodeTextEditor::_zoom_to(float p_zoom_factor) {}

void CodeTextEditor::set_zoom_factor(float p_zoom_factor) {}

float CodeTextEditor::get_zoom_factor() {}

void CodeTextEditor::_bind_methods() {}

void CodeTextEditor::set_code_complete_func(CodeTextEditorCodeCompleteFunc p_code_complete_func, void *p_ud) {}

void CodeTextEditor::set_toggle_list_control(Control *p_control) {}

void CodeTextEditor::show_toggle_scripts_button() {}

void CodeTextEditor::update_toggle_scripts_button() {}

CodeTextEditor::CodeTextEditor() {}