* 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
This commit is contained in:
Stephan Aßmus
2009-06-23 11:04:38 +00:00
parent 4aeb7a3cc2
commit e5a5e5da5a
@@ -32,7 +32,7 @@
TeamWindow::TeamWindow(TeamDebugModel* debugModel, Listener* listener) TeamWindow::TeamWindow(TeamDebugModel* debugModel, Listener* listener)
: :
BWindow(BRect(100, 100, 899, 699), "Team", B_TITLED_WINDOW, BWindow(BRect(100, 100, 899, 699), "Team", B_TITLED_WINDOW,
B_ASYNCHRONOUS_CONTROLS), B_ASYNCHRONOUS_CONTROLS | B_AUTO_UPDATE_SIZE_LIMITS),
fDebugModel(debugModel), fDebugModel(debugModel),
fActiveThread(NULL), fActiveThread(NULL),
fActiveStackTrace(NULL), fActiveStackTrace(NULL),
@@ -256,10 +256,8 @@ TeamWindow::_Init()
BLayoutBuilder::Group<>(this, B_VERTICAL) BLayoutBuilder::Group<>(this, B_VERTICAL)
.AddSplit(B_VERTICAL, 3.0f) .AddSplit(B_VERTICAL, 3.0f)
.AddGroup(B_VERTICAL, 0.0f, 0.4f) .SetInsets(4.0f, 4.0f, 4.0f, 4.0f)
.Add(fTabView = new BTabView("tab view")) .Add(fTabView = new BTabView("tab view"), 0.4f)
.SetInsets(4.0f, 4.0f, 4.0f, 0.0f)
.End()
.AddGroup(B_VERTICAL, 4.0f) .AddGroup(B_VERTICAL, 4.0f)
.AddGroup(B_HORIZONTAL, 4.0f) .AddGroup(B_HORIZONTAL, 4.0f)
.Add(fRunButton = new BButton("Run")) .Add(fRunButton = new BButton("Run"))
@@ -267,15 +265,11 @@ TeamWindow::_Init()
.Add(fStepIntoButton = new BButton("Step Into")) .Add(fStepIntoButton = new BButton("Step Into"))
.Add(fStepOutButton = new BButton("Step Out")) .Add(fStepOutButton = new BButton("Step Out"))
.AddGlue() .AddGlue()
.SetInsets(4.0f, 0.0f, 4.0f, 0.0f)
.End() .End()
.AddSplit(B_HORIZONTAL, 3.0f) .AddSplit(B_HORIZONTAL, 3.0f)
.Add(sourceScrollView = new BScrollView("source scroll", .Add(sourceScrollView = new BScrollView("source scroll",
NULL, 0, true, true), 3.0f) NULL, 0, true, true), 3.0f)
.AddGroup(B_VERTICAL) .Add(fLocalsTabView = new BTabView("locals view"))
.Add(fLocalsTabView = new BTabView("locals view"))
.SetInsets(0.0f, 0.0f, 4.0f, 4.0f)
.End()
.End() .End()
.End() .End()
.End(); .End();