/////////////////////////////////////////////////////////////////////////////
-// Name: frame.h
+// Name: wx/osx/frame.h
// Purpose: wxFrame class
// Author: Stefan Csomor
// Modified by:
#ifndef _WX_FRAME_H_
#define _WX_FRAME_H_
-#include "wx/window.h"
#include "wx/toolbar.h"
#include "wx/accel.h"
#include "wx/icon.h"
-WXDLLIMPEXP_DATA_CORE(extern const char) wxToolBarNameStr[];
-
-class WXDLLIMPEXP_FWD_CORE wxMenuBar;
-class WXDLLIMPEXP_FWD_CORE wxStatusBar;
class WXDLLIMPEXP_FWD_CORE wxMacToolTip ;
-class WXDLLIMPEXP_CORE wxFrame: public wxFrameBase
+class WXDLLIMPEXP_CORE wxFrame: public wxFrameBase
{
public:
// construction
virtual wxPoint GetClientAreaOrigin() const;
// override some more virtuals
- virtual bool Enable(bool enable = TRUE) ;
+ virtual bool Enable(bool enable = true) ;
// event handlers
void OnActivate(wxActivateEvent& event);
// Status bar
#if wxUSE_STATUSBAR
virtual wxStatusBar* OnCreateStatusBar(int number = 1,
- long style = wxST_SIZEGRIP,
+ long style = wxSTB_DEFAULT_STYLE,
wxWindowID id = 0,
const wxString& name = wxStatusLineNameStr);
#endif // wxUSE_STATUSBAR
void PositionBars();
+ // internal response to size events
+ virtual void MacOnInternalSize() { PositionBars(); }
+
protected:
// common part of all ctors
void Init();
virtual void AttachMenuBar(wxMenuBar *menubar);
#endif
- // osx specific event handling common for all osx-ports
- virtual void HandleResized( double timestampsec );
-
-protected:
// the last focused child: we restore focus to it on activation
wxWindow *m_winLastFocused;
virtual bool MacIsChildOfClientArea( const wxWindow* child ) const ;
-private:
DECLARE_EVENT_TABLE()
DECLARE_DYNAMIC_CLASS(wxFrame)
};