60 canSelectDirectories = 8,
62 canSelectMultipleItems = 16,
64 filenameBoxIsReadOnly = 64,
65 warnAboutOverwriting = 128,
66 doNotClearFileNameOnRootChange = 256
85 const File& initialFileOrDirectory,
97 int getNumSelectedFiles() const noexcept;
104 File getSelectedFile (
int index) const noexcept;
107 void deselectAllFiles();
116 bool currentFileIsValid() const;
124 File getHighlightedFile() const noexcept;
128 const
File& getRoot() const;
131 void setRoot (const
File& newRootDirectory);
134 void setFileName (const
String& newName);
143 void setFileFilter (const
FileFilter* newFileFilter);
150 virtual
String getActionVerb() const;
153 bool isSaveMode() const noexcept;
159 void setFilenameBoxLabel (const
String& name);
189 virtual const Drawable* getDefaultFolderImage() = 0;
190 virtual const Drawable* getDefaultDocumentFileImage() = 0;
193 const String& instructions) = 0;
195 virtual void drawFileBrowserRow (
Graphics&,
int width,
int height,
199 const String& fileSizeDescription,
200 const String& fileTimeDescription,
206 virtual Button* createFileBrowserGoUpButton() = 0;
225 currentPathBoxBackgroundColourId = 0x1000640,
226 currentPathBoxTextColourId = 0x1000641,
227 currentPathBoxArrowColourId = 0x1000642,
228 filenameBoxBackgroundColourId = 0x1000643,
229 filenameBoxTextColourId = 0x1000644
234 void resized()
override;
236 void lookAndFeelChanged()
override;
238 bool keyPressed (
const KeyPress&)
override;
240 void selectionChanged()
override;
244 void fileDoubleClicked (
const File&)
override;
246 void browserRootChanged (
const File&)
override;
248 bool isFileSuitable (
const File&)
const override;
250 bool isDirectorySuitable (
const File&)
const override;
267 void resetRecentPaths();
286 bool wasProcessActive;
288 void timerCallback() override;
289 void sendListenerChangeMessage();
290 bool isFileOrDirSuitable (const
File&) const;
291 void updateSelectedPath();
292 void changeFilename();
Base class for accessible Components.
Holds a resizable array of primitive or copy-by-value objects.
A text string with a set of colour/font settings that are associated with sub-ranges of the text.
A component that lets the user choose from a drop-down list of choices.
The base class for all JUCE user-interface objects.
A base class for components that display a list of the files in a directory.
A class to asynchronously scan for details about the files in a directory.
The base class for objects which can draw themselves, e.g.
A component for browsing and selecting a file or directory to open or save.
FileChooserFlags
Various options for the browser.
ColourIds
A set of colour IDs to use to change the colour of various aspects of the FileBrowserComponent.
A listener for user selection events in a file browser.
Interface for deciding which files are suitable for something.
Base class for components that live inside a file chooser dialog box and show previews of the files t...
Represents a local file or directory.
A graphics context, used for drawing a component or image.
Holds a fixed-size bitmap.
Represents a key press, including any modifier keys that are needed.
A component that displays a text string, and can optionally become a text editor when clicked.
Holds a set of objects and can invoke a member function callback on each object in the set with a sin...
Contains position and status information about a mouse event.
A special array for holding a list of strings.
A thread that keeps a list of clients, and calls each one in turn, giving them all a chance to run so...
Makes repeated callbacks to a virtual method at a specified time interval.
This abstract base class is implemented by LookAndFeel classes to provide various file-browser layout...