1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-19 01:04:20 +00:00

Changes and additions to provide alternatives to modal-loop functionality (Android can't run modal loops). New class ModalCallbackFunction providing quick objects for making callbacks to static functions. Changes to remove modal loops from most of the internal library classes. Added new methods to PopupMenu to provide easier async callbacks, and also a cleaner way of specifying options when showing a menu. Fix for PNG decoding of corrupted image files.

This commit is contained in:
Julian Storer 2011-02-11 14:27:28 +00:00
parent d4818c2ac2
commit 2d10b0b43d
47 changed files with 2906 additions and 1606 deletions

View file

@ -78,6 +78,7 @@ void FileBasedDocument::setFile (const File& newFile)
}
//==============================================================================
#if JUCE_MODAL_LOOPS_PERMITTED
bool FileBasedDocument::loadFrom (const File& newFile,
const bool showMessageOnFailure)
{
@ -121,6 +122,7 @@ bool FileBasedDocument::loadFrom (const File& newFile,
return false;
}
#endif
bool FileBasedDocument::loadFromUserSpecifiedFile (const bool showMessageOnFailure)
{
@ -144,6 +146,7 @@ FileBasedDocument::SaveResult FileBasedDocument::save (const bool askUserForFile
showMessageOnFailure);
}
#if JUCE_MODAL_LOOPS_PERMITTED
FileBasedDocument::SaveResult FileBasedDocument::saveAs (const File& newFile,
const bool warnAboutOverwritingExistingFiles,
const bool askUserForFileIfNotSpecified,
@ -289,5 +292,7 @@ FileBasedDocument::SaveResult FileBasedDocument::saveAsInteractive (const bool w
return userCancelledSave;
}
#endif
END_JUCE_NAMESPACE