Power System Platform  2026w11a-beta
Loading...
Searching...
No Matches
DebugMainFrameBase Class Reference
Inheritance diagram for DebugMainFrameBase:
Collaboration diagram for DebugMainFrameBase:

Public Member Functions

wxRichTextCtrl * GetRichTextCtrlDebugText ()
 
 DebugMainFrameBase (wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Debug text"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(500, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxMINIMIZE_BOX)
 

Protected Attributes

wxRichTextCtrl * m_richTextCtrlDebugText
 

Detailed Description

Definition at line 37 of file DebugFrameBase.hpp.

Constructor & Destructor Documentation

◆ DebugMainFrameBase()

DebugMainFrameBase::DebugMainFrameBase ( wxWindow *  parent,
wxWindowID  id = wxID_ANY,
const wxString &  title = _("Debug text"),
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize(500,300),
long  style = wxCAPTION|wxRESIZE_BORDER|wxMINIMIZE_BOX 
)

Definition at line 27 of file DebugFrameBase.cpp.

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}

◆ ~DebugMainFrameBase()

DebugMainFrameBase::~DebugMainFrameBase ( )
virtual

Definition at line 61 of file DebugFrameBase.cpp.

62{
63}

Member Function Documentation

◆ GetRichTextCtrlDebugText()

wxRichTextCtrl * DebugMainFrameBase::GetRichTextCtrlDebugText ( )
inline

Definition at line 45 of file DebugFrameBase.hpp.

45{ return m_richTextCtrlDebugText; }

Member Data Documentation

◆ m_richTextCtrlDebugText

wxRichTextCtrl* DebugMainFrameBase::m_richTextCtrlDebugText
protected

Definition at line 40 of file DebugFrameBase.hpp.


The documentation for this class was generated from the following files: