X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dfe1eee3bb9ecde8c4490ea69c07b5030d69530c..f925f24de8a4e6aa116efed61ab77ec08b686c67:/include/wx/gtk/dialog.h diff --git a/include/wx/gtk/dialog.h b/include/wx/gtk/dialog.h index cc3cbcac1a..7050e0b05e 100644 --- a/include/wx/gtk/dialog.h +++ b/include/wx/gtk/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, @@ -78,8 +76,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; } @@ -87,8 +83,15 @@ public: virtual void Maximize() { } virtual void Restore() { } + 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 +103,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__