X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bfc6fde4b1dd5bfd8ae22839ff9a69cf24eb9120..97c79de27c368de18afab3ca655bc48a4d53fc30:/include/wx/gtk1/dialog.h diff --git a/include/wx/gtk1/dialog.h b/include/wx/gtk1/dialog.h index 002c3e1bed..f440b8a6be 100644 --- a/include/wx/gtk1/dialog.h +++ b/include/wx/gtk1/dialog.h @@ -29,18 +29,18 @@ class wxDialog; // global data //----------------------------------------------------------------------------- -extern const char *wxDialogNameStr; +extern const wxChar *wxDialogNameStr; //----------------------------------------------------------------------------- // wxDialog //----------------------------------------------------------------------------- -class wxDialog: public wxPanel +class wxDialog: public wxDialogBase { DECLARE_DYNAMIC_CLASS(wxDialog) public: - wxDialog(); + wxDialog() { Init(); } wxDialog( wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &pos = wxDefaultPosition, @@ -78,8 +78,6 @@ public: virtual void InitDialog(void); - virtual void Centre( int direction = wxHORIZONTAL ); - virtual void SetIcon( const wxIcon &icon ); virtual void Iconize( bool WXUNUSED(iconize)) { } virtual bool IsIconized() const { return FALSE; } @@ -97,6 +95,9 @@ public: wxIcon m_icon; protected: + // common part of all ctors + void Init(); + virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO);