summaryrefslogtreecommitdiffstats
path: root/scene/gui/file_dialog.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Merge pull request #62827 from fire-forge/ok-cancelRémi Verschelde2022-07-131-8/+8
|\ | | | | Add `ok_button_text` to AcceptDialog and `cancel_button_text` to ConfirmationDialog
| * Add ok_button_text to AcceptDialog and cancel_button_text to ConfirmationDialogFireForge2022-07-091-8/+8
| |
* | Seperate filter and description in FileDialog.add_filter()FireForge2022-07-091-3/+7
|/
* Fix FileDialog file name autocompletion with filtersThakee Nathees2022-07-041-1/+6
| | | | Fixes #38195.
* Add root_subfolder to FileDialogkobewi2022-06-281-24/+54
|
* Replace some TTRCs with TTRskobewi2022-06-221-23/+23
|
* Capitalize/fix some property enum hintsFireForge2022-05-121-1/+1
|
* Implement Label3D node.bruvzg2022-04-221-3/+3
| | | | | | | | | Add "generate_mipmap" font import option. Add some missing features to the Sprite3D. Move BiDi override code from Control to TextServer. Add functions to access TextServer font cache textures. Add MSDF related flags and shader to the standard material. Change standard material cache to use HashMap instead of Vector.
* Make FileAccess and DirAccess classes reference counted.bruvzg2022-04-111-2/+0
|
* [Input] Add extra `shortcut_input` input processing step to process Unicode ↵bruvzg2022-04-051-3/+3
| | | | character input with Alt / Ctrl modifiers, after processing of shortcuts.
* Merge pull request #54399 from ↵Rémi Verschelde2022-03-121-3/+3
|\ | | | | | | | | Calinou/filedialog-current-properties-hint-no-editor Don't store and show current file/directory/path FileDialog properties
| * Don't store and show current file/directory/path FileDialog propertiesHugo Locurcio2021-10-291-3/+3
| | | | | | | | | | These properties are only useful at run-time, so they don't need to be displayed in the editor and stored.
* | Allow negative indexes in ItemList and PopupMenukobewi2022-03-121-1/+1
| |
* | Allow absolute file paths in file dialogsmiremrie2022-03-021-1/+2
| |
* | Use `switch` consistently in `_notification` (`scene` folder)Rémi Verschelde2022-02-151-20/+24
| |
* | Revert "Add missing SNAME macro optimization to all theme methods call"Rémi Verschelde2022-02-081-24/+24
| | | | | | | | | | | | | | | | This reverts commit a988fad9a092053434545c32afae91ccbdfbe792. As discussed in #57725 and clarified in #57788, `SNAME` is not meant to be used everywhere but only in critical code paths. For theme methods specifically, it was by design that only getters use `SNAME` and not setters.
* | Add missing SNAME macro optimization to all theme methods calljmb4622022-02-061-24/+24
| |