Refactor BALMLayout::AddItem to reduce repitition.

This commit is contained in:
Alex Wilson
2012-05-03 08:45:00 +12:00
parent 93977272f4
commit a9761aedbf
2 changed files with 84 additions and 123 deletions
+9 -10
View File
@@ -151,17 +151,12 @@ private:
BALMLayout(const BALMLayout&);
void operator =(const BALMLayout&);
struct XTabRemover;
struct XTabRemoverFunc;
private:
template <class T>
struct TabAddTransaction;
struct YTabRemover;
struct YTabRemoverFunc;
friend struct XTabRemover;
friend struct XTabRemoverFunc;
friend struct YTabRemover;
friend struct YTabRemoverFunc;
template <class T>
friend class TabAddTransaction;
friend class XTab;
friend class YTab;
@@ -172,6 +167,10 @@ private:
void _RemoveSelfFromTab(XTab* tab);
void _RemoveSelfFromTab(YTab* tab);
bool _HasTabInLayout(XTab* tab);
bool _HasTabInLayout(YTab* tab);
bool _AddedTab(XTab* tab);
bool _AddedTab(YTab* tab);
BLayoutItem* _LayoutItemToAdd(BView* view);