summaryrefslogtreecommitdiff
path: root/scene/gui/graph_edit.cpp
AgeCommit message (Collapse)Author
2021-07-25Use const references where possible for List range iteratorsRémi Verschelde
2021-07-23Use C++ iterators for Lists in many situationsAaron Franke
2021-07-18Optimize StringName usagereduz
* 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.
2021-06-25Remove clips_input() method and use clip_contentkobewi
2021-06-17Scrollwheel (w/o ctrl) to zoom, mouse warping when panningLightning_A
Now uses Ctrl + Scrollwheel for vertical scrolling Ctrl + Shift Scrollwheel for horizontal scrolling Also converts some macros to constants
2021-06-16Make zoom limits and step adjustable in GraphEditYuri Sizov
2021-06-15Merge pull request #49437 from Calinou/graphedit-allow-higher-lower-zoom-valuesRémi Verschelde
Allow higher and lower maximum zoom values in GraphEdit
2021-06-10Move default values from definition to declaration in GraphEditMarcel Admiraal
2021-06-08Allow higher and lower maximum zoom values in GraphEditHugo Locurcio
Low zoom values result in unreadable text, but it can still be useful for previewing purposes. Eventually, characters could be replaced by rectangles at very low zoom levels to improve the visual appearance.
2021-05-07Rename "Control" key to "Ctrl" and add "_pressed" suffix to all ↵Lightning_A
InputEventWithModifiers properties/methods
2021-04-05Make scrollwheel zoom based on mouse positionLightning_A
2021-04-05Fix crashes in *_input functionsRafał Mikrut
2021-03-28Merge pull request #47351 from volzhs/graphedit-boxselectionRémi Verschelde
Fix drawing boxselection on GraphEdit
2021-03-25Fix typo 'previus_selected'volzhs
2021-03-25Fix drawing boxselection on GraphEditvolzhs
2021-03-23Rename ButtonList enum and members to MouseButtonAaron Franke
2021-03-20Prevent resizing minimap bigger than GraphEdit (Fix #47189)jmb462
Minimap size couldn't be resized back after been resized bigger than GraphEdit cause the grabber was out of GraphEdit. This commit prevents resizing minimap bigger than GraphEdit and fix this issue.
2021-03-18Enable zooming graph_edit with scrollwheelLightning_A
2021-03-01Properly hide GraphEdit's minimapYuri Sizov
2021-02-27Fix GraphEdit connects when graph is zoomed/unzoomed Yuri Roubinsky
2021-02-18Removed hardcoded shortcuts from /scene and converted to input actionsEric M
This removes hardcoded actions from things like LineEdit and TextEdit. Previously, things like copy, paste, etc were all hardcoded to Ctrl+C, Ctrl+V, etc. They could not be changed. This allows the possibility of them being changed, by making them use the action map. This has the added benefit of greatly simplifying the input handling logic in those controls. The logic which was previously in a huge and hard to follow switch statement has been extracted to individual methods.
2021-02-11Merge pull request #45870 from gongpha/graphedit-connection-updateRémi Verschelde
Update GraphEdit when GraphNode's slot is updated
2021-02-11Update GraphEdit when GraphNode's slot is updatedKongfa Waroros
2021-02-09Initialize class variables with default values in scene/ [2/2]Rafał Mikrut
2021-02-04doc: Don't bind argument names with p_ prefixRémi Verschelde
This prefix is used in the C++ codebase, not in the scripting API.
2021-01-25Fix minimap capturing events and improve its themeYuri Sizov
Add an editor setting for minimap opacity in visual editors
2021-01-14Prevent signal disconnection attempts on invalid referencesYuri Sizov
2021-01-01Update copyright statements to 2021Rémi Verschelde
Happy new year to the wonderful Godot community! 2020 has been a tough year for most of us personally, but a good year for Godot development nonetheless with a huge amount of work done towards Godot 4.0 and great improvements backported to the long-lived 3.2 branch. We've had close to 400 contributors to engine code this year, authoring near 7,000 commit! (And that's only for the `master` branch and for the engine code, there's a lot more when counting docs, demos and other first-party repos.) Here's to a great year 2021 for all Godot users 🎆
2020-12-28Merge pull request #44569 from madmiraal/rename-unselect-deselectRémi Verschelde
Rename unselect to deselect
2020-12-26Update GraphEdit connection to reflect new signal nameMarcel Admiraal
2020-12-23Rename Control margin to offsetMarcel Admiraal
2020-12-21Rename unselect to deselectMarcel Admiraal
2020-12-18Added GraphEdit properties to control lines thickness and antialiasingYuri Roubinsky
2020-12-17FIx visual issues with GraphEdit minimapYuri Sizov
2020-11-30Add a minimap to the GraphEditYuri Sizov
2020-11-27Restored antialiased lines by emulation using triangle stripsYuri Roubinsky
2020-10-20Removed underscore from GraphEdit begin/end_node_move signalsYuri Roubinsky
2020-10-19Fix emit_signal timing for GraphEdit's begin/end node moveGabriel Van Eyck
2020-10-01Renamed toplevel to be top_levelDuroxxigar
2020-09-11Disconnect item_rect_changed when removing a child of GraphEditWilson E. Alvarez
2020-07-09Emit signals for GraphEdit multi-node selection and unselectionMaganty Rushyendra
Emit `node_selected` and `node_deselected` signals where appropriate when selecting or unselecting multiple GraphEdit nodes at once.
2020-07-05Fix GraphEdit reconnecting to disconnected portYuri Roubinsky
2020-07-04Prevents incorrect connection attempt on port clicking in GraphEditYuri Roubinsky
Prevents incorrect connection attempt on port clicking in GraphEdit
2020-06-19Remove ToolButton in favor of ButtonHugo Locurcio
ToolButton has no redeeming differences with Button; it's just a Button with the Flat property enabled by default. Removing it avoids some confusion when creating GUIs. Existing ToolButtons will be converted to Buttons, but the Flat property won't be enabled automatically. This closes https://github.com/godotengine/godot-proposals/issues/1081.
2020-05-16Remove get_local_mouse_position() hack in GraphEditsmartin015
2020-05-14Style: Enforce braces around if blocks and loopsRémi Verschelde
Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
2020-05-14Style: Enforce separation line between function definitionsRémi Verschelde
I couldn't find a tool that enforces it, so I went the manual route: ``` find -name "thirdparty" -prune \ -o -name "*.cpp" -o -name "*.h" -o -name "*.m" -o -name "*.mm" \ -o -name "*.glsl" > files perl -0777 -pi -e 's/\n}\n([^#])/\n}\n\n\1/g' $(cat files) misc/scripts/fix_style.sh -c ``` This adds a newline after all `}` on the first column, unless they are followed by `#` (typically `#endif`). This leads to having lots of places with two lines between function/class definitions, but clang-format then fixes it as we enforce max one line of separation. This doesn't fix potential occurrences of function definitions which are indented (e.g. for a helper class defined in a .cpp), but it's better than nothing. Also can't be made to run easily on CI/hooks so we'll have to be careful with new code. Part of #33027.
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-29[Core] Rename linear_interpolate to lerpAaron Franke
2020-04-28Rename InputFilter back to InputRémi Verschelde
It changed name as part of the DisplayServer and input refactoring in #37317, with the rationale that input no longer goes through the main loop, so the previous Input singleton now only does filtering. But the gains in consistency are quite limited in the renaming, and it breaks compatibility for all scripts and tutorials that access the Input singleton via the scripting language. A temporary option was suggested to keep the scripting singleton named `Input` even if its type is `InputFilter`, but that adds inconsistency and breaks C#. Fixes godotengine/godot-proposals#639. Fixes #37319. Fixes #37690.