#if wxUSE_FILEDLG
+#include "wx/filedlg.h"
+
#ifndef WX_PRECOMP
#include "wx/msgdlg.h"
- #include "wx/filedlg.h"
#include "wx/app.h"
#endif
#include "wx/log.h"
#include "wx/msgdlg.h"
#include "wx/mdi.h"
+ #include "wx/choicdlg.h"
#endif
#include "wx/ffile.h"
#include "wx/printdlg.h"
#endif
-#include "wx/choicdlg.h"
#include "wx/confbase.h"
#include "wx/file.h"
#include "wx/cmdproc.h"
/////////////////////////////////////////////////////////////////////////////
-// Name: common/fldlgcmn.cpp
+// Name: src/common/fldlgcmn.cpp
// Purpose: wxFileDialog common functions
// Author: John Labenski
// Modified by:
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
+#if wxUSE_FILEDLG
+
+#include "wx/filedlg.h"
+
#ifndef WX_PRECOMP
#include "wx/string.h"
#include "wx/intl.h"
#include "wx/window.h"
#endif // WX_PRECOMP
-#include "wx/filedlg.h"
-
-#if wxUSE_FILEDLG
-
//----------------------------------------------------------------------------
// wxFileDialogBase
//----------------------------------------------------------------------------
// if fileName is of form "foo.bar" it's ok, return it
int idx_dot = fileName.Find(wxT('.'), true);
- if ((idx_dot != wxNOT_FOUND) && (idx_dot < (int)fileName.Len() - 1))
+ if ((idx_dot != wxNOT_FOUND) && (idx_dot < (int)fileName.length() - 1))
return filePath;
// get the first extension from extensionList, or all of it
// if ext == "foo" or "foo." there's no extension
int idx_ext_dot = ext.Find(wxT('.'), true);
- if ((idx_ext_dot == wxNOT_FOUND) || (idx_ext_dot == (int)ext.Len() - 1))
+ if ((idx_ext_dot == wxNOT_FOUND) || (idx_ext_dot == (int)ext.length() - 1))
return filePath;
else
ext = ext.AfterLast(wxT('.'));
}
#endif // wxUSE_FILEDLG
-
#include "wx/log.h"
#include "wx/intl.h"
#include "wx/msgdlg.h"
+ #include "wx/choicdlg.h"
#endif // PCH
#if wxUSE_CONFIG
#include "wx/fmappriv.h"
#include "wx/fontutil.h"
#include "wx/fontdlg.h"
-#include "wx/choicdlg.h"
#include "wx/encinfo.h"
#include "wx/encconv.h"
#include "wx/textctrl.h"
#include "wx/intl.h"
#include "wx/stattext.h"
+ #include "wx/filedlg.h"
#endif // WX_PRECOMP
#include "wx/filename.h"
#include "wx/mimetype.h"
#include "wx/statline.h"
-#include "wx/filedlg.h"
#include "wx/valtext.h"
#ifdef __WXMSW__
#include "wx/textctrl.h"
#include "wx/layout.h"
#include "wx/sizer.h"
+ #include "wx/textdlg.h"
#endif
#include "wx/module.h"
-#include "wx/textdlg.h"
#include "wx/filefn.h"
#include "wx/gdicmn.h"
#include "wx/imaglist.h"
#include "wx/stattext.h"
#include "wx/textctrl.h"
#include "wx/sizer.h"
+ #include "wx/filedlg.h" // wxFD_OPEN, wxFD_SAVE...
#endif
#include "wx/longlong.h"
#include "wx/artprov.h"
#include "wx/filefn.h"
#include "wx/file.h" // for wxS_IXXX constants only
-#include "wx/filedlg.h" // wxFD_OPEN, wxFD_SAVE...
#include "wx/generic/filedlgg.h"
#include "wx/generic/dirctrlg.h" // for wxFileIconsTable
#include "wx/msgdlg.h"
#include "wx/textctrl.h"
#include "wx/toolbar.h"
+ #include "wx/choicdlg.h"
+ #include "wx/filedlg.h"
#endif // WXPRECOMP
#include "wx/html/helpfrm.h"
#include "wx/busyinfo.h"
#include "wx/progdlg.h"
#include "wx/fontenum.h"
-#include "wx/filedlg.h"
#include "wx/artprov.h"
#include "wx/spinctrl.h"
-#include "wx/choicdlg.h"
IMPLEMENT_DYNAMIC_CLASS(wxHtmlHelpFrame, wxFrame)
#include "wx/msgdlg.h"
#include "wx/textctrl.h"
#include "wx/toolbar.h"
+ #include "wx/choicdlg.h"
+ #include "wx/filedlg.h"
#endif // WXPRECOMP
#include "wx/html/helpfrm.h"
#include "wx/busyinfo.h"
#include "wx/progdlg.h"
#include "wx/fontenum.h"
-#include "wx/filedlg.h"
#include "wx/artprov.h"
#include "wx/spinctrl.h"
-#include "wx/choicdlg.h"
// what is considered "small index"?
#define INDEX_IS_SMALL 100
#if wxUSE_FILEDLG && !(defined(__SMARTPHONE__) && defined(__WXWINCE__))
+#include "wx/filedlg.h"
+
#ifndef WX_PRECOMP
#include "wx/utils.h"
#include "wx/msgdlg.h"
- #include "wx/filedlg.h"
#include "wx/filefn.h"
#include "wx/intl.h"
#include "wx/log.h"
#if wxUSE_FILEDLG && defined(__SMARTPHONE__) && defined(__WXWINCE__)
+#include "wx/filedlg.h"
+
#ifndef WX_PRECOMP
#include "wx/utils.h"
#include "wx/msgdlg.h"
#include "wx/dialog.h"
- #include "wx/filedlg.h"
#include "wx/filefn.h"
#include "wx/intl.h"
#include "wx/log.h"
#if wxUSE_FILEDLG
+#include "wx/filedlg.h"
+
#ifndef WX_PRECOMP
#include "wx/utils.h"
#include "wx/msgdlg.h"
- #include "wx/filedlg.h"
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/app.h"
#if wxUSE_FILEDLG && !defined(__SMARTPHONE__)
+#include "wx/filedlg.h"
+
#ifndef WX_PRECOMP
#include "wx/utils.h"
#include "wx/msgdlg.h"
- #include "wx/filedlg.h"
#include "wx/filefn.h"
#include "wx/intl.h"
#include "wx/log.h"
}
#endif // wxUSE_FILEDLG
-