openshot-audio
0.1.6
|
#include <juce_gui_basics.h>
Public Types | |
enum | ColourIds { highlightColourId = 0x1000540, textColourId = 0x1000541 } |
Public Member Functions | |
DirectoryContentsDisplayComponent (DirectoryContentsList &listToShow) | |
virtual | ~DirectoryContentsDisplayComponent () |
virtual int | getNumSelectedFiles () const =0 |
virtual File | getSelectedFile (int index) const =0 |
virtual void | deselectAllFiles ()=0 |
virtual void | scrollToTop ()=0 |
virtual void | setSelectedFile (const File &)=0 |
void | addListener (FileBrowserListener *listener) |
void | removeListener (FileBrowserListener *listener) |
void | sendSelectionChangeMessage () |
void | sendDoubleClickMessage (const File &file) |
void | sendMouseClickMessage (const File &file, const MouseEvent &e) |
Protected Attributes | |
DirectoryContentsList & | fileList |
ListenerList< FileBrowserListener > | listeners |
A base class for components that display a list of the files in a directory.
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.
Enumerator | |
---|---|
highlightColourId | The colour to use to fill a highlighted row of the list. |
textColourId | The colour for the text. |
DirectoryContentsDisplayComponent::DirectoryContentsDisplayComponent | ( | DirectoryContentsList & | listToShow | ) |
Creates a DirectoryContentsDisplayComponent for a given list of files.
|
virtual |
Destructor.
void DirectoryContentsDisplayComponent::addListener | ( | FileBrowserListener * | listener | ) |
Adds a listener to be told when files are selected or clicked.
|
pure virtual |
Deselects any selected files.
Implemented in juce::FileListComponent, and juce::FileTreeComponent.
|
pure virtual |
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 DirectoryContentsDisplayComponent::removeListener | ( | FileBrowserListener * | listener | ) |
Removes a listener.
|
pure virtual |
Scrolls this view to the top.
Implemented in juce::FileListComponent, and juce::FileTreeComponent.
void DirectoryContentsDisplayComponent::sendDoubleClickMessage | ( | const File & | file | ) |
void DirectoryContentsDisplayComponent::sendMouseClickMessage | ( | const File & | file, |
const MouseEvent & | e | ||
) |
void DirectoryContentsDisplayComponent::sendSelectionChangeMessage | ( | ) |
|
pure virtual |
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.
|
protected |
|
protected |