Add Perform() methods to all the layout-related classes that needed them.
This commit is contained in:
@@ -39,6 +39,8 @@ public:
|
||||
virtual status_t Archive(BMessage* into, bool deep = true) const;
|
||||
virtual status_t AllUnarchived(const BMessage* from);
|
||||
|
||||
virtual status_t Perform(perform_code d, void* arg);
|
||||
|
||||
protected:
|
||||
virtual void OwnerChanged(BView* was);
|
||||
virtual void AncestorVisibilityChanged(bool shown);
|
||||
|
||||
@@ -33,6 +33,8 @@ public:
|
||||
|
||||
virtual status_t Archive(BMessage* into, bool deep = true) const;
|
||||
|
||||
virtual status_t Perform(perform_code d, void* arg);
|
||||
|
||||
private:
|
||||
BSize fMinSize;
|
||||
BSize fMaxSize;
|
||||
|
||||
@@ -32,6 +32,8 @@ public:
|
||||
virtual status_t AllUnarchived(const BMessage* from);
|
||||
static BArchivable* Instantiate(BMessage* from);
|
||||
|
||||
virtual status_t Perform(perform_code d, void* arg);
|
||||
|
||||
protected:
|
||||
virtual void LayoutInvalidated(bool children = false);
|
||||
virtual void DoLayout();
|
||||
|
||||
@@ -66,6 +66,8 @@ public:
|
||||
virtual status_t ItemUnarchived(const BMessage* from,
|
||||
BLayoutItem* item, int32 index);
|
||||
|
||||
virtual status_t Perform(perform_code d, void* arg);
|
||||
|
||||
protected:
|
||||
virtual bool ItemAdded(BLayoutItem* item, int32 atIndex);
|
||||
virtual void ItemRemoved(BLayoutItem* item, int32 fromIndex);
|
||||
@@ -81,7 +83,6 @@ protected:
|
||||
ColumnRowConstraints* constraints);
|
||||
virtual void GetItemDimensions(BLayoutItem* item,
|
||||
Dimensions* dimensions);
|
||||
|
||||
private:
|
||||
class DummyLayoutItem;
|
||||
class RowInfoArray;
|
||||
|
||||
@@ -44,6 +44,8 @@ public:
|
||||
virtual status_t ItemUnarchived(const BMessage* from,
|
||||
BLayoutItem* item, int32 index);
|
||||
|
||||
virtual status_t Perform(perform_code d, void* arg);
|
||||
|
||||
protected:
|
||||
virtual bool ItemAdded(BLayoutItem* item, int32 atIndex);
|
||||
virtual void ItemRemoved(BLayoutItem* item, int32 fromIndex);
|
||||
|
||||
@@ -88,6 +88,8 @@ protected:
|
||||
// To be called when layout data is known to be good
|
||||
void ResetLayoutInvalidation();
|
||||
|
||||
virtual status_t Perform(perform_code d, void* arg);
|
||||
|
||||
private:
|
||||
friend class BView;
|
||||
|
||||
|
||||
@@ -58,6 +58,8 @@ public:
|
||||
virtual status_t AllArchived(BMessage* into) const;
|
||||
virtual status_t AllUnarchived(const BMessage* from);
|
||||
|
||||
virtual status_t Perform(perform_code d, void* arg);
|
||||
|
||||
protected:
|
||||
void SetLayout(BLayout* layout);
|
||||
|
||||
|
||||
@@ -71,6 +71,8 @@ public:
|
||||
virtual status_t AllUnarchived(const BMessage* from);
|
||||
static BArchivable* Instantiate(BMessage* from);
|
||||
|
||||
virtual status_t Perform(perform_code d, void* arg);
|
||||
|
||||
protected:
|
||||
virtual void DrawSplitter(BRect frame,
|
||||
const BRect& updateRect,
|
||||
|
||||
@@ -42,6 +42,8 @@ public:
|
||||
virtual status_t AllArchived(BMessage* into) const;
|
||||
virtual status_t AllUnarchived(const BMessage* from);
|
||||
|
||||
virtual status_t Perform(perform_code d, void* arg);
|
||||
|
||||
protected:
|
||||
struct ColumnRowConstraints {
|
||||
float weight;
|
||||
|
||||
@@ -458,3 +458,10 @@ BAbstractLayout::AncestorVisibilityChanged(bool shown)
|
||||
BLayout::AncestorVisibilityChanged(shown);
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
BAbstractLayout::Perform(perform_code code, void* _data)
|
||||
{
|
||||
return BLayout::Perform(code, _data);
|
||||
}
|
||||
|
||||
|
||||
@@ -152,3 +152,11 @@ BAbstractLayoutItem::Archive(BMessage* into, bool deep) const
|
||||
|
||||
return archiver.Finish(err);
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
BAbstractLayoutItem::Perform(perform_code d, void* arg)
|
||||
{
|
||||
return BLayoutItem::Perform(d, arg);
|
||||
}
|
||||
|
||||
|
||||
@@ -297,3 +297,11 @@ BCardLayout::_ValidateMinMax()
|
||||
fMinMaxValid = true;
|
||||
ResetLayoutInvalidation();
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
BCardLayout::Perform(perform_code d, void* arg)
|
||||
{
|
||||
return BAbstractLayout::Perform(d, arg);
|
||||
}
|
||||
|
||||
|
||||
@@ -787,3 +787,11 @@ BGridLayout::_LayoutDataForItem(BLayoutItem* item) const
|
||||
return NULL;
|
||||
return (ItemLayoutData*)item->LayoutData();
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
BGridLayout::Perform(perform_code d, void* arg)
|
||||
{
|
||||
return BTwoDimensionalLayout::Perform(d, arg);
|
||||
}
|
||||
|
||||
|
||||
@@ -326,3 +326,11 @@ BGroupLayout::_LayoutDataForItem(BLayoutItem* item) const
|
||||
return NULL;
|
||||
return (ItemLayoutData*)item->LayoutData();
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
BGroupLayout::Perform(perform_code code, void* _data)
|
||||
{
|
||||
return BTwoDimensionalLayout::Perform(code, _data);
|
||||
}
|
||||
|
||||
|
||||
@@ -618,3 +618,10 @@ BLayout::SetTarget(BView* target)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
BLayout::Perform(perform_code code, void* _data)
|
||||
{
|
||||
return BLayoutItem::Perform(code, _data);
|
||||
}
|
||||
|
||||
|
||||
@@ -184,6 +184,13 @@ BLayoutItem::SetLayout(BLayout* layout)
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
BLayoutItem::Perform(perform_code code, void* _data)
|
||||
{
|
||||
return BArchivable::Perform(code, _data);
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
BLayoutItem::LayoutInvalidated(bool children)
|
||||
{
|
||||
|
||||
@@ -323,3 +323,11 @@ BSplitView::_DrawDefaultSplitter(BView* view, BRect frame,
|
||||
be_control_look->DrawSplitter(view, frame, updateRect, view->ViewColor(),
|
||||
orientation, flags, 0);
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
BSplitView::Perform(perform_code d, void* arg)
|
||||
{
|
||||
return BView::Perform(d, arg);
|
||||
}
|
||||
|
||||
|
||||
@@ -1407,3 +1407,11 @@ BTwoDimensionalLayout::LocalLayouter::LayoutContextLeft(BLayoutContext* context)
|
||||
fHorizontalLayoutContext = NULL;
|
||||
fHorizontalLayoutWidth = -1;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
BTwoDimensionalLayout::Perform(perform_code code, void* _data)
|
||||
{
|
||||
return BAbstractLayout::Perform(code, _data);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user