Updating JUCE Audio modules to newest version (this will break a few things)

This commit is contained in:
Jonathan Thomas
2015-09-02 18:09:07 -05:00
parent 7d40d614a6
commit b5ff396bd4
851 changed files with 13485 additions and 7821 deletions

View File

@@ -2,7 +2,7 @@
==============================================================================
This file is part of the JUCE library.
Copyright (c) 2013 - Raw Material Software Ltd.
Copyright (c) 2015 - ROLI Ltd.
Permission is granted to use this software under the terms of either:
a) the GPL v2 (or any later version)
@@ -240,6 +240,9 @@ void FileBrowserComponent::setRoot (const File& newRootDirectory)
currentRoot = newRootDirectory;
fileList->setDirectory (currentRoot, true, true);
if (FileTreeComponent* tree = dynamic_cast<FileTreeComponent*> (fileListComponent.get()))
tree->refresh();
String currentRootName (currentRoot.getFullPathName());
if (currentRootName.isEmpty())
currentRootName = File::separatorString;
@@ -384,7 +387,7 @@ void FileBrowserComponent::fileDoubleClicked (const File& f)
{
setRoot (f);
if ((flags & canSelectDirectories) != 0)
if ((flags & canSelectDirectories) != 0 && (flags & doNotClearFileNameOnRootChange) == 0)
filenameBox.setText (String::empty);
}
else
@@ -429,7 +432,9 @@ void FileBrowserComponent::textEditorReturnKeyPressed (TextEditor&)
{
setRoot (f);
chosenFiles.clear();
filenameBox.setText (String::empty);
if ((flags & doNotClearFileNameOnRootChange) == 0)
filenameBox.setText (String());
}
else
{
@@ -555,7 +560,7 @@ void FileBrowserComponent::getDefaultRoots (StringArray& rootNames, StringArray&
rootPaths.add (String::empty);
rootNames.add (String::empty);
Array <File> volumes;
Array<File> volumes;
File vol ("/Volumes");
vol.findChildFiles (volumes, File::findDirectories, false);