init member variables properly (patch 1156088)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32660 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -48,15 +48,27 @@ extern WXDLLEXPORT_DATA(const wxChar*) wxFileSelectorDefaultWildcardStr;
|
||||
class WXDLLEXPORT wxFileDialogBase: public wxDialog
|
||||
{
|
||||
public:
|
||||
wxFileDialogBase () {}
|
||||
wxFileDialogBase () { Init(); }
|
||||
|
||||
wxFileDialogBase(wxWindow *parent,
|
||||
const wxString& message = wxFileSelectorPromptStr,
|
||||
const wxString& defaultDir = wxEmptyString,
|
||||
const wxString& defaultFile = wxEmptyString,
|
||||
const wxString& wildCard = wxFileSelectorDefaultWildcardStr,
|
||||
long style = 0,
|
||||
const wxPoint& pos = wxDefaultPosition);
|
||||
const wxString& message = wxFileSelectorPromptStr,
|
||||
const wxString& defaultDir = wxEmptyString,
|
||||
const wxString& defaultFile = wxEmptyString,
|
||||
const wxString& wildCard = wxFileSelectorDefaultWildcardStr,
|
||||
long style = 0,
|
||||
const wxPoint& pos = wxDefaultPosition) : wxDialog()
|
||||
{
|
||||
Init();
|
||||
Create(parent, message, defaultDir, defaultFile, wildCard, style, pos);
|
||||
}
|
||||
|
||||
bool Create(wxWindow *parent,
|
||||
const wxString& message = wxFileSelectorPromptStr,
|
||||
const wxString& defaultDir = wxEmptyString,
|
||||
const wxString& defaultFile = wxEmptyString,
|
||||
const wxString& wildCard = wxFileSelectorDefaultWildcardStr,
|
||||
long style = 0,
|
||||
const wxPoint& pos = wxDefaultPosition);
|
||||
|
||||
virtual void SetMessage(const wxString& message) { m_message = message; }
|
||||
virtual void SetPath(const wxString& path) { m_path = path; }
|
||||
@@ -107,6 +119,7 @@ protected:
|
||||
int m_filterIndex;
|
||||
|
||||
private:
|
||||
void Init();
|
||||
DECLARE_DYNAMIC_CLASS(wxFileDialogBase)
|
||||
DECLARE_NO_COPY_CLASS(wxFileDialogBase)
|
||||
};
|
||||
|
@@ -45,23 +45,26 @@ class WXDLLEXPORT wxTextCtrl;
|
||||
class WXDLLEXPORT wxGenericFileDialog: public wxFileDialogBase
|
||||
{
|
||||
public:
|
||||
wxGenericFileDialog() { }
|
||||
wxGenericFileDialog() : wxFileDialogBase() { Init(); }
|
||||
|
||||
wxGenericFileDialog(wxWindow *parent,
|
||||
const wxString& message = wxFileSelectorPromptStr,
|
||||
const wxString& message = wxFileSelectorPromptStr,
|
||||
const wxString& defaultDir = wxEmptyString,
|
||||
const wxString& defaultFile = wxEmptyString,
|
||||
const wxString& wildCard = wxFileSelectorDefaultWildcardStr,
|
||||
long style = 0,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
bool bypassGenericImpl = false );
|
||||
|
||||
bool Create( wxWindow *parent,
|
||||
const wxString& message = wxFileSelectorPromptStr,
|
||||
const wxString& defaultDir = wxEmptyString,
|
||||
const wxString& defaultFile = wxEmptyString,
|
||||
const wxString& wildCard = wxFileSelectorDefaultWildcardStr,
|
||||
long style = 0,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
bool bypassGenericImpl = false );
|
||||
bool Create( wxWindow *parent,
|
||||
const wxString& message = wxFileSelectorPromptStr,
|
||||
const wxString& defaultDir = wxEmptyString,
|
||||
const wxString& defaultFile = wxEmptyString,
|
||||
const wxString& wildCard = wxFileSelectorDefaultWildcardStr,
|
||||
long style = 0,
|
||||
const wxPoint& pos = wxDefaultPosition );
|
||||
|
||||
virtual ~wxGenericFileDialog();
|
||||
|
||||
virtual void SetMessage(const wxString& message) { SetTitle(message); }
|
||||
@@ -114,6 +117,7 @@ protected:
|
||||
wxBitmapButton *m_newDirButton;
|
||||
|
||||
private:
|
||||
void Init();
|
||||
DECLARE_DYNAMIC_CLASS(wxGenericFileDialog)
|
||||
DECLARE_EVENT_TABLE()
|
||||
|
||||
|
Reference in New Issue
Block a user