]>
Commit | Line | Data |
---|---|---|
1 | /////////////////////////////////////////////////////////////////////////////// | |
2 | // Name: wx/cocoa/NSTabView.h | |
3 | // Purpose: wxCocoaNSTabView class | |
4 | // Author: David Elliott | |
5 | // Modified by: | |
6 | // Created: 2004/04/08 | |
7 | // Copyright: (c) 2004 David Elliott | |
8 | // Licence: wxWindows licence | |
9 | /////////////////////////////////////////////////////////////////////////////// | |
10 | ||
11 | #ifndef _WX_COCOA_NSTABVIEW_H__ | |
12 | #define _WX_COCOA_NSTABVIEW_H__ | |
13 | ||
14 | #include "wx/hashmap.h" | |
15 | #include "wx/cocoa/ObjcAssociate.h" | |
16 | #include "wx/cocoa/ObjcRef.h" | |
17 | ||
18 | DECLARE_WXCOCOA_OBJC_CLASS(NSTabView); | |
19 | DECLARE_WXCOCOA_OBJC_CLASS(NSTabViewItem); | |
20 | WX_DECLARE_OBJC_HASHMAP(NSTabView); | |
21 | class wxCocoaNSTabView | |
22 | { | |
23 | WX_DECLARE_OBJC_INTERFACE_HASHMAP(NSTabView) | |
24 | public: | |
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() { } | |
30 | ||
31 | protected: | |
32 | static wxObjcAutoRefFromAlloc<struct objc_object*> sm_cocoaDelegate; | |
33 | }; | |
34 | ||
35 | #endif // _WX_COCOA_NSTABVIEW_H__ |