Skyscraper 2.0
Skyscraper::Console Class Reference

#include <console.h>

Inheritance diagram for Skyscraper::Console:
Collaboration diagram for Skyscraper::Console:

Public Member Functions

 Console (VM *root, wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize)
 
virtual ~Console ()
 
void Write (const std::string &message, const std::string &color)
 

Public Attributes

wxButton * bClear
 
wxButton * bSend
 
wxCheckBox * chkEcho
 
wxPanel * Panel1
 
wxTextCtrl * tCommand
 
wxTextCtrl * tConsole
 

Static Protected Attributes

static const long ID_tConsole = wxNewId()
 
static const long ID_tCommand = wxNewId()
 
static const long ID_bSend = wxNewId()
 
static const long ID_bClear = wxNewId()
 
static const long ID_chkEcho = wxNewId()
 
static const long ID_PANEL1 = wxNewId()
 

Private Member Functions

void On_bSend_Click (wxCommandEvent &event)
 
void On_bClose_Click (wxCommandEvent &event)
 
void On_Close (wxCloseEvent &event)
 
void On_bClear_Click (wxCommandEvent &event)
 

Private Attributes

SBS::SBSSimcore
 
VMvm
 

Detailed Description

Definition at line 37 of file console.h.

Constructor & Destructor Documentation

◆ Console()

Skyscraper::Console::Console ( VM * root,
wxWindow * parent,
wxWindowID id = wxID_ANY,
const wxPoint & pos = wxDefaultPosition,
const wxSize & size = wxDefaultSize )

Definition at line 56 of file console.cpp.

References On_bClear_Click(), On_bSend_Click(), and On_Close().

Here is the call graph for this function:

◆ ~Console()

Skyscraper::Console::~Console ( )
virtual

Definition at line 106 of file console.cpp.

Member Function Documentation

◆ On_bClear_Click()

void Skyscraper::Console::On_bClear_Click ( wxCommandEvent & event)
private

Definition at line 159 of file console.cpp.

References tConsole.

Referenced by Console().

◆ On_bClose_Click()

void Skyscraper::Console::On_bClose_Click ( wxCommandEvent & event)
private

Definition at line 118 of file console.cpp.

◆ On_bSend_Click()

void Skyscraper::Console::On_bSend_Click ( wxCommandEvent & event)
private

Definition at line 112 of file console.cpp.

References chkEcho, Skyscraper::VM::GetConsole(), Skyscraper::VMConsole::Process(), tCommand, and vm.

Referenced by Console().

Here is the call graph for this function:

◆ On_Close()

void Skyscraper::Console::On_Close ( wxCloseEvent & event)
private

Definition at line 123 of file console.cpp.

Referenced by Console().

◆ Write()

void Skyscraper::Console::Write ( const std::string & message,
const std::string & color )

Definition at line 128 of file console.cpp.

References Skyscraper::mtx, and tConsole.

Referenced by Skyscraper::GUI::WriteToConsole().

Member Data Documentation

◆ bClear

wxButton* Skyscraper::Console::bClear

Definition at line 45 of file console.h.

◆ bSend

wxButton* Skyscraper::Console::bSend

Definition at line 46 of file console.h.

Referenced by Skyscraper::GUI::EnableConsole(), and Skyscraper::GUI::ShowConsole().

◆ chkEcho

wxCheckBox* Skyscraper::Console::chkEcho

Definition at line 47 of file console.h.

Referenced by On_bSend_Click().

◆ ID_bClear

const long Skyscraper::Console::ID_bClear = wxNewId()
staticprotected

Definition at line 60 of file console.h.

◆ ID_bSend

const long Skyscraper::Console::ID_bSend = wxNewId()
staticprotected

Definition at line 59 of file console.h.

◆ ID_chkEcho

const long Skyscraper::Console::ID_chkEcho = wxNewId()
staticprotected

Definition at line 61 of file console.h.

◆ ID_PANEL1

const long Skyscraper::Console::ID_PANEL1 = wxNewId()
staticprotected

Definition at line 62 of file console.h.

◆ ID_tCommand

const long Skyscraper::Console::ID_tCommand = wxNewId()
staticprotected

Definition at line 58 of file console.h.

◆ ID_tConsole

const long Skyscraper::Console::ID_tConsole = wxNewId()
staticprotected

Definition at line 57 of file console.h.

◆ Panel1

wxPanel* Skyscraper::Console::Panel1

Definition at line 48 of file console.h.

◆ Simcore

SBS::SBS* Skyscraper::Console::Simcore
private

Definition at line 74 of file console.h.

◆ tCommand

wxTextCtrl* Skyscraper::Console::tCommand

Definition at line 49 of file console.h.

Referenced by On_bSend_Click().

◆ tConsole

wxTextCtrl* Skyscraper::Console::tConsole

Definition at line 50 of file console.h.

Referenced by On_bClear_Click(), and Write().

◆ vm

VM* Skyscraper::Console::vm
private

Definition at line 75 of file console.h.

Referenced by On_bSend_Click().


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