summaryrefslogtreecommitdiff
path: root/scene/gui/text_edit.h
AgeCommit message (Collapse)Author
2020-07-11Extract Syntax highlighting from TextEdit and add EditorSyntaxHighlighterPaulb23
- Extacted all syntax highlighting code from text edit - Removed enable syntax highlighting from text edit - Added line_edited_from signal to text_edit - Renamed get/set_syntax_highlighting to get/set_syntax_highlighter - Added EditorSyntaxHighligher
2020-07-11Convert syntax highlighters into a resourcePaulb23
2020-07-10Add override keywords.Marcel Admiraal
2020-05-16TextEdit search returns a dictionary instead of VectorPouleyKetchoupp
Easier to use than accessing elements in a Vector using indices given by an enum. Breaks compatibility on existing scripts using this functionality.
2020-05-14Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde
Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
2020-04-29Limit undo stack sizeJohn Wigg
The stack size of the undo history of a TextEdit was not limited leading to potential memory leaks when doing lots of operations on a TextEdit. This commit adds the option gui/common/text_edit_undo_stack_max_size to the project settings. The first element of the undo stack is popped if the stack's size exceeds this value ensuring limited memory usage. The default stack size setting is 1024. Fixes #37838.
2020-04-02Replace NULL with nullptrlupoDharkael
2020-03-17Style: Set clang-format Standard to Cpp11Rémi Verschelde
For us, it practically only changes the fact that `A<A<int>>` is now used instead of the C++03 compatible `A<A<int> >`. Note: clang-format 10+ changed the `Standard` arguments to fully specified `c++11`, `c++14`, etc. versions, but we can't use `c++17` now if we want to preserve compatibility with clang-format 8 and 9. `Cpp11` is still supported as deprecated alias for `Latest`.
2020-03-11Removed underlining for not clickable symbolsjanglee
2020-02-27Merge pull request #36232 from Calinou/add-soft-line-length-guidelineRémi Verschelde
Add a soft line length guideline to the script editor
2020-02-18PoolVector is gone, replaced by VectorJuan Linietsky
Typed `PoolTypeArray` types are now renamed `PackedTypeArray` and are sugar for `Vector<Type>`.
2020-02-15Add a soft line length guideline to the script editorHugo Locurcio
The default value is 80. The hard line length guideline's default column has been moved to 100 to account for the new soft line length guideline. It can be disabled by setting its value to the same column as the hard line length guideline. This closes https://github.com/godotengine/godot-proposals/issues/347.
2020-02-11Texture refactorJuan Linietsky
-Texture renamed to Texture2D -TextureLayered as base now inherits 2Darray, cubemap and cubemap array -Removed all references to flags in textures (they will go in the shader) -Texture3D gone for now (will come back later done properly) -Create base rasterizer for RenderDevice, RasterizerRD
2020-01-01Update copyright statements to 2020Rémi Verschelde
Happy new year to the wonderful Godot community! We're starting a new decade with a well-established, non-profit, free and open source game engine, and tons of further improvements in the pipeline from hundreds of contributors. Godot will keep getting better, and we're looking forward to all the games that the community will keep developing and releasing with it.
2019-12-10Removed unused variables, add some constants numbersRafał Mikrut
2019-10-31Improved TextEdit search usability & documentationPouleyKetchoupp
2019-10-27Improve performance of connection info in the script editorPaulb23
2019-09-22Merge pull request #29895 from ptrojahn/menukeyRémi Verschelde
Support menu key in TextEdit and LineEdit controls
2019-09-22Support menu key in TextEdit and LineEdit controlsPaul Trojahn
Related to #15542
2019-09-07Add Ability to Enable/Disable Shortcuts for LineEdit/TextEditEmmanuel Barroga
This PR adds the ability to enable/disable shortcut keys and selection for LineEdit/TextEdit. It also updates the context menu when you disable/enable the shortcut keys or selection.
2019-08-25Refactor TextEdit control height calculationsPaulb23
2019-08-25Minimap scroll now acts similar to scrollbarPaulb23
2019-08-21Add minimap to text_editPaulb23
2019-08-21Add syntax highlighting cachePaulb23
2019-07-09Merge pull request #28190 from griant/testRémi Verschelde
fix improper uncommenting behavior in TextEditor
2019-07-05Show icons for code completion optionsGeequlim
2019-06-24Give TextEdit a custom color for font when read only is setGwyneth Lowe
Previously there was some transparency hard coded into TextEdit when in read only mode. This change adds a custom color for adjusting the font in read only mode. It also applies when syntax highlighting is on.
2019-06-24Correct typo that broke custom selected font colorGwyneth Lowe
Change several font_selected_color to font_color_selected; the actual name of the override
2019-06-19Made use of semicolons more consitent, fixed formattingJohnJLight
2019-06-08Treat hiding_enabled as bool throughoutNils ANDRÉ-CHANG
2019-05-24Merge pull request #28811 from iwek7/editor_remove_spaces_to_closes_indentionRémi Verschelde
Change rules of indenting for spaces
2019-05-21Merge pull request #29041 from hbina/add_constRémi Verschelde
add const to methods that return literals
2019-05-21added a const keyword for a methods that return constant literal...hbina085
2019-05-20Merge pull request #28218 from KoBeWi/b00km4rk5Rémi Verschelde
Add bookmarks for easier code navigation
2019-05-11Change rules of indenting for spacesmiwanczuk
Now indentations and deindentations of spaces attemt to align text to closest full indent level. It works with tab/tab+shift (both with selection and no selection) as well as backspace. Also fixes bug where selection and cursor position were mispaced after (un)indenting selected text.
2019-05-05Add bookmarks for easier code navigationTomasz Chabora
2019-04-30Issue-28355 - show spaces in editormiwanczuk
2019-04-23Added a marker in text_edit that tells which row is executing.Rikhardur Bjarni Einarsson
2019-04-22Merge pull request #28234 from Paulb23/connection_info_on_scriptRémi Verschelde
Display connection information in the script editor
2019-04-20Display connection information in the script editorPaulb23
2019-04-19fix improper uncommenting behavior in TextEditorgriant
2019-04-13Restore script editor state between sessionsPaulb23
2019-04-11Reorganized connection dialog for much improved ease of use.Juan Linietsky
-Removed dest path field -Added a "Source" signal -Added an "Advanced" button to hide complexity -Fix bug on Tree to make sure "ensure visible" works on hidden trees -Fix bug on TextEdit to ensure signals created with script not open sill focus the right line
2019-04-02Fix -Wnon-virtual-dtor warnings.marxin
Example of the warning: ./core/script_language.h:198:7: warning: 'class ScriptCodeCompletionCache' has virtual functions and accessible non-virtual destructor [-Wnon-virtual-dtor]
2019-01-05Fix text edit wrapping beyond control size, issue 23896Paulb23
2019-01-01Update copyright statements to 2019Rémi Verschelde
Happy new year to the wonderful Godot community!
2018-12-13Revert "Use more subtle indentation guides in the script editor"Rémi Verschelde
2018-12-11Merge pull request #23923 from bruvzg/ime_gdscriptRémi Verschelde
Changes IME to make it possible to use it from gdscript/gdnative
2018-12-09Merge pull request #20725 from Calinou/textedit-subtle-indent-guidesRémi Verschelde
Use more subtle indentation guides in the script editor
2018-11-29TextEdit: added redo option to the context menuallkhor