]> git.saurik.com Git - wxWidgets.git/commitdiff
Separation of wxUSE_FILEDLG and wxUSE_DIRDLG in generic implementations.
authorWłodzimierz Skiba <abx@abx.art.pl>
Thu, 17 Jun 2004 19:50:20 +0000 (19:50 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Thu, 17 Jun 2004 19:50:20 +0000 (19:50 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27861 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/generic/dirctrlg.h
src/generic/dirctrlg.cpp

index 0c5627ca0861d31e7719bc1aea62e722e16b07e1..d9680ecaeac3fd47a420f4bc348e80fd2f803a04 100644 (file)
 #pragma interface "dirctrlg.h"
 #endif
 
 #pragma interface "dirctrlg.h"
 #endif
 
+#if wxUSE_DIRDLG || wxUSE_FILEDLG
+    #include "wx/imaglist.h"
+#endif
+
 #if wxUSE_DIRDLG
 
 #include "wx/treectrl.h"
 #if wxUSE_DIRDLG
 
 #include "wx/treectrl.h"
@@ -242,10 +246,14 @@ protected:
 #define wxID_TREECTRL          7000
 #define wxID_FILTERLISTCTRL    7001
 
 #define wxID_TREECTRL          7000
 #define wxID_FILTERLISTCTRL    7001
 
+#endif // wxUSE_DIRDLG
+
 //-------------------------------------------------------------------------
 // wxFileIconsTable - use wxTheFileIconsTable which is created as necessary
 //-------------------------------------------------------------------------
 
 //-------------------------------------------------------------------------
 // wxFileIconsTable - use wxTheFileIconsTable which is created as necessary
 //-------------------------------------------------------------------------
 
+#if wxUSE_DIRDLG || wxUSE_FILEDLG
+
 class WXDLLEXPORT wxFileIconsTable
 {
 public:
 class WXDLLEXPORT wxFileIconsTable
 {
 public:
@@ -278,7 +286,7 @@ protected:
 // The global fileicons table
 WXDLLEXPORT_DATA(extern wxFileIconsTable *) wxTheFileIconsTable;
 
 // The global fileicons table
 WXDLLEXPORT_DATA(extern wxFileIconsTable *) wxTheFileIconsTable;
 
-#endif // wxUSE_DIRDLG
+#endif // wxUSE_DIRDLG || wxUSE_FILEDLG
 
 #endif
     // _WX_DIRCTRLG_H_
 
 #endif
     // _WX_DIRCTRLG_H_
index 0a129d1b0ad7adbaba993650dc3d4f6455756afe..e6f1686a90739ccdb1ad0b354c2a5b5a5ac7205c 100644 (file)
 #pragma hdrstop
 #endif
 
 #pragma hdrstop
 #endif
 
-#if wxUSE_DIRDLG
+#if wxUSE_DIRDLG || wxUSE_FILEDLG
 
 #include "wx/generic/dirctrlg.h"
 
 #include "wx/generic/dirctrlg.h"
-
 #include "wx/module.h"
 #include "wx/utils.h"
 #include "wx/button.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 // __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.
 
 // 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);
     }
 }
         SetSelection(defaultFilter);
     }
 }
+#endif // wxUSE_DIRDLG
 
 
+#if wxUSE_DIRDLG || wxUSE_FILEDLG
 
 // ----------------------------------------------------------------------------
 // wxFileIconsTable icons
 
 // ----------------------------------------------------------------------------
 // wxFileIconsTable icons
@@ -1719,4 +1725,4 @@ int wxFileIconsTable::GetIconID(const wxString& extension, const wxString& mime)
 #endif // wxUSE_MIMETYPE/!wxUSE_MIMETYPE
 }
 
 #endif // wxUSE_MIMETYPE/!wxUSE_MIMETYPE
 }
 
-#endif // wxUSE_DIRDLG
+#endif // wxUSE_DIRDLG || wxUSE_FILEDLG