Rename BLayout::DerivedLayoutItems() to DoLayout(), which is consistent with BView::DoLayout(). Also adjusted child classes and documentation.

This commit is contained in:
Alex Wilson 2011-09-09 15:20:01 -06:00
parent 676c618ad7
commit 4e0131f51b
9 changed files with 10 additions and 10 deletions

View File

@ -337,7 +337,7 @@ topLayout->AddItem(nestedLayoutWithView);
/*!
\fn void BLayout::LayoutItems(bool force = false)
\brief If there is no layout currently ongoing, and \a force is \c false,
creates a new BLayoutContext and calls the DerivedLayoutItems() method
creates a new BLayoutContext and calls the DoLayout() method
of this BLayout and any BLayout s nested in this BLayout.
If method also guarantees that the owner view of this layout (as returned
@ -514,7 +514,7 @@ topLayout->AddItem(nestedLayoutWithView);
/*!
\fn void BLayout::DerivedLayoutItems() = 0
\fn void BLayout::DoLayout() = 0
\brief Implemented by derived classes to position and resize the items in
this layout.
*/

View File

@ -35,7 +35,7 @@ public:
static BArchivable* Instantiate(BMessage* from);
protected:
virtual void DerivedLayoutItems();
virtual void DoLayout();
virtual bool ItemAdded(BLayoutItem* item, int32 atIndex);
virtual void ItemRemoved(BLayoutItem* item, int32 fromIndex);

View File

@ -73,7 +73,7 @@ protected:
// BLayout hook methods
virtual bool ItemAdded(BLayoutItem* item, int32 atIndex);
virtual void ItemRemoved(BLayoutItem* item, int32 fromIndex);
virtual void DerivedLayoutItems() = 0;
virtual void DoLayout() = 0;
virtual void OwnerChanged(BView* was);
// BLayoutItem hook methods

View File

@ -58,7 +58,7 @@ protected:
int32 height;
};
virtual void DerivedLayoutItems();
virtual void DoLayout();
BSize AddInsets(BSize size);
void AddInsets(float* minHeight, float* maxHeight,

View File

@ -183,7 +183,7 @@ BCardLayout::InvalidateLayout(bool children)
void
BCardLayout::DerivedLayoutItems()
BCardLayout::DoLayout()
{
_ValidateMinMax();

View File

@ -400,7 +400,7 @@ BLayout::_LayoutWithinContext(bool force, BLayoutContext* context)
fOwner->_Layout(force, context);
} else {
fState |= B_LAYOUT_IN_PROGRESS;
DerivedLayoutItems();
DoLayout();
// we must ensure that all items are laid out, layouts with a view will
// have their layout process triggered by their view, but nested
// view-less layouts must have their layout triggered here (if it hasn't

View File

@ -553,7 +553,7 @@ BSplitLayout::InvalidateLayout(bool children)
void
BSplitLayout::DerivedLayoutItems()
BSplitLayout::DoLayout()
{
_ValidateMinMax();

View File

@ -77,7 +77,7 @@ public:
virtual void InvalidateLayout(bool children = false);
virtual void DerivedLayoutItems();
virtual void DoLayout();
// interface for BSplitView
BRect SplitterItemFrame(int32 index) const;

View File

@ -465,7 +465,7 @@ BTwoDimensionalLayout::AllUnarchived(const BMessage* from)
void
BTwoDimensionalLayout::DerivedLayoutItems()
BTwoDimensionalLayout::DoLayout()
{
_ValidateMinMax();