X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3811dacb398d9fdf89440fdf61991776412bb1e4..bb6720bb9e4bbc17bcea2d933e80ba7cb8246d67:/include/wx/gtk/mdi.h?ds=sidebyside diff --git a/include/wx/gtk/mdi.h b/include/wx/gtk/mdi.h index 051987ad7e..6f420f8a4f 100644 --- a/include/wx/gtk/mdi.h +++ b/include/wx/gtk/mdi.h @@ -12,6 +12,9 @@ #include "wx/frame.h" +class WXDLLIMPEXP_FWD_CORE wxMDIChildFrame; +class WXDLLIMPEXP_FWD_CORE wxMDIClientWindow; + //----------------------------------------------------------------------------- // wxMDIParentFrame //----------------------------------------------------------------------------- @@ -58,11 +61,11 @@ public: wxMDIClientWindow *m_clientWindow; bool m_justInserted; - virtual void GtkOnSize(); virtual void OnInternalIdle(); protected: void Init(); + virtual void DoGetClientSize(int* width, int* height) const; private: friend class wxMDIChildFrame; @@ -115,14 +118,6 @@ public: virtual void SetStatusWidths( int WXUNUSED(n), const int WXUNUSED(widths_field)[] ) {} #endif - // no size hints - virtual void DoSetSizeHints( int WXUNUSED(minW), - int WXUNUSED(minH), - int WXUNUSED(maxW) = wxDefaultCoord, - int WXUNUSED(maxH) = wxDefaultCoord, - int WXUNUSED(incW) = wxDefaultCoord, - int WXUNUSED(incH) = wxDefaultCoord) {} - #if wxUSE_TOOLBAR // no toolbar virtual wxToolBar* CreateToolBar( long WXUNUSED(style), @@ -133,8 +128,6 @@ public: #endif // wxUSE_TOOLBAR // no icon - virtual void SetIcon(const wxIcon& icon) - { wxTopLevelWindowBase::SetIcon(icon); } virtual void SetIcons(const wxIconBundle& icons ) { wxTopLevelWindowBase::SetIcons(icons); } @@ -166,8 +159,11 @@ protected: virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO); - virtual void DoSetClientSize(int width, int height); - virtual void DoGetClientSize( int *width, int *height ) const; + + // no size hints + virtual void DoSetSizeHints(int WXUNUSED(minW), int WXUNUSED(minH), + int WXUNUSED(maxW), int WXUNUSED(maxH), + int WXUNUSED(incW), int WXUNUSED(incH)) {} private: DECLARE_EVENT_TABLE() @@ -187,6 +183,8 @@ public: virtual bool CreateClient( wxMDIParentFrame *parent, long style = wxVSCROLL | wxHSCROLL ); private: + virtual void AddChildGTK(wxWindowGTK* child); + DECLARE_DYNAMIC_CLASS(wxMDIClientWindow) };