#if wxUSE_FILEDLG
#include "wx/filedlg.h"
+#include "wx/dirdlg.h"
#ifndef WX_PRECOMP
#include "wx/string.h"
m_wildCard = wildCard;
m_parent = parent;
- m_fdStyle = style;
+ m_windowStyle = style;
m_filterIndex = 0;
if (!HasFdFlag(wxFD_OPEN) && !HasFdFlag(wxFD_SAVE))
- m_fdStyle |= wxFD_OPEN; // wxFD_OPEN is the default
+ m_windowStyle |= wxFD_OPEN; // wxFD_OPEN is the default
// check that the styles are not contradictory
wxASSERT_MSG( !(HasFdFlag(wxFD_SAVE) && HasFdFlag(wxFD_OPEN)),
}
#endif // WXWIN_COMPATIBILITY_2_4
+#if WXWIN_COMPATIBILITY_2_6
+long wxFileDialogBase::GetStyle() const
+{
+ return GetWindowStyle();
+}
+
+void wxFileDialogBase::SetStyle(long style)
+{
+ SetWindowStyle(style);
+}
+#endif // WXWIN_COMPATIBILITY_2_6
+
+
wxString wxFileDialogBase::AppendExtension(const wxString &filePath,
const wxString &extensionList)
{
return wxDefaultFileSelector(false, what, extension, default_name, parent);
}
+
+//----------------------------------------------------------------------------
+// wxDirDialogBase
+//----------------------------------------------------------------------------
+
+#if WXWIN_COMPATIBILITY_2_6
+long wxDirDialogBase::GetStyle() const
+{
+ return GetWindowStyle();
+}
+
+void wxDirDialogBase::SetStyle(long style)
+{
+ SetWindowStyle(style);
+}
+#endif // WXWIN_COMPATIBILITY_2_6
+
+
#endif // wxUSE_FILEDLG