LMMS
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,
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
DirectoryContentsDisplayComponent(DirectoryContentsList &listToShow)
Definition juce_DirectoryContentsDisplayComponent.cpp:29
DirectoryContentsList & directoryContentsList
Definition juce_DirectoryContentsDisplayComponent.h:49
ListenerList< FileBrowserListener > listeners
Definition juce_DirectoryContentsDisplayComponent.h:110
ColourIds
Definition juce_DirectoryContentsDisplayComponent.h:94
@ textColourId
Definition juce_DirectoryContentsDisplayComponent.h:96
@ highlightColourId
Definition juce_DirectoryContentsDisplayComponent.h:95
@ highlightedTextColourId
Definition juce_DirectoryContentsDisplayComponent.h:97
virtual void setSelectedFile(const File &)=0
void removeListener(FileBrowserListener *listener)
Definition juce_DirectoryContentsDisplayComponent.cpp:44
virtual File getSelectedFile(int index) const =0
virtual int getNumSelectedFiles() const =0
void addListener(FileBrowserListener *listener)
Definition juce_DirectoryContentsDisplayComponent.cpp:43
Definition juce_DirectoryContentsList.h:43
Definition juce_FileBrowserListener.h:38
Definition juce_File.h:45
Definition juce_ListenerList.h:70
Definition juce_MouseEvent.h:39
#define JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(className)
#define JUCE_API
Definition juce_StandardHeader.h:152
Definition carla_juce.cpp:31