summaryrefslogtreecommitdiffstats
path: root/editor/editor_log.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Improve line BiDi handling, prevent crash on recursive log updates.bruvzg2023-04-121-0/+5
|
* Editor Theme: Set `selection_color` property of `RichTextLabel`Danil Alexeev2023-04-111-2/+0
|
* Set font sizes for various styles in editor output panelHaoyu Qiu2023-04-071-1/+6
|
* Enable `RichTextLabel` context menu if selection is enabledDanil Alexeev2023-03-061-0/+1
|
* Remove some unused signalsRémi Verschelde2023-01-311-5/+0
| | | | Part of #37604.
* One Copyright Update to rule them allRémi Verschelde2023-01-051-30/+30
| | | | | | | | | | | | | | | | | | | | As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
* Renamed RTL remove_line() to remove_paragraph().Koyper2022-12-211-1/+1
|
* Style: Misc docs and comment style and language fixesRémi Verschelde2022-11-021-1/+1
| | | | | | | | | | - Removed empty paragraphs in XML. - Consistently use bold style for "Example:", on a new line. - Fix usage of `[code]` when hyperlinks could be used (`[member]`, `[constant]`). - Fix invalid usage of backticks for inline code in BBCode. - Fix some American/British English spelling inconsistencies. - Other minor fixes spotted along the way, including typo fixes with codespell. - Don't specify `@GlobalScope` for `enum` and `constant`.
* Unify usage of undo_redo in editorkobewi2022-11-021-0/+1
|
* Merge pull request #62860 from Calinou/editor-log-bold-italic-mono-fontsRémi Verschelde2022-10-041-5/+20
|\ | | | | | | Define bold, italics and mono fonts in editor log for `print_rich()`
| * Define bold, italics and mono fonts in editor log for `print_rich()`Hugo Locurcio2022-07-091-5/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | This is also used by the number indicator for message grouping, as it uses a bold font. Mono font does not actually turn proportional fonts into monospace. Instead, it's a more faint version of the regular font, intended to emulate the look of the "faint" ANSI escape code (and make `[code]` distinguishable from regular text). The custom code font will be used to generate the bold/italic/mono variants if specified in the Editor Settings.
* | Fix key mapping changes when moving from macOS to other platformbruvzg2022-09-071-3/+3
| | | | | | | | | | Removes separate `Command` key (use `Meta` instead). Adds an event flag to automatically remap `Command` <-> `Control` (cannot be set alongside `Control` or `Meta`).
* | Rename String `plus_file` to `path_join`Aaron Franke2022-08-291-3/+3
| |
* | Revert "Remove NOTIFICATION_ENTER_TREE when paired with ↵Rémi Verschelde2022-08-291-35/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NOTIFICATION_THEME_CHANGED" This reverts commit 4b817a565cab8af648c88cfc7ab6481e86ee3625. Fixes #64988. Fixes #64997. This caused several regressions (#64988, #64997, https://github.com/godotengine/godot/issues/64997#issuecomment-1229970605) which point at a flaw in the current logic: - `Control::NOTIFICATION_ENTER_TREE` triggers a *deferred* notification with `NOTIFCATION_THEME_CHANGED` as introduced in #62845. - Some classes use their `THEME_CHANGED` to cache theme items in member variables (e.g. `style_normal`, etc.), and use those member variables in `ENTER_TREE`, `READY`, `DRAW`, etc. Since the `THEME_CHANGE` notification is now deferred, they end up accessing invalid state and this can lead to not applying theme properly (e.g. for EditorHelp) or crashing (e.g. for EditorLog or CodeEdit). So we need to go back to the drawing board and see if `THEME_CHANGED` can be called earlier so that the previous logic still works? Or can we refactor all engine code to make sure that: - `ENTER_TREE` and similar do not depend on theme properties cached in member variables. - Or `THEME_CHANGE` does trigger a general UI update to make sure that any bad theme handling in `ENTER_TREE` and co. gets fixed when `THEME_CHANGE` does arrive for the first time. But that means having a temporary invalid (and possibly still crashing) state, and doing some computations twice which might be heavy (e.g. `EditorHelp::_update_doc()`).
* | Merge pull request #64885 from Mickeon/rename-tooltip-hintRémi Verschelde2022-08-281-1/+1
|\ \ | | | | | | Rename `hint_tooltip` to `tooltip_text` & setter getter
| * | Rename `hint_tooltip` to `tooltip_text` & setgetMicky2022-08-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | `hint_tooltip` -> `tooltip_text` `set_tooltip` -> `set_tooltip_text` `_get_tooltip` -> `get_tooltip_text` Updates documentation, too.
* | | Remove NOTIFICATION_ENTER_TREE when paired with NOTIFICATION_THEME_CHANGEDAaron Record2022-08-271-39/+35
|/ /
* | Refactor and remove excessive calls of `NOTIFICATION_THEME_CHANGED`Aaron Record2022-08-251-0/+5
| |
* | Add per-scene UndoRedokobewi2022-08-221-2/+4
| |
* | Optimize theme usage in editor logkobewi2022-08-111-5/+11
| |
* | Extract EditorResourceConversionPlugin into its own source files and clean ↵Yuri Sizov2022-07-311-0/+2
| | | | | | | | up editor includes
* | Move editor paths into the EditorPaths classAaron Franke2022-07-291-3/+4
|/
* Adding print_rich for printing with BBCodeVoylin2022-06-291-5/+17
|
* Use consistent casing in editor filter/search barsFireForge2022-05-281-1/+1
|
* Fix editor_log text copyConteZero2022-04-081-1/+1
|
* Fix some issues found by cppcheck.bruvzg2022-04-061-2/+2
|
* Disable deselect on focus lost on editor_logConteZero2022-04-041-0/+1
|
* Improve editor log message filter button styles.Eric M2022-03-151-0/+5
|
* Port existing _notification code to use switch statements (part 1/3)jmb4622022-02-161-2/+1
|
* Improve compilation speed (forward declarations/includes cleanup)Hendrik Brucker2022-02-121-2/+2
|
* Revert "Add missing SNAME macro optimization to all theme methods call"Rémi Verschelde2022-02-081-4/+4
| | | | | | | | This reverts commit a988fad9a092053434545c32afae91ccbdfbe792. As discussed in #57725 and clarified in #57788, `SNAME` is not meant to be used everywhere but only in critical code paths. For theme methods specifically, it was by design that only getters use `SNAME` and not setters.
* Add missing SNAME macro optimization to all theme methods calljmb4622022-02-061-4/+4
|
* Fix theming update in several editor classesYuri Roubinsky2022-01-161-1/+1
|
* Update copyright statements to 2022Rémi Verschelde2022-01-031-3/+3
| | | | Happy new year to the wonderful Godot community!
* Replace String comparisons with "", String() to is_empty()Nathan Franke2021-12-091-3/+3
| | | | | | Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings
* Use "enum class" for input enumsAaron Franke2021-11-121-3/+3
|
* Fix incorrect encoding (Latin-1 instead of UTF-8) used in `_error_handler` ↵bruvzg2021-11-081-2/+2
| | | | functions.
* Implement toast notifications in the editorGilles Roudière2021-10-141-1/+5
|
* Use range iterators for `Map`Lightning_A2021-09-301-8/+8
|
* Fix messages with embedded newlines not being properly presentedRicardo Subtil2021-08-291-1/+1
|
* Improve naming of a couple shortcutsfox2021-08-101-1/+1
|
* Fix Output panel colors on theme changingYuri Roubinsky2021-07-211-28/+36
|
* Make various strings translatablefoxydevloper2021-07-191-4/+4
|
* Optimize StringName usagereduz2021-07-181-22/+22
| | | | | | | | | | | * Added a new macro SNAME() that constructs and caches a local stringname. * Subsequent usages use the cached version. * Since these use a global static variable, a second refcounter of static usages need to be kept for cleanup time. * Replaced all theme usages by this new macro. * Replace all signal emission usages by this new macro. * Replace all call_deferred usages by this new macro. This is part of ongoing work to optimize GUI and the editor.
* EditorLog filter buttons are now enabled/on by defaultEric M2021-06-291-12/+11
|
* Rename `instance()`->`instantiate()` when it's a verbLightning_A2021-06-191-2/+2
|
* Fixed implementation of RTL remove_line(), which fixed issues in EditorLog.Eric M2021-05-261-4/+4
| | | | | | | There were some issues in RichTextLabel `remove_line()` method, where items were not correctly removed, and line decremending for items in later lines was not correctly done. This also fixed several headaches with EditorLog, which relied on the `remove_line()` method for collapsing of duplicate messages. The fix to RTL also fixed the issues with EditorLog. Fixes #49030
* Fixed editor log collapsing of duplcate messages not workingEricEzaM2021-05-231-1/+3
|
* Fix typos with codespellRémi Verschelde2021-05-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using codespell 2.0.0. Method: ``` $ cat > ../godot-word-whitelist.txt << EOF ang curvelinear dof doubleclick fave findn GIRD leapyear lod merchantibility nd numer ois ony que seeked synching te uint unselect webp EOF $ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po" $ git diff // undo unwanted changes ```
* Merge pull request #48466 from EricEzaM/output-log-save-stateRémi Verschelde2021-05-071-2/+59
|\ | | | | Made Editor Log buttons save their state, per project.