X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5aa417d57c50ec4caa6c1c62835731c4c0984a67..3684ade82ec6f5fb7ff72341e26060b6ea0793c8:/include/wx/cocoa/toplevel.h diff --git a/include/wx/cocoa/toplevel.h b/include/wx/cocoa/toplevel.h index 6283dabdfb..20ca43150a 100644 --- a/include/wx/cocoa/toplevel.h +++ b/include/wx/cocoa/toplevel.h @@ -15,6 +15,8 @@ #include "wx/hashmap.h" #include "wx/cocoa/NSWindow.h" +class WXDLLEXPORT wxMenuBar; + // ======================================================================== // wxTopLevelWindowCocoa // ======================================================================== @@ -60,15 +62,18 @@ protected: public: inline WX_NSWindow GetNSWindow() { return m_cocoaNSWindow; } virtual void Cocoa_close(void); - virtual bool Cocoa_windowShouldClose(void); - virtual void Cocoa_wxMenuItemAction(wxMenuItem& item); - virtual void CocoaNotification_DidBecomeKey(void); - virtual void CocoaNotification_DidResignKey(void); + virtual bool CocoaDelegate_windowShouldClose(void); + virtual void CocoaDelegate_windowDidBecomeKey(void); + virtual void CocoaDelegate_windowDidResignKey(void); + virtual void CocoaDelegate_windowDidBecomeMain(void); + virtual void CocoaDelegate_windowDidResignMain(void); + virtual wxMenuBar* GetAppMenuBar() { return NULL; } protected: void SetNSWindow(WX_NSWindow cocoaNSWindow); WX_NSWindow m_cocoaNSWindow; static wxCocoaNSWindowHash sm_cocoaHash; virtual void CocoaReplaceView(WX_NSView oldView, WX_NSView newView); + static unsigned int NSWindowStyleForWxStyle(long style); // ------------------------------------------------------------------------ // Implementation