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

Added a getHighlightedFile method to the FileBrowserComponent

This commit is contained in:
Julian Storer 2009-11-09 11:21:18 +00:00
parent cd88571081
commit dad610b948
2 changed files with 14 additions and 1 deletions

View file

@ -185,6 +185,11 @@ bool FileBrowserComponent::currentFileIsValid() const
return false;
}
const File FileBrowserComponent::getHighlightedFile() const throw()
{
return fileListComponent->getSelectedFile();
}
//==============================================================================
const File FileBrowserComponent::getRoot() const
{

View file

@ -99,7 +99,8 @@ public:
~FileBrowserComponent();
//==============================================================================
/**
/** Returns the file that the user has currently chosen.
@see getHighlightedFile
*/
const File getCurrentFile() const throw();
@ -112,6 +113,13 @@ public:
*/
bool currentFileIsValid() const;
/** This returns the item in the view that is currently highlighted.
This may be different from getCurrentFile(), which returns the value
that is shown in the filename box.
@see getCurrentFile
*/
const File getHighlightedFile() const throw();
//==============================================================================
/** Returns the directory whose contents are currently being shown in the listbox. */
const File getRoot() const;