diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2020-09-10 22:02:44 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-10 22:02:44 +0200 |
| commit | beb9ebcda00ac32a1dc8ec338aa61d7f0b03edc5 (patch) | |
| tree | 7ab5b8369ef1e72dc698564778597ddc38362666 /editor/plugins/script_text_editor.h | |
| parent | d782405bcfa03b63de78927ce077f495ae285d11 (diff) | |
| parent | c0da97d29cbabcce261ddc948df099f0ecc6ee47 (diff) | |
| download | redot-engine-beb9ebcda00ac32a1dc8ec338aa61d7f0b03edc5.tar.gz | |
Merge pull request #40973 from Paulb23/code_edit
Add CodeEdit and TextEdit gutter system
Diffstat (limited to 'editor/plugins/script_text_editor.h')
| -rw-r--r-- | editor/plugins/script_text_editor.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/editor/plugins/script_text_editor.h b/editor/plugins/script_text_editor.h index e931c9fdc6..1e436fbe65 100644 --- a/editor/plugins/script_text_editor.h +++ b/editor/plugins/script_text_editor.h @@ -81,6 +81,14 @@ class ScriptTextEditor : public ScriptEditorBase { ScriptEditorQuickOpen *quick_open = nullptr; ConnectionInfoDialog *connection_info_dialog = nullptr; + int connection_gutter = -1; + void _gutter_clicked(int p_line, int p_gutter); + void _update_gutter_indexes(); + + int line_number_gutter = -1; + Color default_line_number_color = Color(1, 1, 1); + Color safe_line_number_color = Color(1, 1, 1); + PopupPanel *color_panel = nullptr; ColorPicker *color_picker = nullptr; Vector2 color_position; @@ -154,6 +162,7 @@ protected: void _show_warnings_panel(bool p_show); void _warning_clicked(Variant p_line); + void _notification(int p_what); static void _bind_methods(); Map<String, Ref<EditorSyntaxHighlighter>> highlighters; @@ -169,8 +178,6 @@ protected: void _lookup_symbol(const String &p_symbol, int p_row, int p_column); void _validate_symbol(const String &p_symbol); - void _lookup_connections(int p_row, String p_method); - void _convert_case(CodeTextEditor::CaseStyle p_case); Variant get_drag_data_fw(const Point2 &p_point, Control *p_from); @@ -211,7 +218,7 @@ public: virtual void clear_executing_line() override; virtual void reload(bool p_soft) override; - virtual void get_breakpoints(List<int> *p_breakpoints) override; + virtual Array get_breakpoints() override; virtual void add_callback(const String &p_function, PackedStringArray p_args) override; virtual void update_settings() override; |
