Commit Graph

293 Commits (cb1569345a6f17da08241e645ab03cb2e1b78d2f)

Author SHA1 Message Date
Thaddeus Crews 3cc90cd925
Merge pull request #110524 from paul-marechal/filedialog-windows-fix
Fix file_dialog's root_subfolder on Windows
2025-11-13 17:43:03 +07:00
Thaddeus Crews eff2f822a1
Merge pull request #111439 from bruvzg/fd_filt_add
Add MIME argument to the `FileDialog.add_filter`.
2025-10-21 10:27:07 +07:00
Thaddeus Crews 43438fec2a
Merge pull request #111529 from wagnerfs/fix-windows-native-filedialog-filters
Fix Windows native FileDialog filters not showing descriptions
2025-10-13 12:30:05 +07:00
Wagner f835707f7a Fix Windows native FileDialog filters not showing descriptions 2025-10-12 16:22:45 +07:00
kobewi 263a2bdec6 Rework FileDialog shortcuts 2025-10-11 14:37:40 +07:00
Pāvels Nadtočajevs e4988b4bf3
Add MIME argument to the `FileDialog.add_filter`. 2025-10-09 22:17:56 +07:00
Thaddeus Crews 30a0a41982
Merge pull request #111274 from chocola-mint/include-optimization-logger
Remove `file_access.h` and `script_backtrace.h` includes from `logger.h`.
2025-10-06 09:06:32 +07:00
chocola-mint ead282ff13 Remove `file_access.h` and `script_backtrace.h` includes from `logger.h`. 2025-10-05 17:49:23 +07:00
Paul Marechal 375f88d161 Fix file_dialog's root_subfolder on Windows
`root_prefix` either contains an empty string or the current root
including the drive letter. This means that the previous logic would
never ever match since `dir_access->get_current_dir(false)` explicitly
excludes the drive letter.

This change removes this boolean parameter so we compare paths in a way
that can match.

I've had a look at the implementations for other platforms for
`DirAccess::get_current_dir(bool include_drive)` and outside Windows
none seem to consider the `include_drive` parameter which makes me
believe that this change won't break other platforms.
2025-10-03 14:45:37 +07:00
kobewi 9af58c1133 Unify FileDialog context menus 2025-10-02 23:10:27 +07:00
kobewi fdc79f5286 Remaining FileDialog changes before unification 2025-10-02 19:13:04 +07:00
kobewi f88b51995b Expose FileDialog callbacks for getting custom icons 2025-10-01 12:08:34 +07:00
kobewi 3615b188d7 Expose methods to access FileDialog's favorite/recent lists 2025-09-30 22:46:09 +07:00
Thaddeus Crews be421bcdd4
Merge pull request #110250 from YeldhamDev/i_just_cant_keep_focused
Hide `Control` focus when given via mouse input
2025-09-22 13:28:44 +07:00
Thaddeus Crews c852872cb2
Merge pull request #108804 from bruvzg/mac_bundle_icon
[macOS] Use "file" icon for bundles in the file dialogs.
2025-09-22 08:50:02 +07:00
Michael Alexsander aeb3a45c97
Hide `Control` focus when given via mouse input 2025-09-19 13:43:29 +07:00
Thaddeus Crews 9812d405b8
Merge pull request #109354 from KoBeWi/ETRC
Fix some localization issues in controls
2025-08-18 08:29:09 +07:00
Anish Mishra 5bcf9a5a57 Fix drive selection issue on Android 2025-08-11 21:47:00 +07:00
kobewi 4ed86d347c Fix some localization issues in controls 2025-08-06 14:50:03 +07:00
Pāvels Nadtočajevs 37ae7d4420
[macOS] Use "file" icon for bundles in the file dialogs. 2025-07-20 20:44:33 +07:00
Pāvels Nadtočajevs a272376f89
Cleanup accessibility names. 2025-06-23 11:08:36 +07:00
Haoyu Qiu 0a1fa10315 Fix game view window not updating title when translation changes 2025-06-16 09:35:25 +07:00
Rémi Verschelde 22702244f8
Merge pull request #105414 from KoBeWi/disable_uid_here
Add `@export_file_path` to export raw paths (no UID)
2025-06-13 01:30:24 +07:00
kobewi 4b1d5b55c7 Allow customizing FileDialog's features 2025-06-11 20:12:15 +07:00
Thaddeus Crews 51b17759a2
Merge pull request #103719 from YeldhamDev/build_detection_improvements
Make build profile project detection also set build options
2025-06-03 15:30:14 +07:00
Michael Alexsander 454e4f817c
Make build profile project detection also set build options 2025-06-03 11:11:33 +07:00
kobewi 706bfd810b Add thumbnail mode to FIleDialog 2025-06-03 02:06:14 +07:00
kobewi f75c564d58 Add favorites and recent directories to FileDialog 2025-05-29 15:50:29 +07:00
kobewi 42249bb659 Add @export_file_path to export raw paths (no UID) 2025-05-22 13:25:17 +07:00
Thaddeus Crews 1e50e05235
Merge pull request #105723 from KoBeWi/sortatron
Add file sort to FileDialog
2025-05-16 07:43:13 +07:00
kobewi 33dcd7a6d9 Add file sort to FileDialog 2025-05-15 13:23:38 +07:00
kobewi 076608c979 Improve default OK text in AcceptDialog 2025-05-14 23:08:22 +07:00
Thaddeus Crews a2c9e7920d
Merge pull request #105647 from KoBeWi/optional_options
Improve FileDialog options
2025-05-06 08:38:01 +07:00
kobewi 7fe61c7e84 Change FileDialog's Tree to ItemList 2025-05-03 01:34:35 +07:00
kobewi 92f15d33ee Improve FileDialog options 2025-04-24 17:12:53 +07:00
kobewi e565ee86ce FileDialog code cleanup 2025-04-23 19:28:14 +07:00
Pāvels Nadtočajevs 5b49fd4207
Selectively apply `FOCUS_ACCESSIBILITY` to the `Label`s instead of setting it by default. 2025-04-23 12:47:31 +07:00
A Thousand Ships 889410dcda
Add `String::replace_char(s)` methods for performance and convenience 2025-04-10 13:08:45 +07:00
Pāvels Nadtočajevs b106dfd4f9
Base accessibility API. 2025-04-08 20:14:28 +07:00
kobewi 83ee5e8556 Fix wrong translation method in FileDialog 2025-04-03 20:40:09 +07:00
Yufeng Ying 4f4031a675 Replace size() == 0 with is_empty(). 2025-04-02 19:18:43 +07:00
kobewi 4ae87afaf6 Rework AcceptDialog's ok button text 2025-03-11 22:52:50 +07:00
A Thousand Ships 466590d0ec
Use `get_slicec` instead of `get_slice` for single character splitters 2025-03-08 20:36:37 +07:00
A Thousand Ships 5113022dfe
Clean up some uses of `String::substr`
Cases where the end position is either equvalent to the default or past
the end of the string.
2025-03-07 14:50:38 +07:00
bruvzg 3e4e6e6c0c Improve native file dialog parent window selection. 2025-03-06 17:15:39 +07:00
bruvzg 1bdf84b31c Sync native and embedded dialog missing extension handling. 2025-02-14 00:15:04 +07:00
Pāvels Nadtočajevs ecff011671 [FileDialog] Update filename/buttons state when first item is selected on folder/filter change. 2025-02-11 11:18:23 +07:00
Pāvels Nadtočajevs adceb32177 Fix FILE_MODE_OPEN_ANY file dialog not selecting folders. 2025-01-27 10:43:11 +07:00
Pāvels Nadtočajevs e1f129cb52 Support MIME types in file dialog filters on macOS and Linux. 2025-01-04 22:05:35 +07:00
Yufeng Ying 73d85f46c9 Remove unused headers in scene.
Co-authored-by: Thaddeus Crews <repiteo@outlook.com>

Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
2024-12-24 00:40:09 +07:00