m_pCtxt->m_piFilterGlobal = &theApp.m_globalFileFilter;
// Show active filter name in statusbar
- pf->SetFilterStatusDisplay(theApp.m_globalFileFilter.GetFilter());
+ pf->SetFilterStatusDisplay(theApp.m_globalFileFilter.GetFilterNameOrMask());
// Empty display before new compare
m_pDirView->DeleteAllDisplayItems();
}
// Save last selected filter
- CString filter = theApp.m_globalFileFilter.GetFilter();
+ CString filter = theApp.m_globalFileFilter.GetFilterNameOrMask();
m_options.SaveOption(OPT_FILEFILTER_CURRENT, filter);
// save main window position
{
theApp.m_globalFileFilter.SetFileFilterPath(path);
theApp.m_globalFileFilter.UseMask(FALSE);
- CString sFilter = theApp.m_globalFileFilter.GetFilter();
+ CString sFilter = theApp.m_globalFileFilter.GetFilterNameOrMask();
m_options.SaveOption(OPT_FILEFILTER_CURRENT, sFilter);
}
m_options.SaveOption(OPT_LINEFILTER_ENABLED, filter.m_bIgnoreRegExp == TRUE);
m_ctlExt.LoadState(_T("Files\\Ext"));
UpdateData(m_strLeft.IsEmpty() && m_strRight.IsEmpty());
- CString filter = theApp.m_globalFileFilter.GetFilter();
+ CString FilterNameOrMask = theApp.m_globalFileFilter.GetFilterNameOrMask();
BOOL bMask = theApp.m_globalFileFilter.GetUseMask();
if (!bMask)
{
CString filterPrefix;
VERIFY(filterPrefix.LoadString(IDS_FILTER_PREFIX));
- filter.Insert(0, filterPrefix);
+ FilterNameOrMask.Insert(0, filterPrefix);
}
- int ind = m_ctlExt.FindStringExact(0, filter);
+ int ind = m_ctlExt.FindStringExact(0, FilterNameOrMask);
if (ind != CB_ERR)
m_ctlExt.SetCurSel(ind);
else
{
- ind = m_ctlExt.InsertString(0, filter);
+ ind = m_ctlExt.InsertString(0, FilterNameOrMask);
if (ind != CB_ERR)
m_ctlExt.SetCurSel(ind);
else
mf->SelectFilter();
- CString filter = theApp.m_globalFileFilter.GetFilter();
+ CString FilterNameOrMask = theApp.m_globalFileFilter.GetFilterNameOrMask();
if (theApp.m_globalFileFilter.GetUseMask())
{
- // If we had filter choosed and now has mask we can overwrite filter
+ // If we had filter chosen and now has mask we can overwrite filter
if (!bUseMask || curFilter[0] != '*')
{
- SetDlgItemText(IDC_EXT_COMBO, filter);
+ SetDlgItemText(IDC_EXT_COMBO, FilterNameOrMask);
}
}
else
{
- filter.Insert(0, filterPrefix);
- SetDlgItemText(IDC_EXT_COMBO, filter);
+ FilterNameOrMask.Insert(0, filterPrefix);
+ SetDlgItemText(IDC_EXT_COMBO, FilterNameOrMask);
}
}
2005-03-05 Perry
Rename CDirFrame::SetFilter to CDirFrame::SetFilterStatusDisplay for easier greps.
Src: DirDoc.cpp DirFrame.cpp DirFrame.h
+ More filter clarifying renames
+ Src: DirDoc.cpp FileFilterHelper.cpp FileFilterHelper.h MainFrm.cpp OpenDlg.cpp
2005-03-04 Perry
PATCH: [ 1147039 ] experimental patch for colored word diff