X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/05adb9d2fdc40d8620730be490bf406b8e367cf8..59840ba3b16e4baf3228dd79c6b7ae40b55cf488:/include/wx/mac/frame.h diff --git a/include/wx/mac/frame.h b/include/wx/mac/frame.h index 331568d974..940b8b957c 100644 --- a/include/wx/mac/frame.h +++ b/include/wx/mac/frame.h @@ -6,7 +6,7 @@ // Created: ??/??/98 // RCS-ID: $Id$ // Copyright: (c) AUTHOR -// Licence: wxWindows licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _WX_FRAME_H_ @@ -28,10 +28,8 @@ class WXDLLEXPORT wxMenuBar; class WXDLLEXPORT wxStatusBar; class WXDLLEXPORT wxMacToolTip ; -class WXDLLEXPORT wxFrame: public wxFrameBase { - - DECLARE_DYNAMIC_CLASS(wxFrame) - +class WXDLLEXPORT wxFrame: public wxFrameBase +{ public: // construction wxFrame() { Init(); } @@ -58,20 +56,11 @@ public: virtual ~wxFrame(); - // implement base class pure virtuals - virtual void Maximize(bool maximize = TRUE); - virtual bool IsMaximized() const; - virtual void Iconize(bool iconize = TRUE); - virtual bool IsIconized() const; - virtual void Restore(); - virtual void SetMenuBar(wxMenuBar *menubar); - virtual void SetIcon(const wxIcon& icon); - // implementation only from now on // ------------------------------- // override some more virtuals - virtual bool Enable(bool enable) ; + virtual bool Enable(bool enable = TRUE) ; // get the origin of the client area (which may be different from (0, 0) // if the frame has a toolbar) in client coordinates @@ -121,13 +110,15 @@ protected: virtual void DoSetClientSize(int width, int height); protected: - bool m_iconized; #if wxUSE_STATUSBAR static bool m_useNativeStatusBar; #endif // wxUSE_STATUSBAR + // the last focused child: we restore focus to it on activation + wxWindow *m_winLastFocused; private: DECLARE_EVENT_TABLE() + DECLARE_DYNAMIC_CLASS(wxFrame) }; #endif