return SetDataBrowserListViewDisclosureColumn( m_controlRef, property, expandableRows);
}
+OSStatus wxMacDataBrowserControl::GetItemPartBounds( DataBrowserItemID item, DataBrowserPropertyID property, DataBrowserPropertyPart part, Rect * bounds )
+{
+ return GetDataBrowserItemPartBounds( m_controlRef, item, property, part, bounds);
+}
+
// ============================================================================
// Higher-level Databrowser
// ============================================================================
void wxMacDataItemBrowserControl::RemoveAllItems(wxMacDataItem *container)
{
+ SetScrollPosition(0, 0);
OSStatus err = wxMacDataBrowserControl::RemoveItems( (DataBrowserItemID)container, 0 , NULL , kDataBrowserItemNoProperty );
verify_noerr( err );
}
{
if ( m_sortOrder == SortOrder_None )
{
-
+
// increase the order of the lines to be shifted
unsigned int lines = MacGetCount();
for ( unsigned int i = n; i < lines; ++i)
wxMacDataItem* iter = (wxMacDataItem*) GetItemFromLine(i);
iter->SetOrder( iter->GetOrder() + 1 );
}
-
+
#if 0
// I don't understand what this code is supposed to do, RR.
SInt32 frontLineOrder = 0;
wxMacDataItem* iter = (wxMacDataItem*) GetItemFromLine(n-1);
frontLineOrder = iter->GetOrder()+1;
}
-#else
+#else
item->SetOrder( n );
#endif
}