|
wxMaxima
|
Declares SaveAsDefaults(), what the "Save As" dialog starts out with. More...
#include <wx/string.h>Go to the source code of this file.
Data Structures | |
| struct | SaveAsDefault |
| The file name and file type the "Save As" dialog is opened with. More... | |
Functions | |
| SaveAsDefault | SaveAsDefaults (const wxString ¤tFile, const wxString &defaultExt, const wxString &untitled) |
| What the "Save As" dialog proposes for a document. | |
Declares SaveAsDefaults(), what the "Save As" dialog starts out with.
| SaveAsDefault SaveAsDefaults | ( | const wxString & | currentFile, |
| const wxString & | defaultExt, | ||
| const wxString & | untitled | ||
| ) |
What the "Save As" dialog proposes for a document.
The proposed name always carries its extension, which has to agree with the file type the dialog shows (GH #2440). If it had none, wxGTK's wxFileDialog would append the extension of the first file type to it on construction, and choosing a different type with SetFilterIndex() later doesn't change the name again. A .wxm document was therefore proposed as name.wxmx while the dialog said *.wxm, and saved as a .wxmx. Neither does picking another file type in GTK's dialog rename the file: there the file type only filters what the dialog lists.
| currentFile | The document's file name, empty for an untitled one. |
| defaultExt | The extension of the last document saved, for an untitled document. |
| untitled | The (translated) name of an untitled document. |