Updates to BOutlineListView for docs
mostly param naming. No functional change intended.
This commit is contained in:
@@ -14,7 +14,7 @@ public:
|
||||
BOutlineListView(BRect frame, const char* name,
|
||||
list_view_type type
|
||||
= B_SINGLE_SELECTION_LIST,
|
||||
uint32 resizeMode
|
||||
uint32 resizingMode
|
||||
= B_FOLLOW_LEFT | B_FOLLOW_TOP,
|
||||
uint32 flags = B_WILL_DRAW
|
||||
| B_FRAME_EVENTS | B_NAVIGABLE);
|
||||
@@ -36,8 +36,7 @@ public:
|
||||
virtual void FrameResized(float newWidth, float newHeight);
|
||||
virtual void MouseUp(BPoint where);
|
||||
|
||||
virtual bool AddUnder(BListItem* item,
|
||||
BListItem* underItem);
|
||||
virtual bool AddUnder(BListItem* item, BListItem* superItem);
|
||||
|
||||
virtual bool AddItem(BListItem* item);
|
||||
virtual bool AddItem(BListItem* item, int32 fullListIndex);
|
||||
@@ -49,7 +48,7 @@ public:
|
||||
virtual bool RemoveItems(int32 fullListIndex, int32 count);
|
||||
|
||||
BListItem* FullListItemAt(int32 fullListIndex) const;
|
||||
int32 FullListIndexOf(BPoint point) const;
|
||||
int32 FullListIndexOf(BPoint where) const;
|
||||
int32 FullListIndexOf(BListItem* item) const;
|
||||
BListItem* FullListFirstItem() const;
|
||||
BListItem* FullListLastItem() const;
|
||||
@@ -60,11 +59,9 @@ public:
|
||||
|
||||
virtual void MakeEmpty();
|
||||
bool FullListIsEmpty() const;
|
||||
void FullListDoForEach(
|
||||
bool (*func)(BListItem* item));
|
||||
void FullListDoForEach(
|
||||
bool (*func)(BListItem* item, void*),
|
||||
void*);
|
||||
void FullListDoForEach(bool (*func)(BListItem* item));
|
||||
void FullListDoForEach(bool (*func)(BListItem* item, void* arg),
|
||||
void* arg);
|
||||
|
||||
BListItem* Superitem(const BListItem* item);
|
||||
|
||||
@@ -90,17 +87,17 @@ public:
|
||||
void FullListSortItems(int (*compareFunc)(
|
||||
const BListItem* first,
|
||||
const BListItem* second));
|
||||
void SortItemsUnder(BListItem* underItem,
|
||||
void SortItemsUnder(BListItem* superItem,
|
||||
bool oneLevelOnly, int (*compareFunc)(
|
||||
const BListItem* first,
|
||||
const BListItem* second));
|
||||
int32 CountItemsUnder(BListItem* under,
|
||||
int32 CountItemsUnder(BListItem* superItem,
|
||||
bool oneLevelOnly) const;
|
||||
BListItem* EachItemUnder(BListItem* underItem,
|
||||
BListItem* EachItemUnder(BListItem* superItem,
|
||||
bool oneLevelOnly, BListItem* (*eachFunc)(
|
||||
BListItem* item, void* arg),
|
||||
void* arg);
|
||||
BListItem* ItemUnderAt(BListItem* underItem,
|
||||
BListItem* ItemUnderAt(BListItem* superItem,
|
||||
bool oneLevelOnly, int32 index) const;
|
||||
|
||||
protected:
|
||||
@@ -114,7 +111,7 @@ private:
|
||||
virtual void _ReservedOutlineListView4();
|
||||
|
||||
protected:
|
||||
virtual void ExpandOrCollapse(BListItem* underItem,
|
||||
virtual void ExpandOrCollapse(BListItem* superItem,
|
||||
bool expand);
|
||||
virtual BRect LatchRect(BRect itemRect, int32 level) const;
|
||||
virtual void DrawLatch(BRect itemRect, int32 level,
|
||||
@@ -132,7 +129,7 @@ private:
|
||||
int (*compareFunc)(const BListItem* a,
|
||||
const BListItem* b));
|
||||
void _DestructTree(BList* tree);
|
||||
BList* _BuildTree(BListItem* underItem, int32& index);
|
||||
BList* _BuildTree(BListItem* superItem, int32& index);
|
||||
|
||||
void _CullInvisibleItems(BList &list);
|
||||
bool _SwapItems(int32 first, int32 second);
|
||||
|
||||
Reference in New Issue
Block a user