projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Regenerated Xcode projects.
[wxWidgets.git]
/
src
/
osx
/
dataview_osx.cpp
diff --git
a/src/osx/dataview_osx.cpp
b/src/osx/dataview_osx.cpp
index c239ca35ffb4df386ec5725450743cc4b4eec18c..2886e1793497dd6aea41d7155c358b3fffc60965 100644
(file)
--- a/
src/osx/dataview_osx.cpp
+++ b/
src/osx/dataview_osx.cpp
@@
-20,6
+20,9
@@
#include "wx/dcclient.h"
#include "wx/icon.h"
#endif
#include "wx/dcclient.h"
#include "wx/icon.h"
#endif
+#if wxOSX_USE_CARBON
+#include "wx/osx/carbon/dataview.h"
+#endif
#include "wx/osx/core/dataview.h"
#include "wx/osx/private.h"
#include "wx/osx/core/dataview.h"
#include "wx/osx/private.h"
@@
-535,15
+538,9
@@
wxRect wxDataViewCtrl::GetItemRect(wxDataViewItem const& item, wxDataViewColumn
return wxRect();
}
return wxRect();
}
-
wxDataViewItem wxDataViewCtrl::GetSelection
() const
+
int wxDataViewCtrl::GetSelectedItemsCount
() const
{
{
- wxDataViewItemArray itemIDs;
-
-
- if (GetDataViewPeer()->GetSelections(itemIDs) > 0)
- return itemIDs[0];
- else
- return wxDataViewItem();
+ return GetDataViewPeer()->GetSelectedItemsCount();
}
int wxDataViewCtrl::GetSelections(wxDataViewItemArray& sel) const
}
int wxDataViewCtrl::GetSelections(wxDataViewItemArray& sel) const
@@
-712,12
+709,11
@@
void wxDataViewCtrl::OnMouse(wxMouseEvent& event)
{
event.Skip();
{
event.Skip();
+#if wxOSX_USE_CARBON
if (GetModel() == NULL)
return;
if (GetModel() == NULL)
return;
-#if 0
- // Doesn't compile anymore
- wxMacDataViewDataBrowserListViewControlPointer MacDataViewListCtrlPtr(dynamic_cast<wxMacDataViewDataBrowserListViewControlPointer>(m_peer));
+ wxMacDataViewDataBrowserListViewControlPointer MacDataViewListCtrlPtr(dynamic_cast<wxMacDataViewDataBrowserListViewControlPointer>(GetPeer()));
int NoOfChildren;
wxDataViewItemArray items;
int NoOfChildren;
wxDataViewItemArray items;
@@
-742,7
+738,7
@@
void wxDataViewCtrl::OnMouse(wxMouseEvent& event)
Rect itemrect;
::GetDataBrowserItemPartBounds( MacDataViewListCtrlPtr->GetControlRef(),
Rect itemrect;
::GetDataBrowserItemPartBounds( MacDataViewListCtrlPtr->GetControlRef(),
- reinterpret_cast<DataBrowserItemID>(firstChild.GetID()), column->GetPropertyID(),
+ reinterpret_cast<DataBrowserItemID>(firstChild.GetID()), column->Get
NativeData()->Get
PropertyID(),
kDataBrowserPropertyEnclosingPart, &itemrect );
if (abs( event.GetX() - itemrect.right) < 3)
kDataBrowserPropertyEnclosingPart, &itemrect );
if (abs( event.GetX() - itemrect.right) < 3)
@@
-756,7
+752,6
@@
void wxDataViewCtrl::OnMouse(wxMouseEvent& event)
}
}
}
}
-
SetCursor( *wxSTANDARD_CURSOR );
#endif
}
SetCursor( *wxSTANDARD_CURSOR );
#endif
}