Fixed wxSlider95 bug; updated .dsp files; added Set/GetLastDirectory to wxDocManager

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4073 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
1999-10-19 22:18:32 +00:00
parent 8e00741dbd
commit ac0ac8241f
9 changed files with 41 additions and 4 deletions

View File

@@ -706,6 +706,7 @@ wxDocManager::wxDocManager(long flags, bool initialize)
m_currentView = (wxView *) NULL;
m_maxDocsOpen = 10000;
m_fileHistory = (wxFileHistory *) NULL;
m_lastDirectory = wxT("") ;
if (initialize)
Initialize();
}
@@ -1224,7 +1225,7 @@ wxDocTemplate *wxDocManager::SelectDocumentPath(wxDocTemplate **templates,
int FilterIndex = 0;
wxString pathTmp = wxFileSelectorEx(_("Select a file"),
wxT(""),
m_lastDirectory,
wxT(""),
&FilterIndex,
descrBuf,
@@ -1233,6 +1234,8 @@ wxDocTemplate *wxDocManager::SelectDocumentPath(wxDocTemplate **templates,
if (!pathTmp.IsEmpty())
{
m_lastDirectory = wxPathOnly(pathTmp);
path = pathTmp;
wxString theExt = FindExtension(path);
if (!theExt)