Unify spacing
* Unify split width * Make break point list attach to tab frame, apply default insets and spacing to buttons.
This commit is contained in:
@@ -205,9 +205,10 @@ BreakpointsView::WatchpointSelectionChanged(Watchpoint* watchpoint)
|
|||||||
void
|
void
|
||||||
BreakpointsView::_Init()
|
BreakpointsView::_Init()
|
||||||
{
|
{
|
||||||
BLayoutBuilder::Group<>(this)
|
BLayoutBuilder::Group<>(this, B_HORIZONTAL, 0.0f)
|
||||||
.Add(fListView = BreakpointListView::Create(fTeam, this))
|
.Add(fListView = BreakpointListView::Create(fTeam, this))
|
||||||
.AddGroup(B_VERTICAL, 4.0f)
|
.AddGroup(B_VERTICAL, B_USE_SMALL_SPACING)
|
||||||
|
.SetInsets(B_USE_SMALL_SPACING)
|
||||||
.Add(fToggleBreakpointButton = new BButton("Toggle"))
|
.Add(fToggleBreakpointButton = new BButton("Toggle"))
|
||||||
.Add(fRemoveBreakpointButton = new BButton("Remove"))
|
.Add(fRemoveBreakpointButton = new BButton("Remove"))
|
||||||
.AddGlue()
|
.AddGlue()
|
||||||
|
|||||||
@@ -760,13 +760,15 @@ TeamWindow::_Init()
|
|||||||
{
|
{
|
||||||
BScrollView* sourceScrollView;
|
BScrollView* sourceScrollView;
|
||||||
|
|
||||||
|
const float splitSpacing = 3.0f;
|
||||||
|
|
||||||
BLayoutBuilder::Group<>(this, B_VERTICAL, 0.0f)
|
BLayoutBuilder::Group<>(this, B_VERTICAL, 0.0f)
|
||||||
.Add(fMenuBar = new BMenuBar("Menu"))
|
.Add(fMenuBar = new BMenuBar("Menu"))
|
||||||
.AddSplit(B_VERTICAL, 3.0f)
|
.AddSplit(B_VERTICAL, splitSpacing)
|
||||||
.GetSplitView(&fFunctionSplitView)
|
.GetSplitView(&fFunctionSplitView)
|
||||||
.SetInsets(B_USE_SMALL_INSETS)
|
.SetInsets(B_USE_SMALL_INSETS)
|
||||||
.Add(fTabView = new BTabView("tab view"), 0.4f)
|
.Add(fTabView = new BTabView("tab view"), 0.4f)
|
||||||
.AddSplit(B_HORIZONTAL, 3.0f)
|
.AddSplit(B_HORIZONTAL, splitSpacing)
|
||||||
.GetSplitView(&fSourceSplitView)
|
.GetSplitView(&fSourceSplitView)
|
||||||
.AddGroup(B_VERTICAL, B_USE_SMALL_SPACING)
|
.AddGroup(B_VERTICAL, B_USE_SMALL_SPACING)
|
||||||
.AddGroup(B_HORIZONTAL, B_USE_SMALL_SPACING)
|
.AddGroup(B_HORIZONTAL, B_USE_SMALL_SPACING)
|
||||||
@@ -780,7 +782,7 @@ TeamWindow::_Init()
|
|||||||
"source path",
|
"source path",
|
||||||
"Source path unavailable."), 4.0f)
|
"Source path unavailable."), 4.0f)
|
||||||
.Add(sourceScrollView = new BScrollView("source scroll",
|
.Add(sourceScrollView = new BScrollView("source scroll",
|
||||||
NULL, 0, true, true), 3.0f)
|
NULL, 0, true, true), splitSpacing)
|
||||||
.End()
|
.End()
|
||||||
.Add(fLocalsTabView = new BTabView("locals view"))
|
.Add(fLocalsTabView = new BTabView("locals view"))
|
||||||
.End()
|
.End()
|
||||||
@@ -790,7 +792,7 @@ TeamWindow::_Init()
|
|||||||
sourceScrollView->SetTarget(fSourceView = SourceView::Create(fTeam, this));
|
sourceScrollView->SetTarget(fSourceView = SourceView::Create(fTeam, this));
|
||||||
|
|
||||||
// add threads tab
|
// add threads tab
|
||||||
BSplitView* threadGroup = new BSplitView(B_HORIZONTAL);
|
BSplitView* threadGroup = new BSplitView(B_HORIZONTAL, splitSpacing);
|
||||||
threadGroup->SetName("Threads");
|
threadGroup->SetName("Threads");
|
||||||
fTabView->AddTab(threadGroup);
|
fTabView->AddTab(threadGroup);
|
||||||
BLayoutBuilder::Split<>(threadGroup)
|
BLayoutBuilder::Split<>(threadGroup)
|
||||||
@@ -799,7 +801,7 @@ TeamWindow::_Init()
|
|||||||
.Add(fStackTraceView = StackTraceView::Create(this));
|
.Add(fStackTraceView = StackTraceView::Create(this));
|
||||||
|
|
||||||
// add images tab
|
// add images tab
|
||||||
BSplitView* imagesGroup = new BSplitView(B_HORIZONTAL);
|
BSplitView* imagesGroup = new BSplitView(B_HORIZONTAL, splitSpacing);
|
||||||
imagesGroup->SetName("Images");
|
imagesGroup->SetName("Images");
|
||||||
fTabView->AddTab(imagesGroup);
|
fTabView->AddTab(imagesGroup);
|
||||||
BLayoutBuilder::Split<>(imagesGroup)
|
BLayoutBuilder::Split<>(imagesGroup)
|
||||||
@@ -813,7 +815,7 @@ TeamWindow::_Init()
|
|||||||
breakpointsGroup->SetName("Breakpoints");
|
breakpointsGroup->SetName("Breakpoints");
|
||||||
fTabView->AddTab(breakpointsGroup);
|
fTabView->AddTab(breakpointsGroup);
|
||||||
BLayoutBuilder::Group<>(breakpointsGroup)
|
BLayoutBuilder::Group<>(breakpointsGroup)
|
||||||
.SetInsets(B_USE_SMALL_INSETS)
|
// .SetInsets(0.0f)
|
||||||
.Add(fBreakpointsView = BreakpointsView::Create(fTeam, this));
|
.Add(fBreakpointsView = BreakpointsView::Create(fTeam, this));
|
||||||
|
|
||||||
// add local variables tab
|
// add local variables tab
|
||||||
|
|||||||
Reference in New Issue
Block a user