Add new methods to BALMLayout for adding multiple x/y tabs at once.
This commit is contained in:
@@ -37,7 +37,9 @@ public:
|
|||||||
virtual ~BALMLayout();
|
virtual ~BALMLayout();
|
||||||
|
|
||||||
BReference<XTab> AddXTab();
|
BReference<XTab> AddXTab();
|
||||||
|
void AddXTabs(BReference<XTab>* tabs, uint32 count);
|
||||||
BReference<YTab> AddYTab();
|
BReference<YTab> AddYTab();
|
||||||
|
void AddYTabs(BReference<YTab>* tabs, uint32 count);
|
||||||
|
|
||||||
int32 CountXTabs() const;
|
int32 CountXTabs() const;
|
||||||
int32 CountYTabs() const;
|
int32 CountYTabs() const;
|
||||||
@@ -192,6 +194,8 @@ private:
|
|||||||
|
|
||||||
} // namespace BALM
|
} // namespace BALM
|
||||||
|
|
||||||
|
|
||||||
using BALM::BALMLayout;
|
using BALM::BALMLayout;
|
||||||
|
|
||||||
|
|
||||||
#endif // ALM_LAYOUT_H
|
#endif // ALM_LAYOUT_H
|
||||||
|
|||||||
@@ -85,6 +85,22 @@ BALMLayout::AddXTab()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
BALMLayout::AddXTabs(BReference<XTab>* tabs, uint32 count)
|
||||||
|
{
|
||||||
|
for (uint32 i = 0; i < count; i++)
|
||||||
|
tabs[i] = AddXTab();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
BALMLayout::AddYTabs(BReference<YTab>* tabs, uint32 count)
|
||||||
|
{
|
||||||
|
for (uint32 i = 0; i < count; i++)
|
||||||
|
tabs[i] = AddYTab();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds a new y-tab to the specification.
|
* Adds a new y-tab to the specification.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user