1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-31 03:00:05 +00:00

Replaced the old atomic ops with a templated Atomic class. Minor tweaks to directory browser. Jucer development.

This commit is contained in:
Julian Storer 2010-05-03 21:23:45 +01:00
parent 7cf5140eb2
commit b56494b29b
36 changed files with 744 additions and 381 deletions

View file

@ -176,10 +176,13 @@ int FileBrowserComponent::getNumSelectedFiles() const throw()
const File FileBrowserComponent::getSelectedFile (int index) const throw()
{
if ((flags & canSelectDirectories) != 0 && filenameBox->getText().isEmpty())
return currentRoot;
if (! filenameBox->isReadOnly())
return currentRoot.getChildFile (filenameBox->getText());
else
return chosenFiles[index];
return chosenFiles[index];
}
bool FileBrowserComponent::currentFileIsValid() const
@ -354,6 +357,9 @@ void FileBrowserComponent::fileDoubleClicked (const File& f)
if (f.isDirectory())
{
setRoot (f);
if ((flags & canSelectDirectories) != 0)
filenameBox->setText (String::empty);
}
else
{