From: Włodzimierz Skiba Date: Thu, 17 Jun 2004 19:50:20 +0000 (+0000) Subject: Separation of wxUSE_FILEDLG and wxUSE_DIRDLG in generic implementations. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/13de0c8c9b6b3d2e8ce5a21388f5f104b2f68338?hp=d29bf6775a132497c0190926cc7e9e3ec425e5a7 Separation of wxUSE_FILEDLG and wxUSE_DIRDLG in generic implementations. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27861 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/generic/dirctrlg.h b/include/wx/generic/dirctrlg.h index 0c5627ca08..d9680ecaea 100644 --- a/include/wx/generic/dirctrlg.h +++ b/include/wx/generic/dirctrlg.h @@ -19,6 +19,10 @@ #pragma interface "dirctrlg.h" #endif +#if wxUSE_DIRDLG || wxUSE_FILEDLG + #include "wx/imaglist.h" +#endif + #if wxUSE_DIRDLG #include "wx/treectrl.h" @@ -242,10 +246,14 @@ protected: #define wxID_TREECTRL 7000 #define wxID_FILTERLISTCTRL 7001 +#endif // wxUSE_DIRDLG + //------------------------------------------------------------------------- // wxFileIconsTable - use wxTheFileIconsTable which is created as necessary //------------------------------------------------------------------------- +#if wxUSE_DIRDLG || wxUSE_FILEDLG + class WXDLLEXPORT wxFileIconsTable { public: @@ -278,7 +286,7 @@ protected: // The global fileicons table WXDLLEXPORT_DATA(extern wxFileIconsTable *) wxTheFileIconsTable; -#endif // wxUSE_DIRDLG +#endif // wxUSE_DIRDLG || wxUSE_FILEDLG #endif // _WX_DIRCTRLG_H_ diff --git a/src/generic/dirctrlg.cpp b/src/generic/dirctrlg.cpp index 0a129d1b0a..e6f1686a90 100644 --- a/src/generic/dirctrlg.cpp +++ b/src/generic/dirctrlg.cpp @@ -20,10 +20,9 @@ #pragma hdrstop #endif -#if wxUSE_DIRDLG +#if wxUSE_DIRDLG || wxUSE_FILEDLG #include "wx/generic/dirctrlg.h" - #include "wx/module.h" #include "wx/utils.h" #include "wx/button.h" @@ -396,6 +395,11 @@ bool wxIsDriveAvailable(const wxString& dirName) } #endif // __WINDOWS__ || __OS2__ +#endif // wxUSE_DIRDLG || wxUSE_FILEDLG + + + +#if wxUSE_DIRDLG // Function which is called by quick sort. We want to override the default wxArrayString behaviour, // and sort regardless of case. @@ -1270,7 +1274,9 @@ void wxDirFilterListCtrl::FillFilterList(const wxString& filter, int defaultFilt SetSelection(defaultFilter); } } +#endif // wxUSE_DIRDLG +#if wxUSE_DIRDLG || wxUSE_FILEDLG // ---------------------------------------------------------------------------- // wxFileIconsTable icons @@ -1719,4 +1725,4 @@ int wxFileIconsTable::GetIconID(const wxString& extension, const wxString& mime) #endif // wxUSE_MIMETYPE/!wxUSE_MIMETYPE } -#endif // wxUSE_DIRDLG +#endif // wxUSE_DIRDLG || wxUSE_FILEDLG