Implement BOutlineListView's derivative of SwapItems(). This makes things like Vision's network reordering shortcuts

work correctly.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24158 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rene Gollent
2008-02-27 22:54:37 +00:00
parent 85b669320b
commit 07d1827688
2 changed files with 81 additions and 8 deletions
+4
View File
@@ -117,6 +117,10 @@ class BOutlineListView : public BListView {
BList* _BuildTree(BListItem* underItem, int32& index);
BListItem* _RemoveItem(BListItem* item, int32 fullListIndex);
bool _SwapItems(int32 first, int32 second);
void _DoSwap(BList &list, int32 firstIndex, int32 secondIndex,
int32 firstCount, int32 secondCount, int32 swapCount);
int32 _GetSubitemCount(BList &list, int32 itemIndex);
BListItem* RemoveOne(int32 fullListIndex);
static void TrackInLatchItem(void *);