Author: axeld Date: 2010-07-08 18:04:41 +0200 (Thu, 08 Jul 2010) New Revision: 37434 Changeset: http://dev.haiku-os.org/changeset/37434/haiku Modified: haiku/trunk/headers/os/interface/Layout.h haiku/trunk/headers/os/interface/LayoutItem.h Log: * Style cleanups. Modified: haiku/trunk/headers/os/interface/Layout.h =================================================================== --- haiku/trunk/headers/os/interface/Layout.h 2010-07-08 15:40:49 UTC (rev 37433) +++ haiku/trunk/headers/os/interface/Layout.h 2010-07-08 16:04:41 UTC (rev 37434) @@ -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 @@ 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 @@ BList fItems; }; + #endif // _LAYOUT_H Modified: haiku/trunk/headers/os/interface/LayoutItem.h =================================================================== --- haiku/trunk/headers/os/interface/LayoutItem.h 2010-07-08 15:40:49 UTC (rev 37433) +++ haiku/trunk/headers/os/interface/LayoutItem.h 2010-07-08 16:04:41 UTC (rev 37434) @@ -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 @@ 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 @@ void* fLayoutData; }; + #endif // _LAYOUT_ITEM_H