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

View File

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