34 #include <wx/statline.h>
56 wxDialog(parent,
id, _T("Add
Breakpoint"), wxDefaultPosition) {
58 createContents(
this,
true,
true);
76 wxString addressString =
84 wxString message = _T(
"Invalid address");
86 errorDialog.ShowModal();
100 wxWindow *parent,
bool call_fit,
bool set_sizer) {
102 wxBoxSizer *item0 =
new wxBoxSizer( wxVERTICAL );
104 wxStaticText *item1 =
new wxStaticText( parent,
ID_LABEL_NEW_BP, wxT(
"Set Breakpoint at"), wxDefaultPosition, wxDefaultSize, 0 );
105 item0->Add( item1, 0, wxALIGN_CENTER|wxALL, 5 );
107 wxTextCtrl *item2 =
new wxTextCtrl( parent,
ID_ADDRESS, wxT(
""), wxDefaultPosition, wxSize(200,-1), 0 );
108 item0->Add( item2, 0, wxALIGN_CENTER|wxALL, 5 );
110 wxStaticLine *item3 =
new wxStaticLine( parent,
ID_LINE, wxDefaultPosition, wxSize(20,-1), wxLI_HORIZONTAL );
111 item0->Add( item3, 0, wxGROW|wxALL, 5 );
113 wxGridSizer *item4 =
new wxGridSizer( 2, 0, 0 );
115 wxButton *item5 =
new wxButton( parent, wxID_OK, wxT(
"&OK"), wxDefaultPosition, wxDefaultSize, 0 );
116 item4->Add( item5, 0, wxALIGN_CENTER|wxALL, 5 );
118 wxButton *item6 =
new wxButton( parent, wxID_CANCEL, wxT(
"&Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
119 item4->Add( item6, 0, wxALIGN_CENTER|wxALL, 5 );
121 item0->Add( item4, 0, wxALIGN_CENTER|wxALL, 5 );
125 parent->SetSizer( item0 );
127 item0->SetSizeHints( parent );