mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-12 17:19:10 +01:00
d14efe561b
long become wxWidgets 2.9.2, which in turn is expected to be the last 2.9 release before the 3.0 stable release. Since the full wxWidgets distribution is rather large, I have imported only the parts that we use, on a subdirectory basis: art include/wx/*.* include/wx/aui include/wx/cocoa include/wx/generic include/wx/gtk include/wx/meta include/wx/msw include/wx/osx include/wx/persist include/wx/private include/wx/protocol include/wx/unix src/aui src/common src/generic src/gtk src/msw src/osx src/unix git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7380 8ced0084-cf51-0410-be5f-012b33b47a6e
50 lines
1.8 KiB
C++
50 lines
1.8 KiB
C++
///////////////////////////////////////////////////////////////////////////////
|
|
// Name: wx/cocoa/NSMenu.h
|
|
// Purpose: wxCocoaNSMenu class
|
|
// Author: David Elliott
|
|
// Modified by:
|
|
// Created: 2002/12/09
|
|
// RCS-ID: $Id: NSMenu.h 49523 2007-10-29 16:18:59Z DE $
|
|
// Copyright: (c) 2002 David Elliott
|
|
// Licence: wxWindows licence
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef __WX_COCOA_NSMENU_H__
|
|
#define __WX_COCOA_NSMENU_H__
|
|
|
|
#include "wx/hashmap.h"
|
|
#include "wx/cocoa/ObjcAssociate.h"
|
|
|
|
WX_DECLARE_OBJC_HASHMAP(NSMenu);
|
|
|
|
// ========================================================================
|
|
// wxCocoaNSMenu
|
|
// ========================================================================
|
|
|
|
class wxCocoaNSMenu
|
|
{
|
|
WX_DECLARE_OBJC_INTERFACE_HASHMAP(NSMenu)
|
|
public:
|
|
void AssociateNSMenu(WX_NSMenu cocoaNSMenu, unsigned int flags = 0);
|
|
void DisassociateNSMenu(WX_NSMenu cocoaNSMenu);
|
|
enum
|
|
{ OBSERVE_DidAddItem = 0x01
|
|
, OBSERVE_DidChangeItem = 0x02
|
|
, OBSERVE_DidRemoveItem = 0x04
|
|
, OBSERVE_DidSendAction = 0x08
|
|
, OBSERVE_WillSendAction = 0x10
|
|
};
|
|
virtual void Cocoa_dealloc() {}
|
|
virtual void CocoaNotification_menuDidAddItem(WX_NSNotification WXUNUSED(notification)) {}
|
|
virtual void CocoaNotification_menuDidChangeItem(WX_NSNotification WXUNUSED(notification)) {}
|
|
virtual void CocoaNotification_menuDidRemoveItem(WX_NSNotification WXUNUSED(notification)) {}
|
|
virtual void CocoaNotification_menuDidSendAction(WX_NSNotification WXUNUSED(notification)) {}
|
|
virtual void CocoaNotification_menuWillSendAction(WX_NSNotification WXUNUSED(notification)) {}
|
|
virtual ~wxCocoaNSMenu() { }
|
|
|
|
protected:
|
|
static struct objc_object *sm_cocoaObserver;
|
|
};
|
|
|
|
#endif // _WX_COCOA_NSMENU_H_
|