X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dc6c62a931cd31cff4bd7c621301d443a41dee5c..543f08a67631f2849872d5d3ee7cb99047718560:/src/generic/dirdlgg.cpp diff --git a/src/generic/dirdlgg.cpp b/src/generic/dirdlgg.cpp index 02f91965e4..ab07302a82 100644 --- a/src/generic/dirdlgg.cpp +++ b/src/generic/dirdlgg.cpp @@ -4,6 +4,7 @@ // Author: Harm van der Heijden and Robert Roebling // Modified by: // Created: 12/12/98 +// RCS-ID: $Id$ // Copyright: (c) Harm van der Heijden and Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -172,10 +173,12 @@ wxDirCtrl::wxDirCtrl(wxWindow *parent, const wxWindowID id, const wxString &WXUN : wxTreeCtrl( parent, id, pos, size, style, wxDefaultValidator, name ) { + #ifndef __WXMSW__ m_imageListNormal = new wxImageList(16, 16, TRUE); m_imageListNormal->Add(wxICON(icon1)); m_imageListNormal->Add(wxICON(icon2)); SetImageList(m_imageListNormal); + #endif m_showHidden = FALSE; m_rootId = AddRoot( _("Sections") ); @@ -193,6 +196,10 @@ void wxDirCtrl::SetupSections() m_paths.Clear(); m_names.Clear(); +#ifdef __WXMSW__ + // better than nothing + ADD_SECTION(_T("c:\\"), _("My Harddisk") ) +#else ADD_SECTION(_T("/"), _("The Computer") ) wxGetHomeDir(&home); ADD_SECTION(home, _("My Home") ) @@ -202,6 +209,7 @@ void wxDirCtrl::SetupSections() ADD_SECTION(_T("/var"), _("Variables") ) ADD_SECTION(_T("/etc"), _("Etcetera") ) ADD_SECTION(_T("/tmp"), _("Temporary") ) +#endif } #undef ADD_SECTION @@ -214,8 +222,12 @@ void wxDirCtrl::CreateItems(const wxTreeItemId &parent) for (unsigned int i=0; im_hasSubDirs) SetItemHasChildren(id); } }