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 Archive(BMessage* into, bool deep = true) const;
|
||||||
virtual status_t AllUnarchived(const BMessage* from);
|
virtual status_t AllUnarchived(const BMessage* from);
|
||||||
|
|
||||||
|
virtual status_t Perform(perform_code d, void* arg);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void OwnerChanged(BView* was);
|
virtual void OwnerChanged(BView* was);
|
||||||
virtual void AncestorVisibilityChanged(bool shown);
|
virtual void AncestorVisibilityChanged(bool shown);
|
||||||
|
|||||||
@@ -33,6 +33,8 @@ public:
|
|||||||
|
|
||||||
virtual status_t Archive(BMessage* into, bool deep = true) const;
|
virtual status_t Archive(BMessage* into, bool deep = true) const;
|
||||||
|
|
||||||
|
virtual status_t Perform(perform_code d, void* arg);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
BSize fMinSize;
|
BSize fMinSize;
|
||||||
BSize fMaxSize;
|
BSize fMaxSize;
|
||||||
|
|||||||
@@ -32,6 +32,8 @@ public:
|
|||||||
virtual status_t AllUnarchived(const BMessage* from);
|
virtual status_t AllUnarchived(const BMessage* from);
|
||||||
static BArchivable* Instantiate(BMessage* from);
|
static BArchivable* Instantiate(BMessage* from);
|
||||||
|
|
||||||
|
virtual status_t Perform(perform_code d, void* arg);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void LayoutInvalidated(bool children = false);
|
virtual void LayoutInvalidated(bool children = false);
|
||||||
virtual void DoLayout();
|
virtual void DoLayout();
|
||||||
|
|||||||
@@ -66,6 +66,8 @@ public:
|
|||||||
virtual status_t ItemUnarchived(const BMessage* from,
|
virtual status_t ItemUnarchived(const BMessage* from,
|
||||||
BLayoutItem* item, int32 index);
|
BLayoutItem* item, int32 index);
|
||||||
|
|
||||||
|
virtual status_t Perform(perform_code d, void* arg);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual bool ItemAdded(BLayoutItem* item, int32 atIndex);
|
virtual bool ItemAdded(BLayoutItem* item, int32 atIndex);
|
||||||
virtual void ItemRemoved(BLayoutItem* item, int32 fromIndex);
|
virtual void ItemRemoved(BLayoutItem* item, int32 fromIndex);
|
||||||
@@ -81,7 +83,6 @@ protected:
|
|||||||
ColumnRowConstraints* constraints);
|
ColumnRowConstraints* constraints);
|
||||||
virtual void GetItemDimensions(BLayoutItem* item,
|
virtual void GetItemDimensions(BLayoutItem* item,
|
||||||
Dimensions* dimensions);
|
Dimensions* dimensions);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
class DummyLayoutItem;
|
class DummyLayoutItem;
|
||||||
class RowInfoArray;
|
class RowInfoArray;
|
||||||
|
|||||||
@@ -44,6 +44,8 @@ public:
|
|||||||
virtual status_t ItemUnarchived(const BMessage* from,
|
virtual status_t ItemUnarchived(const BMessage* from,
|
||||||
BLayoutItem* item, int32 index);
|
BLayoutItem* item, int32 index);
|
||||||
|
|
||||||
|
virtual status_t Perform(perform_code d, void* arg);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual bool ItemAdded(BLayoutItem* item, int32 atIndex);
|
virtual bool ItemAdded(BLayoutItem* item, int32 atIndex);
|
||||||
virtual void ItemRemoved(BLayoutItem* item, int32 fromIndex);
|
virtual void ItemRemoved(BLayoutItem* item, int32 fromIndex);
|
||||||
|
|||||||
@@ -88,6 +88,8 @@ protected:
|
|||||||
// To be called when layout data is known to be good
|
// To be called when layout data is known to be good
|
||||||
void ResetLayoutInvalidation();
|
void ResetLayoutInvalidation();
|
||||||
|
|
||||||
|
virtual status_t Perform(perform_code d, void* arg);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
friend class BView;
|
friend class BView;
|
||||||
|
|
||||||
|
|||||||
@@ -58,6 +58,8 @@ public:
|
|||||||
virtual status_t AllArchived(BMessage* into) const;
|
virtual status_t AllArchived(BMessage* into) const;
|
||||||
virtual status_t AllUnarchived(const BMessage* from);
|
virtual status_t AllUnarchived(const BMessage* from);
|
||||||
|
|
||||||
|
virtual status_t Perform(perform_code d, void* arg);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void SetLayout(BLayout* layout);
|
void SetLayout(BLayout* layout);
|
||||||
|
|
||||||
|
|||||||
@@ -71,6 +71,8 @@ public:
|
|||||||
virtual status_t AllUnarchived(const BMessage* from);
|
virtual status_t AllUnarchived(const BMessage* from);
|
||||||
static BArchivable* Instantiate(BMessage* from);
|
static BArchivable* Instantiate(BMessage* from);
|
||||||
|
|
||||||
|
virtual status_t Perform(perform_code d, void* arg);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void DrawSplitter(BRect frame,
|
virtual void DrawSplitter(BRect frame,
|
||||||
const BRect& updateRect,
|
const BRect& updateRect,
|
||||||
|
|||||||
@@ -42,6 +42,8 @@ public:
|
|||||||
virtual status_t AllArchived(BMessage* into) const;
|
virtual status_t AllArchived(BMessage* into) const;
|
||||||
virtual status_t AllUnarchived(const BMessage* from);
|
virtual status_t AllUnarchived(const BMessage* from);
|
||||||
|
|
||||||
|
virtual status_t Perform(perform_code d, void* arg);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
struct ColumnRowConstraints {
|
struct ColumnRowConstraints {
|
||||||
float weight;
|
float weight;
|
||||||
|
|||||||
@@ -458,3 +458,10 @@ BAbstractLayout::AncestorVisibilityChanged(bool shown)
|
|||||||
BLayout::AncestorVisibilityChanged(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);
|
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;
|
fMinMaxValid = true;
|
||||||
ResetLayoutInvalidation();
|
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 NULL;
|
||||||
return (ItemLayoutData*)item->LayoutData();
|
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 NULL;
|
||||||
return (ItemLayoutData*)item->LayoutData();
|
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
|
void
|
||||||
BLayoutItem::LayoutInvalidated(bool children)
|
BLayoutItem::LayoutInvalidated(bool children)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -323,3 +323,11 @@ BSplitView::_DrawDefaultSplitter(BView* view, BRect frame,
|
|||||||
be_control_look->DrawSplitter(view, frame, updateRect, view->ViewColor(),
|
be_control_look->DrawSplitter(view, frame, updateRect, view->ViewColor(),
|
||||||
orientation, flags, 0);
|
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;
|
fHorizontalLayoutContext = NULL;
|
||||||
fHorizontalLayoutWidth = -1;
|
fHorizontalLayoutWidth = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
status_t
|
||||||
|
BTwoDimensionalLayout::Perform(perform_code code, void* _data)
|
||||||
|
{
|
||||||
|
return BAbstractLayout::Perform(code, _data);
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user