X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b181a50500ea8a32a967dfba2a6efa7105d6bc4c..8f248607e5557858399a0d13b077a49014df8fbc:/include/wx/sizer.h diff --git a/include/wx/sizer.h b/include/wx/sizer.h index 35d020ad88..c38c47a0ef 100644 --- a/include/wx/sizer.h +++ b/include/wx/sizer.h @@ -621,7 +621,8 @@ class WXDLLEXPORT wxStaticBox; class WXDLLEXPORT wxStaticBoxSizer: public wxBoxSizer { public: - wxStaticBoxSizer( wxStaticBox *box, int orient ); + wxStaticBoxSizer(wxStaticBox *box, int orient); + wxStaticBoxSizer(int orient, wxWindow *win, const wxString& label = wxEmptyString); void RecalcSizes(); wxSize CalcMin(); @@ -642,6 +643,8 @@ private: #endif // wxUSE_STATBOX +#if wxUSE_BUTTON + class WXDLLEXPORT wxStdDialogButtonSizer: public wxBoxSizer { public: @@ -667,7 +670,7 @@ public: // I wouldn't add any other hacks like that into here, // but this one I can see being useful. void Finalise(); - + wxButton *GetAffirmativeButton() const { return m_buttonAffirmative; } wxButton *GetApplyButton() const { return m_buttonApply; } wxButton *GetNegativeButton() const { return m_buttonNegative; } @@ -680,12 +683,14 @@ protected: wxButton *m_buttonNegative; // wxID_NO wxButton *m_buttonCancel; wxButton *m_buttonHelp; - + private: DECLARE_CLASS(wxStdDialogButtonSizer) DECLARE_NO_COPY_CLASS(wxStdDialogButtonSizer) }; +#endif // wxUSE_BUTTON + #if WXWIN_COMPATIBILITY_2_4 // NB: wxBookCtrlSizer and wxNotebookSizer are deprecated, they // don't do anything. wxBookCtrlBase::DoGetBestSize does the job now.