36 lastDirectory (listToShow.getDirectory())
40 directoryContentsList.addChangeListener (
this);
114 thread.removeTimeSliceClient (
this);
129 owner.selectRowsBasedOnModifierKeys (
index,
e.mods,
true);
139 int newIndex,
bool nowHighlighted)
141 thread.removeTimeSliceClient (
this);
151 String newFileSize, newModTime;
153 if (fileInfo !=
nullptr)
177 if (!
icon.isValid())
178 thread.addTimeSliceClient (
this);
212 auto hashCode = (
file.getFullPathName() +
"_iconCacheSalt").hashCode();
215 if (im.isNull() && ! onlyUpdateIfCached)
251 jassert (existingComponentToUpdate ==
nullptr ||
dynamic_cast<ItemComponent*
> (existingComponentToUpdate) !=
nullptr);
static String descriptionOfSizeInBytes(int64 bytes)
Definition File.cpp:479
void triggerAsyncUpdate()
Definition juce_AsyncUpdater.cpp:62
AsyncUpdater()
Definition juce_AsyncUpdater.cpp:44
Definition juce_ChangeBroadcaster.h:35
Definition juce_Component.h:36
int getHeight() const noexcept
Definition juce_Component.h:274
void repaint()
Definition juce_Component.cpp:1917
Component() noexcept
Definition juce_Component.cpp:517
static std::unique_ptr< AccessibilityHandler > createIgnoredAccessibilityHandler(Component &)
Definition juce_Component.cpp:3292
int getWidth() const noexcept
Definition juce_Component.h:271
LookAndFeel & getLookAndFeel() const noexcept
Definition juce_Component.cpp:2173
Definition juce_DirectoryContentsDisplayComponent.h:38
DirectoryContentsList & directoryContentsList
Definition juce_DirectoryContentsDisplayComponent.h:49
void sendSelectionChangeMessage()
Definition juce_DirectoryContentsDisplayComponent.cpp:46
void sendDoubleClickMessage(const File &)
Definition juce_DirectoryContentsDisplayComponent.cpp:61
Definition juce_DirectoryContentsList.h:43
Definition juce_File.h:45
File getChildFile(StringRef relativeOrAbsolutePath) const
Definition juce_File.cpp:412
Definition juce_FileListComponent.cpp:105
std::unique_ptr< AccessibilityHandler > createAccessibilityHandler() override
Definition juce_FileListComponent.cpp:203
bool highlighted
Definition juce_FileListComponent.cpp:201
File file
Definition juce_FileListComponent.cpp:197
void updateIcon(const bool onlyUpdateIfCached)
Definition juce_FileListComponent.cpp:208
FileListComponent & owner
Definition juce_FileListComponent.cpp:195
void update(const File &root, const DirectoryContentsList::FileInfo *fileInfo, int newIndex, bool nowHighlighted)
Definition juce_FileListComponent.cpp:138
int useTimeSlice() override
Definition juce_FileListComponent.cpp:182
void mouseDoubleClick(const MouseEvent &) override
Definition juce_FileListComponent.cpp:133
void handleAsyncUpdate() override
Definition juce_FileListComponent.cpp:188
void mouseDown(const MouseEvent &e) override
Definition juce_FileListComponent.cpp:127
~ItemComponent() override
Definition juce_FileListComponent.cpp:112
String modTime
Definition juce_FileListComponent.cpp:198
TimeSliceThread & thread
Definition juce_FileListComponent.cpp:196
bool isDirectory
Definition juce_FileListComponent.cpp:201
void paint(Graphics &g) override
Definition juce_FileListComponent.cpp:118
Image icon
Definition juce_FileListComponent.cpp:199
int index
Definition juce_FileListComponent.cpp:200
String fileSize
Definition juce_FileListComponent.cpp:198
ItemComponent(FileListComponent &fc, TimeSliceThread &t)
Definition juce_FileListComponent.cpp:107
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
~FileListComponent() override
Definition juce_FileListComponent.cpp:43
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
static void addImageToCache(const Image &image, int64 hashCode)
Definition juce_ImageCache.cpp:125
static Image getFromHashCode(int64 hashCode)
Definition juce_ImageCache.cpp:117
Definition juce_Image.h:58
void deselectAllRows()
Definition juce_ListBox.cpp:765
int getSelectedRow(int index=0) const
Definition juce_ListBox.cpp:807
ScrollBar & getVerticalScrollBar() const noexcept
Definition juce_ListBox.cpp:1032
void updateContent()
Definition juce_ListBox.cpp:622
int getNumSelectedRows() const
Definition juce_ListBox.cpp:802
void selectRow(int rowNumber, bool dontScrollToShowThisRow=false, bool deselectOthersFirst=true)
Definition juce_ListBox.cpp:651
friend class ListBox
Definition juce_ListBox.h:169
Definition juce_MouseEvent.h:39
Definition juce_String.h:53
String formatted(const String &format) const
Definition juce_Time.cpp:341
Definition juce_TimeSliceThread.h:44
friend class TimeSliceThread
Definition juce_TimeSliceThread.h:68
* e
Definition inflate.c:1404
struct huft * t
Definition inflate.c:943
int g
Definition inflate.c:1573
register unsigned i
Definition inflate.c:1575
unsigned f
Definition inflate.c:1572
static int JUCE_CDECL comp(const void *a, const void *b)
Definition lsp.c:298
Definition carla_juce.cpp:31
Image juce_createIconForFile(const File &file)
Definition juce_linux_Windowing.cpp:941
@ row
Definition juce_AccessibilityRole.h:53
Definition juce_DirectoryContentsList.h:126
String filename
Definition juce_DirectoryContentsList.h:135
Time modificationTime
Definition juce_DirectoryContentsList.h:143
bool isDirectory
Definition juce_DirectoryContentsList.h:151
int64 fileSize
Definition juce_DirectoryContentsList.h:138
struct zdirent * file
Definition win32.c:1500