Commit graph

534 commits

Author SHA1 Message Date
Juan Linietsky
c7b4dcae2f Open sub-windows as embedded if the OS does not support them 2020-03-26 15:49:43 +01:00
Juan Linietsky
441f1a5fe9 Popups are now windows also (broken!) 2020-03-26 15:49:42 +01:00
Juan Linietsky
4758057f20 Working multiple window support, including editor 2020-03-26 15:49:40 +01:00
Juan Linietsky
9e08742de8 Added a Window node, and made it the scene root.
Still a lot of work to do.
2020-03-26 15:49:38 +01:00
Juan Linietsky
f8a79a97c7 Effective DisplayServer separation, rename X11 -> LinuxBSD 2020-03-26 15:49:34 +01:00
Ignacio Etcheverry
fe0b783e70 Expose FileSystemDock to the scripting API and fixed signals
Fixed FileSystemDock's `file_removed` and `folder_removed` signals not being
emitted because the emitted was using the wrong signal name.
2020-03-18 15:06:07 +01:00
Rémi Verschelde
cb282c6ef0 Style: Set clang-format Standard to Cpp11
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-17 07:36:24 +01:00
Rémi Verschelde
48ed841dd0 Signals: Fix some regressions from #36426
- Fix `callable_mp` bindings to methods which used to have default
  arguments passed to `bind_method`. We now have to re-specify them
  manually when connecting.
- Re-add `GroupsEditor::update_tree` binding.
- Misc code quality changes along the way.
2020-03-03 11:44:06 +01:00
Rémi Verschelde
01afc442c7 Signals: Port connect calls to use callable_mp
Remove now unnecessary bindings of signal callbacks in the public API.
There might be some false positives that need rebinding if they were
meant to be public.

No regular expressions were harmed in the making of this commit.
(Nah, just kidding.)
2020-02-28 14:24:09 +01:00
Rémi Verschelde
65429f11a6 Signals: Make callbacks non-const, callable_mp can't handle it 2020-02-23 23:48:44 +01:00
Juan Linietsky
69c95f4b4c Reworked signal connection system, added support for Callable and Signal objects and made them default. 2020-02-20 08:24:50 +01:00
Juan Linietsky
3205a92ad8 PoolVector is gone, replaced by Vector
Typed `PoolTypeArray` types are now renamed `PackedTypeArray` and are
sugar for `Vector<Type>`.
2020-02-18 10:10:36 +01:00
Juan Linietsky
3f335ce3d4 Texture refactor
-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-02-11 11:53:26 +01:00
Haoyu Qiu
9cff286de1 Fixes broken scene created via New Resource 2020-02-09 14:21:10 +08:00
Michael Alexsander
07a23e75fc Make some QOL improvements to move operations in the FileSystem dock 2020-02-04 19:31:48 -03:00
Gilles Roudière
76d87e6616 Fixes a memory leak in FileSystemDock
Co-authored-by: Rafał Mikrut <mikrutrafal54@gmail.com>
2020-01-15 21:45:13 +01:00
Michael Alexsander
8708d44a50 Add option to disable loading scripts in ScriptCreateDialog 2020-01-09 13:09:23 -03:00
volzhs
9495229315 Update file list in split view when setting main scene 2020-01-09 09:51:31 +09:00
Michael Alexsander
f9d11120f7 Minor fixes for ScriptCreateDialog 2020-01-08 02:02:34 -03:00
volzhs
a1ab8f8890 Show selected main scene in FileSystem split view 2020-01-08 02:19:54 +09:00
Rémi Verschelde
a7f49ac9a1 Update copyright statements to 2020
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.
2020-01-01 11:16:22 +01:00
Rémi Verschelde
f3f6268ee7
Merge pull request #34656 from volzhs/keep-selected-dir
Show selected directory in split mode when selecting a file
2019-12-30 17:58:20 +01:00
Rémi Verschelde
ea3262ee9b
Merge pull request #34578 from timothyqiu/var-rename
Fixes variable naming in FileSystemDock
2019-12-30 17:11:42 +01:00
volzhs
4fb56d6694 Show selected directory in split mode when selecting a file 2019-12-29 04:07:56 +09:00
Haoyu Qiu
078c0d75f2 Cleans up headers included in editor_node.h 2019-12-24 21:46:05 +08:00
Haoyu Qiu
79a06e17bb Fixes variable naming in FileSystemDock 2019-12-24 14:51:33 +08:00
Tomasz Chabora
01d77842ee Unfold directories when showing in file system 2019-11-21 15:40:11 +01:00
Michael Alexsander
107c1969f5 Hide "Set As Main Scene" in FileSystem dock if the scene is already the main one 2019-11-11 12:41:46 -03:00
Andrii Doroshenko (Xrayez)
1f62318f92 Display icon for "Set As Main Scene" in filesystem popup 2019-11-11 12:58:15 +02:00
Silvano Cerza
469acbfd0c Folders in FileSystem are not expanded on project save anymore
If an item was selected in the FileSystem dock and its parent
was collapsed the folder would be expanded when saving the project.
2019-11-04 20:23:46 +01:00
volzhs
bee6b94b77 Add "Set as main scene" on context menu in FileSystem panel 2019-10-30 03:31:33 +09:00
David Sichma
f1265541ee Favorites dragable 2019-10-20 19:39:21 +02:00
Rémi Verschelde
7b433107f5
Merge pull request #32009 from Xrayez/fs-editor-icons
Display editor icons for filesystem dock popup menu options
2019-09-26 08:43:17 +02:00
Stefano Coratti
d7b2ecacff Fixed Show in file system should clear current search 2019-09-25 16:07:46 +02:00
qarmin
17732fe698 Added some obvious errors explanations 2019-09-25 10:28:50 +02:00
Andrii Doroshenko (Xrayez)
407839daab Display editor icons for filesystem dock popup menu options 2019-09-06 14:57:51 +03:00
merumelu
eac0af5892 Tree: fix and expose icon modulation 2019-08-24 17:37:22 +02:00
Michael Alexsander Silva Dias
c5b45c9f09 Cleanup and minor changes in FileSystem Dock 2019-08-22 10:24:51 -03:00
Rémi Verschelde
4ab4d4a59b
Merge pull request #31489 from iwek7/removeRenameRootOption
Showing only working options in filesystem dock menu
2019-08-22 11:56:48 +02:00
Hugo Locurcio
e1b9004b0f
Rename FileDialog's folder icon custom color to folder_icon_modulate
The custom color introduced in be8d569744
had the same name as the "folder" icon, which could cause conflicts
in the generated documentation.

The new name is also more self-explanatory.
2019-08-21 18:43:01 +02:00
iwek7
2b8d65761c Improvements and fixes of filesystem dock 2019-08-21 11:13:50 +02:00
Hugo Locurcio
be8d569744
Use a different color for folder icons in file dialogs
This makes them easier to distinguish from files for quick
visual grepping.

This can also be used in projects by setting the FileDialog "folder"
color. The default value (`Color(1, 1, 1)`) has no visual impact,
for compatibility with existing projects.
2019-08-20 00:10:27 +02:00
Braden Bodily
71d71d55b5 Replace 'ERR_EXPLAIN' with 'ERR_FAIL_*_MSG' in 'core/' and 'editor/'
Condensed some if and ERR statements. Added dots to end of error messages

Couldn't figure out EXPLAINC. These files gave me trouble: core/error_macros.h, core/io/file_access_buffered_fa.h (where is it?),
core/os/memory.cpp,
drivers/png/png_driver_common.cpp,
drivers/xaudio2/audio_driver_xaudio2.cpp (where is it?)
2019-08-17 12:33:15 +02:00
Tomasz Chabora
cedee8281b Allow to create scene from FileSystem dock 2019-08-15 19:47:21 +02:00
Emmanuel Barroga
2350af5e70 Fix losing scene modifications when renaming file
Closes: #30436

When renaming/moving a file in the filesystem docker, changes on a scene that has dependencies on the file being renamed/moved are lost.

To resolve this, this patch saves the scenes that depend on the file first, to save its current state.
2019-07-15 20:50:03 -07:00
qarmin
01cc7a996b Use reference to constant in functions 2019-07-10 11:54:12 +02:00
Rémi Verschelde
c5ea4b27f9 FileSystem dock: Improve duplicate check for directory paths
Supersedes and closes #30225.
2019-07-04 11:42:40 +02:00
Rémi Verschelde
d17eac735c
Merge pull request #29815 from NilsIrl/plus_file_1
Replace ` + "/" + ` with `String::file_add()`
2019-07-01 12:06:35 +02:00
qarmin
4e5310cc60 Some code changed with Clang-Tidy 2019-06-26 15:08:25 +02:00
Nils ANDRÉ-CHANG
d2833d4f4d Replace + "/" + with String::file_add() 2019-06-23 13:33:50 +01:00
Rémi Verschelde
6d16f2f053 Fix error macro calls not ending with semicolon
It's not necessary, but the vast majority of calls of error macros
do have an ending semicolon, so it's best to be consistent.
Most WARN_DEPRECATED calls did *not* have a semicolon, but there's
no reason for them to be treated differently.
2019-06-11 14:49:34 +02:00
Hein-Pieter van Braam-Stewart
0ac7715a27 Fix moving and renaming files
This commit fixes several issues related to moving scenes and resources
in an open project.

* Don't try to reload scenes while not all scenes are updated yet.
* Don't use the UndoRedo system to update non-user initiated editor
state.
* Resave scenes after moving files and updating resource path(s).
2019-06-04 16:24:32 +02:00
qarmin
392f6f89cd Fix memory leak in Text Editor and FileSystem Dock 2019-05-30 21:31:05 +02:00
Rémi Verschelde
8384582828
Merge pull request #27836 from turtletooth/right-click
Allow Right Click in Empty Space on FileSystemDock
2019-05-28 12:07:06 +02:00
Rémi Verschelde
2bf28f58ac
Merge pull request #28702 from Lisapple/fs-show-path-tooltip
Show file path in FileSystem dock tooltip
2019-05-24 16:22:45 +02:00
Rémi Verschelde
e0574e1d98 Fix typos with codespell
Using codespell 1.15.0.

Method:
```
$ cat > ../godot-word-whitelist.txt << EOF
ang
curvelinear
doubleclick
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
```
2019-05-19 13:10:35 +02:00
Michael Alexsander Silva Dias
dcf27c71b7 Make possible to create inherited scenes via the RMB menu in the FileSystem dock 2019-05-11 05:13:29 -03:00
Rémi Verschelde
89c37dae49
Merge pull request #28807 from bojidar-bg/28798-open-filesystem
Open selected folder when pressing the "Open" option in the menu
2019-05-11 09:49:34 +02:00
Bojidar Marinov
fedf9cd379
Open selected folder when pressing the "Open" option in the menu
An attempt to fix #28798
2019-05-10 18:55:50 +03:00
volzhs
920403c489 Scroll back to top when changing directory in FileSystem dock
Fix #26041
2019-05-09 04:00:40 +09:00
Lisapple
182a04b1da Replacing filename with path in tooltip into FileSystem dock 2019-05-08 17:15:21 +02:00
Rémi Verschelde
36d4f86ed9
Merge pull request #27707 from Calinou/tweak-message-wording
Improve wording of various messages and make casing more consistent
2019-04-30 11:10:36 +02:00
Hugo Locurcio
35a0162167
Improve wording of various messages and make casing more consistent
This also adds the number of selected projects to the confirmation
dialog that appears before removing projects.
2019-04-21 14:37:14 +02:00
Juan Linietsky
04847ef5f9 Added ability for multiple images to be imported as an atlas
This adds support for groups in the import system, which point to a single file.
Add property hint for saving files in file field
2019-04-19 15:56:34 -03:00
Tomasz Chabora
331f922359 Save opened scenes when necessary 2019-04-15 22:17:49 +02:00
Jeremy Bullock
36bdf78927 Allow Right Click in Empty Space on FileSystemDock 2019-04-09 11:22:14 -06:00
Rémi Verschelde
3da2894d82 FS dock: Allow deselecting items by clicking empty space
Fixes #27546.
2019-04-09 14:54:41 +02:00
Juan Linietsky
a20235aeb0 Add ability to edit editor feature profiles
Allows enabling/disabling parts of the editor and storing/loading profiles for that.
2019-04-08 19:18:51 -03:00
Daniel Kulas
22b861ad97 Fix "Show in File Manager" option 2019-04-06 23:01:59 +02:00
Michael Alexsander Silva Dias
d819ad6f78 Small tooltip changes to filesystem-related UI componentes in editor 2019-03-27 01:50:50 -03:00
qarmin
8c4051819e Fix error when trying to enter to folder/node directly via address bar 2019-03-08 06:15:42 +01:00
Michael Alexsander Silva Dias
20b479aaef Fix FileSystem dock's item view button starting with the wrong icon 2019-03-05 15:05:53 -03:00
Michael Alexsander Silva Dias
a292d1fefb Fix general issues with filesystem-related UI components in the editor 2019-03-05 10:12:06 -03:00
Bruno Lourenço
ed7534a6aa Fix grid view button icon not showing on filesystem dock. 2019-03-03 15:02:51 +00:00
Gilles Roudiere
04fb1069cd Fixes layout loading 2019-02-27 21:36:12 +01:00
Gilles Roudiere
de95493de2 Move the FileSystem dock layout properties to the per-project layout file 2019-02-25 23:39:49 +01:00
Rémi Verschelde
5fc86026ca Fix typos with codespell
Using codespell 1.14.0.

Method:
```
$ cat > ../godot-word-whitelist.txt << EOF
ang
doubleclick
lod
nd
numer
que
te
unselect
EOF
$ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po"
$ git diff // undo unwanted changes
```
2019-02-13 09:23:29 +01:00
groud
d4de7cf186 Fixes crash in the Filesystem dock 2019-01-17 20:48:46 +01:00
Rémi Verschelde
b16c309f82 Update copyright statements to 2019
Happy new year to the wonderful Godot community!
2019-01-01 12:58:10 +01:00
Michael Alexsander Silva Dias
b86b497cec General fixes for the AnimationTree editor 2018-12-17 21:03:58 -02:00
groud
c6329b4569 Add signals for files move/delete/rename to FileSystemDock 2018-12-06 21:35:21 +01:00
Mintormo
69bca28271 (#23480) Wrong directory path in filesystem dock when creating script.
When creating script and file selected in filesystem dock,
between file name and directory path there is no "/" symbol.
This commit fix that bug.
2018-11-05 17:27:48 +03:00
groud
a821de2275 Hide some RMB options in the filesystem dock when files are searched 2018-11-03 18:37:57 +01:00
Juan Linietsky
03563c8ddf
Merge pull request #23061 from groud/remove_thumbnail_view
Remove the thumnail-only view from the filesystem dock
2018-11-02 13:09:09 -03:00
Rémi Verschelde
91e5782795
Merge pull request #23311 from YeldhamDev/editor_capitalization_fix
Small capitalization fixes across the editor
2018-11-01 21:37:33 +01:00
Chaosus
4f4bbfbb85 Fix small visual bug in filesystem dock 2018-10-29 16:21:55 +03:00
Michael Alexsander Silva Dias
f3835282c4 Small capitalization fixes across the editor 2018-10-26 16:11:36 -03:00
Chaosus
ba9d29ec62 Fix segfault on editor close up 2018-10-25 13:33:46 +03:00
Chaosus
3af11ff3d8 Update filesystem dock when theme changed 2018-10-23 12:37:00 +03:00
Rémi Verschelde
16b0191173
Merge pull request #23160 from groud/filesystem_favorites_fix
Make folders clicked in the filesystem dock open the selected folder
2018-10-20 11:15:38 +02:00
groud
c029e82761 Make folders clicked in the filesystem dock open the selected folder 2018-10-19 22:43:48 +02:00
Silvano Cerza
0759760856 Enhanced error message on folder creation with invalid chars on Windows
If the user tried to create folder with *, | or > in its name it would
return a generic error "Could not create folder."
Now the same message is shown when creating a folder with /, \\, :, *,
|, > or ending with . or an empty space.
2018-10-18 21:19:16 +02:00
Zaven Muradyan
ee74c7808b Update autoload references when moving files.
Prior to this, file references in autoload were not updated when a
script was moved or renamed. This adds extra logic to update the
autoload references when updating project settings.

Fixes #22995.
2018-10-16 18:57:21 -07:00
groud
8f3becafeb Remove the thumnail-only view from the filesystem dock 2018-10-16 22:08:00 +02:00
Dualtagh Murray
fc0ae1d94d 22586: Dragging file icon on to another file causes "Error Moving" in FileSystem dock 2018-10-04 20:38:36 +01:00
groud
0829fdafb0 Adds the display of the favorites into the file list 2018-09-30 15:32:57 +02:00
groud
7d59e05ae8 Add thumbnails to the FileSystem file list 2018-09-28 13:26:36 +02:00
groud
4f998faa2d Fixes drag & drop in the file list 2018-09-27 13:54:09 +02:00
Rémi Verschelde
1f18a85ea1
Merge pull request #22398 from groud/fix_import_tab_update
Fix import tab not updating when selecting in the tree view
2018-09-24 15:26:23 +02:00
groud
ed516a11ca Fix import tab not updating when selecting in the tree view 2018-09-24 14:26:26 +02:00
groud
43beed489a Allow the tree view of FileSystem to take more space 2018-09-24 12:01:20 +02:00
DualMatrix
6dc0120c60 Prevent built-in-scripts from being made from FileSystem dock
Prevent built-in-scripts from being made from FileSystem dock
2018-09-23 17:38:59 +02:00
groud
f19dfc1aa8 Remove auto disabling of the split-view in the FileSystem dock 2018-09-21 12:19:50 +02:00
Rémi Verschelde
f22f83f2df
Merge pull request #22308 from groud/fix_filesystem_setting
Fixes filesystem display mode not updating at startup
2018-09-21 10:28:05 +02:00
groud
77a6a467b3 Fixes filesystem display mode not updating at startup 2018-09-21 09:42:41 +02:00
Michael Alexsander Silva Dias
ab2eac8e3f Make filesystem dock's path bar start with said path written 2018-09-21 04:05:50 -03:00
groud
76b2ae8dc6 Fixes favorites not updating and rename favorite_dirs to favorites 2018-09-18 14:02:59 +02:00
groud
59536b98b9 Bugfixes on the filesystem dock 2018-09-14 13:59:19 +02:00
groud
028813fb9c Add a display mode toggle button 2018-09-14 10:22:13 +02:00
groud
4ef4df54d0 Store tree collapse when searching 2018-09-14 10:22:13 +02:00
groud
a5fba2aa79 Allow dragging files into the favorites section 2018-09-14 10:22:13 +02:00
groud
4731745deb Adds a filter in the tree view 2018-09-14 10:22:13 +02:00
groud
d7b638ed32 Replace the -show in filesystem- button by a RMB entry 2018-09-14 10:22:13 +02:00
groud
bc5dfdde78 Replace the favorite button by a RMB menu entry 2018-09-14 10:22:13 +02:00
groud
796418aa11 Merge the disable_split and show_files_in_tree settings 2018-09-14 10:22:07 +02:00
groud
b2633a97b9 Add thumnails to the tree view 2018-09-14 10:14:33 +02:00
groud
5f3bbbdc81 Add support for files in the tree view 2018-09-14 10:14:33 +02:00
Rémi Verschelde
277b24dfb7 Make core/ includes absolute, remove subfolders from include path
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.
2018-09-12 09:52:22 +02:00
Rémi Verschelde
52466d57e9 Make some debug prints verbose-only, remove others 2018-08-24 14:59:01 +02:00
Rémi Verschelde
1e49b2d720
Merge pull request #20997 from Gamblify/add_files_to_tree_view
Add a way to disable the split view in the FileSystem dock
2018-08-14 22:50:51 +02:00
Rémi Verschelde
c50d7f7b84
Merge pull request #20915 from ivodopiviz/rmb-filesystem
Show in File Manager Clarification
2018-08-14 14:35:43 +02:00
Ivan Vodopiviz
afb3c0c933 Show in File Manager Clarification
Changed the context menu 'Show in File Manager' action description to better reflect actual behavior. Fixes #20897
2018-08-14 11:50:04 +02:00
groud
b3f02d0840 Add a way to disable the split view
Also add a parameter as the max height before split
2018-08-14 10:17:51 +02:00
Rémi Verschelde
b68f186c46
Merge pull request #20971 from swarnimarun/new-resource-option
Fix for resource save dialog call
2018-08-13 16:32:22 +02:00
Swarnim Arun
48abe73fe2
Fix for resource save dialog call
to make sure the resource save opens in the current folder when using right click to do it.
2018-08-13 19:24:35 +05:30
Łukasz Rutkowski
81fb81de9d Do not use theme to set LineEdit right_icon 2018-08-11 12:04:26 +02:00
Łukasz Rutkowski
e8a435c8cd Add clear text button to LineEdit
- Add pressed state to clear button
- Enable clear button on all inputs with search icon
- Remove duplicate clear buttons
- Fix rendering of icon for center and right alignments
- Add clear button to more search fields
- Add clear icon to default theme
- Add method to control enabled state of clear button
- Add property to enable clear button from inspector
2018-08-11 12:04:26 +02:00
Ian
1bb13e95a8 context menu improvements 2018-07-26 08:58:35 -04:00
steincodes
a1dee44e21 Ability to add Resource from FileSystem Dock 2018-07-22 21:23:40 +05:30
Ibrahn Sahir
9e4a6a6be2 fix for moving file using filesystem dock context menu.
Updated a method binding to match parameter default of recently added
parameter.
2018-07-14 02:47:43 +01:00
Max Hilbrunner
c41d322e11
Merge pull request #19183 from Nallebeorn/rename-main-scene
Update resource file project settings after renaming/moving the files
2018-07-05 00:44:23 +02:00
Max Hilbrunner
4f39d330cf
Merge pull request #19245 from swarnimarun/overwrite_fix
Fix overwrite of file/folder of same name without warning
2018-07-05 00:30:06 +02:00
Max Hilbrunner
82a2d2df3e
Merge pull request #19873 from volzhs/show-scene-file
Show current scene file in FileSystem dock
2018-07-03 18:46:23 +02:00
Benjamin
4cd69e91fc Update resource file project settings on rename 2018-07-03 18:08:41 +02:00
volzhs
a9acb95ef4 Show current scene file in FileSystem dock 2018-07-01 11:47:34 +09:00
volzhs
9501acaee6 Re-scan only when actually moving file 2018-06-19 07:43:16 +09:00
steincodes
8ae652bd59 Fix for overwriting files and folders on move 2018-06-12 21:54:43 +05:30
Michael Alexsander Silva Dias
6c058040b7 Small tooltip changes. 2018-05-18 14:54:40 -03:00
Max Hilbrunner
27ac6846dc
Merge pull request #18471 from TheYokai/new_script_context_option
'New Script' Option Added to FileSystem Docker Right Click Menu
2018-05-05 06:52:37 +02:00
Felix Yang
164dceab28 Fix for Issue#18457 - Folder name with trailing space on Windows 2018-05-03 10:19:43 +02:00
Eoin O'Neill
af1e2c7b21 Basic 'new script' feature added to File System browser 2018-04-27 22:55:48 -07:00
Hugo Locurcio
1c419531a0 Change ".." punctuation for "..." in editor strings (#16507) 2018-04-22 19:36:01 +02:00
Rémi Verschelde
9101a89510
Merge pull request #18054 from Mintormo/bugfix-inconsistent-sort-in-file-manager
Fixed bug #17929. Inconsistent sort in file manager.
2018-04-09 17:56:43 +02:00
Juan Linietsky
2ba01613a3
Merge pull request #17123 from Jason0214/BugFix_UpdataFavoriteListWhenMoveOrRenameDir
Editor: update favortite_dirs after move or rename a file in filesytem_dock
2018-04-08 11:36:55 -03:00
Mintormo
41a3929d25 Fixed bug #17929. Inconsistent sort in file manager.
This commit fix a bug #17929
(https://github.com/godotengine/godot/issues/17929)
in file manager. I'm just added sorting of files list
in method FileSystemDock::_update_files.
2018-04-08 13:18:01 +03:00
Rémi Verschelde
e223702776
Merge pull request #17784 from Rubonnek/rename-shortcut
Added shortcut to rename files
2018-04-04 22:27:21 +02:00
Nikodem Lokatelj
836565b249 FIX: FILE_SHOW_IN_EXPLORER now correctly shows the file's directory 2018-03-28 11:34:46 +02:00
Wilson E. Alvarez
f0db7fca79
Added shortcut to rename files 2018-03-27 05:55:51 -04:00
Hein-Pieter van Braam
900384a622
Merge pull request #17243 from delftswa2018/trailingDotFix
Fix being able to create folder name with ending '.' on Windows
2018-03-07 14:09:20 +01:00
Felix Yang
96f61b2d65 Added a check for trailing dot when creating folder.
Merge the trailing dot test into existing test. Removed OS test.
2018-03-07 11:11:19 +01:00
Jason0214
bfae02c4ce update favorite_dirs list after move or rename a dir 2018-02-28 15:14:12 -08:00
Stephen Traskal
e790ca084d Fixing folder/file case sensitive renaming issue
Example:
Could not rename "Objects" to "objects" or vice versa
2018-02-19 21:46:58 +01:00
Rémi Verschelde
eb2b04c6eb
Merge pull request #15379 from ianb96/delete_key_fix
Filesystem and Visual Script Members delete key fix
2018-02-14 17:06:31 +01:00
Guilherme Felipe
6e1c02b828 Make parent folder selectable. Fix #16253 2018-02-01 14:00:59 -02:00
Rémi Verschelde
7fdde54586
Merge pull request #16266 from volzhs/expand-root-dir-on-start
Expand project root directory on editor start
2018-02-01 14:18:11 +01:00
volzhs
127d1241bd Expand project root directory on editor start
close #16232
Option for expanding all directories on start up is a bit tricky and buggy.
2018-02-01 11:24:40 +09:00
Guilherme Felipe
bb936b5503 Hide button tree when file system dock isn't in split mode 2018-01-31 17:47:23 -02:00
Ian
bce2d2c297 Filesystem and Visual Script Members keyboard shortcuts fix 2018-01-06 15:46:32 -05:00
Rémi Verschelde
2a1ce0fbc4 i18n: Sync translation templates with current source 2018-01-06 14:32:21 +01:00
Rémi Verschelde
e4213e66b2 Add missing copyright headers and fix formatting
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.
2018-01-05 01:22:23 +01:00
Artem Varaksa
928ca10a7b Clean up \n from end of translation strings 2018-01-04 22:00:39 +03:00
Rémi Verschelde
bc513dfa84
Merge pull request #15224 from volzhs/fix-duplicate-file
Fix duplicating file or folder
2018-01-03 12:52:19 +01:00
Rémi Verschelde
b50a9114b1 Update copyright statements to 2018
Happy new year to the wonderful Godot community!
2018-01-01 14:40:47 +01:00
volzhs
0341070cde Fix duplicating file or folder
Fix #15206
2018-01-01 05:03:20 +09:00
Wilhem Barbier
03beb9ac7d Make filesystem search case-insensitive 2017-12-27 15:49:19 +00:00
Juan Linietsky
57061413eb Properly rename scenes and resources after renaming or moving files, should fix #13976
It's not tested, so please test.
2017-12-26 16:32:12 -03:00
volzhs
d9e5be1d66 Fix open directory in FileSystem dock 2017-12-22 04:16:04 +09:00
volzhs
c3d18aed8c Remove unnecessay update on FileSystem dock 2017-12-16 23:53:44 +09:00
volzhs
15e77b3b60 Enchance FileSystem dock
* Collapse / Uncollapse folder with double click
* Sync with tree and bottom panel
* Show selected folder in tree when changed
2017-12-16 23:26:43 +09:00
Rémi Verschelde
5b54690323
Merge pull request #13446 from gad-o/duplicate_file
Add  duplicate option to filesystem dock
2017-12-09 16:34:35 +01:00
sersoong
3cdcf02d1e Restored two items in filesystemdock menu 2017-12-09 10:38:16 +08:00
sersoong
82f896b1ee Enhanced 'open' menu in filesystemdock 2017-12-05 16:37:46 +08:00
Orkun
3e50748972 Add duplice option to filesystem dock
Add duplice option to filesystem dock based move option
2017-12-01 14:13:50 +03:00
Ian
e718dd12be moving open scenes in filesystem update dependencies fix 2017-11-28 22:25:11 -05:00
Michael Alexsander Silva Dias
8987f932d6 Fix not being able to select an editor layout created in another language. 2017-11-26 13:27:48 -02:00
Rémi Verschelde
7c90d51b72
Merge pull request #13120 from MillionOstrich/filesystem-rmb-separator
Fix extra separator in filesystem dock right click menu
2017-11-21 08:14:01 +01:00
MillionOstrich
89f264c4a8 Fix extra separator in filesystem dock right click menu
Re-order add_separator calls to stop adding an extra separator if no item was selected.
It is possible for no items to be selected by right clicking the ".." item.
2017-11-20 23:45:26 +00:00
Dmitry Koteroff
09619b02c4 Added "Show in Explorer" besides "New Folder" to popup which appear when clicked anywhere on the files list (when no files under mouse cursor)
Small fix
2017-11-21 01:57:00 +03:00
Dmitry Koteroff
d67b602f2f Add "New Folder.." to right mouse button click on project fileslist panel _WHEN_ no any file/folder is under mouse cursor. 2017-11-20 21:25:13 +03:00
Rémi Verschelde
3dad0ce8f4
Merge pull request #12942 from sersoong/master-test
3.0 - add open feture to dependency_editor.cpp(View Owner..)
2017-11-20 09:12:14 +01:00
Rémi Verschelde
b44cb4e3b9
Merge pull request #12583 from volzhs/select-multiple-files
Not to be slow when select multiple files
2017-11-17 00:37:01 +01:00
sersoong
13b07fef81 add open feture to dependency_editor.cpp 2017-11-15 14:26:38 +08:00
Rémi Verschelde
faf097d350
Merge pull request #12895 from volzhs/better-ttr-format
Better TTR format
2017-11-13 12:46:39 +01:00
volzhs
2e7345c00f Better TTR format 2017-11-13 20:37:28 +09:00
Rémi Verschelde
98d9423fa3
Merge pull request #12402 from MillionOstrich/filesystem-drag-move
Filesystem drag & drop moving fixes
2017-11-10 09:58:07 +01:00
MillionOstrich
f6ca9d34a2 Improve file/folder drag preview on filesystem dock
Added icons for files/folders in drag preview
Fixed folders getting an empty string label
Don't show "1 more file(s)" label instead of the file
Added "more folders" case if moving folders exclusively
Merged drag_files and drag_files_and_dirs to reduce code duplication
Simplified get_drag_data_fw and removed commented out code
2017-11-03 21:39:53 +00:00
MillionOstrich
078371cfb6 Fix dragging a resource onto filesystem dock
Call push_item before save_resource_as because the save button uses editor_history current.
Reject the drop in can_drop_data if it isn't on a folder or the files list.
Removed some duplicated code
2017-11-03 20:50:51 +00:00
MillionOstrich
9c65924b3d Don't try to move if dragging a folder into itself
If a folder would be moved to an invalid location disallow the drag
Don't treat dragging a file/folder to its current location as invalid
Allow dragging onto empty space / files in the files list
Fix dragging a folder onto "Favourites" starting an invalid move
2017-11-03 20:49:36 +00:00
volzhs
3babb19515 Not to be slow when select multiple files 2017-11-02 23:47:07 +09:00
Cradmon
93e8468d92 Fix to issue #12554, due to error in refactoring in PR #10261 2017-11-01 11:31:13 +00:00
Cradmon
2aef4ce0fe Make file system dock more user friendly.
Edited files:
editor/filesystem_dock.h
editor/filesystem_dock.cpp
2017-10-22 15:41:52 +01:00
MillionOstrich
0939c0a9ce Add right click option to create folders. 2017-10-09 15:11:44 +01:00
MillionOstrich
40d1866b05 Rework DependencyRemoveDialog for deleting folders
DependencyRemoveDialog now takes two lists (files and folders) to delete.
Sort the folders above files in DependencyRemoveDialog & use some more icons.
Stop files which will be deleted from also being listed as having broken dependencies.
Add right-click option for removing folder to filesystem folder tree.
2017-10-09 15:10:40 +01:00
MillionOstrich
716e5b2943 Reworked rename & move for files & folders.
Move/rename don't depend on the path variable anymore.
Fixed dependencies not updating correctly when dragging folders in the folder tree.
Dependencies will only update for files which sucessfully moved.
Reduced code duplication between move & rename.
Added rename & move options to folders tree.
2017-10-09 15:07:36 +01:00
MillionOstrich
e1fb38e891 Can now right click folders in filesystem dock.
Disallow selecting ".." in the file-system dock.
Show In Explorer just uses this->path rather than trying to work it out from the item.
Add support for copy to path to folders .
Removed old commented out code.
2017-10-09 14:59:48 +01:00
Marcelo Fernandez
20918587d3 FileSystemDock will now remove files/dirs to trashcan using OS::move_to_trash 2017-09-25 21:49:01 -03:00
letheed
5ad9be4c24 Rename pos to position in user facing methods and variables
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.
2017-09-20 13:11:10 +02:00
Daniel J. Ramirez
957e85dcac Fixed a lot of HiDPI metrics. 2017-09-18 14:48:15 -05:00
Rémi Verschelde
8a6b023cb3 Merge pull request #11200 from SaracenOne/filesystem_tooltip_fix
Added missing file system display toggle button.
2017-09-13 20:20:48 +02:00
Rémi Verschelde
22d9e56c71 Merge pull request #11199 from SaracenOne/filesystem_dirs
Add option to always show directories in filesystem dock
2017-09-13 20:20:35 +02:00
Daniel J. Ramirez
3a05bdbaab Improved alternative size thumbnail generation 2017-09-12 13:16:47 -05:00
SaracenOne
cc6dce375f Added missing file system display toggle button. 2017-09-12 18:30:16 +01:00
SaracenOne
7b5a1f6481 Add option to always show directories in filesystem dock 2017-09-12 18:23:16 +01:00
Daniel J. Ramirez
e298f931a6 Fixed some metrics (some issues caused by the new Noto Sans font).
plus other minor fixes
2017-09-03 01:49:31 -05:00
Juan Linietsky
ce28452109 -Fixed EditorDirDialog, which was really old and needed to use EditorFileSystem
-Fixed refactoring tools to work with imported scenes (properly move .import files)
2017-09-03 00:24:36 -03:00
Rémi Verschelde
f00760b22c Merge pull request #10382 from toger5/dark_icons
Light Theme
2017-08-31 11:47:18 +02:00
toger5
7793bfc544 added icon updating to most ui elements 2017-08-30 21:47:09 +02:00
Juan Linietsky
181420f3b2 Added nice icon to show when a file is broken on import. 2017-08-29 20:17:59 -03:00
Rémi Verschelde
bd282ff43f Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
Andreas Haas
6134d8741d Editor: Add some more translatable strings. 2017-08-25 18:49:45 +02:00
Wilson E. Alvarez
738d2ab969 Removed unnecessary assignments 2017-08-21 15:15:55 -04:00
Rémi Verschelde
81dde2687f Merge pull request #10164 from djrm/pr_theme_fixes
Visual polishing
2017-08-10 10:46:05 +02:00
Daniel J. Ramirez
273d2ab9d4 Several ui improvements (mostly margins)
Improved colors

Added some missing icons
2017-08-08 11:44:37 -05:00
Thomas Herzog
12a2d7ee6e Merge pull request #10068 from Cradmon/fix-resource-docker-thumbnail-bug
Fix resource docker thumbnail bug
2017-08-07 23:05:09 +02:00
homer666
e32abe8072 Adjust FileSystem split mode's height threshold 2017-08-07 13:44:34 +10:00
Cradmon
b8a31d6563 Fix resource docker thumbnail bug 2017-08-04 20:11:17 +01:00
Rémi Verschelde
76005a8e75 Style: Apply clang-format on all files
Thus fixing some invalid changes that had still made it to the master branch.
2017-07-30 22:53:40 +02:00
Rémi Verschelde
e3aa9b5191 Merge pull request #9706 from djrm/theme_fixes
Icons can now be added inside line edits (Search icon).
2017-07-23 13:03:53 +02:00
Juan Linietsky
25678b1876 -Renamed GlobalConfig to ProjectSettings, makes more sense.
-Added system for feature overrides, it's pretty cool :)
2017-07-19 17:06:03 -03:00
Daniel J. Ramirez
95f55c8f0d Icons can now be added inside line edits (Search icon).
Fixed window title bar margins.

fixed compilation error
2017-07-19 13:23:16 -05:00
Daniel J. Ramirez
12db63df14 Added some missing icons, fixed some ui icons 2017-07-12 14:11:56 -05:00
Rémi Verschelde
231511b2a6 Merge pull request #8631 from volzhs/editor-theme-custom
New customizable editor theme
2017-05-20 07:16:11 +02:00
Juan Linietsky
98a3296702 Removal of Image from Variant, converted to a Resource. 2017-05-17 07:37:45 -03:00
volzhs
bb81293047 New customizable editor theme 2017-05-09 17:46:54 +09:00
volzhs
17e8e343fb Revert "Add new editor and default theme (WIP)"
This reverts commit f045efe007.
2017-05-03 06:19:15 +09:00
volzhs
be454ba2d6 Update editor theme 2017-04-28 11:01:17 +09:00
Rémi Verschelde
d730ee66a4 Merge pull request #8515 from attilix/folder-file-manager
Right-clicking a folder now gives the option Show in file manager
2017-04-27 08:11:05 +02:00
Daniel J. Ramirez
f045efe007 Add new editor and default theme (WIP) 2017-04-27 08:04:57 +02:00
Attilio Oliva
0af6c39f36 Right-clicking a folder in the FileSystem panel now gives the option Show in file manager 2017-04-24 22:18:24 +02:00
Sergey Pusnei
8589ca3903 Rename [gs]et_pos to [gs]et_position for Controls
Control set_pos -> set_position
Control set_global_pos -> set_global_position
[gs]et_mouse_pos -> [gs]et_mouse_position
[gs]et_global_mouse_pos -> [gs]et_global_mouse_position
fixes #8005
2017-04-10 08:27:34 +02:00
Rémi Verschelde
df61dc4b2b Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
Martin Novak
9aa60ff15f Fix typo which caused popup to display on incorrect coordinates. 2017-04-05 00:31:17 +02:00
Rémi Verschelde
5dbf1809c6 A Whole New World (clang-format edition)
I can show you the code
Pretty, with proper whitespace
Tell me, coder, now when did
You last write readable code?

I can open your eyes
Make you see your bad indent
Force you to respect the style
The core devs agreed upon

A whole new world
A new fantastic code format
A de facto standard
With some sugar
Enforced with clang-format

A whole new world
A dazzling style we all dreamed of
And when we read it through
It's crystal clear
That now we're in a whole new world of code
2017-03-05 16:44:50 +01:00
Rémi Verschelde
49c065d29c Refactoring: rename tools/editor/ to editor/
The other subfolders of tools/ had already been moved to either
editor/, misc/ or thirdparty/, so the hiding the editor code that
deep was no longer meaningful.
2017-03-05 14:21:25 +01:00
Renamed from tools/editor/filesystem_dock.cpp (Browse further)