]> git.saurik.com Git - wxWidgets.git/blame - include/wx/cocoa/NSTabView.h
Fix wxPropertyGrid::GetPropertyRect when the last item is collapsed.
[wxWidgets.git] / include / wx / cocoa / NSTabView.h
CommitLineData
78480884
DE
1///////////////////////////////////////////////////////////////////////////////
2// Name: wx/cocoa/NSTabView.h
3// Purpose: wxCocoaNSTabView class
4// Author: David Elliott
5// Modified by:
6// Created: 2004/04/08
78480884 7// Copyright: (c) 2004 David Elliott
65571936 8// Licence: wxWindows licence
78480884
DE
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
18DECLARE_WXCOCOA_OBJC_CLASS(NSTabView);
19DECLARE_WXCOCOA_OBJC_CLASS(NSTabViewItem);
20WX_DECLARE_OBJC_HASHMAP(NSTabView);
21class wxCocoaNSTabView
22{
23 WX_DECLARE_OBJC_INTERFACE_HASHMAP(NSTabView)
24public:
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;
31e57091
VZ
29 virtual ~wxCocoaNSTabView() { }
30
78480884
DE
31protected:
32 static wxObjcAutoRefFromAlloc<struct objc_object*> sm_cocoaDelegate;
33};
34
35#endif // _WX_COCOA_NSTABVIEW_H__