From f570e2f2685aa43aa518c2f8578391c1847cddbe Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Fri, 18 Apr 2014 17:04:59 +0200 Subject: 3.3 --- library/iconBuffer.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'library/iconBuffer.h') diff --git a/library/iconBuffer.h b/library/iconBuffer.h index e6d2bcaf..703f7eb7 100644 --- a/library/iconBuffer.h +++ b/library/iconBuffer.h @@ -25,10 +25,12 @@ class IconBuffer public: static IconBuffer& getInstance(); - bool requestIcon(const Zstring& fileName, wxIcon* icon = NULL); //returns false if icon is not in buffer + static const wxIcon& getDirectoryIcon(); //one folder icon should be sufficient... + + bool requestFileIcon(const Zstring& fileName, wxIcon* icon = NULL); //returns false if icon is not in buffer void setWorkload(const std::vector& load); //(re-)set new workload of icons to be retrieved; - static const int ICON_SIZE = 16; //size in pixel + static const int ICON_SIZE = 16; //size in pixel static const size_t BUFFER_SIZE = 800; //maximum number if icons to buffer private: @@ -36,7 +38,7 @@ private: ~IconBuffer(); //methods used by worker thread - void insertIntoBuffer(const DefaultChar* fileName, const wxIcon& icon); + void insertIntoBuffer(const DefaultChar* entryName, const wxIcon& icon); //---------------------- Shared Data ------------------------- std::auto_ptr lockIconDB; -- cgit