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
|
//////////////////////////////////////////////////////////////////////
// This file was auto-generated by codelite's wxCrafter Plugin
// wxCrafter project file: DbgCommandBaseDlg.wxcp
// Do not modify this file by hand!
//////////////////////////////////////////////////////////////////////
#include "DbgCommandBaseDlg.h"
// Declare the bitmap loading function
extern void wxCD411InitBitmapResources();
static bool bBitmapLoaded = false;
DbgCommandBaseDlg::DbgCommandBaseDlg(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);
wxCD411InitBitmapResources();
bBitmapLoaded = true;
}
wxBoxSizer* bSizer7 = new wxBoxSizer(wxVERTICAL);
this->SetSizer(bSizer7);
wxFlexGridSizer* fgSizer1 = new wxFlexGridSizer(0, 2, 0, 0);
fgSizer1->SetFlexibleDirection(wxBOTH);
fgSizer1->SetNonFlexibleGrowMode(wxFLEX_GROWMODE_SPECIFIED);
fgSizer1->AddGrowableCol(1);
bSizer7->Add(fgSizer1, 1, wxALL | wxEXPAND, WXC_FROM_DIP(5));
m_staticText2 =
new wxStaticText(this, wxID_ANY, _("Type:"), wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), 0);
fgSizer1->Add(m_staticText2, 0, wxALL | wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));
m_textCtrlName = new wxTextCtrl(this, wxID_ANY, wxT(""), wxDefaultPosition, wxDLG_UNIT(this, wxSize(400, -1)), 0);
m_textCtrlName->SetToolTip(_("Set the class name here\nFor example: std::string"));
m_textCtrlName->SetFocus();
#if wxVERSION_NUMBER >= 3000
m_textCtrlName->SetHint(_("set the class name. e.g. std::string"));
#endif
fgSizer1->Add(m_textCtrlName, 0, wxALL | wxEXPAND, WXC_FROM_DIP(5));
m_staticText3 =
new wxStaticText(this, wxID_ANY, _("Expression:"), wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), 0);
fgSizer1->Add(m_staticText3, 0, wxALL | wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));
m_textCtrlCommand = new wxTextCtrl(this, wxID_ANY, wxT(""), wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), 0);
m_textCtrlCommand->SetToolTip(_("Expression to display for this class type"));
#if wxVERSION_NUMBER >= 3000
m_textCtrlCommand->SetHint(_("Expression to display for this class type"));
#endif
fgSizer1->Add(m_textCtrlCommand, 0, wxALL | wxEXPAND, WXC_FROM_DIP(5));
m_staticText4 = new wxStaticText(this, wxID_ANY, _("Debugger command:"), wxDefaultPosition,
wxDLG_UNIT(this, wxSize(-1, -1)), 0);
fgSizer1->Add(m_staticText4, 0, wxALL | wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));
m_textCtrtDebuggerCommand =
new wxTextCtrl(this, wxID_ANY, wxT("print"), wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), 0);
m_textCtrtDebuggerCommand->SetToolTip(_("debugger command to invoke for 'expression'"));
#if wxVERSION_NUMBER >= 3000
m_textCtrtDebuggerCommand->SetHint(wxT(""));
#endif
fgSizer1->Add(m_textCtrtDebuggerCommand, 0, wxALL | wxEXPAND, WXC_FROM_DIP(5));
wxBoxSizer* bSizer8 = new wxBoxSizer(wxHORIZONTAL);
bSizer7->Add(bSizer8, 0, wxALL | wxALIGN_CENTER_HORIZONTAL, WXC_FROM_DIP(5));
m_buttonOk = new wxButton(this, wxID_OK, _("&OK"), wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), 0);
m_buttonOk->SetDefault();
bSizer8->Add(m_buttonOk, 0, wxALL, WXC_FROM_DIP(5));
m_buttonCancel =
new wxButton(this, wxID_CANCEL, _("&Cancel"), wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), 0);
bSizer8->Add(m_buttonCancel, 0, wxALL, WXC_FROM_DIP(5));
SetName(wxT("DbgCommandBaseDlg"));
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
}
DbgCommandBaseDlg::~DbgCommandBaseDlg() {}
|