1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/cocoa/NSTabView.h
3 // Purpose: wxCocoaNSTabView class
4 // Author: David Elliott
7 // Copyright: (c) 2004 David Elliott
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_COCOA_NSTABVIEW_H__
12 #define _WX_COCOA_NSTABVIEW_H__
14 #include "wx/hashmap.h"
15 #include "wx/cocoa/ObjcAssociate.h"
16 #include "wx/cocoa/ObjcRef.h"
18 DECLARE_WXCOCOA_OBJC_CLASS(NSTabView
);
19 DECLARE_WXCOCOA_OBJC_CLASS(NSTabViewItem
);
20 WX_DECLARE_OBJC_HASHMAP(NSTabView
);
21 class wxCocoaNSTabView
23 WX_DECLARE_OBJC_INTERFACE_HASHMAP(NSTabView
)
25 void AssociateNSTabView(WX_NSTabView cocoaNSTabView
);
26 void DisassociateNSTabView(WX_NSTabView ocoaNSTabView
);
27 virtual void CocoaDelegate_tabView_didSelectTabViewItem(WX_NSTabViewItem tabviewItem
) = 0;
28 virtual bool CocoaDelegate_tabView_shouldSelectTabViewItem(WX_NSTabViewItem tabviewItem
) = 0;
29 virtual ~wxCocoaNSTabView() { }
32 static wxObjcAutoRefFromAlloc
<struct objc_object
*> sm_cocoaDelegate
;
35 #endif // _WX_COCOA_NSTABVIEW_H__