]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/mac/frame.h
Added comment explaining that it's not necessary to use LEX and YACC on
[wxWidgets.git] / include / wx / mac / frame.h
index 331568d974e3f9a9e3b2f0ce12ceeabfc7ffd01c..c3032d69f04bcf556797043fc6bccd90031c23eb 100644 (file)
@@ -1,6 +1,6 @@
 /////////////////////////////////////////////////////////////////////////////
 // Name:        frame.h
-// Purpose:     wxFrame class
+// Purpose:     wxFrameMac class
 // Author:      AUTHOR
 // Modified by:
 // Created:     ??/??/98
@@ -28,14 +28,14 @@ class WXDLLEXPORT wxMenuBar;
 class WXDLLEXPORT wxStatusBar;
 class WXDLLEXPORT wxMacToolTip ;
 
-class WXDLLEXPORT wxFrame: public wxFrameBase {
+class WXDLLEXPORT wxFrameMac: public wxFrameBase {
 
-  DECLARE_DYNAMIC_CLASS(wxFrame)
+  DECLARE_DYNAMIC_CLASS(wxFrameMac)
 
 public:
     // construction
-    wxFrame() { Init(); }
-    wxFrame(wxWindow *parent,
+    wxFrameMac() { Init(); }
+    wxFrameMac(wxWindow *parent,
             wxWindowID id,
             const wxString& title,
             const wxPoint& pos = wxDefaultPosition,
@@ -56,16 +56,7 @@ public:
                 long style = wxDEFAULT_FRAME_STYLE,
                 const wxString& name = wxFrameNameStr);
 
-    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);
+    virtual ~wxFrameMac();
 
     // implementation only from now on
     // -------------------------------
@@ -121,10 +112,11 @@ 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()