#ifndef __GTKTOPLEVELH__
#define __GTKTOPLEVELH__
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(__APPLE__)
#pragma interface "toplevel.h"
#endif
virtual bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL);
virtual bool IsFullScreen() const { return m_fsIsShowing; };
+ virtual bool SetShape(const wxRegion& region);
+
virtual bool Show(bool show = TRUE);
virtual void SetTitle( const wxString &title );
virtual wxString GetTitle() const { return m_title; }
+ // Experimental, to allow help windows to be
+ // viewable from within modal dialogs
+ virtual void AddGrab();
+ virtual void RemoveGrab();
+ virtual bool IsGrabbed() const { return m_grabbed; }
+
// implementation from now on
// --------------------------
// common part of all ctors
void Init();
- // focus event handler
- void OnSetFocus(wxFocusEvent& event);
-
// override wxWindow methods to take into account tool/menu/statusbars
virtual void DoSetSize(int x, int y,
int width, int height,
// is the frame currently iconized?
bool m_isIconized;
-
- DECLARE_EVENT_TABLE()
+ // is the frame currently grabbed explicitly
+ // by the application?
+ bool m_grabbed;
};
#endif // __GTKTOPLEVELH__