From e5a5e5da5af54e712e0ca9e39ef8dbdf9e55aaa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Tue, 23 Jun 2009 11:04:38 +0000 Subject: [PATCH] * Use auto-size-limits on the window. * Use insets around everything. The visual change are insets also around the source code view. Another option would be to put the source code view on the right/bottom, attaching the window border and using a B_DOCUMENT_WINDOW resize knob on the window border. The register view could also use the additional height of the buttons. However, I agree it's somehow more logical to have the register view on the right side. Maybe only because of convention... so it's possibly still up for debate. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31198 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/debugger/gui/team_window/TeamWindow.cpp | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/apps/debugger/gui/team_window/TeamWindow.cpp b/src/apps/debugger/gui/team_window/TeamWindow.cpp index 5b2f89b476..8dfcd6ea64 100644 --- a/src/apps/debugger/gui/team_window/TeamWindow.cpp +++ b/src/apps/debugger/gui/team_window/TeamWindow.cpp @@ -32,7 +32,7 @@ TeamWindow::TeamWindow(TeamDebugModel* debugModel, Listener* listener) : BWindow(BRect(100, 100, 899, 699), "Team", B_TITLED_WINDOW, - B_ASYNCHRONOUS_CONTROLS), + B_ASYNCHRONOUS_CONTROLS | B_AUTO_UPDATE_SIZE_LIMITS), fDebugModel(debugModel), fActiveThread(NULL), fActiveStackTrace(NULL), @@ -256,10 +256,8 @@ TeamWindow::_Init() BLayoutBuilder::Group<>(this, B_VERTICAL) .AddSplit(B_VERTICAL, 3.0f) - .AddGroup(B_VERTICAL, 0.0f, 0.4f) - .Add(fTabView = new BTabView("tab view")) - .SetInsets(4.0f, 4.0f, 4.0f, 0.0f) - .End() + .SetInsets(4.0f, 4.0f, 4.0f, 4.0f) + .Add(fTabView = new BTabView("tab view"), 0.4f) .AddGroup(B_VERTICAL, 4.0f) .AddGroup(B_HORIZONTAL, 4.0f) .Add(fRunButton = new BButton("Run")) @@ -267,15 +265,11 @@ TeamWindow::_Init() .Add(fStepIntoButton = new BButton("Step Into")) .Add(fStepOutButton = new BButton("Step Out")) .AddGlue() - .SetInsets(4.0f, 0.0f, 4.0f, 0.0f) .End() .AddSplit(B_HORIZONTAL, 3.0f) .Add(sourceScrollView = new BScrollView("source scroll", NULL, 0, true, true), 3.0f) - .AddGroup(B_VERTICAL) - .Add(fLocalsTabView = new BTabView("locals view")) - .SetInsets(0.0f, 0.0f, 4.0f, 4.0f) - .End() + .Add(fLocalsTabView = new BTabView("locals view")) .End() .End() .End();