#include "wx/hashmap.h"
#include "wx/cocoa/NSWindow.h"
+class WXDLLEXPORT wxMenuBar;
+
// ========================================================================
// wxTopLevelWindowCocoa
// ========================================================================
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