Add Perform() methods to all the layout-related classes that needed them.

This commit is contained in:
Alex Wilson
2011-10-31 14:57:30 -06:00
parent 0843fb4572
commit a851b3ad54
18 changed files with 87 additions and 1 deletions
+2
View File
@@ -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;
+2
View File
@@ -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();
+2 -1
View File
@@ -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;
+2
View File
@@ -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);
+2
View File
@@ -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;
+2
View File
@@ -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);
+2
View File
@@ -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;