LMMS
Loading...
Searching...
No Matches
juce_FileListComponent.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//==============================================================================
45 private ListBoxModel,
46 private ChangeListener
47{
48public:
49 //==============================================================================
52
54 ~FileListComponent() override;
55
56 //==============================================================================
60 int getNumSelectedFiles() const override;
61
66 File getSelectedFile (int index = 0) const override;
67
69 void deselectAllFiles() override;
70
72 void scrollToTop() override;
73
76 void setSelectedFile (const File&) override;
77
78private:
79 //==============================================================================
81 class ItemComponent;
82
84 int getNumRows() override;
85 String getNameForRow (int rowNumber) override;
86 void paintListBoxItem (int, Graphics&, int, int, bool) override;
87 Component* refreshComponentForRow (int rowNumber, bool isRowSelected, Component*) override;
88 void selectedRowsChanged (int row) override;
89 void deleteKeyPressed (int currentSelectedRow) override;
90 void returnKeyPressed (int currentSelectedRow) override;
91
93};
94
95} // namespace juce
Definition juce_ChangeBroadcaster.h:35
Definition juce_ChangeListener.h:45
Definition juce_Component.h:36
DirectoryContentsDisplayComponent(DirectoryContentsList &listToShow)
Definition juce_DirectoryContentsDisplayComponent.cpp:29
Definition juce_DirectoryContentsList.h:43
Definition juce_File.h:45
Definition juce_FileListComponent.cpp:105
void deleteKeyPressed(int currentSelectedRow) override
Definition juce_FileListComponent.cpp:271
FileListComponent(DirectoryContentsList &listToShow)
Definition juce_FileListComponent.cpp:33
void paintListBoxItem(int, Graphics &, int, int, bool) override
Definition juce_FileListComponent.cpp:245
Component * refreshComponentForRow(int rowNumber, bool isRowSelected, Component *) override
Definition juce_FileListComponent.cpp:249
void selectedRowsChanged(int row) override
Definition juce_FileListComponent.cpp:266
void changeListenerCallback(ChangeBroadcaster *) override
Definition juce_FileListComponent.cpp:86
File lastDirectory
Definition juce_FileListComponent.h:80
void returnKeyPressed(int currentSelectedRow) override
Definition juce_FileListComponent.cpp:275
String getNameForRow(int rowNumber) override
Definition juce_FileListComponent.cpp:240
void deselectAllFiles() override
Definition juce_FileListComponent.cpp:58
void setSelectedFile(const File &) override
Definition juce_FileListComponent.cpp:68
File fileWaitingToBeSelected
Definition juce_FileListComponent.h:80
void scrollToTop() override
Definition juce_FileListComponent.cpp:63
int getNumRows() override
Definition juce_FileListComponent.cpp:235
File getSelectedFile(int index=0) const override
Definition juce_FileListComponent.cpp:53
int getNumSelectedFiles() const override
Definition juce_FileListComponent.cpp:48
Definition juce_GraphicsContext.h:45
bool isRowSelected(int rowNumber) const
Definition juce_ListBox.cpp:813
Definition juce_ListBox.h:38
friend class ListBox
Definition juce_ListBox.h:169
Definition juce_String.h:53
#define JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(className)
#define JUCE_API
Definition juce_StandardHeader.h:152
Definition carla_juce.cpp:31