X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b9993189cc61b29d68dfa255d4f23d58e16cadc2..da8b1d4b3b535aba94d04494f5b6e2b3e47901ee:/include/wx/generic/aboutdlgg.h diff --git a/include/wx/generic/aboutdlgg.h b/include/wx/generic/aboutdlgg.h index 9eaf9a4bfa..e45fc24d0d 100644 --- a/include/wx/generic/aboutdlgg.h +++ b/include/wx/generic/aboutdlgg.h @@ -17,9 +17,9 @@ #include "wx/dialog.h" -class WXDLLIMPEXP_ADV wxAboutDialogInfo; -class WXDLLIMPEXP_CORE wxSizer; -class WXDLLIMPEXP_CORE wxSizerFlags; +class WXDLLIMPEXP_FWD_ADV wxAboutDialogInfo; +class WXDLLIMPEXP_FWD_CORE wxSizer; +class WXDLLIMPEXP_FWD_CORE wxSizerFlags; // ---------------------------------------------------------------------------- // wxGenericAboutDialog: generic "About" dialog implementation @@ -35,15 +35,15 @@ public: wxGenericAboutDialog() { Init(); } // ctor which fully initializes the object - wxGenericAboutDialog(const wxAboutDialogInfo& info) + wxGenericAboutDialog(const wxAboutDialogInfo& info, wxWindow* parent = NULL) { Init(); - (void)Create(info); + (void)Create(info, parent); } // this method must be called if and only if the default ctor was used - bool Create(const wxAboutDialogInfo& info); + bool Create(const wxAboutDialogInfo& info, wxWindow* parent = NULL); protected: // this virtual method may be overridden to add some more controls to the @@ -64,8 +64,10 @@ protected: // add the text, if it's not empty, to the text sizer contents void AddText(const wxString& text); +#if wxUSE_COLLPANE // add a wxCollapsiblePane containing the given text void AddCollapsiblePane(const wxString& title, const wxString& text); +#endif // wxUSE_COLLPANE private: // common part of all ctors @@ -77,7 +79,7 @@ private: // unlike wxAboutBox which can show either the native or generic about dialog, // this function always shows the generic one -WXDLLIMPEXP_ADV void wxGenericAboutBox(const wxAboutDialogInfo& info); +WXDLLIMPEXP_ADV void wxGenericAboutBox(const wxAboutDialogInfo& info, wxWindow* parent = NULL); #endif // wxUSE_ABOUTDLG