File: quickdebugbase.cpp

package info (click to toggle)
codelite 17.0.0%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 136,244 kB
  • sloc: cpp: 491,547; ansic: 280,393; php: 10,259; sh: 8,930; lisp: 7,664; vhdl: 6,518; python: 6,020; lex: 4,920; yacc: 3,123; perl: 2,385; javascript: 1,715; cs: 1,193; xml: 1,110; makefile: 804; cobol: 741; sql: 709; ruby: 620; f90: 566; ada: 534; asm: 464; fortran: 350; objc: 289; tcl: 258; java: 157; erlang: 61; pascal: 51; ml: 49; awk: 44; haskell: 36
file content (460 lines) | stat: -rw-r--r-- 21,778 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
//////////////////////////////////////////////////////////////////////
// This file was auto-generated by codelite's wxCrafter Plugin
// wxCrafter project file: quickdebug.wxcp
// Do not modify this file by hand!
//////////////////////////////////////////////////////////////////////

#include "quickdebugbase.h"

// Declare the bitmap loading function
extern void wxCrafterSFKMcrInitBitmapResources();

static bool bBitmapLoaded = false;

QuickDebugBase::QuickDebugBase(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos,
                               const wxSize& size, long style)
    : wxDialog(parent, id, title, pos, size, style)
{
    if(!bBitmapLoaded) {
        // We need to initialise the default bitmap handler
        wxXmlResource::Get()->AddHandler(new wxBitmapXmlHandler);
        wxCrafterSFKMcrInitBitmapResources();
        bBitmapLoaded = true;
    }

    wxBoxSizer* bSizer1 = new wxBoxSizer(wxVERTICAL);
    this->SetSizer(bSizer1);

    wxBoxSizer* bSizer3 = new wxBoxSizer(wxVERTICAL);

    bSizer1->Add(bSizer3, 1, wxALL | wxEXPAND, WXC_FROM_DIP(5));

    m_notebook47 = new wxNotebook(this, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), wxBK_DEFAULT);
    m_notebook47->SetName(wxT("m_notebook47"));

    bSizer3->Add(m_notebook47, 1, wxALL | wxEXPAND, WXC_FROM_DIP(5));

    m_panelLocal = new wxPanel(m_notebook47, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(m_notebook47, wxSize(-1, -1)),
                               wxTAB_TRAVERSAL);
    m_notebook47->AddPage(m_panelLocal, _("Local"), true);

    wxBoxSizer* boxSizer53 = new wxBoxSizer(wxVERTICAL);
    m_panelLocal->SetSizer(boxSizer53);

    wxStaticBoxSizer* staticBoxSizer18 =
        new wxStaticBoxSizer(new wxStaticBox(m_panelLocal, wxID_ANY, _("Debugger:")), wxVERTICAL);

    boxSizer53->Add(staticBoxSizer18, 0, wxALL | wxEXPAND, WXC_FROM_DIP(5));

    wxFlexGridSizer* flexGridSizer20 = new wxFlexGridSizer(0, 3, 0, 0);
    flexGridSizer20->SetFlexibleDirection(wxBOTH);
    flexGridSizer20->SetNonFlexibleGrowMode(wxFLEX_GROWMODE_SPECIFIED);
    flexGridSizer20->AddGrowableCol(1);

    staticBoxSizer18->Add(flexGridSizer20, 1, wxALL | wxEXPAND, WXC_FROM_DIP(5));

    m_staticText3 = new wxStaticText(m_panelLocal, wxID_ANY, _("Debugger:"), wxDefaultPosition,
                                     wxDLG_UNIT(m_panelLocal, wxSize(-1, -1)), 0);

    flexGridSizer20->Add(m_staticText3, 0, wxALL | wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));

    wxArrayString m_choiceDebuggersArr;
    m_choiceDebuggers = new wxChoice(m_panelLocal, wxID_ANY, wxDefaultPosition,
                                     wxDLG_UNIT(m_panelLocal, wxSize(-1, -1)), m_choiceDebuggersArr, 0);

    flexGridSizer20->Add(m_choiceDebuggers, 0, wxALL | wxEXPAND, WXC_FROM_DIP(5));

    flexGridSizer20->Add(0, 0, 1, wxALL, WXC_FROM_DIP(5));

    m_staticText12 = new wxStaticText(m_panelLocal, wxID_ANY, _("Executable:"), wxDefaultPosition,
                                      wxDLG_UNIT(m_panelLocal, wxSize(-1, -1)), 0);

    flexGridSizer20->Add(m_staticText12, 0, wxALL | wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));

    m_textCtrlDebuggerExec =
        new wxTextCtrl(m_panelLocal, wxID_ANY, wxT(""), wxDefaultPosition, wxDLG_UNIT(m_panelLocal, wxSize(-1, -1)), 0);
    m_textCtrlDebuggerExec->SetToolTip(_("Provide an alternate debugger executable to use.\nThis is currently only "
                                         "supported for GDB\nLeave empty to use the default"));
#if wxVERSION_NUMBER >= 3000
    m_textCtrlDebuggerExec->SetHint(wxT(""));
#endif

    flexGridSizer20->Add(m_textCtrlDebuggerExec, 0, wxALL | wxEXPAND | wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));

    m_buttonBrowseDebugger =
        new wxButton(m_panelLocal, wxID_ANY, _("..."), wxDefaultPosition, wxDLG_UNIT(m_panelLocal, wxSize(-1, -1)), 0);
    m_buttonBrowseDebugger->SetToolTip(_("Select debugger executable"));

    flexGridSizer20->Add(m_buttonBrowseDebugger, 0, wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));

    wxStaticBoxSizer* staticBoxSizer22 =
        new wxStaticBoxSizer(new wxStaticBox(m_panelLocal, wxID_ANY, _("Debuggee:")), wxVERTICAL);

    boxSizer53->Add(staticBoxSizer22, 0, wxALL | wxEXPAND, WXC_FROM_DIP(5));

    wxFlexGridSizer* flexGridSizer24 = new wxFlexGridSizer(0, 3, 0, 0);
    flexGridSizer24->SetFlexibleDirection(wxBOTH);
    flexGridSizer24->SetNonFlexibleGrowMode(wxFLEX_GROWMODE_SPECIFIED);
    flexGridSizer24->AddGrowableCol(1);

    staticBoxSizer22->Add(flexGridSizer24, 1, wxALL | wxEXPAND, WXC_FROM_DIP(5));

    m_staticText2 = new wxStaticText(m_panelLocal, wxID_ANY, _("Executable:"), wxDefaultPosition,
                                     wxDLG_UNIT(m_panelLocal, wxSize(-1, -1)), 0);

    flexGridSizer24->Add(m_staticText2, 0, wxALL | wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));

    wxArrayString m_ExeFilepathArr;
    m_ExeFilepath = new wxComboBox(m_panelLocal, wxID_ANY, wxT(""), wxDefaultPosition,
                                   wxDLG_UNIT(m_panelLocal, wxSize(-1, -1)), m_ExeFilepathArr, 0);
    m_ExeFilepath->SetToolTip(_("Enter the filepath to the program that you want to debug.\nAlternatively, if you "
                                "enter the path below, putting just the filename here will suffice."));
    m_ExeFilepath->SetFocus();
#if wxVERSION_NUMBER >= 3000
    m_ExeFilepath->SetHint(wxT(""));
#endif

    flexGridSizer24->Add(m_ExeFilepath, 0, wxALL | wxEXPAND, WXC_FROM_DIP(5));

    m_buttonBrowseExe =
        new wxButton(m_panelLocal, wxID_ANY, _("..."), wxDefaultPosition, wxDLG_UNIT(m_panelLocal, wxSize(-1, -1)), 0);
    m_buttonBrowseExe->SetToolTip(_("Select executable to debug"));

    flexGridSizer24->Add(m_buttonBrowseExe, 0, wxRIGHT | wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));

    m_staticText4 = new wxStaticText(m_panelLocal, wxID_ANY, _("Arguments:"), wxDefaultPosition,
                                     wxDLG_UNIT(m_panelLocal, wxSize(-1, -1)), 0);

    flexGridSizer24->Add(m_staticText4, 0, wxALL | wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));

    m_textCtrlArgs =
        new wxTextCtrl(m_panelLocal, wxID_ANY, wxT(""), wxDefaultPosition, wxDLG_UNIT(m_panelLocal, wxSize(-1, -1)), 0);
#if wxVERSION_NUMBER >= 3000
    m_textCtrlArgs->SetHint(wxT(""));
#endif

    flexGridSizer24->Add(m_textCtrlArgs, 0, wxALL | wxEXPAND, WXC_FROM_DIP(5));

    flexGridSizer24->Add(0, 0, 1, wxALL, WXC_FROM_DIP(5));

    m_staticText5 = new wxStaticText(m_panelLocal, wxID_ANY, _("Working directory:"), wxDefaultPosition,
                                     wxDLG_UNIT(m_panelLocal, wxSize(-1, -1)), 0);

    flexGridSizer24->Add(m_staticText5, 0, wxALL | wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));

    wxArrayString m_WDArr;
    m_WD = new wxComboBox(m_panelLocal, wxID_ANY, wxT(""), wxDefaultPosition, wxDLG_UNIT(m_panelLocal, wxSize(-1, -1)),
                          m_WDArr, 0);
    m_WD->SetToolTip(_("Optionally, enter the path where the program that you want to debug can be found"));
#if wxVERSION_NUMBER >= 3000
    m_WD->SetHint(wxT(""));
#endif

    flexGridSizer24->Add(m_WD, 0, wxALL | wxEXPAND, WXC_FROM_DIP(5));

    m_buttonBrowseWD =
        new wxButton(m_panelLocal, wxID_ANY, _("..."), wxDefaultPosition, wxDLG_UNIT(m_panelLocal, wxSize(-1, -1)), 0);
    m_buttonBrowseWD->SetToolTip(_("Browse for working directory"));

    flexGridSizer24->Add(m_buttonBrowseWD, 0, wxRIGHT | wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));

    wxStaticBoxSizer* staticBoxSizer26 =
        new wxStaticBoxSizer(new wxStaticBox(m_panelLocal, wxID_ANY, _("Startup commands:")), wxVERTICAL);

    boxSizer53->Add(staticBoxSizer26, 1, wxALL | wxEXPAND, WXC_FROM_DIP(5));

    wxBoxSizer* boxSizer28 = new wxBoxSizer(wxVERTICAL);

    staticBoxSizer26->Add(boxSizer28, 1, wxALL | wxEXPAND, WXC_FROM_DIP(5));

    m_stcStartupCmds =
        new wxStyledTextCtrl(m_panelLocal, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(m_panelLocal, wxSize(-1, -1)), 0);
    // Configure the fold margin
    m_stcStartupCmds->SetMarginType(4, wxSTC_MARGIN_SYMBOL);
    m_stcStartupCmds->SetMarginMask(4, wxSTC_MASK_FOLDERS);
    m_stcStartupCmds->SetMarginSensitive(4, true);
    m_stcStartupCmds->SetMarginWidth(4, 0);

    // Configure the tracker margin
    m_stcStartupCmds->SetMarginWidth(1, 0);

    // Configure the symbol margin
    m_stcStartupCmds->SetMarginType(2, wxSTC_MARGIN_SYMBOL);
    m_stcStartupCmds->SetMarginMask(2, ~(wxSTC_MASK_FOLDERS));
    m_stcStartupCmds->SetMarginWidth(2, 0);
    m_stcStartupCmds->SetMarginSensitive(2, true);

    // Configure the line numbers margin
    m_stcStartupCmds->SetMarginType(0, wxSTC_MARGIN_NUMBER);
    m_stcStartupCmds->SetMarginWidth(0, 0);

    // Configure the line symbol margin
    m_stcStartupCmds->SetMarginType(3, wxSTC_MARGIN_FORE);
    m_stcStartupCmds->SetMarginMask(3, 0);
    m_stcStartupCmds->SetMarginWidth(3, 0);
    // Select the lexer
    m_stcStartupCmds->SetLexer(wxSTC_LEX_NULL);
    // Set default font / styles
    m_stcStartupCmds->StyleClearAll();
    m_stcStartupCmds->SetWrapMode(0);
    m_stcStartupCmds->SetIndentationGuides(0);
    m_stcStartupCmds->SetKeyWords(0, wxT(""));
    m_stcStartupCmds->SetKeyWords(1, wxT(""));
    m_stcStartupCmds->SetKeyWords(2, wxT(""));
    m_stcStartupCmds->SetKeyWords(3, wxT(""));
    m_stcStartupCmds->SetKeyWords(4, wxT(""));

    boxSizer28->Add(m_stcStartupCmds, 1, wxALL | wxEXPAND, WXC_FROM_DIP(5));

    m_panelSSH = new wxPanel(m_notebook47, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(m_notebook47, wxSize(-1, -1)),
                             wxTAB_TRAVERSAL);
    m_notebook47->AddPage(m_panelSSH, _("SSH"), false);

    wxBoxSizer* boxSizer55 = new wxBoxSizer(wxVERTICAL);
    m_panelSSH->SetSizer(boxSizer55);

    wxStaticBoxSizer* staticBoxSizer30 =
        new wxStaticBoxSizer(new wxStaticBox(m_panelSSH, wxID_ANY, _("SSH Account:")), wxVERTICAL);

    boxSizer55->Add(staticBoxSizer30, 0, wxALL | wxEXPAND, WXC_FROM_DIP(5));

    wxFlexGridSizer* flexGridSizer37 = new wxFlexGridSizer(0, 1, 0, 0);
    flexGridSizer37->SetFlexibleDirection(wxBOTH);
    flexGridSizer37->SetNonFlexibleGrowMode(wxFLEX_GROWMODE_SPECIFIED);
    flexGridSizer37->AddGrowableCol(0);

    staticBoxSizer30->Add(flexGridSizer37, 1, wxALL | wxEXPAND, WXC_FROM_DIP(5));

    wxArrayString m_choiceSshAccountsArr;
    m_choiceSshAccounts = new wxChoice(m_panelSSH, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(m_panelSSH, wxSize(-1, -1)),
                                       m_choiceSshAccountsArr, 0);

    flexGridSizer37->Add(m_choiceSshAccounts, 0, wxALL | wxEXPAND, WXC_FROM_DIP(5));

    flexGridSizer37->Add(0, 0, 1, wxALL, WXC_FROM_DIP(5));

    wxStaticBoxSizer* staticBoxSizer57 =
        new wxStaticBoxSizer(new wxStaticBox(m_panelSSH, wxID_ANY, _("Debugger:")), wxVERTICAL);

    boxSizer55->Add(staticBoxSizer57, 0, wxALL | wxEXPAND, WXC_FROM_DIP(5));

    wxFlexGridSizer* flexGridSizer59 = new wxFlexGridSizer(0, 3, 0, 0);
    flexGridSizer59->SetFlexibleDirection(wxBOTH);
    flexGridSizer59->SetNonFlexibleGrowMode(wxFLEX_GROWMODE_SPECIFIED);
    flexGridSizer59->AddGrowableCol(1);

    staticBoxSizer57->Add(flexGridSizer59, 1, wxALL | wxEXPAND, WXC_FROM_DIP(5));

    m_staticText62 = new wxStaticText(m_panelSSH, wxID_ANY, _("Executable:"), wxDefaultPosition,
                                      wxDLG_UNIT(m_panelSSH, wxSize(-1, -1)), 0);

    flexGridSizer59->Add(m_staticText62, 0, wxALL | wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));

    m_textCtrlRemoteDebugger =
        new wxTextCtrl(m_panelSSH, wxID_ANY, wxT(""), wxDefaultPosition, wxDLG_UNIT(m_panelSSH, wxSize(-1, -1)), 0);
    m_textCtrlRemoteDebugger->SetToolTip(_("Select debugger executable on the remote machine"));
#if wxVERSION_NUMBER >= 3000
    m_textCtrlRemoteDebugger->SetHint(wxT(""));
#endif

    flexGridSizer59->Add(m_textCtrlRemoteDebugger, 0, wxALL | wxEXPAND, WXC_FROM_DIP(5));

    m_button66 =
        new wxButton(m_panelSSH, wxID_ANY, _("..."), wxDefaultPosition, wxDLG_UNIT(m_panelSSH, wxSize(-1, -1)), 0);

    flexGridSizer59->Add(m_button66, 0, wxALL, WXC_FROM_DIP(5));

    wxStaticBoxSizer* staticBoxSizer68 =
        new wxStaticBoxSizer(new wxStaticBox(m_panelSSH, wxID_ANY, _("Debuggee:")), wxVERTICAL);

    boxSizer55->Add(staticBoxSizer68, 0, wxALL | wxEXPAND, WXC_FROM_DIP(5));

    wxFlexGridSizer* flexGridSizer70 = new wxFlexGridSizer(0, 3, 0, 0);
    flexGridSizer70->SetFlexibleDirection(wxBOTH);
    flexGridSizer70->SetNonFlexibleGrowMode(wxFLEX_GROWMODE_SPECIFIED);
    flexGridSizer70->AddGrowableCol(1);

    staticBoxSizer68->Add(flexGridSizer70, 0, wxALL | wxEXPAND, WXC_FROM_DIP(5));

    m_staticText72 = new wxStaticText(m_panelSSH, wxID_ANY, _("Executable:"), wxDefaultPosition,
                                      wxDLG_UNIT(m_panelSSH, wxSize(-1, -1)), 0);

    flexGridSizer70->Add(m_staticText72, 0, wxALL | wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));

    m_textCtrlRemoteDebuggee =
        new wxTextCtrl(m_panelSSH, wxID_ANY, wxT(""), wxDefaultPosition, wxDLG_UNIT(m_panelSSH, wxSize(-1, -1)), 0);
    m_textCtrlRemoteDebuggee->SetToolTip(_("Executable to debug on the remote machine"));
#if wxVERSION_NUMBER >= 3000
    m_textCtrlRemoteDebuggee->SetHint(wxT(""));
#endif

    flexGridSizer70->Add(m_textCtrlRemoteDebuggee, 0, wxALL | wxEXPAND, WXC_FROM_DIP(5));

    m_button76 =
        new wxButton(m_panelSSH, wxID_ANY, _("..."), wxDefaultPosition, wxDLG_UNIT(m_panelSSH, wxSize(-1, -1)), 0);

    flexGridSizer70->Add(m_button76, 0, wxALL | wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));

    m_staticText84 = new wxStaticText(m_panelSSH, wxID_ANY, _("Arguments:"), wxDefaultPosition,
                                      wxDLG_UNIT(m_panelSSH, wxSize(-1, -1)), 0);

    flexGridSizer70->Add(m_staticText84, 0, wxALL | wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));

    m_textCtrlRemoteArgs =
        new wxTextCtrl(m_panelSSH, wxID_ANY, wxT(""), wxDefaultPosition, wxDLG_UNIT(m_panelSSH, wxSize(-1, -1)), 0);
#if wxVERSION_NUMBER >= 3000
    m_textCtrlRemoteArgs->SetHint(wxT(""));
#endif

    flexGridSizer70->Add(m_textCtrlRemoteArgs, 0, wxALL | wxEXPAND, WXC_FROM_DIP(5));

    flexGridSizer70->Add(0, 0, 1, wxALL, WXC_FROM_DIP(5));

    m_staticText78 = new wxStaticText(m_panelSSH, wxID_ANY, _("Working directory:"), wxDefaultPosition,
                                      wxDLG_UNIT(m_panelSSH, wxSize(-1, -1)), 0);

    flexGridSizer70->Add(m_staticText78, 0, wxALL | wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));

    m_textCtrlRemoteWD =
        new wxTextCtrl(m_panelSSH, wxID_ANY, wxT(""), wxDefaultPosition, wxDLG_UNIT(m_panelSSH, wxSize(-1, -1)), 0);
#if wxVERSION_NUMBER >= 3000
    m_textCtrlRemoteWD->SetHint(wxT(""));
#endif

    flexGridSizer70->Add(m_textCtrlRemoteWD, 0, wxALL | wxEXPAND, WXC_FROM_DIP(5));

    m_button82 =
        new wxButton(m_panelSSH, wxID_ANY, _("..."), wxDefaultPosition, wxDLG_UNIT(m_panelSSH, wxSize(-1, -1)), 0);

    flexGridSizer70->Add(m_button82, 0, wxALL, WXC_FROM_DIP(5));

    wxStaticBoxSizer* staticBoxSizer88 =
        new wxStaticBoxSizer(new wxStaticBox(m_panelSSH, wxID_ANY, _("Startup commands:")), wxVERTICAL);

    boxSizer55->Add(staticBoxSizer88, 1, wxALL | wxEXPAND, WXC_FROM_DIP(5));

    wxBoxSizer* boxSizer90 = new wxBoxSizer(wxVERTICAL);

    staticBoxSizer88->Add(boxSizer90, 1, wxALL | wxEXPAND, WXC_FROM_DIP(5));

    m_stcRemoteStartupCommands =
        new wxStyledTextCtrl(m_panelSSH, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(m_panelSSH, wxSize(-1, -1)), 0);
    // Configure the fold margin
    m_stcRemoteStartupCommands->SetMarginType(4, wxSTC_MARGIN_SYMBOL);
    m_stcRemoteStartupCommands->SetMarginMask(4, wxSTC_MASK_FOLDERS);
    m_stcRemoteStartupCommands->SetMarginSensitive(4, true);
    m_stcRemoteStartupCommands->SetMarginWidth(4, 0);

    // Configure the tracker margin
    m_stcRemoteStartupCommands->SetMarginWidth(1, 0);

    // Configure the symbol margin
    m_stcRemoteStartupCommands->SetMarginType(2, wxSTC_MARGIN_SYMBOL);
    m_stcRemoteStartupCommands->SetMarginMask(2, ~(wxSTC_MASK_FOLDERS));
    m_stcRemoteStartupCommands->SetMarginWidth(2, 0);
    m_stcRemoteStartupCommands->SetMarginSensitive(2, true);

    // Configure the line numbers margin
    m_stcRemoteStartupCommands->SetMarginType(0, wxSTC_MARGIN_NUMBER);
    m_stcRemoteStartupCommands->SetMarginWidth(0, 0);

    // Configure the line symbol margin
    m_stcRemoteStartupCommands->SetMarginType(3, wxSTC_MARGIN_FORE);
    m_stcRemoteStartupCommands->SetMarginMask(3, 0);
    m_stcRemoteStartupCommands->SetMarginWidth(3, 0);
    // Select the lexer
    m_stcRemoteStartupCommands->SetLexer(wxSTC_LEX_NULL);
    // Set default font / styles
    m_stcRemoteStartupCommands->StyleClearAll();
    m_stcRemoteStartupCommands->SetWrapMode(0);
    m_stcRemoteStartupCommands->SetIndentationGuides(0);
    m_stcRemoteStartupCommands->SetKeyWords(0, wxT(""));
    m_stcRemoteStartupCommands->SetKeyWords(1, wxT(""));
    m_stcRemoteStartupCommands->SetKeyWords(2, wxT(""));
    m_stcRemoteStartupCommands->SetKeyWords(3, wxT(""));
    m_stcRemoteStartupCommands->SetKeyWords(4, wxT(""));

    boxSizer90->Add(m_stcRemoteStartupCommands, 1, wxALL | wxEXPAND, WXC_FROM_DIP(5));

    m_stdBtnSizer2 = new wxStdDialogButtonSizer();

    bSizer1->Add(m_stdBtnSizer2, 0, wxALL | wxALIGN_CENTER_HORIZONTAL, WXC_FROM_DIP(10));

    m_buttonOK = new wxButton(this, wxID_OK, wxT(""), wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), 0);
    m_buttonOK->SetDefault();
    m_stdBtnSizer2->AddButton(m_buttonOK);

    m_buttonCancel1 = new wxButton(this, wxID_CANCEL, wxT(""), wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), 0);
    m_stdBtnSizer2->AddButton(m_buttonCancel1);
    m_stdBtnSizer2->Realize();

#if wxVERSION_NUMBER >= 2900
    if(!wxPersistenceManager::Get().Find(m_notebook47)) {
        wxPersistenceManager::Get().RegisterAndRestore(m_notebook47);
    } else {
        wxPersistenceManager::Get().Restore(m_notebook47);
    }
#endif

    SetName(wxT("QuickDebugBase"));
    SetMinClientSize(wxSize(500, 400));
    SetSize(wxDLG_UNIT(this, wxSize(-1, -1)));
    if(GetSizer()) {
        GetSizer()->Fit(this);
    }
    if(GetParent()) {
        CentreOnParent(wxBOTH);
    } else {
        CentreOnScreen(wxBOTH);
    }
#if wxVERSION_NUMBER >= 2900
    if(!wxPersistenceManager::Get().Find(this)) {
        wxPersistenceManager::Get().RegisterAndRestore(this);
    } else {
        wxPersistenceManager::Get().Restore(this);
    }
#endif
    // Connect events
    m_choiceDebuggers->Connect(wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler(QuickDebugBase::OnDebuggerChanged),
                               NULL, this);
    m_buttonBrowseDebugger->Connect(wxEVT_COMMAND_BUTTON_CLICKED,
                                    wxCommandEventHandler(QuickDebugBase::OnSelectAlternateDebugger), NULL, this);
    m_buttonBrowseExe->Connect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(QuickDebugBase::OnButtonBrowseExe),
                               NULL, this);
    m_buttonBrowseWD->Connect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(QuickDebugBase::OnButtonBrowseWD),
                              NULL, this);
    m_choiceSshAccounts->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(QuickDebugBase::OnDebugOverSshUI), NULL, this);
    m_button66->Connect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(QuickDebugBase::OnRemoteBrowseDebugger),
                        NULL, this);
    m_button76->Connect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(QuickDebugBase::OnRemoteBrowedDebuggee),
                        NULL, this);
    m_button82->Connect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(QuickDebugBase::OnRemoteBrowseWD), NULL,
                        this);
    m_buttonOK->Connect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(QuickDebugBase::OnButtonDebug), NULL, this);
    m_buttonCancel1->Connect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(QuickDebugBase::OnButtonCancel), NULL,
                             this);
}

QuickDebugBase::~QuickDebugBase()
{
    m_choiceDebuggers->Disconnect(wxEVT_COMMAND_CHOICE_SELECTED,
                                  wxCommandEventHandler(QuickDebugBase::OnDebuggerChanged), NULL, this);
    m_buttonBrowseDebugger->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED,
                                       wxCommandEventHandler(QuickDebugBase::OnSelectAlternateDebugger), NULL, this);
    m_buttonBrowseExe->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED,
                                  wxCommandEventHandler(QuickDebugBase::OnButtonBrowseExe), NULL, this);
    m_buttonBrowseWD->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(QuickDebugBase::OnButtonBrowseWD),
                                 NULL, this);
    m_choiceSshAccounts->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(QuickDebugBase::OnDebugOverSshUI), NULL,
                                    this);
    m_button66->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(QuickDebugBase::OnRemoteBrowseDebugger),
                           NULL, this);
    m_button76->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(QuickDebugBase::OnRemoteBrowedDebuggee),
                           NULL, this);
    m_button82->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(QuickDebugBase::OnRemoteBrowseWD), NULL,
                           this);
    m_buttonOK->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(QuickDebugBase::OnButtonDebug), NULL,
                           this);
    m_buttonCancel1->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(QuickDebugBase::OnButtonCancel),
                                NULL, this);
}