The FXFileDialog standard dialog now has an additional constructor (which takes a pointer to the FXApp as its first argument) so that it can be constructed as a "free-floating" dialog box.
Added the getMatchMode() and setMatchMode() member functions, to get or set the wildcard matching mode. The matching mode should be some combination of the flags FILEMATCH_FILE_NAME, FILEMATCH_NOESCAPE, FILEMATCH_PERIOD, FILEMATCH_LEADING_DIR and FILEMATCH_CASEFOLD.
The overloaded version of setPatternList() which took a NULL-terminated list of name and pattern pairs as its input has been removed for safety reasons. If you were using this version of setPatternList(), which might look something like this:
FXchar **patterns = {
{ "All BMP Files", "*.bmp" },
{ "All JPEG Files", "*.jpg,*.jpeg" },
( "All Files", "*.*" },
{ NULL, NULL }
};
filedialog->setPatternList(patterns);
|
you should replace it with code more like this:
FXString patterns = "All BMP Fules (*.bmp)\n" +
"All JPEG Files (*.jpg,*.jpeg)\n" +
"All Files (*.*)";
filedialog->setPatternList(patterns); |
Note that for this version of setPatternList(), the single string input argument contains any number of patterns separated by newline ('\n') characters.