Power System Platform  2026w10a-beta
Loading...
Searching...
No Matches
DebugFrameBase.cpp
1
2// This file was auto-generated by codelite's wxCrafter Plugin
3// wxCrafter project file: DebugFrame.wxcp
4// Do not modify this file by hand!
6
7#include "DebugFrameBase.hpp"
8
9
10// Declare the bitmap loading function
11extern void wxC40F6InitBitmapResources();
12
13
14namespace {
15// return the wxBORDER_SIMPLE that matches the current application theme
16wxBorder get_border_simple_theme_aware_bit() {
17#if wxVERSION_NUMBER >= 3300 && defined(__WXMSW__)
18 return wxSystemSettings::GetAppearance().IsDark() ? wxBORDER_SIMPLE : wxBORDER_STATIC;
19#else
20 return wxBORDER_DEFAULT;
21#endif
22} // DoGetBorderSimpleBit
23bool bBitmapLoaded = false;
24} // namespace
25
26
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)
29{
30 if ( !bBitmapLoaded ) {
31 // We need to initialise the default bitmap handler
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}
60
61DebugMainFrameBase::~DebugMainFrameBase()
62{
63}