|
| | Pimpl (FileBasedDocument &parent_, const String &fileExtension_, const String &fileWildcard_, const String &openFileDialogTitle_, const String &saveFileDialogTitle_) |
| bool | hasChangedSinceSaved () const |
| void | setChangedFlag (bool hasChanged) |
| void | changed () |
| Result | loadFrom (const File &newFile, bool showMessageOnFailure, bool showWaitCursor=true) |
| void | loadFromAsync (const File &newFile, bool showMessageOnFailure, std::function< void(Result)> callback) |
| void | loadFromUserSpecifiedFileAsync (const bool showMessageOnFailure, std::function< void(Result)> callback) |
| void | saveAsync (bool askUserForFileIfNotSpecified, bool showMessageOnFailure, std::function< void(SaveResult)> callback) |
| void | saveIfNeededAndUserAgreesAsync (std::function< void(SaveResult)> callback) |
| void | saveAsAsync (const File &newFile, bool warnAboutOverwritingExistingFiles, bool askUserForFileIfNotSpecified, bool showMessageOnFailure, std::function< void(SaveResult)> callback) |
| void | saveAsInteractiveAsync (bool warnAboutOverwritingExistingFiles, std::function< void(SaveResult)> callback) |
| const File & | getFile () const |
| void | setFile (const File &newFile) |
| const String & | getFileExtension () const |
|
| template<typename DoLoadDocument> |
| void | loadFromImpl (SafeParentPointer parent, const File &newFile, bool showMessageOnFailure, bool showWaitCursor, DoLoadDocument &&doLoadDocument, std::function< void(Result)> completed) |
| template<typename DoAskToSaveChanges, typename DoSave> |
| void | saveIfNeededAndUserAgreesImpl (SafeParentPointer parent, std::function< void(SaveResult)> completed, DoAskToSaveChanges &&doAskToSaveChanges, DoSave &&doSave) |
| int | askToSaveChanges (SafeParentPointer parent, std::function< void(SafeParentPointer, int)> callback) |
| template<typename DoSaveDocument> |
| void | saveInternal (SafeParentPointer parent, const File &newFile, bool showMessageOnFailure, bool showWaitCursor, std::function< void(SaveResult)> afterSave, DoSaveDocument &&doSaveDocument) |
| template<typename DoSaveAsInteractive, typename DoAskToOverwriteFile, typename DoSaveDocument> |
| void | saveAsImpl (SafeParentPointer parent, const File &newFile, bool warnAboutOverwritingExistingFiles, bool askUserForFileIfNotSpecified, bool showMessageOnFailure, std::function< void(SaveResult)> callback, bool showWaitCursor, DoSaveAsInteractive &&doSaveAsInteractive, DoAskToOverwriteFile &&doAskToOverwriteFile, DoSaveDocument &&doSaveDocument) |
| void | saveAsAsyncImpl (SafeParentPointer parent, const File &newFile, bool warnAboutOverwritingExistingFiles, bool askUserForFileIfNotSpecified, bool showMessageOnFailure, std::function< void(SaveResult)> callback, bool showWaitCursor) |
| void | saveAsInteractiveAsyncImpl (SafeParentPointer parent, bool warnAboutOverwritingExistingFiles, std::function< void(SaveResult)> callback) |
| bool | askToOverwriteFile (SafeParentPointer parent, const File &newFile, std::function< void(SafeParentPointer, bool)> callback) |
| void | getSaveAsFilenameAsync (SafeParentPointer parent, bool warnAboutOverwritingExistingFiles, std::function< void(SafeParentPointer, const File &)> callback) |
| template<typename DoSelectFilename, typename DoSaveAs, typename DoAskToOverwriteFile> |
| void | saveAsInteractiveImpl (SafeParentPointer parent, bool warnAboutOverwritingExistingFiles, std::function< void(SaveResult)> callback, DoSelectFilename &&doSelectFilename, DoSaveAs &&doSaveAs, DoAskToOverwriteFile &&doAskToOverwriteFile) |
| std::unique_ptr< FileChooser > | getInteractiveFileChooser () |