Remove old implementatoins of ALM tests that used the Add*To* methods.
This commit is contained in:
parent
d814593064
commit
b99cf18c18
@ -66,20 +66,6 @@ public:
|
||||
fLayout->AddXTab())
|
||||
.AddToRight(button5, fLayout->Right());
|
||||
|
||||
/*
|
||||
// create a new BALMLayout and use it for this window
|
||||
fLayout = new BALMLayout();
|
||||
SetLayout(fLayout);
|
||||
|
||||
fLayout->AddView(button1, fLayout->Left(), fLayout->Top(), NULL,
|
||||
NULL);
|
||||
fLayout->AddViewToRight(button2);
|
||||
fLayout->AddViewToRight(button3, fLayout->Right());
|
||||
fLayout->AddView(button4, fLayout->Left(), fLayout->BottomOf(button1),
|
||||
NULL, fLayout->Bottom());
|
||||
fLayout->AddViewToRight(button5, fLayout->Right());
|
||||
*/
|
||||
|
||||
// test size limits
|
||||
BSize min = fLayout->MinSize();
|
||||
BSize max = fLayout->MaxSize();
|
||||
|
@ -72,23 +72,6 @@ public:
|
||||
layout->AddView(textView1, x1, y1, x2, y2);
|
||||
*/
|
||||
|
||||
// alternative setup
|
||||
/*
|
||||
layout->AddView(button1);
|
||||
Area* a1 = layout->AreaOf(button1);
|
||||
Area* a2 = layout->AddViewToRight(button2, a1, layout->Right(), NULL,
|
||||
layout->AddYTab());
|
||||
Area* a3 = layout->AddViewToBottom(button3, a2, layout->Bottom(),
|
||||
layout->AddXTab(), NULL);
|
||||
Area* a4 = layout->AddViewToLeft(button4, a3, layout->Left(),
|
||||
a1->Bottom());
|
||||
|
||||
layout->AddView(textView1, a4->Right(), a1->Bottom(), a2->Left(),
|
||||
a3->Top());
|
||||
a1->SetWidthAs(a3);
|
||||
a1->SetHeightAs(a3);
|
||||
*/
|
||||
|
||||
// test size limits
|
||||
BSize min = layout->MinSize();
|
||||
BSize max = layout->MaxSize();
|
||||
|
@ -45,17 +45,6 @@ public:
|
||||
.AddBelow(button2)
|
||||
.AddBelow(button3, fLayout->Bottom());
|
||||
|
||||
/*
|
||||
// create a new BALMLayout and use it for this window
|
||||
fLayout = new BALMLayout();
|
||||
SetLayout(fLayout);
|
||||
|
||||
fLayout->AddView(button1, fLayout->Left(), fLayout->Top(),
|
||||
fLayout->Right(), NULL);
|
||||
fLayout->AddViewToBottom(button2);
|
||||
fLayout->AddViewToBottom(button3, fLayout->Bottom());
|
||||
*/
|
||||
|
||||
// test size limits
|
||||
BSize min = fLayout->MinSize();
|
||||
BSize max = fLayout->MaxSize();
|
||||
|
@ -78,35 +78,6 @@ public:
|
||||
.AddToRight(stringView2)
|
||||
.AddToRight(BSpaceLayoutItem::CreateGlue(), layout->Right());
|
||||
|
||||
/*
|
||||
// create a new BALMLayout and use it for this window
|
||||
BALMLayout* layout = new BALMLayout(10);
|
||||
SetLayout(layout);
|
||||
layout->SetInsets(10.);
|
||||
|
||||
layout->AddView(button1, layout->Left(), layout->Top());
|
||||
layout->AddViewToRight(radioButton);
|
||||
layout->AddItemToRight(BSpaceLayoutItem::CreateGlue());
|
||||
Area* a3 = layout->AddViewToRight(button3);
|
||||
layout->SetCurrentArea(radioButton);
|
||||
layout->AddViewToBottom(textView1, NULL, NULL, a3->Right());
|
||||
layout->AddViewToBottom(button4);
|
||||
layout->AddViewToRight(button5, layout->Right());
|
||||
layout->AddViewToBottom(button6);
|
||||
|
||||
layout->AddView(menu1, layout->Left(), layout->BottomOf(button6));
|
||||
layout->AddViewToRight(stringView1);
|
||||
layout->AddItemToRight(BSpaceLayoutItem::CreateGlue(), layout->Right());
|
||||
|
||||
layout->AddViewToBottom(statusBar, NULL, layout->Left(),
|
||||
layout->Right());
|
||||
|
||||
layout->AddView(menu2, layout->Left(), layout->BottomOf(statusBar),
|
||||
layout->RightOf(menu1), layout->Bottom());
|
||||
layout->AddViewToRight(stringView2);
|
||||
layout->AddItemToRight(BSpaceLayoutItem::CreateGlue(), layout->Right());
|
||||
*/
|
||||
|
||||
layout->Solver()->AddConstraint(2, layout->TopOf(menu1), -1,
|
||||
layout->Bottom(), OperatorType(kEQ), 0);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user