Thanks to anevilyak, the previous approach was not thread safe. You can specify a friend layout now if you want to connect tabs of different BALMLayout's.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39041 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Clemens Zeidler
2010-10-21 11:19:18 +00:00
parent 56187df6eb
commit b23e9af5b5
2 changed files with 40 additions and 39 deletions
+4 -2
View File
@@ -27,7 +27,8 @@ namespace BALM {
*/
class BALMLayout : public BAbstractLayout {
public:
BALMLayout(float spacing = 0.0f);
BALMLayout(float spacing = 0.0f,
BALMLayout* friendLayout = NULL);
virtual ~BALMLayout();
XTab* AddXTab();
@@ -134,7 +135,8 @@ private:
void _ParseGroupItem(GroupItem& item, XTab* left,
YTab* top, XTab* right, YTab* bottom);
LinearSpec& fSolver;
LinearSpec* fSolver;
LinearSpec fOwnSolver;
XTab* fLeft;
XTab* fRight;