X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3c9287bbb4ac43f9136ee45dee7dbb7af29a9ae3..2eef85139b69a67ca067e5eba6b85336d21ad0dc:/include/wx/generic/propdlg.h diff --git a/include/wx/generic/propdlg.h b/include/wx/generic/propdlg.h index 9559d8dee0..8d168f32d5 100644 --- a/include/wx/generic/propdlg.h +++ b/include/wx/generic/propdlg.h @@ -12,9 +12,9 @@ #ifndef _WX_PROPDLG_H_ #define _WX_PROPDLG_H_ -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma interface "propdlg.h" -#endif +#include "wx/defs.h" + +#if wxUSE_BOOKCTRL class WXDLLEXPORT wxBookCtrlBase; @@ -48,7 +48,7 @@ class WXDLLEXPORT wxBookCtrlBase; // kind of book control. //----------------------------------------------------------------------------- -class WXDLLEXPORT wxPropertySheetDialog : public wxDialog +class WXDLLIMPEXP_ADV wxPropertySheetDialog : public wxDialog { public: wxPropertySheetDialog() : wxDialog() { Init(); } @@ -71,8 +71,6 @@ public: long style = wxDEFAULT_DIALOG_STYLE, const wxString& name = wxDialogNameStr); - void Init(); - //// Accessors // Set and get the notebook @@ -100,12 +98,21 @@ public: // Adds the book control to the inner sizer. virtual void AddBookCtrl(wxSizer* sizer); + // Set the focus + void OnActivate(wxActivateEvent& event); + +private: + void Init(); + protected: wxBookCtrlBase* m_bookCtrl; wxSizer* m_innerSizer; // sizer for extra space DECLARE_DYNAMIC_CLASS(wxPropertySheetDialog) + DECLARE_EVENT_TABLE() }; +#endif // wxUSE_BOOKCTRL + #endif // _WX_PROPDLG_H_