summaryrefslogtreecommitdiffstats
path: root/scene/gui/file_dialog.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [Scene] Add `SceneStringNames::confirmed`A Thousand Ships2024-06-191-3/+3
|
* [Scene] Add `SceneStringNames::item_selected`A Thousand Ships2024-06-191-3/+3
|
* Fix native file dialogs being shown on `set_visible(false)`Anni Ryynänen2024-06-091-1/+3
|
* [Scene] Add SceneStringNames::pressedA Thousand Ships2024-05-141-5/+5
|
* Fix PropertyListHelper::_get_property returning a valid value even if an ↵Gilles Roudière2024-05-101-0/+1
| | | | | | index is outside the array valid indices Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com>
* Expose is_part_of_edited_scene()kobewi2024-04-261-1/+1
|
* Add PropertyListHelper in all simple caseskobewi2024-04-111-46/+9
|
* Fix built-in `FileDialog` appearing instead of the native one on some casesMichael Alexsander2024-04-061-0/+26
|
* [Native File Dialog] Add support for using native dialogs in the editor.bruvzg2024-03-281-63/+64
|
* [DisplayServer] Add separate feature flags for different native dialog types.bruvzg2024-03-261-2/+2
|
* Correct FileDialog Theme overridesAlistair Leslie-Hughes2024-03-241-4/+4
| | | | | | Introduced in 15fd025f900 Fixes #89818
* Fix sorting of files/dirs in dialogsA Thousand Ships2024-03-201-2/+2
| | | | Sorts leading `_` before other characters except `.`.
* Add Ctrl + L / Cmd + Shift + G shortcut to focus path bar in FileDialogHugo Locurcio2024-03-051-0/+21
| | | | | | | | | | This also tweaks EditorFileDialog to use the same shortcut, while making it select the path text after focusing (like in most file managers). Ctrl + L / Cmd + Shift + G can also now be used to focus on the property name in the project settings editor, as well in the Input Map, Autoload, Shader Globals and Global Groups tabs.
* Add option to add built-in strings in the POT generationMichael Alexsander2024-02-281-31/+31
|
* Add create folder iconAdam Scott2024-02-261-1/+11
|
* [Native File Dialog] Add support for adding custom options to the dialogs.bruvzg2024-01-241-8/+274
| | | | Add support for adding custom options (checkboxes and optionboxes) to the dialogs (both native and built-in).
* Add const references detected by clang-tidyWilson E. Alvarez2023-12-161-1/+1
|
* Add bulk change guards to successive theme overrides in Editor and GUIYuri Sizov2023-10-191-0/+10
|
* Merge pull request #81034 from garychia/open_folderRémi Verschelde2023-10-101-1/+1
|\ | | | | | | FileDialog: Avoid selecting the first item automatically in Open Folder Mode
| * Avoid selecting the first item automatically in Open Folder ModeChia-Hsiang Cheng2023-08-271-1/+1
| |
* | Merge pull request #82743 from bruvzg/fd_no_editorRémi Verschelde2023-10-041-0/+13
|\ \ | | | | | | | | | [File Dialog] Do not open native file dialogs in the edited scene.
| * | [File Dialog] Do not open native file dialogs in the edited scene.bruvzg2023-10-031-0/+13
| | |
* | | [Native File Dialogs] Improve filter list handling, add selected filter to ↵bruvzg2023-10-031-1/+2
|/ / | | | | | | the callback.
* | [FileDialog] Make set_visible compatible with native dialogs.bruvzg2023-09-301-0/+10
| |
* | Replace flat buttons with flat-styled buttons with a visible pressed stateYuri Sizov2023-09-191-5/+5
| |
* | Hide the `dialog_text` property from `FileDialog`Yuri Sizov2023-09-111-0/+7
| | | | | | | | | | | | It's useless in `FileDialog`, because dialogs can have either a text label or a custom layout, and `FileDialog` already has a custom layout.
* | Register theme properties with ThemeDBYuri Sizov2023-09-111-22/+19
|/
* [Windows] Implement native file selection dialog support.bruvzg2023-07-181-5/+5
|
* [macOS] Implement optional native file selection dialog support for ↵bruvzg2023-07-121-0/+43
| | | | sandboxed apps.
* Update FileDialog button activity when file_mode is changed.HolonProduction2023-07-081-0/+2
|
* Defer invalidation on FileDialog nodesMichael Alexsander2023-03-251-8/+17
|
* Add a custom icon for the `project.godot` file in the EditorFileDialogYuri Sizov2023-02-171-1/+0
|
* Prevent saving files with no name and only an extension.Nong Van Tinh2023-02-171-4/+5
| | | | | | Fixes #69768. Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
* One Copyright Update to rule them allRémi Verschelde2023-01-051-29/+29
| | | | | | | | | | | | | | | | | | | | As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
* Fix file dialog crash on forward click when history is empty.bruvzg2023-01-031-1/+1
|
* Remove auto selecting the first file for FileDialog with Save file mode selectedDawid Marzec2022-11-131-2/+5
|
* Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg2022-10-071-4/+4
| | | | change warnings=all to use /W4.
* Fix MSVC warning C4706: assignment within conditional expressionRémi Verschelde2022-09-281-4/+6
| | | | Part of #66537.
* Fix key mapping changes when moving from macOS to other platformbruvzg2022-09-071-1/+1
| | | | | Removes separate `Command` key (use `Meta` instead). Adds an event flag to automatically remap `Command` <-> `Control` (cannot be set alongside `Control` or `Meta`).
* Fix file list in FileDialog not updating on first runRindbee2022-09-071-4/+2
|
* Improve naming of theme properties throughout GUI codeYuri Sizov2022-09-061-6/+6
| | | | | | | | | | | | | | Rename ItemList's bg -> panel Rename ItemList's bg_focus -> focus Rename ProgressBar's bg -> background Rename ProgressBar's fg -> fill Rename Tree's bg -> panel Rename Tree's bg_focus -> focus Rename ScrollContainer's bg -> panel Rename FileDialog's *_icon_modulate -> *_icon_color Rename FileDialog's files_disabled -> file_disabled_color Rename CheckButton's on/off -> checked/unchecked Rename check_v_adjust -> check_v_offset
* Add dumb and manual theme caching systems to WindowYuri Sizov2022-09-011-49/+58
|
* Rename String `plus_file` to `path_join`Aaron Franke2022-08-291-8/+8
|
* Revert "Remove NOTIFICATION_ENTER_TREE when paired with ↵Rémi Verschelde2022-08-291-47/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NOTIFICATION_THEME_CHANGED" This reverts commit 4b817a565cab8af648c88cfc7ab6481e86ee3625. Fixes #64988. Fixes #64997. This caused several regressions (#64988, #64997, https://github.com/godotengine/godot/issues/64997#issuecomment-1229970605) which point at a flaw in the current logic: - `Control::NOTIFICATION_ENTER_TREE` triggers a *deferred* notification with `NOTIFCATION_THEME_CHANGED` as introduced in #62845. - Some classes use their `THEME_CHANGED` to cache theme items in member variables (e.g. `style_normal`, etc.), and use those member variables in `ENTER_TREE`, `READY`, `DRAW`, etc. Since the `THEME_CHANGE` notification is now deferred, they end up accessing invalid state and this can lead to not applying theme properly (e.g. for EditorHelp) or crashing (e.g. for EditorLog or CodeEdit). So we need to go back to the drawing board and see if `THEME_CHANGED` can be called earlier so that the previous logic still works? Or can we refactor all engine code to make sure that: - `ENTER_TREE` and similar do not depend on theme properties cached in member variables. - Or `THEME_CHANGE` does trigger a general UI update to make sure that any bad theme handling in `ENTER_TREE` and co. gets fixed when `THEME_CHANGE` does arrive for the first time. But that means having a temporary invalid (and possibly still crashing) state, and doing some computations twice which might be heavy (e.g. `EditorHelp::_update_doc()`).
* Merge pull request #64885 from Mickeon/rename-tooltip-hintRémi Verschelde2022-08-281-5/+5
|\ | | | | Rename `hint_tooltip` to `tooltip_text` & setter getter
| * Rename `hint_tooltip` to `tooltip_text` & setgetMicky2022-08-271-5/+5
| | | | | | | | | | | | | | | | `hint_tooltip` -> `tooltip_text` `set_tooltip` -> `set_tooltip_text` `_get_tooltip` -> `get_tooltip_text` Updates documentation, too.
* | Remove NOTIFICATION_ENTER_TREE when paired with NOTIFICATION_THEME_CHANGEDAaron Record2022-08-271-51/+47
|/
* Add some codes, returnes directly if the value is not changed.风青山2022-08-231-1/+13
| | | | Avoid executing the following value-changed logics if the value does not really change.
* Remove Signal connect bindsJuan Linietsky2022-07-291-3/+3
| | | | | Remove the optional argument p_binds from `Object::connect` since it was deprecated by Callable.bind(). Changed all uses of it to Callable.bind()
* Rename Control PRESET_WIDE to PRESET_FULL_RECTFireForge2022-07-181-1/+1
|