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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user