Merge from layout management branch.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18649 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2006-08-26 16:21:15 +00:00
parent 01595708f3
commit 9ecf9d1c1d
277 changed files with 45889 additions and 747 deletions
+38
View File
@@ -1150,6 +1150,23 @@ FrameMoved(origin);
break;
}
case B_LAYOUT_WINDOW:
{
if (fFlags & B_AUTO_UPDATE_SIZE_LIMITS) {
// Get min/max constraints of the top view and enforce window
// size limits respectively.
BSize minSize = fTopView->MinSize();
BSize maxSize = fTopView->MaxSize();
SetSizeLimits(minSize.width, maxSize.width,
minSize.height, maxSize.height);
}
// do the actual layout
fTopView->Layout(false);
break;
}
default:
BLooper::DispatchMessage(msg, target);
break;
@@ -2214,6 +2231,27 @@ BWindow::Run()
}
void
BWindow::SetLayout(BLayout* layout)
{
fTopView->SetLayout(layout);
}
BLayout*
BWindow::GetLayout() const
{
return fTopView->GetLayout();
}
void
BWindow::InvalidateLayout(bool descendants)
{
fTopView->InvalidateLayout(descendants);
}
status_t
BWindow::GetSupportedSuites(BMessage *data)
{