7#include "DebugFrameBase.hpp"
11extern void wxC40F6InitBitmapResources();
16wxBorder get_border_simple_theme_aware_bit() {
17#if wxVERSION_NUMBER >= 3300 && defined(__WXMSW__)
18 return wxSystemSettings::GetAppearance().IsDark() ? wxBORDER_SIMPLE : wxBORDER_STATIC;
20 return wxBORDER_DEFAULT;
23bool bBitmapLoaded =
false;
27DebugMainFrameBase::DebugMainFrameBase(wxWindow* parent, wxWindowID
id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style)
28 : wxFrame(parent, id, title, pos, size, style)
30 if ( !bBitmapLoaded ) {
32 wxXmlResource::Get()->AddHandler(
new wxBitmapXmlHandler);
33 wxC40F6InitBitmapResources();
37 wxBoxSizer* boxSizer129 =
new wxBoxSizer(wxVERTICAL);
38 this->SetSizer(boxSizer129);
40 m_richTextCtrlDebugText =
new wxRichTextCtrl(
this, wxID_ANY, wxT(
"Debug text"), wxDefaultPosition, wxDLG_UNIT(
this, wxSize(-1,-1)), wxRE_CENTRE_CARET);
42 boxSizer129->Add(m_richTextCtrlDebugText, 1, wxEXPAND, WXC_FROM_DIP(5));
44 SetName(wxT(
"DebugMainFrameBase"));
45 SetSize(wxDLG_UNIT(
this, wxSize(500,300)));
47 GetSizer()->Fit(
this);
50 CentreOnParent(wxBOTH);
52 CentreOnScreen(wxBOTH);
54 if(!wxPersistenceManager::Get().Find(
this)) {
55 wxPersistenceManager::Get().RegisterAndRestore(
this);
57 wxPersistenceManager::Get().Restore(
this);
61DebugMainFrameBase::~DebugMainFrameBase()