59 void setDefaultBrowseTarget (
const File& newDefaultDirectory);
70 backgroundColourId = 0x1004100,
76 int getNumRows()
override;
78 void paintListBoxItem (
int rowNumber,
Graphics& g,
int width,
int height,
bool rowIsSelected)
override;
80 void deleteKeyPressed (
int lastRowSelected)
override;
82 void returnKeyPressed (
int lastRowSelected)
override;
84 void listBoxItemDoubleClicked (
int row,
const MouseEvent&)
override;
86 void selectedRowsChanged (
int lastRowSelected)
override;
88 void resized()
override;
92 bool isInterestedInFileDrag (
const StringArray&)
override;
94 void filesDropped (
const StringArray& files,
int,
int)
override;
99 File defaultBrowseTarget;
103 TextButton addButton, removeButton, changeButton;
107 void updateButtons();
110 void deleteSelected();
112 void moveSelection (
int);
The base class for all JUCE user-interface objects.
Components derived from this class can have files dropped onto them by an external application.
Shows a set of file paths in a list, allowing them to be added, removed or re-ordered.
const FileSearchPath & getPath() const noexcept
Returns the path as it is currently shown.
ColourIds
A set of colour IDs to use to change the colour of various aspects of the label.
Represents a set of folders that make up a search path.
Represents a local file or directory.
A graphics context, used for drawing a component or image.
A subclass of this is used to drive a ListBox.
A list of items that can be scrolled vertically.
Contains position and status information about a mouse event.
A special array for holding a list of strings.
A button that uses the standard lozenge-shaped background with a line of text on it.