Applied [ 716064 ] Second part of wxFileCtrl & wxDirCtrl patch
by John Labenski git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20042 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -31,6 +31,8 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
class WXDLLEXPORT wxTextCtrl;
|
||||
class WXDLLEXPORT wxImageList;
|
||||
class WXDLLEXPORT wxHashTable;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Extra styles for wxGenericDirCtrl
|
||||
@@ -172,7 +174,6 @@ protected:
|
||||
private:
|
||||
bool m_showHidden;
|
||||
wxTreeItemId m_rootId;
|
||||
wxImageList* m_imageList;
|
||||
wxString m_defaultPath; // Starting path
|
||||
long m_styleEx; // Extended style
|
||||
wxString m_filter; // Wildcards in same format as per wxFileDialog
|
||||
@@ -235,6 +236,42 @@ protected:
|
||||
#define wxID_TREECTRL 7000
|
||||
#define wxID_FILTERLISTCTRL 7001
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
// wxFileIconsTable - use wxTheFileIconsTable which is created as necessary
|
||||
//-------------------------------------------------------------------------
|
||||
|
||||
class WXDLLEXPORT wxFileIconsTable
|
||||
{
|
||||
public:
|
||||
wxFileIconsTable();
|
||||
~wxFileIconsTable();
|
||||
|
||||
enum iconId_Type
|
||||
{
|
||||
folder,
|
||||
folder_open,
|
||||
computer,
|
||||
drive,
|
||||
cdrom,
|
||||
floppy,
|
||||
removeable,
|
||||
file,
|
||||
executable
|
||||
};
|
||||
|
||||
int GetIconID(const wxString& extension, const wxString& mime = wxEmptyString);
|
||||
wxImageList *GetSmallImageList();
|
||||
|
||||
protected:
|
||||
void Create(); // create on first use
|
||||
|
||||
wxImageList *m_smallImageList;
|
||||
wxHashTable *m_HashTable;
|
||||
};
|
||||
|
||||
// The global fileicons table
|
||||
WXDLLEXPORT_DATA(extern wxFileIconsTable *) wxTheFileIconsTable;
|
||||
|
||||
#endif // wxUSE_DIRDLG
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user