Closed bluescan closed 1 year ago
The save filetypes in particular suffer from a switch on an int. There is no need to have this as there is now a managed list of filetypes supporting save.
The cfg now saves filetypes based in the filetype name (not an int) and there is a tExtensions onject that holds all saveable types in a single location.
The file dialog currently has the extension filter hardcoded. May need functionality in tacent to go from filetype back to associated extensions. Add 'CanLoad' (os maybe 'GetLoadableExtensions') and 'CanSave' (or GetSaveableExtensions) to the Image class (similar to tPicture).
Then will need to generate the filter from the functions above.