diff --git a/headers/libs/alm/ALMLayout.h b/headers/libs/alm/ALMLayout.h index c7ba0276d1..ccb5bb86b8 100644 --- a/headers/libs/alm/ALMLayout.h +++ b/headers/libs/alm/ALMLayout.h @@ -37,7 +37,9 @@ public: virtual ~BALMLayout(); BReference AddXTab(); + void AddXTabs(BReference* tabs, uint32 count); BReference AddYTab(); + void AddYTabs(BReference* tabs, uint32 count); int32 CountXTabs() const; int32 CountYTabs() const; @@ -192,6 +194,8 @@ private: } // namespace BALM + using BALM::BALMLayout; + #endif // ALM_LAYOUT_H diff --git a/src/libs/alm/ALMLayout.cpp b/src/libs/alm/ALMLayout.cpp index d1e878adf3..d76cb9d412 100644 --- a/src/libs/alm/ALMLayout.cpp +++ b/src/libs/alm/ALMLayout.cpp @@ -85,6 +85,22 @@ BALMLayout::AddXTab() } +void +BALMLayout::AddXTabs(BReference* tabs, uint32 count) +{ + for (uint32 i = 0; i < count; i++) + tabs[i] = AddXTab(); +} + + +void +BALMLayout::AddYTabs(BReference* tabs, uint32 count) +{ + for (uint32 i = 0; i < count; i++) + tabs[i] = AddYTab(); +} + + /** * Adds a new y-tab to the specification. *