28 : wxFrame(parent, id, title, pos, size, style)
29{
30 if ( !bBitmapLoaded ) {
31
32 wxXmlResource::Get()->AddHandler(new wxBitmapXmlHandler);
33 wxC40F6InitBitmapResources();
34 bBitmapLoaded = true;
35 }
36
37 wxBoxSizer* boxSizer129 = new wxBoxSizer(wxVERTICAL);
38 this->SetSizer(boxSizer129);
39
40 m_richTextCtrlDebugText = new wxRichTextCtrl(this, wxID_ANY, wxT("Debug text"), wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1,-1)), wxRE_CENTRE_CARET);
41
42 boxSizer129->Add(m_richTextCtrlDebugText, 1, wxEXPAND, WXC_FROM_DIP(5));
43
44 SetName(wxT("DebugMainFrameBase"));
45 SetSize(wxDLG_UNIT(this, wxSize(500,300)));
46 if (GetSizer()) {
47 GetSizer()->Fit(this);
48 }
49 if(GetParent()) {
50 CentreOnParent(wxBOTH);
51 } else {
52 CentreOnScreen(wxBOTH);
53 }
54 if(!wxPersistenceManager::Get().Find(this)) {
55 wxPersistenceManager::Get().RegisterAndRestore(this);
56 } else {
57 wxPersistenceManager::Get().Restore(this);
58 }
59}