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}
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}
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}}
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;
wxList m_templates;
wxView* m_currentView;
wxFileHistory* m_fileHistory;
+ wxString m_lastDirectory;
DECLARE_EVENT_TABLE()
};
class WXDLLEXPORT wxImageHandler: public wxObject
{
- DECLARE_DYNAMIC_CLASS(wxImageHandler)
+ DECLARE_CLASS(wxImageHandler)
public:
wxImageHandler() { m_name = ""; m_extension = ""; m_type = 0; }
m_currentView = (wxView *) NULL;
m_maxDocsOpen = 10000;
m_fileHistory = (wxFileHistory *) NULL;
+ m_lastDirectory = wxT("") ;
if (initialize)
Initialize();
}
int FilterIndex = 0;
wxString pathTmp = wxFileSelectorEx(_("Select a file"),
- wxT(""),
+ m_lastDirectory,
wxT(""),
&FilterIndex,
descrBuf,
if (!pathTmp.IsEmpty())
{
+ m_lastDirectory = wxPathOnly(pathTmp);
+
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)
-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=
nScrollInc = 0;
}
- if ( nScrollInc == 0 )
+ if (scrollEvent == wxEVT_NULL)
{
// no event...
return FALSE;
# 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
# 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
# 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