summaryrefslogtreecommitdiffstats
path: root/editor/editor_file_dialog.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Use "enum class" for input enumsAaron Franke2021-11-121-15/+15
|
* Merge pull request #52711 from m4gr3d/provide_getter_for_project_data_dir_masterRémi Verschelde2021-10-051-1/+1
|\
| * Provide a getter for the project data directory.ne0fhyk2021-09-151-1/+1
| |
* | Merge pull request #51920 from ↵Rémi Verschelde2021-09-231-1/+1
|\ \ | |/ |/| | | jmb462/missing-sname-macro-optimization-in-some-functions
| * Add missing SNAME macro optimization for StringName in some functionsjmb4622021-08-201-1/+1
| |
* | Rename String::is_rel_path to String::is_relative_pathWilson E. Alvarez2021-08-291-1/+1
| |
* | Entirely removes BIND_VMETHOD in favor of GDVIRTUALreduz2021-08-231-3/+1
| | | | | | | | | | | | | | | | * `_gui_input`, `_input`, `_unhandled_input` and `_unhandled_key_input` are now regular C++ virutal functions. * Everything else converted to GDVIRTUAL * BIND_VMETHOD is gone, always use the new syntax from now on. Creating `_gui_input` method and using the binder to register events will no longer work, simply override the virtual function now.
* | Fix ItemList layout (+EditorFileDialog)Hendrik Brucker2021-08-211-0/+2
|/
* Use const references where possible for List range iteratorsRémi Verschelde2021-07-251-1/+1
|
* Use C++ iterators for Lists in many situationsAaron Franke2021-07-231-2/+2
|
* Optimize StringName usagereduz2021-07-181-46/+46
| | | | | | | | | | | * 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.
* Add header theme type variations to labelskobewi2021-07-131-4/+17
|
* Rename `instance()`->`instantiate()` when it's a verbLightning_A2021-06-191-1/+1
|
* Documentation search fixesGregory Basile2021-06-161-4/+4
| | | | | | Updates rich_text_label so that the built-in documentation can be searched Previously, it would only find the first result and would not select other results Renames "_entered" functions to "_submitted"
* Remove trailing slash from recent dir if neededPaweł Fertyk2021-06-141-0/+3
|
* Core: Move DirAccess and FileAccess to `core/io`Rémi Verschelde2021-06-111-1/+1
| | | | | File handling APIs are typically considered part of I/O, and we did have most `FileAccess` implementations in `core/io` already.
* 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.