OpenASIP  2.0
Public Member Functions | Protected Member Functions | Private Member Functions | List of all members
ProximSimulatorWindow Class Reference

#include <ProximSimulatorWindow.hh>

Inheritance diagram for ProximSimulatorWindow:
Inheritance graph
Collaboration diagram for ProximSimulatorWindow:
Collaboration graph

Public Member Functions

virtual void reset ()
 

Protected Member Functions

 ProximSimulatorWindow (ProximMainFrame *mainFrame, wxWindowID id=-1, wxPoint pos=wxDefaultPosition, wxSize size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
 
virtual ~ProximSimulatorWindow ()
 

Private Member Functions

virtual void onSimulatorBusy (SimulatorEvent &event)
 
virtual void onSimulatorDone (SimulatorEvent &event)
 
 ProximSimulatorWindow (const ProximSimulatorWindow &)
 
ProximSimulatorWindowoperator= (const ProximSimulatorWindow &)
 

Detailed Description

Base class for Proxim windows which listen to the simulator events.

This baseclass handles the adding and removing of the window from the ProximMainFrame's list of subwindows automatically.

Definition at line 47 of file ProximSimulatorWindow.hh.

Constructor & Destructor Documentation

◆ ProximSimulatorWindow() [1/2]

ProximSimulatorWindow::ProximSimulatorWindow ( ProximMainFrame mainFrame,
wxWindowID  id = -1,
wxPoint  pos = wxDefaultPosition,
wxSize  size = wxDefaultSize,
long  style = wxTAB_TRAVERSAL 
)
protected

The Constructor.

Parameters
mainFrameProximMainFrame parent of the window.

Definition at line 49 of file ProximSimulatorWindow.cc.

51  :
52  wxPanel(mainFrame, id, pos, size, style) {
53 
54  mainFrame->addSubWindow(this);
55 }

◆ ~ProximSimulatorWindow()

ProximSimulatorWindow::~ProximSimulatorWindow ( )
protectedvirtual

The Destructor.

Definition at line 61 of file ProximSimulatorWindow.cc.

61  {
63  if (mainFrame != NULL) {
64  mainFrame->removeSubWindow(this);
65  }
66 }

References ProximToolbox::mainFrame(), and ProximMainFrame::removeSubWindow().

Here is the call graph for this function:

◆ ProximSimulatorWindow() [2/2]

ProximSimulatorWindow::ProximSimulatorWindow ( const ProximSimulatorWindow )
private

Member Function Documentation

◆ onSimulatorBusy()

void ProximSimulatorWindow::onSimulatorBusy ( SimulatorEvent event)
privatevirtual

Disables the window when the simulator is busy.

Reimplemented in ConsoleWindow.

Definition at line 73 of file ProximSimulatorWindow.cc.

73  {
74  Disable();
75 }

◆ onSimulatorDone()

void ProximSimulatorWindow::onSimulatorDone ( SimulatorEvent event)
privatevirtual

Enables the window when the simulator is not busy.

Reimplemented in ConsoleWindow.

Definition at line 81 of file ProximSimulatorWindow.cc.

81  {
82  Enable();
83 }

◆ operator=()

ProximSimulatorWindow& ProximSimulatorWindow::operator= ( const ProximSimulatorWindow )
private

◆ reset()

void ProximSimulatorWindow::reset ( )
virtual

Called before the simulator thread destroys any of it's data structures accessed by GUI.

Reimplemented in ProximDisassemblyWindow, ProximMachineStateWindow, ProximDebuggerWindow, ProximMemoryWindow, ProximControlWindow, ConsoleWindow, FindWindow, and ProximBreakpointWindow.

Definition at line 90 of file ProximSimulatorWindow.cc.

90  {
91  GetParent()->Close();
92 }

The documentation for this class was generated from the following files:
ProximMainFrame
Definition: ProximMainFrame.hh:58
ProximToolbox::mainFrame
static ProximMainFrame * mainFrame()
Definition: ProximToolbox.cc:105
ProximMainFrame::addSubWindow
void addSubWindow(ProximSimulatorWindow *window)
Definition: ProximMainFrame.cc:666
ProximMainFrame::removeSubWindow
void removeSubWindow(ProximSimulatorWindow *window)
Definition: ProximMainFrame.cc:678