// headers
// ----------------------------------------------------------------------------
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(__APPLE__)
#pragma interface "framebase.h"
#endif
public:
// construction
wxFrameBase();
-#ifdef __DARWIN__
- virtual ~wxFrameBase() { }
-#endif
+ virtual ~wxFrameBase();
wxFrame *New(wxWindow *parent,
wxWindowID id,
// if the frame has a toolbar) in client coordinates
virtual wxPoint GetClientAreaOrigin() const;
+ // sends a size event to the window using its current size -- this has an
+ // effect of refreshing the window layout
+ //
+ // currently it is only implemented under MSW but is declared here to make
+ // it possible to call it in portable code without using #ifdef's
+ virtual void SendSizeEvent() { }
+
// menu bar functions
// ------------------
// forward these to status bar
virtual void SetStatusText(const wxString &text, int number = 0);
virtual void SetStatusWidths(int n, const int widths_field[]);
+ void PushStatusText(const wxString &text, int number = 0);
+ void PopStatusText(int number = 0);
+
+ // set the status bar pane the help will be shown in
+ void SetStatusBarPane(int n) { m_statusBarPane = n; }
+ int GetStatusBarPane() const { return m_statusBarPane; }
#endif // wxUSE_STATUSBAR
// toolbar functions
{ return FALSE; }
#endif // no wxTopLevelWindowNative
+ // show help text (typically in the statusbar); show is FALSE
+ // if you are hiding the help, TRUE otherwise
+ virtual void DoGiveHelp(const wxString& text, bool show);
+
protected:
// the frame main menu/status/tool bars
// ------------------------------------
wxStatusBar *m_frameStatusBar;
#endif // wxUSE_STATUSBAR
+
+ int m_statusBarPane;
+
#if wxUSE_TOOLBAR
// override to update status bar position (or anything else) when
// something changes