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:
Clemens Zeidler 2010-10-21 11:05:38 +00:00
parent 657983b8c2
commit 56187df6eb
2 changed files with 6 additions and 1 deletions

View File

@ -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;

View File

@ -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)