|
JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins
« « « Anklang Documentation |
A base class for components that display a list of the files in a directory. More...
#include "juce_DirectoryContentsDisplayComponent.h"
Public Types | |
| enum | ColourIds { highlightColourId , textColourId , highlightedTextColourId } |
| A set of colour IDs to use to change the colour of various aspects of the list. More... | |
Public Member Functions | |
| DirectoryContentsDisplayComponent (DirectoryContentsList &listToShow) | |
| Creates a DirectoryContentsDisplayComponent for a given list of files. | |
| virtual | ~DirectoryContentsDisplayComponent () |
| Destructor. | |
| virtual int | getNumSelectedFiles () const =0 |
| Returns the number of files the user has got selected. | |
| virtual File | getSelectedFile (int index) const =0 |
| Returns one of the files that the user has currently selected. | |
| virtual void | deselectAllFiles ()=0 |
| Deselects any selected files. | |
| virtual void | scrollToTop ()=0 |
| Scrolls this view to the top. | |
| virtual void | setSelectedFile (const File &)=0 |
| If the specified file is in the list, it will become the only selected item (and if the file isn't in the list, all other items will be deselected). | |
| void | addListener (FileBrowserListener *listener) |
| Adds a listener to be told when files are selected or clicked. | |
| void | removeListener (FileBrowserListener *listener) |
| Removes a listener. | |
| void | sendSelectionChangeMessage () |
| void | sendDoubleClickMessage (const File &) |
| void | sendMouseClickMessage (const File &, const MouseEvent &) |
Public Attributes | |
| DirectoryContentsList & | directoryContentsList |
| The list that this component is displaying. | |
Protected Attributes | |
| ListenerList< FileBrowserListener > | listeners |
A base class for components that display a list of the files in a directory.
@tags{GUI}
Definition at line 37 of file juce_DirectoryContentsDisplayComponent.h.
A set of colour IDs to use to change the colour of various aspects of the list.
These constants can be used either via the Component::setColour(), or LookAndFeel::setColour() methods.
Definition at line 93 of file juce_DirectoryContentsDisplayComponent.h.
| juce::DirectoryContentsDisplayComponent::DirectoryContentsDisplayComponent | ( | DirectoryContentsList & | listToShow | ) |
Creates a DirectoryContentsDisplayComponent for a given list of files.
Definition at line 29 of file juce_DirectoryContentsDisplayComponent.cpp.
|
virtual |
Destructor.
Definition at line 34 of file juce_DirectoryContentsDisplayComponent.cpp.
| void juce::DirectoryContentsDisplayComponent::addListener | ( | FileBrowserListener * | listener | ) |
Adds a listener to be told when files are selected or clicked.
Definition at line 43 of file juce_DirectoryContentsDisplayComponent.cpp.
Deselects any selected files.
Implemented in juce::FileListComponent, and juce::FileTreeComponent.
Returns the number of files the user has got selected.
Implemented in juce::FileListComponent, and juce::FileTreeComponent.
|
pure virtual |
Returns one of the files that the user has currently selected.
The index should be in the range 0 to (getNumSelectedFiles() - 1).
Implemented in juce::FileListComponent, and juce::FileTreeComponent.
| void juce::DirectoryContentsDisplayComponent::removeListener | ( | FileBrowserListener * | listener | ) |
Removes a listener.
Definition at line 44 of file juce_DirectoryContentsDisplayComponent.cpp.
Scrolls this view to the top.
Implemented in juce::FileListComponent, and juce::FileTreeComponent.
Definition at line 61 of file juce_DirectoryContentsDisplayComponent.cpp.
| void juce::DirectoryContentsDisplayComponent::sendMouseClickMessage | ( | const File & | file, |
| const MouseEvent & | e | ||
| ) |
Definition at line 52 of file juce_DirectoryContentsDisplayComponent.cpp.
| void juce::DirectoryContentsDisplayComponent::sendSelectionChangeMessage | ( | ) |
Definition at line 46 of file juce_DirectoryContentsDisplayComponent.cpp.
If the specified file is in the list, it will become the only selected item (and if the file isn't in the list, all other items will be deselected).
Implemented in juce::FileListComponent, and juce::FileTreeComponent.
| DirectoryContentsList& juce::DirectoryContentsDisplayComponent::directoryContentsList |
The list that this component is displaying.
Definition at line 49 of file juce_DirectoryContentsDisplayComponent.h.
|
protected |
Definition at line 110 of file juce_DirectoryContentsDisplayComponent.h.