From 26078494a002dc9efb83e8a2f320a38777b99dd4 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 29 Jan 2009 12:50:06 +0000 Subject: [PATCH] add wxHAS_MULTIPLE_FILEDLG_FILTERS symbol to be used instead of explicit tests for the platforms git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58492 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/doxygen/mainpages/const_cpp.h | 1 + include/wx/filedlg.h | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/docs/doxygen/mainpages/const_cpp.h b/docs/doxygen/mainpages/const_cpp.h index 953bc5e765..d8ef19b784 100644 --- a/docs/doxygen/mainpages/const_cpp.h +++ b/docs/doxygen/mainpages/const_cpp.h @@ -196,6 +196,7 @@ Currently the following symbols exist: supports template Read() and Write() methods in wxConfig.} @itemdef{wxHAS_LARGE_FILES, Defined if wxFile supports files more than 4GB in size.} @itemdef{wxHAS_LARGE_FFILES, Defined if wxFFile supports files more than 4GB in size.} +@itemdef{wxHAS_MULTIPLE_FILEDLG_FILTERS, Defined if wxFileDialog supports multiple ('|'-separated) filters.} @itemdef{wxHAS_POWER_EVENTS, Defined if wxPowerEvent are ever generated on the current platform.} @itemdef{wxHAS_RADIO_MENU_ITEMS, Defined if the current port supports radio menu items (see wxMenu::AppendRadioItem).} diff --git a/include/wx/filedlg.h b/include/wx/filedlg.h index ed59dec238..68639359df 100644 --- a/include/wx/filedlg.h +++ b/include/wx/filedlg.h @@ -19,6 +19,11 @@ #include "wx/dialog.h" #include "wx/arrstr.h" +// this symbol is defined for the platforms which support multiple +#if defined(__WXMSW__) || defined(__WXGTK__) || defined(__WXMAC__) + #define wxHAS_MULTIPLE_FILEDLG_FILTERS +#endif + //---------------------------------------------------------------------------- // wxFileDialog data //---------------------------------------------------------------------------- -- 2.45.2