Slightly rearrange BreakpointsView.
Line up the buttons along the bottom rather than the side. Add button to invoke exception configuration window.
This commit is contained in:
@@ -28,6 +28,7 @@ BreakpointsView::BreakpointsView(Team* team, Listener* listener)
|
|||||||
BGroupView(B_HORIZONTAL, 4.0f),
|
BGroupView(B_HORIZONTAL, 4.0f),
|
||||||
fTeam(team),
|
fTeam(team),
|
||||||
fListView(NULL),
|
fListView(NULL),
|
||||||
|
fConfigureExceptionsButton(NULL),
|
||||||
fToggleBreakpointButton(NULL),
|
fToggleBreakpointButton(NULL),
|
||||||
fRemoveBreakpointButton(NULL),
|
fRemoveBreakpointButton(NULL),
|
||||||
fListener(listener)
|
fListener(listener)
|
||||||
@@ -93,6 +94,7 @@ BreakpointsView::MessageReceived(BMessage* message)
|
|||||||
case MSG_CLEAR_BREAKPOINT:
|
case MSG_CLEAR_BREAKPOINT:
|
||||||
_HandleBreakpointAction(message->what);
|
_HandleBreakpointAction(message->what);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
BGroupView::MessageReceived(message);
|
BGroupView::MessageReceived(message);
|
||||||
break;
|
break;
|
||||||
@@ -103,6 +105,7 @@ BreakpointsView::MessageReceived(BMessage* message)
|
|||||||
void
|
void
|
||||||
BreakpointsView::AttachedToWindow()
|
BreakpointsView::AttachedToWindow()
|
||||||
{
|
{
|
||||||
|
fConfigureExceptionsButton->SetTarget(Window());
|
||||||
fToggleBreakpointButton->SetTarget(this);
|
fToggleBreakpointButton->SetTarget(this);
|
||||||
fRemoveBreakpointButton->SetTarget(this);
|
fRemoveBreakpointButton->SetTarget(this);
|
||||||
}
|
}
|
||||||
@@ -145,15 +148,19 @@ BreakpointsView::BreakpointSelectionChanged(BreakpointProxyList& proxies)
|
|||||||
void
|
void
|
||||||
BreakpointsView::_Init()
|
BreakpointsView::_Init()
|
||||||
{
|
{
|
||||||
BLayoutBuilder::Group<>(this, B_HORIZONTAL, 0.0f)
|
BLayoutBuilder::Group<>(this, B_VERTICAL, 0.0f)
|
||||||
.Add(fListView = BreakpointListView::Create(fTeam, this, this))
|
.Add(fListView = BreakpointListView::Create(fTeam, this, this))
|
||||||
.AddGroup(B_VERTICAL, B_USE_SMALL_SPACING)
|
.AddGroup(B_HORIZONTAL, B_USE_SMALL_SPACING)
|
||||||
.SetInsets(B_USE_SMALL_SPACING)
|
.SetInsets(B_USE_SMALL_SPACING)
|
||||||
.Add(fToggleBreakpointButton = new BButton("Toggle"))
|
|
||||||
.Add(fRemoveBreakpointButton = new BButton("Remove"))
|
|
||||||
.AddGlue()
|
.AddGlue()
|
||||||
|
.Add(fConfigureExceptionsButton = new BButton(
|
||||||
|
"Configure exceptions" B_UTF8_ELLIPSIS))
|
||||||
|
.Add(fRemoveBreakpointButton = new BButton("Remove"))
|
||||||
|
.Add(fToggleBreakpointButton = new BButton("Toggle"))
|
||||||
.End();
|
.End();
|
||||||
|
|
||||||
|
fConfigureExceptionsButton->SetMessage(new BMessage(
|
||||||
|
MSG_SHOW_EXCEPTION_CONFIG_WINDOW));
|
||||||
fToggleBreakpointButton->SetMessage(new BMessage(MSG_ENABLE_BREAKPOINT));
|
fToggleBreakpointButton->SetMessage(new BMessage(MSG_ENABLE_BREAKPOINT));
|
||||||
fRemoveBreakpointButton->SetMessage(new BMessage(MSG_CLEAR_BREAKPOINT));
|
fRemoveBreakpointButton->SetMessage(new BMessage(MSG_CLEAR_BREAKPOINT));
|
||||||
|
|
||||||
|
|||||||
@@ -54,6 +54,7 @@ private:
|
|||||||
Team* fTeam;
|
Team* fTeam;
|
||||||
BreakpointListView* fListView;
|
BreakpointListView* fListView;
|
||||||
BreakpointProxyList fSelectedBreakpoints;
|
BreakpointProxyList fSelectedBreakpoints;
|
||||||
|
BButton* fConfigureExceptionsButton;
|
||||||
BButton* fToggleBreakpointButton;
|
BButton* fToggleBreakpointButton;
|
||||||
BButton* fRemoveBreakpointButton;
|
BButton* fRemoveBreakpointButton;
|
||||||
Listener* fListener;
|
Listener* fListener;
|
||||||
|
|||||||
Reference in New Issue
Block a user