Commit Graph

13 Commits

Author SHA1 Message Date
Ansgar Becker
cf9ed85900 fix: work around empty space artifact in ShellListView
https://forum.lazarus.freepascal.org/index.php/topic,72895.0.html
2025-12-02 20:23:19 +01:00
Ansgar Becker
b488ca23ae fix: confusion with (selected) folder icons 2025-12-02 14:34:46 +01:00
Ansgar Becker
b4c0566635 feat: display some known file type icons in file open/save dialog 2025-12-01 16:19:34 +01:00
Ansgar Becker
13a0127d69 fix: Error: (4004) Variable identifier expected
Refs #2268
2025-11-30 14:02:32 +01:00
Ansgar Becker
3094d79c52 feat: use custom folder icons in tree on file dialogs, in non-Windows mode
Refs #2268
2025-11-30 13:58:25 +01:00
Ansgar Becker
34e3f32a07 fix: some remaining issues in the new file-open/save dialogs
* add missing support for ofFileMustExist, by default enabled in TExtFileOpenDialog
* store and restore previously selected path
* support single FileName when MultiSelect is true
* avoid setting unwanted tree path when caller provides an empty FileName or InitialDir
* set different default form caption for open + save mode (todo: include lclstrconsts translation files in packages)

Refs #2268
2025-11-29 14:17:14 +01:00
Ansgar Becker
ec4c237cae fix: work around out-of-view item in left tree after FormShow
Also, remove error dialog when InitialDir is an invalid path. Climb up path until it's valid.

Refs #2268
2025-11-28 15:24:03 +01:00
Ansgar Becker
98b796b688 feat: support click on path parts on top label of file dialog
Refs #2268
2025-11-28 13:11:09 +01:00
Ansgar Becker
4a8c53c4e0 feat: convert all save/open dialogs to the new custom one
* TOpenDialog => TExtFileOpenDialog
* TSaveDialog => TExtFileSaveDialog
* show encodings and linebreaks only when the caller sets data for these
* show selected path from tree in label at top
* support DefaultExt string
* support OnTypeChange event
* disallow changing tree folder for ofNoChangeDir
* catch EInvalidPath in SetInitialDir
* show hidden folders in tree
* enable sorting in file listing

Refs #2268
2025-11-28 10:17:23 +01:00
Ansgar Becker
91de2fc30d fix: prompt to overwrite only if file exists
Refs #2268
2025-11-27 19:43:51 +01:00
Ansgar Becker
d5d34add5f feat: create file-save dialog with linebreaks selector
Refs #2268
2025-11-26 16:10:47 +01:00
Ansgar Becker
56b783d829 fix: add encoding selector to file-open dialog
Refs #2268
2025-11-26 12:55:28 +01:00
Ansgar Becker
bac0d7a585 feat: recreate basic TExtFileOpenDialog without OS owned dialog and room for customization
Refs #2268
2025-11-25 21:33:43 +01:00