wxDirDialog no longer shows hidden files. I don't

know yet how to implement the reparsing when the
    user checks/unchecks the "Show hidden directories"
    button. And my mail is down...


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13482 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2002-01-09 18:00:39 +00:00
parent 01a63363e2
commit 42dcacf02b
4 changed files with 50 additions and 17 deletions

View File

@@ -572,6 +572,13 @@ void wxGenericDirCtrl::Init()
m_filterListCtrl = NULL;
}
void wxGenericDirCtrl::ShowHidden( bool show )
{
m_showHidden = show;
// reparse FIXME
}
void wxGenericDirCtrl::AddSection(const wxString& path, const wxString& name, int imageId)
{
wxDirItemData *dir_item = new wxDirItemData(path,name,TRUE);
@@ -806,7 +813,9 @@ void wxGenericDirCtrl::ExpandDir(wxTreeItemId parentId)
if (d.IsOpened())
{
if (d.GetFirst(& eachFilename, wxEmptyString, wxDIR_DIRS | wxDIR_HIDDEN))
int style = wxDIR_DIRS;
if (m_showHidden) style |= wxDIR_HIDDEN;
if (d.GetFirst(& eachFilename, wxEmptyString, style))
{
do
{