#include "wx/generic/dirctrlg.h" // for wxFileIconsTable
#include "wx/dir.h"
#include "wx/tokenzr.h"
+#include "wx/imaglist.h"
#ifdef __WXMSW__
#include "wx/msw/wrapwin.h"
lstat( m_filePath.fn_str(), &buff );
m_type |= S_ISLNK(buff.st_mode) ? is_link : 0;
#else // no lstat()
- // only translate to file charset if we don't go by our
- // wxStat implementation
-#ifndef wxNEED_WX_UNISTD_H
- wxStat( m_filePath.fn_str() , &buff );
-#else
wxStat( m_filePath, &buff );
-#endif
#endif
m_type |= (buff.st_mode & S_IFDIR) != 0 ? is_dir : 0;
wxListItem item;
item.m_itemId = 0;
item.m_col = 0;
- long id = Add( fd, item );
+ long itemid = Add( fd, item );
- if (id != -1)
+ if (itemid != -1)
{
SortItems(m_sort_field, m_sort_forward);
- id = FindItem( 0, wxPtrToUInt(fd) );
- EnsureVisible( id );
- EditLabel( id );
+ itemid = FindItem( 0, wxPtrToUInt(fd) );
+ EnsureVisible( itemid );
+ EditLabel( itemid );
}
else
delete fd;
{
m_filterExtension.clear();
}
+
+ GenerateFilterChangedEvent( this, this );
}
void wxGenericFileCtrl::SetWildcard( const wxString& wildCard )