X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8487f8874288a8e4fe40ead153c73dfc7777f41b..00b4a13e0c2f37dae491f3743319321b6ab059ea:/include/wx/gtk1/dialog.h diff --git a/include/wx/gtk1/dialog.h b/include/wx/gtk1/dialog.h index 5e66c12306..745acbf518 100644 --- a/include/wx/gtk1/dialog.h +++ b/include/wx/gtk1/dialog.h @@ -37,8 +37,6 @@ extern const wxChar *wxDialogNameStr; class wxDialog: public wxDialogBase { - DECLARE_DYNAMIC_CLASS(wxDialog) - public: wxDialog() { Init(); } wxDialog( wxWindow *parent, wxWindowID id, @@ -70,14 +68,12 @@ public: bool Destroy(); - virtual bool Show( bool show ); + virtual bool Show( bool show = TRUE ); virtual int ShowModal(); virtual void EndModal( int retCode ); virtual bool IsModal() const; void SetModal( bool modal ); - virtual void InitDialog(void); - virtual void SetIcon( const wxIcon &icon ); virtual void Iconize( bool WXUNUSED(iconize)) { } virtual bool IsIconized() const { return FALSE; } @@ -88,7 +84,12 @@ public: virtual bool IsTopLevel() const { return TRUE; } // implementation + // -------------- + // move the window to the specified location and resize it: this is called + // from both DoSetSize() and DoSetClientSize() + virtual void DoMoveWindow(int x, int y, int width, int height); + virtual void GtkOnSize( int x, int y, int width, int height ); virtual void OnInternalIdle(); @@ -100,12 +101,16 @@ protected: // common part of all ctors void Init(); + // common part of Destroy() and ~wxDialog + void CleanUp(); + virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO); private: DECLARE_EVENT_TABLE() + DECLARE_DYNAMIC_CLASS(wxDialog) }; #endif // __GTKDIALOGH__