summaryrefslogtreecommitdiffstats
path: root/editor/editor_file_dialog.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix crashes in *_input functionsRafał Mikrut2021-04-051-0/+2
|
* trims_whitespaces_when_creating_folder_windowsPop0p2021-03-131-2/+2
| | | | When creating a Windows folder via a Godot's dialog, the extra spaces are not removed which causes problems with Windows. We now remove leading and trailing whitespace when creating a dir.
* Merge pull request #38994 from nikibobi/fix-file-dialog-favoriteRémi Verschelde2021-02-191-1/+0
|\ | | | | Fix file dialog filename cleared when selecting favorites
| * fix file dialog filename cleared when selecting favoritesBorislav Kosharov2020-05-241-1/+0
| |
* | Merge pull request #42779 from volzhs/editor-file-dialogRémi Verschelde2021-01-031-11/+23
|\ \ | | | | | | Enhance editor file dialog
| * | Enhance editor file dialogvolzhs2021-01-021-11/+23
| | | | | | | | | | | | | | | | | | | | | 1. show valid directory path when opening editor file dialog 2. keep file name when changing path by entering path 3. add first extension in filter automatically if not given 4. remove directory in recent list if it's not valid anymore
* | | Update copyright statements to 2021Rémi Verschelde2021-01-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 🎆
* | | Merge pull request #44569 from madmiraal/rename-unselect-deselectRémi Verschelde2020-12-281-4/+4
|\ \ \ | | | | | | | | Rename unselect to deselect
| * | | Rename unselect to deselectMarcel Admiraal2020-12-211-4/+4
| | | |
* | | | Rename empty() to is_empty()Marcel Admiraal2020-12-281-3/+3
|/ / /
* | | Rename AcceptDialog get_ok() to get_ok_button()Marcel Admiraal2020-12-141-16/+16
| | | | | | | | | | | | | | | | | | Also renames: - AcceptDialog add_cancel() to add_cancel_button() - ConfirmationDiaglog get_cancel() to get_cancel_button()
* | | [Complex Text Layouts] Refactor Font class, default themes and controls to ↵bruvzg2020-11-261-5/+18
| | | | | | | | | | | | | | | | | | | | | | | | use Text Server interface. Implement interface mirroring. Add TextLine and TextParagraph classes. Handle UTF-16 input on macOS and Windows.
* | | Reorganized core/ directory, it was too fatty alreadyreduz2020-11-071-1/+1
|/ / | | | | | | | | | | -Removed FuncRef, since Callable makes it obsolete -Removed int_types.h as its obsolete in c++11+ -Changed color names code
* | Update the setting when clicking Show hidden filesTomasz Chabora2020-10-061-5/+8
| |
* | Updated getters and setters names for toplevelDuroxxigar2020-10-021-1/+1
| |
* | Rename the ".import" folder to ".godot/imported"Aaron Franke2020-09-281-1/+1
| |
* | Small naming and tooltip tweaksMichael Alexsander2020-07-231-1/+1
| |
* | Resize dialogs (FileDialog, EditorFileDialog, Reparent, SceneTreeDialog and ↵Stijn Hinlopen2020-07-141-0/+4
| | | | | | | | resource depency dialogs).
* | Change how default fonts are created, fixes #39235Juan Linietsky2020-07-031-1/+1
| | | | | | | | Also fixes file dialog icons.
* | Remove String::find_last (same as rfind)Stijn Hinlopen2020-07-031-2/+2
| |
* | Remove ToolButton in favor of ButtonHugo Locurcio2020-06-191-10/+20
|/ | | | | | | | | | | 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.
* Style: Enforce braces around if blocks and loopsRémi Verschelde2020-05-141-45/+86
| | | | | Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
* Style: Enforce separation line between function definitionsRémi Verschelde2020-05-141-0/+9
| | | | | | | | | | | | | | | | | | | | | | | 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.
* Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde2020-05-141-106/+0
| | | | | | | | | | | | | | 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.
* Style: clang-format: Disable AllowShortIfStatementsOnASingleLineRémi Verschelde2020-05-101-1/+2
| | | | | | | Part of #33027, also discussed in #29848. Enforcing the use of brackets even on single line statements would be preferred, but `clang-format` doesn't have this functionality yet.
* Merge pull request #37592 from Anutrix/dissolving_classRémi Verschelde2020-04-071-39/+0
|\ | | | | Dissolving class EditorLineEditFileChooser into EditorAutoloadSettings.
| * Dissolving class EditorLineEditFileChooser into EditorAutoloadSettings.unknown2020-04-051-39/+0
| |
* | Fixes leaks when running editorqarmin2020-04-061-0/+1
|/
* Replace NULL with nullptrlupoDharkael2020-04-021-4/+4
|
* Popups are now windows also (broken!)Juan Linietsky2020-03-261-39/+39
|
* Working multiple window support, including editorJuan Linietsky2020-03-261-102/+102
|
* Effective DisplayServer separation, rename X11 -> LinuxBSDJuan Linietsky2020-03-261-1/+2
|
* Merge pull request #36069 from RandomShaper/imvu/improve_drives_uxRémi Verschelde2020-03-041-4/+18
|\ | | | | Improve UX of drive letters
| * Improve UX of drive lettersPedro J. Estébanez2020-03-031-4/+18
| | | | | | | | | | | | | | | | | | | | Namely, move the drive dropdown to just the left of the path text box and don't include the former in the latter. This improves the UX on Windows. In the UNIX case, since its concept of drives is (ab)used to provide shortcuts to useful paths, its dropdown is kept at the original location.
* | Merge pull request #36699 from dreamsComeTrue/fix-extension-file-dialogRémi Verschelde2020-03-041-1/+1
|\ \ | | | | | | Take correct part of extension with File Dialog
| * | Take correct part of extension with File DialogDominik 'dreamsComeTrue' Jasiński2020-03-011-1/+1
| |/ | | | | | | Fixes #36697
* / Double click on a folder didn't open it (editor)Gil Arasa Verge2020-03-031-0/+1
|/ | | | | | | Same behavior as #36684. Removed by mistake in #36426. Fixes #36757.
* Signals: Port connect calls to use callable_mpRémi Verschelde2020-02-281-59/+31
| | | | | | | | | 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.)
* Reworked signal connection system, added support for Callable and Signal ↵Juan Linietsky2020-02-201-31/+31
| | | | objects and made them default.
* PoolVector is gone, replaced by VectorJuan Linietsky2020-02-181-2/+2
| | | | | Typed `PoolTypeArray` types are now renamed `PackedTypeArray` and are sugar for `Vector<Type>`.
* Texture refactorJuan Linietsky2020-02-111-11/+11
| | | | | | | | -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
* Update copyright statements to 2020Rémi Verschelde2020-01-011-2/+2
| | | | | | | | | | | 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.
* Fixed issues with using a relative path in the export window.Catchawink2019-12-161-0/+2
| | | | Before this fix, opening relative export paths inside of an EditorFileDialog was not possible. This was fixed by modifying String::path_to_file() to save relative paths in EditorExportPreset::set_export_path() more appropriately and changing EditorFileDialog::set_current_dir() to open relative paths.
* Add spaces after commas and strip extra ones in *FileDialog filter menuMichael Alexsander2019-12-061-2/+2
|
* Remove extra spaces from parenthesis in *FileDialog's filter menuMichael Alexsander2019-12-061-3/+3
|
* Merge pull request #33091 from MCrafterzz/fix10567Rémi Verschelde2019-10-291-6/+12
|\ | | | | Improved project creation UX
| * Improved UX of selecting directories in (Editor)FileDialog by hiding unused ↵MCrafterzz2019-10-291-6/+12
| | | | | | | | gui elements and moving the drive selection
* | Scroll back to the top after opening a directory in FileDialogHugo Locurcio2019-10-241-0/+3
|/ | | | | | This also changes the behavior in EditorFileDialog. This closes #26041.
* Create new folder from save dialog now update filesystem dock.dankan18902019-09-261-1/+2
| | | | Fix #32167.
* Rename FileDialog's folder icon custom color to `folder_icon_modulate`Hugo Locurcio2019-08-211-3/+3
| | | | | | | | The custom color introduced in be8d569744e4eed9acb313d355d96e6989e92087 had the same name as the "folder" icon, which could cause conflicts in the generated documentation. The new name is also more self-explanatory.