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
Loading...
Searching...
No Matches
juce_DirectoryContentsDisplayComponent.h
Go to the documentation of this file.
1 /*
2 ==============================================================================
3
4 This file is part of the JUCE library.
5 Copyright (c) 2022 - Raw Material Software Limited
6
7 JUCE is an open source library subject to commercial or open-source
8 licensing.
9
10 By using JUCE, you agree to the terms of both the JUCE 7 End-User License
11 Agreement and JUCE Privacy Policy.
12
13 End User License Agreement: www.juce.com/juce-7-licence
14 Privacy Policy: www.juce.com/juce-privacy-policy
15
16 Or: You may also use this code under the terms of the GPL v3 (see
17 www.gnu.org/licenses).
18
19 JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
20 EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
21 DISCLAIMED.
22
23 ==============================================================================
24*/
25
26namespace juce
27{
28
29//==============================================================================
38{
39public:
40 //==============================================================================
43
46
47 //==============================================================================
50
51 //==============================================================================
55 virtual int getNumSelectedFiles() const = 0;
56
61 virtual File getSelectedFile (int index) const = 0;
62
64 virtual void deselectAllFiles() = 0;
65
67 virtual void scrollToTop() = 0;
68
71 virtual void setSelectedFile (const File&) = 0;
72
73 //==============================================================================
77 void addListener (FileBrowserListener* listener);
78
82 void removeListener (FileBrowserListener* listener);
83
84
85 //==============================================================================
94 {
95 highlightColourId = 0x1000540,
96 textColourId = 0x1000541,
97 highlightedTextColourId = 0x1000542
98 };
99
100 //==============================================================================
102 void sendSelectionChangeMessage();
104 void sendDoubleClickMessage (const File&);
106 void sendMouseClickMessage (const File&, const MouseEvent&);
107
108protected:
109 //==============================================================================
111
112private:
114};
115
116} // namespace juce
A base class for components that display a list of the files in a directory.
DirectoryContentsList & directoryContentsList
The list that this component is displaying.
ColourIds
A set of colour IDs to use to change the colour of various aspects of the list.
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...
virtual void deselectAllFiles()=0
Deselects any selected files.
virtual void scrollToTop()=0
Scrolls this view to the top.
virtual File getSelectedFile(int index) const =0
Returns one of the files that the user has currently selected.
virtual int getNumSelectedFiles() const =0
Returns the number of files the user has got selected.
A class to asynchronously scan for details about the files in a directory.
A listener for user selection events in a file browser.
Represents a local file or directory.
Definition juce_File.h:45
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.
#define JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(className)
This is a shorthand way of writing both a JUCE_DECLARE_NON_COPYABLE and JUCE_LEAK_DETECTOR macro for ...
JUCE Namespace.