summaryrefslogtreecommitdiffstats
path: root/scene/gui/tree.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix various warnings: [-Waddress], [-Wpointer-arith], [-Wwrite-strings], ↵Rémi Verschelde2018-09-271-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | [-Wreturn-local-addr] and more Fixes the following GCC 5 warnings: ``` core/os/file_access.cpp:49:19: warning: the address of 'FileAccess::create_func' will always evaluate as 'true' [-Waddress] servers/audio_server.cpp:192:70: warning: comparison with string literal results in unspecified behaviour [-Waddress] drivers/gles2/rasterizer_storage_gles2.cpp:4095:90: warning: NULL used in arithmetic [-Wpointer-arith] modules/gdnative/register_types.cpp:237:3: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] platform/android/export/export.cpp:207:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] modules/gdscript/gdscript.h:150:67: warning: returning reference to temporary [-Wreturn-local-addr] servers/physics_2d/collision_object_2d_sw.h:119:56: warning: returning reference to temporary [-Wreturn-local-addr] servers/physics_2d/collision_object_2d_sw.h:123:56: warning: returning reference to temporary [-Wreturn-local-addr] servers/physics_2d/collision_object_2d_sw.h:127:50: warning: returning reference to temporary [-Wreturn-local-addr] servers/physics_2d/collision_object_2d_sw.h:131:52: warning: returning reference to temporary [-Wreturn-local-addr] editor/plugins/skeleton_editor_plugin.cpp:34:36: warning: extra tokens at end of #include directive modules/bullet/bullet_types_converter.cpp:31:9: warning: #pragma once in main file editor/import/editor_scene_importer_gltf.cpp:1996:51: warning: name lookup of 'i' changed modules/visual_script/visual_script_property_selector.cpp:402:45: warning: name lookup of 'E' changed scene/gui/tree.cpp:1268:25: warning: name lookup of 'i' changed scene/resources/visual_shader.cpp:808:32: warning: name lookup of 'i' changed ```
* Fix warnings for operator precedence disambiguation [-Wparentheses]Rémi Verschelde2018-09-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | Fixes the following GCC 5 warnings: ``` core/io/resource_format_binary.cpp:1721:29: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] core/typedefs.h:108:24: warning: suggest parentheses around comparison in operand of '!=' [-Wparentheses] editor/plugins/spatial_editor_plugin.cpp:2202:58: warning: suggest parentheses around comparison in operand of '!=' [-Wparentheses] editor/plugins/spatial_editor_plugin.cpp:5002:12: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] main/input_default.cpp:346:59: warning: suggest parentheses around '-' inside '<<' [-Wparentheses] main/input_default.cpp:348:60: warning: suggest parentheses around '-' inside '<<' [-Wparentheses] main/input_default.cpp:579:57: warning: suggest parentheses around '-' inside '<<' [-Wparentheses] modules/gridmap/grid_map_editor_plugin.cpp:613:14: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] modules/theora/video_stream_theora.cpp:335:34: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] modules/theora/video_stream_theora.cpp:336:35: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] modules/visual_script/visual_script_property_selector.cpp:215:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] scene/gui/rich_text_label.cpp:424:84: warning: suggest parentheses around '&&' within '||' [-Wparentheses] scene/gui/rich_text_label.cpp:512:80: warning: suggest parentheses around '&&' within '||' [-Wparentheses] scene/gui/scroll_container.cpp:173:36: warning: suggest parentheses around '&&' within '||' [-Wparentheses] scene/gui/scroll_container.cpp:173:86: warning: suggest parentheses around '&&' within '||' [-Wparentheses] scene/gui/tree.cpp:1419:98: warning: suggest parentheses around '&&' within '||' [-Wparentheses] ```
* Removed obsoleted core/helper/value_evaluator.h and moved math_fieldwise to ↵DualMatrix2018-09-231-33/+7
| | | | | | core/math/ Removed obsoleted core/helper/value_evaluator.h and moved math_fieldwise to core/math/
* Merge pull request #22198 from DualMatrix/input_was_eatenRémi Verschelde2018-09-201-2/+2
|\ | | | | Fixed ctrl+up/down shortcut no longer working in scene tree
| * Fixed ctrl+up/down shortcut no longer working in scene treeDualMatrix2018-09-201-2/+2
| | | | | | | | Fixed ctrl+up/down shortcut no longer working in scene tree.
* | Merge pull request #21982 from luzpaz/misc-typosRémi Verschelde2018-09-131-1/+1
|\ \ | |/ |/| Misc. typos
| * Misc. typosluz.paz2018-09-121-1/+1
| | | | | | Found via `codespell -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po"`
* | Make core/ includes absolute, remove subfolders from include pathRémi Verschelde2018-09-121-6/+6
|/ | | | | | This allows more consistency in the manner we include core headers, where previously there would be a mix of absolute, relative and include path-dependent includes.
* Improve ClassDB information for some some signal parametersKelly Thomas2018-09-011-3/+3
|
* Make "Search Classes" dialog have relationship lines if the setting is enabledMichael Alexsander Silva Dias2018-08-311-1/+1
|
* Reduce unnecessary COW on Vector by make writing explicitHein-Pieter van Braam2018-07-261-54/+54
| | | | | | | | | | | | | | | | | | | | | | | This commit makes operator[] on Vector const and adds a write proxy to it. From now on writes to Vectors need to happen through the .write proxy. So for instance: Vector<int> vec; vec.push_back(10); std::cout << vec[0] << std::endl; vec.write[0] = 20; Failing to use the .write proxy will cause a compilation error. In addition COWable datatypes can now embed a CowData pointer to their data. This means that String, CharString, and VMap no longer use or derive from Vector. _ALWAYS_INLINE_ and _FORCE_INLINE_ are now equivalent for debug and non-debug builds. This is a lot faster for Vector in the editor and while running tests. The reason why this difference used to exist is because force-inlined methods used to give a bad debugging experience. After extensive testing with modern compilers this is no longer the case.
* fixed a branch on uninitialised data in gui/treeIbrahn Sahir2018-07-131-5/+14
| | | | | I don't think it was really causing any harm, but this makes things a little more explicit and helps clean up valgrind output.
* Use internal physics processing for Nodes' internal logicRémi Verschelde2018-04-111-8/+8
|
* Merge pull request #16947 from Faless/ui_actionsFabio Alessandrelli2018-03-161-261/+257
|\ | | | | GUI elements ui_action usage, improvements
| * Tree now uses UI actions instead of keysFabio Alessandrelli2018-02-231-261/+257
| |
* | Fix various valgrind reported uninitialized variable usesHein-Pieter van Braam2018-02-281-0/+2
|/
* Clean up some bad words from code commentsArtem Varaksa2018-02-171-2/+2
|
* Fix typos in code and docs with codespellRémi Verschelde2018-01-181-35/+35
| | | | Using v1.11.0 from https://github.com/lucasdemarchi/codespell
* Fixes hangs with Tree in multi selection mode (issue 15588)Bernhard Liebl2018-01-131-0/+3
|
* Bind many more properties to scriptsBojidar Marinov2018-01-121-0/+24
| | | | | | | Notable potentially breaking changes: - PROPERTY_USAGE_NOEDITOR is now PROPERTY_USAGE_STORAGE | PROPERTY_USAGE_NETWORK, without PROPERTY_USAGE_INTERNAL - Some properties were renamed, and sometimes even shadowed by new ones - New getter methods (some virtual) were added
* Fix crash when calling tree API before NOTIFICATION_ENTER_TREEBernhard Liebl2018-01-061-0/+5
|
* Add missing copyright headers and fix formattingRémi Verschelde2018-01-051-0/+1
| | | | | | Using `misc/scripts/fix_headers.py` on all Godot files. Some missing header guards were added, and the header inclusion order was fixed in the Bullet module.
* Merge pull request #15314 from poke1024/tree-rlinesRémi Verschelde2018-01-041-7/+23
|\ | | | | Tree: only draw visible relationship lines
| * Tree: only draw visible relationship linesBernhard Liebl2018-01-041-7/+23
| |
* | found via cppcheck:firefly24422018-01-031-2/+0
|/ | | | | | | remove code that will never run make definition and declaration names for parameters match change floats that were being set to bool values remove pointer that is never used
* Update copyright statements to 2018Rémi Verschelde2018-01-011-2/+2
| | | | Happy new year to the wonderful Godot community!
* Fix TreeItem cell text alignmentyanorax2017-12-291-2/+2
|
* Removed the InputEvent ID field, which was unused and can cause bugs.Juan Linietsky2017-12-261-3/+3
|
* Add functionality to insert tree item.Ray Koopa2017-12-181-19/+27
|
* Fix thin lines in editor gui on hidpi (issue 14691)Bernhard Liebl2017-12-151-2/+12
|
* Some improvements to file/dir open/save dialogs:Dmitry Koteroff2017-11-271-3/+24
| | | | | | | | 1. Removed "..", instead you now will see "Select Current Folder" and "Select this Folder" buttons. 2. Added "go to parent folder" (^) button to Save a File dialog. 3. Tree.cpp: "nothing_selected" signal has been re-made (previous implementation, merged in #13308, wasn't optimal in context of performance) 4. Fixed issue in Project Export dialog: MODE_SAVE_FILE wasn't set when you click "Export". 5. Now you can deselect items by clicking on empty space in Open a Directory dialog.
* Scene Tree Dock: added ability to deselect items when clicking on empty spaceDmitry Koteroff2017-11-261-0/+4
|
* Native pan and zoom for macOSBernhard Liebl2017-11-211-0/+6
|
* Allow exporting enums from GDScriptBojidar Marinov2017-11-171-6/+26
| | | | | Use as `export(E) ...` Closes #12392
* In Create New Node, always select and show best (shortest) matchBernhard Liebl2017-11-041-0/+20
|
* Fix margin with tree drawingJakob Sinclair2017-10-241-1/+1
| | | | | | Fixes @akien-mga point brought up in #12352 Signed-off-by: Jakob Sinclair <sinclair.jakob@mailbox.org>
* Stop move_to_bottom losing references to treeitemsMillionOstrich2017-10-111-7/+10
|
* Merge pull request #11659 from AndreaCatania/prephysicsAndreas Haas2017-10-021-11/+11
|\ | | | | Renamed fixed_process to physics_process
| * Renamed fixed_process to physics_processAndreaCatania2017-09-301-11/+11
| |
* | Several visual improvements.Daniel J. Ramirez2017-09-281-0/+1
|/ | | | | | | | | Added proper label sizing Improved text editor status bar Fixed some issues with ItemList and also some style fixes Added background to color picker samples (the mrcdk fix) Fixed slider ticks. Added VS breakpoint and error styleboxes.
* Merge pull request #11541 from Paulb23/tree_arrow_goto_parentRémi Verschelde2017-09-251-2/+10
|\ | | | | | | | | Goto to parent on left arrow in tree with single column [ci skip]
| * Goto to parent on left arrow in tree with single columnPaulb232017-09-241-2/+10
| |
* | Rename pos to position in user facing methods and variablesletheed2017-09-201-15/+15
|/ | | | | | | | | | | Rename user facing methods and variables as well as the corresponding C++ methods according to the folloming changes: * pos -> position * rot -> rotation * loc -> location C++ variables are left as is.
* Added Left / Right arrow navigation in tree, issue 10737Paulb232017-09-161-29/+70
|
* Merge pull request #11230 from maxim-sheronov/fix_enum_bindingsThomas Herzog2017-09-151-0/+4
|\ | | | | Fix enums bindings
| * Fix enums bindingsMaxim Sheronov2017-09-131-0/+4
| | | | | | | | | | Add missed bindings for enums Move some enums to class to have correct output of api.json
* | Merge pull request #10995 from GodotExplorer/pr-treeRémi Verschelde2017-09-131-0/+17
|\ \ | |/ |/| Add custom minumus height to TreeItem
| * Add custom minumus height to TreeItemGeequlim2017-09-051-0/+17
| | | | | | | | And expose the method `get_drop_section_at_pos` of Tree
* | Merge pull request #10908 from hpvb/fix-unused-variablesRémi Verschelde2017-09-121-1/+1
|\ \ | | | | | | Fix unused variable warnings
| * | Fix unused variable warningsHein-Pieter van Braam2017-09-081-1/+1
| |/ | | | | | | The forth in my quest to make Godot 3.x compile with -Werror on GCC7