Save and restore layout.

This commit is contained in:
czeidler
2012-05-03 08:44:11 +12:00
committed by Alex Wilson
parent ab0d7676f8
commit b7630c4c98
2 changed files with 146 additions and 7 deletions
+4
View File
@@ -67,6 +67,7 @@ public:
Area* AreaFor(const BView* view) const;
Area* AreaFor(const BLayoutItem* item) const;
int32 CountAreas() const;
Area* AreaAt(int32 index) const;
Area* CurrentArea() const;
bool SetCurrentArea(const Area* area);
@@ -122,6 +123,9 @@ public:
YTab* bottom = NULL, XTab* left = NULL,
XTab* right = NULL);
bool SaveLayout(BMessage* archive) const;
bool RestoreLayout(const BMessage* archive);
virtual BSize BaseMinSize();
virtual BSize BaseMaxSize();
virtual BSize BasePreferredSize();