X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/923b48fc637dd3aa9ed1d396ceb872cd3bcaabd1..39c0acb66674c5e0424633cf162e6c10c92178d4:/include/wx/generic/mdig.h?ds=sidebyside diff --git a/include/wx/generic/mdig.h b/include/wx/generic/mdig.h index 467bddfef4..1f6a7311de 100644 --- a/include/wx/generic/mdig.h +++ b/include/wx/generic/mdig.h @@ -12,7 +12,7 @@ #ifndef _WX_MDIG_H_ #define _WX_MDIG_H_ -#if defined(__GNUG__) && !defined(__APPLE__) +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma interface "mdig.h" #endif @@ -175,8 +175,8 @@ public: #endif // no icon - void SetIcon( const wxIcon &icon ) { /*m_icons = wxIconBundle( icon );*/} - void SetIcons( const wxIconBundle &icons ) { /*m_icons = icons;*/ } + void SetIcon( const wxIcon& WXUNUSED(icon) ) { } + void SetIcons( const wxIconBundle& WXUNUSED(icons) ) { } // no maximize etc virtual void Maximize( bool WXUNUSED(maximize) = TRUE) { /* Has no effect */ } @@ -237,7 +237,7 @@ public: ~wxGenericMDIClientWindow(); virtual bool CreateClient( wxGenericMDIParentFrame *parent, long style = wxVSCROLL | wxHSCROLL ); - virtual int SetSelection(int nPage); + virtual int SetSelection(size_t nPage); protected: void PageChanged(int OldSelection, int newSelection); @@ -256,7 +256,7 @@ private: */ #ifndef wxUSE_GENERIC_MDI_AS_NATIVE -#if defined(__WXUNIVERSAL__) || defined(__WXPM__) +#if defined(__WXUNIVERSAL__) || defined(__WXPM__) || defined(__WXCOCOA__) #define wxUSE_GENERIC_MDI_AS_NATIVE 1 #else #define wxUSE_GENERIC_MDI_AS_NATIVE 0 @@ -265,6 +265,8 @@ private: #if wxUSE_GENERIC_MDI_AS_NATIVE +class wxMDIChildFrame ; + //----------------------------------------------------------------------------- // wxMDIParentFrame //----------------------------------------------------------------------------- @@ -284,6 +286,9 @@ public: { } + wxMDIChildFrame * GetActiveChild() const ; + + private: DECLARE_DYNAMIC_CLASS(wxMDIParentFrame) };