summaryrefslogtreecommitdiffstats
path: root/editor/connections_dialog.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Clean-up, harmonize, and improve StyleBox APIYuri Sizov2023-01-191-1/+1
| | | | | | - Make all margin properties follow the same naming convention (their getter and setter too). - Remove a virtual counterpart of `get_style_margin` from API. - Allow to override `get_minimum_size` from scripting and remove `get_center_size`.
* Merge pull request #71025 from DarkMessiah/enable_column_clip_contentRémi Verschelde2023-01-181-0/+1
|\ | | | | | | Enable column clip content in ConnectionDock and FilesystemDock
| * Enable column clip content in ConnectionDock and FilesystemDockStanislav Labzyuk2023-01-071-0/+1
| |
* | Add EditorUndoRedoManager singletonkobewi2023-01-161-3/+3
|/
* One Copyright Update to rule them allRémi Verschelde2023-01-051-29/+29
| | | | | | | | | | | | | | | | | | | | 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".
* Fix unable to disconnect signal in Editor once createdMicky2022-12-081-17/+1
| | | | Adds a CONNECT_INHERITED flag to connections, only available in editor builds. This flag denotes that the signal has been inherited from a previous Scene in the instancing hierarchy.
* Use forward-declarations in big editor classestrollodel2022-11-291-0/+1
|
* Fix crash in connection dialogkobewi2022-11-021-4/+3
|
* Merge pull request #66665 from Mickeon/editor-do-not-edit-inherited-signalsRémi Verschelde2022-10-141-4/+55
|\ | | | | | | Do not allow editing Scene-inherited signal connections
| * Do not allow editing Scene-inherited signal connectionsMicky2022-10-131-4/+55
| | | | | | | | Inherited connections are also highlighted with the warning color in the Node dock.
* | Merge pull request #67018 from Mickeon/try-connections-dialog-self-connectionRémi Verschelde2022-10-111-27/+45
|\ \ | | | | | | | | | Add Editor Setting for default name when connecting signal to self
| * | Add Editor Setting for default name when connecting signal to selfMicky2022-10-091-27/+45
| |/
* / Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg2022-10-071-14/+14
|/ | | | change warnings=all to use /W4.
* Remember advanced state of connection dialogkobewi2022-09-251-0/+6
|
* Reorganize connection dialogkobewi2022-09-191-8/+15
|
* Port remaining connections to callable_mpTomasz Chabora2022-09-181-1/+1
|
* Rename CONNECT_ONESHOT TO CONNECT_ONE_SHOTMicky2022-09-061-4/+4
| | | | For consistency. Every other exposed `one_shot` is spaced out like this.
* Rename AnimatedTexture `oneshot` to `one_shot`Micky2022-09-011-9/+9
| | | | | | AnimatedTexture.`oneshot` -> `one_shot` For consistency. Every other exposed `one_shot` is spaced out like this.
* Merge pull request #63902 from dalexeev/string-casesRémi Verschelde2022-08-301-16/+6
|\
| * Add `String.to_{camel,pascal,snake}_case` methodsDanil Alexeev2022-08-301-16/+6
| |
* | Rename TreeItem's `set_tooltip` to `set_tooltip_text`Micky2022-08-301-1/+1
|/ | | | | | | | | `set_tooltip` -> `set_tooltip_text` `get_tooltip` -> `get_tooltip_text` For consistency: `get_button_tooltip` -> `get_button_tooltip_text` And the `tooltip` parameter in `add_button` was renamed to `tooltip_text`
* Revert "Remove NOTIFICATION_ENTER_TREE when paired with ↵Rémi Verschelde2022-08-291-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-3/+3
|\ | | | | Rename `hint_tooltip` to `tooltip_text` & setter getter
| * Rename `hint_tooltip` to `tooltip_text` & setgetMicky2022-08-271-3/+3
| | | | | | | | | | | | | | | | `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-3/+1
|/
* Merge pull request #64573 from KoBeWi/signal_name_plagiarismRémi Verschelde2022-08-261-0/+4
|\ | | | | Add "Copy Name" option to signal menu
| * Add "Copy Name" option to signal menukobewi2022-08-181-0/+4
| |
* | Add per-scene UndoRedokobewi2022-08-221-0/+5
|/
* Remove Signal connect bindsJuan Linietsky2022-07-291-1/+1
| | | | | Remove the optional argument p_binds from `Object::connect` since it was deprecated by Callable.bind(). Changed all uses of it to Callable.bind()
* Add ok_button_text to AcceptDialog and cancel_button_text to ConfirmationDialogFireForge2022-07-091-2/+2
|
* Use consistent casing in editor filter/search barsFireForge2022-05-281-1/+1
|
* Add the button pressed to some signals in Treetrollodel2022-05-211-2/+6
|
* Replace most uses of Map by HashMapreduz2022-05-161-9/+9
| | | | | | | | | | | | * Map is unnecessary and inefficient in almost every case. * Replaced by the new HashMap. * Renamed Map to RBMap and Set to RBSet for cases that still make sense (order matters) but use is discouraged. There were very few cases where replacing by HashMap was undesired because keeping the key order was intended. I tried to keep those (as RBMap) as much as possible, but might have missed some. Review appreciated!
* Add missing types to connections dialogFireForge2022-05-051-66/+19
| | | | | - Add all types to list (except Nil, Object, Callable, Signal, and RID) - Add icons
* Limit the maximum value of unbinds to signal_argument_sizeRindbee2022-04-281-0/+19
| | | | | | Update editor/connections_dialog.cpp Co-authored-by: Tomek <kobewi4e@gmail.com>
* Remove VARIANT_ARG* macrosreduz2022-03-091-3/+0
| | | | | | | | * Very old macros from the time Godot was created. * Limited arguments to 5 (then later changed to 8) in many places. * They were replaced by C++11 Variadic Templates. * Renamed methods that take argument pointers to have a "p" suffix. This was used in some places and not in others, so made it standard. * Also added a dereference check for Variant*. Helped catch a couple of bugs.
* Port existing _notification code to use switch statements (part 1/3)jmb4622022-02-161-2/+5
|
* Editor: Cleanup some includes dependenciesRémi Verschelde2022-02-151-4/+0
| | | | | | | | | | | Removes some unnecessary includes from `editor_node.h`, and instead add those where they're used. Removes unnecessary `editor_node.h` includes in various editor classes. Renames `dynamicfont` to `dynamic_font` in a couple files. Misc cleanup while jumping through that rabbit hole.
* Remove most EditorNode constructor parameters and fieldstrollodel2022-02-141-4/+3
|
* Improve compilation speed (forward declarations/includes cleanup)Hendrik Brucker2022-02-121-3/+4
|
* Revert "Add missing SNAME macro optimization to all theme methods call"Rémi Verschelde2022-02-081-2/+2
| | | | | | | | 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-2/+2
|
* Add missing SNAME macro optimization in some function callsjmb4622022-02-061-2/+2
|
* Cleanup and move char functions to the `char_utils.h` header.bruvzg2022-02-041-1/+1
|
* Merge pull request #57562 from AnilBK/string-add-containsRémi Verschelde2022-02-031-1/+1
|\ | | | | String: Add contains().
| * String: Add contains().Anilforextra2022-02-041-1/+1
| |
* | EditorHelpBit: Fix content height fit and RTL theme propagationRémi Verschelde2022-02-021-5/+19
|/ | | | | | | | | | | | This reverts #51619 and fixes the issue properly, as well as enabling `fit_content_height` which is necessary following #57304. Fixes #57174. Also adds a placeholder for property and signal tooltips with no description, factoring the code while at it. Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com>
* Rename String::is_subsequence_ofi to String::is_subsequence_ofnWilson E. Alvarez2022-01-261-1/+1
|
* Store panels and docks singletons in their own classestrollodel2022-01-201-6/+6
|
* Fix theming update in several editor classesYuri Roubinsky2022-01-161-3/+8
|