X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d062e17fca1a1fc0b82b269da4a7ad271075ba2b..c2bbeff0048b6f02bf1ef41edc6c7a3ce148f907:/include/wx/mac/frame.h diff --git a/include/wx/mac/frame.h b/include/wx/mac/frame.h index c71cf5fee5..95ddac84d1 100644 --- a/include/wx/mac/frame.h +++ b/include/wx/mac/frame.h @@ -1,12 +1,12 @@ ///////////////////////////////////////////////////////////////////////////// // Name: frame.h -// Purpose: wxFrameMac class +// Purpose: wxFrame class // Author: AUTHOR // Modified by: // Created: ??/??/98 // RCS-ID: $Id$ // Copyright: (c) AUTHOR -// Licence: wxWindows licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _WX_FRAME_H_ @@ -28,14 +28,12 @@ class WXDLLEXPORT wxMenuBar; class WXDLLEXPORT wxStatusBar; class WXDLLEXPORT wxMacToolTip ; -class WXDLLEXPORT wxFrameMac: public wxFrameBase { - - DECLARE_DYNAMIC_CLASS(wxFrameMac) - +class WXDLLEXPORT wxFrame: public wxFrameBase +{ public: // construction - wxFrameMac() { Init(); } - wxFrameMac(wxWindow *parent, + wxFrame() { Init(); } + wxFrame(wxWindow *parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, @@ -56,21 +54,13 @@ public: long style = wxDEFAULT_FRAME_STYLE, const wxString& name = wxFrameNameStr); - virtual ~wxFrameMac(); - - // 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 SetIcon(const wxIcon& icon); + virtual ~wxFrame(); // 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 @@ -111,6 +101,10 @@ public: wxMacToolTip* m_hwndToolTip ; #endif // tooltips + // called by wxWindow whenever it gets focus + void SetLastFocus(wxWindow *win) { m_winLastFocused = win; } + wxWindow *GetLastFocus() const { return m_winLastFocused; } + protected: // common part of all ctors void Init(); @@ -120,7 +114,6 @@ protected: virtual void DoSetClientSize(int width, int height); protected: - bool m_iconized; #if wxUSE_STATUSBAR static bool m_useNativeStatusBar; #endif // wxUSE_STATUSBAR @@ -129,6 +122,7 @@ protected: private: DECLARE_EVENT_TABLE() + DECLARE_DYNAMIC_CLASS(wxFrame) }; #endif