X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b494c48b31885ee0d9cd91e7931ac837e00144a0..768a499594fd9c9fd0155d0513c7f5b785ce4439:/src/common/fldlgcmn.cpp?ds=sidebyside diff --git a/src/common/fldlgcmn.cpp b/src/common/fldlgcmn.cpp index fbdc429dbc..0dbf1be3a9 100644 --- a/src/common/fldlgcmn.cpp +++ b/src/common/fldlgcmn.cpp @@ -36,18 +36,25 @@ IMPLEMENT_DYNAMIC_CLASS(wxFileDialogBase, wxDialog) -wxFileDialogBase::wxFileDialogBase(wxWindow *parent, - const wxString& message, - const wxString& defaultDir, - const wxString& defaultFile, - const wxString& wildCard, - long style, - const wxPoint& WXUNUSED(pos)) - : m_message(message), - m_dir(defaultDir), - m_fileName(defaultFile), - m_wildCard(wildCard) +void wxFileDialogBase::Init() +{ + m_filterIndex = m_dialogStyle = 0; + m_parent = NULL; +} + +bool wxFileDialogBase::Create(wxWindow *parent, + const wxString& message, + const wxString& defaultDir, + const wxString& defaultFile, + const wxString& wildCard, + long style, + const wxPoint& WXUNUSED(pos)) { + m_message = message; + m_dir = defaultDir; + m_fileName = defaultFile; + m_wildCard = wildCard; + m_parent = parent; m_dialogStyle = style; m_filterIndex = 0; @@ -78,6 +85,8 @@ wxFileDialogBase::wxFileDialogBase(wxWindow *parent, ); } } + + return true; } #if WXWIN_COMPATIBILITY_2_4