* Style cleanups.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37434 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2010-07-08 16:04:41 +00:00
parent 27d84b482c
commit 268317bd9d
2 changed files with 9 additions and 5 deletions

View File

@ -5,16 +5,18 @@
#ifndef _LAYOUT_H
#define _LAYOUT_H
#include <Alignment.h>
#include <Archivable.h>
#include <List.h>
#include <Size.h>
class BLayoutItem;
class BView;
class BLayout: public BArchivable {
class BLayout : public BArchivable {
public:
BLayout();
BLayout(BMessage* archive);
@ -58,13 +60,11 @@ public:
BLayoutItem* item);
protected:
// TODO: Since memory allocations can fail, we should return a bool and
// undo the addition, if false.
virtual void ItemAdded(BLayoutItem* item);
virtual void ItemRemoved(BLayoutItem* item);
private:
friend class BView;
@ -74,4 +74,5 @@ private:
BList fItems;
};
#endif // _LAYOUT_H

View File

@ -5,14 +5,17 @@
#ifndef _LAYOUT_ITEM_H
#define _LAYOUT_ITEM_H
#include <Alignment.h>
#include <Archivable.h>
#include <Rect.h>
#include <Size.h>
class BLayout;
class BView;
class BLayoutItem: public BArchivable {
public:
BLayoutItem();
@ -53,8 +56,7 @@ public:
virtual status_t Archive(BMessage* into, bool deep = true) const;
virtual status_t AllArchived(BMessage* into) const;
virtual status_t AllUnarchived(const BMessage* from);
private:
friend class BLayout;
@ -64,4 +66,5 @@ private:
void* fLayoutData;
};
#endif // _LAYOUT_ITEM_H