//---------------------------------------------------------------------------
class wxStaticBox;
+class wxNotebook;
class wxSizerItem;
class wxSizer;
bool IsWindow();
bool IsSizer();
bool IsSpacer();
+
+ void SetInitSize( int x, int y )
+ { m_minSize.x = x; m_minSize.y = y; }
+ void SetOption( int option )
+ { m_option = option; }
+ void SetFlag( int flag )
+ { m_flag = flag; }
+ void SetBorder( int border )
+ { m_border = border; }
wxWindow *GetWindow() const
{ return m_window; }
virtual void Add( wxSizer *sizer, int option = 0, int flag = 0, int border = 0, wxObject* userData = NULL );
virtual void Add( int width, int height, int option = 0, int flag = 0, int border = 0, wxObject* userData = NULL );
+ virtual void Insert( int before, wxWindow *window, int option = 0, int flag = 0, int border = 0, wxObject* userData = NULL );
+ virtual void Insert( int before, wxSizer *sizer, int option = 0, int flag = 0, int border = 0, wxObject* userData = NULL );
+ virtual void Insert( int before, int width, int height, int option = 0, int flag = 0, int border = 0, wxObject* userData = NULL );
+
virtual void Prepend( wxWindow *window, int option = 0, int flag = 0, int border = 0, wxObject* userData = NULL );
virtual void Prepend( wxSizer *sizer, int option = 0, int flag = 0, int border = 0, wxObject* userData = NULL );
virtual void Prepend( int width, int height, int option = 0, int flag = 0, int border = 0, wxObject* userData = NULL );
wxStaticBox *m_staticBox;
};
+//---------------------------------------------------------------------------
+// wxNotebookSizer
+//---------------------------------------------------------------------------
+
+#if wxUSE_NOTEBOOK
+
+class WXDLLEXPORT wxNotebookSizer: public wxSizer
+{
+ DECLARE_CLASS(wxNotebookSizer);
+public:
+ wxNotebookSizer( wxNotebook *nb );
+
+ void RecalcSizes();
+ wxSize CalcMin();
+
+ wxNotebook *GetNotebook()
+ { return m_notebook; }
+
+protected:
+ wxNotebook *m_notebook;
+};
+
+#endif
+
+
#endif
// __WXSIZER_H__