openshot-audio
0.1.7
|
#include <juce_FileTreeComponent.h>
Additional Inherited Members | |
![]() | |
enum | ColourIds { backgroundColourId = 0x1000500, linesColourId = 0x1000501, dragAndDropIndicatorColourId = 0x1000502, selectedItemBackgroundColourId = 0x1000503 } |
![]() | |
enum | ColourIds { highlightColourId = 0x1000540, textColourId = 0x1000541 } |
![]() | |
DirectoryContentsList & | fileList |
ListenerList< FileBrowserListener > | listeners |
A component that displays the files in a directory as a treeview.
This implements the DirectoryContentsDisplayComponent base class so that it can be used in a FileBrowserComponent.
To attach a listener to it, use its DirectoryContentsDisplayComponent base class and the FileBrowserListener class.
FileTreeComponent::FileTreeComponent | ( | DirectoryContentsList & | listToShow | ) |
Creates a listbox to show the contents of a specified directory.
FileTreeComponent::~FileTreeComponent | ( | ) |
Destructor.
|
virtual |
Deselects any files that are currently selected.
Implements DirectoryContentsDisplayComponent.
Returns the last value that was set by setDragAndDropDescription().
|
inlinenoexcept |
Returns the height of the treeview items.
|
inlinevirtual |
Returns the number of files the user has got selected.
Implements DirectoryContentsDisplayComponent.
Returns one of the files that the user has currently selected. The index should be in the range 0 to (getNumSelectedFiles() - 1).
Implements DirectoryContentsDisplayComponent.
void FileTreeComponent::refresh | ( | ) |
Updates the files in the list.
|
virtual |
Scrolls the list to the top.
Implements DirectoryContentsDisplayComponent.
Setting a name for this allows tree items to be dragged.
The string that you pass in here will be returned by the getDragSourceDescription() of the items in the tree. For more info, see TreeViewItem::getDragSourceDescription().
void FileTreeComponent::setItemHeight | ( | int | newHeight | ) |
Changes the height of the treeview items.
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).
Implements DirectoryContentsDisplayComponent.