feat: updated engine version to 4.4-rc1
This commit is contained in:
parent
ee00efde1f
commit
21ba8e33af
5459 changed files with 1128836 additions and 198305 deletions
|
|
@ -37,30 +37,33 @@
|
|||
#include "scene/gui/code_edit.h"
|
||||
#include "scene/gui/dialogs.h"
|
||||
#include "scene/gui/label.h"
|
||||
#include "scene/gui/line_edit.h"
|
||||
#include "scene/gui/popup.h"
|
||||
#include "scene/main/timer.h"
|
||||
|
||||
class MenuButton;
|
||||
class CodeTextEditor;
|
||||
class LineEdit;
|
||||
|
||||
class GotoLineDialog : public ConfirmationDialog {
|
||||
GDCLASS(GotoLineDialog, ConfirmationDialog);
|
||||
class GotoLinePopup : public PopupPanel {
|
||||
GDCLASS(GotoLinePopup, PopupPanel);
|
||||
|
||||
Label *line_label = nullptr;
|
||||
LineEdit *line = nullptr;
|
||||
Variant original_state;
|
||||
LineEdit *line_input = nullptr;
|
||||
CodeTextEditor *text_editor = nullptr;
|
||||
|
||||
CodeEdit *text_editor = nullptr;
|
||||
void _goto_line();
|
||||
void _submit();
|
||||
|
||||
virtual void ok_pressed() override;
|
||||
protected:
|
||||
void _notification(int p_what);
|
||||
virtual void _input_from_window(const Ref<InputEvent> &p_event) override;
|
||||
|
||||
public:
|
||||
void popup_find_line(CodeEdit *p_edit);
|
||||
int get_line() const;
|
||||
void popup_find_line(CodeTextEditor *p_text_editor);
|
||||
|
||||
GotoLineDialog();
|
||||
GotoLinePopup();
|
||||
};
|
||||
|
||||
class CodeTextEditor;
|
||||
|
||||
class FindReplaceBar : public HBoxContainer {
|
||||
GDCLASS(FindReplaceBar, HBoxContainer);
|
||||
|
||||
|
|
@ -70,6 +73,7 @@ class FindReplaceBar : public HBoxContainer {
|
|||
SEARCH_PREV,
|
||||
};
|
||||
|
||||
Button *toggle_replace_button = nullptr;
|
||||
LineEdit *search_text = nullptr;
|
||||
Label *matches_label = nullptr;
|
||||
Button *find_prev = nullptr;
|
||||
|
|
@ -100,23 +104,25 @@ class FindReplaceBar : public HBoxContainer {
|
|||
bool replace_all_mode = false;
|
||||
bool preserve_cursor = false;
|
||||
|
||||
virtual void input(const Ref<InputEvent> &p_event) override;
|
||||
|
||||
void _get_search_from(int &r_line, int &r_col, SearchMode p_search_mode);
|
||||
void _update_results_count();
|
||||
void _update_matches_display();
|
||||
|
||||
void _show_search(bool p_with_replace, bool p_show_only);
|
||||
void _hide_bar(bool p_force_focus = false);
|
||||
void _hide_bar();
|
||||
void _update_toggle_replace_button(bool p_replace_visible);
|
||||
|
||||
void _editor_text_changed();
|
||||
void _search_options_changed(bool p_pressed);
|
||||
void _search_text_changed(const String &p_text);
|
||||
void _search_text_submitted(const String &p_text);
|
||||
void _replace_text_submitted(const String &p_text);
|
||||
void _toggle_replace_pressed();
|
||||
|
||||
protected:
|
||||
void _notification(int p_what);
|
||||
virtual void unhandled_input(const Ref<InputEvent> &p_event) override;
|
||||
void _focus_lost();
|
||||
|
||||
void _update_flags(bool p_direction_backwards);
|
||||
|
||||
|
|
@ -161,6 +167,7 @@ class CodeTextEditor : public VBoxContainer {
|
|||
HBoxContainer *status_bar = nullptr;
|
||||
|
||||
Button *toggle_scripts_button = nullptr;
|
||||
Control *toggle_scripts_list = nullptr;
|
||||
Button *error_button = nullptr;
|
||||
Button *warning_button = nullptr;
|
||||
|
||||
|
|
@ -170,6 +177,8 @@ class CodeTextEditor : public VBoxContainer {
|
|||
|
||||
Label *info = nullptr;
|
||||
Timer *idle = nullptr;
|
||||
float idle_time = 0.0f;
|
||||
float idle_time_with_errors = 0.0f;
|
||||
bool code_complete_enabled = true;
|
||||
Timer *code_complete_timer = nullptr;
|
||||
int code_complete_timer_line = 0;
|
||||
|
|
@ -180,6 +189,7 @@ class CodeTextEditor : public VBoxContainer {
|
|||
int error_line;
|
||||
int error_column;
|
||||
|
||||
bool preview_navigation_change = false;
|
||||
Dictionary previous_state;
|
||||
|
||||
void _update_text_editor_theme();
|
||||
|
|
@ -246,9 +256,9 @@ public:
|
|||
/// by adding or removing comment delimiter
|
||||
void toggle_inline_comment(const String &delimiter);
|
||||
|
||||
void goto_line(int p_line);
|
||||
void goto_line(int p_line, int p_column = 0);
|
||||
void goto_line_selection(int p_line, int p_begin, int p_end);
|
||||
void goto_line_centered(int p_line);
|
||||
void goto_line_centered(int p_line, int p_column = 0);
|
||||
void set_executing_line(int p_line);
|
||||
void clear_executing_line();
|
||||
|
||||
|
|
@ -258,6 +268,9 @@ public:
|
|||
Variant get_previous_state();
|
||||
void store_previous_state();
|
||||
|
||||
bool is_previewing_navigation_change() const;
|
||||
void set_preview_navigation_change(bool p_preview);
|
||||
|
||||
void set_error_count(int p_error_count);
|
||||
void set_warning_count(int p_warning_count);
|
||||
|
||||
|
|
@ -285,6 +298,7 @@ public:
|
|||
|
||||
void validate_script();
|
||||
|
||||
void set_toggle_list_control(Control *p_control);
|
||||
void show_toggle_scripts_button();
|
||||
void update_toggle_scripts_button();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue