Use a global solver per application. This make it possible to wire different BALMLayout's.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39040 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
657983b8c2
commit
56187df6eb
@ -134,7 +134,7 @@ private:
|
||||
void _ParseGroupItem(GroupItem& item, XTab* left,
|
||||
YTab* top, XTab* right, YTab* bottom);
|
||||
|
||||
LinearSpec fSolver;
|
||||
LinearSpec& fSolver;
|
||||
|
||||
XTab* fLeft;
|
||||
XTab* fRight;
|
||||
|
@ -22,12 +22,17 @@ const BSize kMinSize(0, 0);
|
||||
const BSize kMaxSize(B_SIZE_UNLIMITED, B_SIZE_UNLIMITED);
|
||||
|
||||
|
||||
static LinearSpec gLinearSolver;
|
||||
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
* Creates new layout engine.
|
||||
*/
|
||||
BALMLayout::BALMLayout(float spacing)
|
||||
:
|
||||
fSolver(gLinearSolver),
|
||||
|
||||
fInset(0.0f),
|
||||
fSpacing(spacing),
|
||||
fCurrentArea(NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user