git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4073
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stores the flags passed to the constructor.
Stores the flags passed to the constructor.
+\membersection{wxDocManager::m\_lastDirectory}
+
+The directory last selected by the user when opening a file.
+
+\member{wxFileHistory*}{m\_fileHistory}
+
\membersection{wxDocManager::m\_templates}
\member{wxList}{mnTemplates}
\membersection{wxDocManager::m\_templates}
\member{wxList}{mnTemplates}
Returns a pointer to file history.
Returns a pointer to file history.
+\membersection{wxDocManager::GetLastDirectory}\label{wxdocmanagergetlastdirectory}
+
+\constfunc{wxString}{GetLastDirectory}{\void}
+
+Returns the directory last selected by the user when opening a file. Initially empty.
+
\membersection{wxDocManager::GetMaxDocsOpen}
\func{int}{GetMaxDocsOpen}{\void}
\membersection{wxDocManager::GetMaxDocsOpen}
\func{int}{GetMaxDocsOpen}{\void}
The dialog normally won't appear because the array of templates only contains
those relevant to the document in question, and often there will only be one such.
The dialog normally won't appear because the array of templates only contains
those relevant to the document in question, and often there will only be one such.
+\membersection{wxDocManager::SetLastDirectory}\label{wxdocmanagersetlastdirectory}
+
+\func{void}{SetLastDirectory}{\param{const wxString\&}{ dir}}
+
+Sets the directory to be displayed to the user when opening a file. Initially this is empty.
+
\membersection{wxDocManager::SetMaxDocsOpen}
\func{void}{SetMaxDocsOpen}{\param{int}{ n}}
\membersection{wxDocManager::SetMaxDocsOpen}
\func{void}{SetMaxDocsOpen}{\param{int}{ n}}
virtual void FileHistoryAddFilesToMenu();
virtual void FileHistoryAddFilesToMenu(wxMenu* menu);
virtual void FileHistoryAddFilesToMenu();
virtual void FileHistoryAddFilesToMenu(wxMenu* menu);
+ inline wxString GetLastDirectory() const { return m_lastDirectory; }
+ inline void SetLastDirectory(const wxString& dir) { m_lastDirectory = dir; }
+
protected:
long m_flags;
int m_defaultDocumentNameCounter;
protected:
long m_flags;
int m_defaultDocumentNameCounter;
wxList m_templates;
wxView* m_currentView;
wxFileHistory* m_fileHistory;
wxList m_templates;
wxView* m_currentView;
wxFileHistory* m_fileHistory;
+ wxString m_lastDirectory;
class WXDLLEXPORT wxImageHandler: public wxObject
{
class WXDLLEXPORT wxImageHandler: public wxObject
{
- DECLARE_DYNAMIC_CLASS(wxImageHandler)
+ DECLARE_CLASS(wxImageHandler)
public:
wxImageHandler() { m_name = ""; m_extension = ""; m_type = 0; }
public:
wxImageHandler() { m_name = ""; m_extension = ""; m_type = 0; }
m_currentView = (wxView *) NULL;
m_maxDocsOpen = 10000;
m_fileHistory = (wxFileHistory *) NULL;
m_currentView = (wxView *) NULL;
m_maxDocsOpen = 10000;
m_fileHistory = (wxFileHistory *) NULL;
+ m_lastDirectory = wxT("") ;
if (initialize)
Initialize();
}
if (initialize)
Initialize();
}
int FilterIndex = 0;
wxString pathTmp = wxFileSelectorEx(_("Select a file"),
int FilterIndex = 0;
wxString pathTmp = wxFileSelectorEx(_("Select a file"),
wxT(""),
&FilterIndex,
descrBuf,
wxT(""),
&FilterIndex,
descrBuf,
if (!pathTmp.IsEmpty())
{
if (!pathTmp.IsEmpty())
{
+ m_lastDirectory = wxPathOnly(pathTmp);
+
path = pathTmp;
wxString theExt = FindExtension(path);
if (!theExt)
path = pathTmp;
wxString theExt = FindExtension(path);
if (!theExt)
WXLIB=$(WXDIR)\lib\$(WXLIBNAME).lib
INC=-I$(WXINC) -I$(WXDIR)/src/png -I$(WXDIR)/src/zlib -I$(WXDIR)/src/jpeg $(EXTRAINC)
WXLIB=$(WXDIR)\lib\$(WXLIBNAME).lib
INC=-I$(WXINC) -I$(WXDIR)/src/png -I$(WXDIR)/src/zlib -I$(WXDIR)/src/jpeg $(EXTRAINC)
-LIBS = $(EXTRALIBS) $(WXLIB) $(WINLIBS) $(WXDIR)\lib\winpng.lib $(WXDIR)\lib\zlib.lib # $(WXDIR)\lib\jpeg.lib $(WXDIR)\lib\xpm.lib
+LIBS = $(EXTRALIBS) $(WXLIB) $(WINLIBS) $(WXDIR)\lib\winpng.lib $(WXDIR)\lib\zlib.lib $(WXDIR)\lib\jpeg.lib $(WXDIR)\lib\xpm.lib
MAKEPRECOMP=/YcWX/WXPREC.H
OPTIONS=
MAKEPRECOMP=/YcWX/WXPREC.H
OPTIONS=
+ if (scrollEvent == wxEVT_NULL)
{
// no event...
return FALSE;
{
// no event...
return FALSE;
# PROP Default_Filter ""
# Begin Source File
# PROP Default_Filter ""
# Begin Source File
+SOURCE=.\common\appcmn.cpp
+# End Source File
+# Begin Source File
+
SOURCE=.\common\choiccmn.cpp
# End Source File
# Begin Source File
SOURCE=.\common\choiccmn.cpp
# End Source File
# Begin Source File
# PROP Default_Filter ""
# Begin Source File
# PROP Default_Filter ""
# Begin Source File
+SOURCE=.\common\appcmn.cpp
+# End Source File
+# Begin Source File
+
SOURCE=.\common\choiccmn.cpp
# End Source File
# Begin Source File
SOURCE=.\common\choiccmn.cpp
# End Source File
# Begin Source File
# PROP Default_Filter ""
# Begin Source File
# PROP Default_Filter ""
# Begin Source File
+SOURCE=.\common\appcmn.cpp
+# End Source File
+# Begin Source File
+
SOURCE=.\common\choiccmn.cpp
# End Source File
# Begin Source File
SOURCE=.\common\choiccmn.cpp
# End Source File
# Begin Source File