* 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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user