OpenASIP 2.2
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | List of all members
ProximControlWindow Class Reference

#include <ProximControlWindow.hh>

Inheritance diagram for ProximControlWindow:
Inheritance graph
Collaboration diagram for ProximControlWindow:
Collaboration graph

Public Member Functions

 ProximControlWindow (ProximMainFrame *parent, int id)
 
virtual ~ProximControlWindow ()
 
virtual void reset ()
 

Private Member Functions

wxSizer * createContents (wxWindow *parent, bool call_fit, bool set_sizer)
 

Additional Inherited Members

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

Detailed Description

Proxim subwindow with buttons to control the simulation process.

ProximControlWindow doesn't handle button events. The events are passed to the parent window. Button enabled status is updated using wxUpdateUI events.

Definition at line 52 of file ProximControlWindow.hh.

Constructor & Destructor Documentation

◆ ProximControlWindow()

ProximControlWindow::ProximControlWindow ( ProximMainFrame parent,
int  id 
)

Constructor.

Parameters
parentParent window of the window.
idWindow identifier.

Definition at line 50 of file ProximControlWindow.cc.

51 :
52 ProximSimulatorWindow(parent, id) {
53
54 createContents(this, true, true);
55}
wxSizer * createContents(wxWindow *parent, bool call_fit, bool set_sizer)

References createContents().

Here is the call graph for this function:

◆ ~ProximControlWindow()

ProximControlWindow::~ProximControlWindow ( )
virtual

Destructor.

Definition at line 61 of file ProximControlWindow.cc.

61 {
62}

Member Function Documentation

◆ createContents()

wxSizer * ProximControlWindow::createContents ( wxWindow *  parent,
bool  call_fit,
bool  set_sizer 
)
private

Creates the window contents.

Code generated by wxDesigner.

Definition at line 79 of file ProximControlWindow.cc.

80 {
81
82 wxBoxSizer *item0 = new wxBoxSizer( wxVERTICAL );
83
84 wxButton *item1 = new wxButton( parent, ProximConstants::COMMAND_RUN, wxT("Run"), wxDefaultPosition, wxDefaultSize, 0 );
85 item0->Add( item1, 0, wxGROW|wxALL, 5 );
86
87 wxGridSizer *item2 = new wxGridSizer( 2, 0, 0 );
88
89 wxButton *item3 = new wxButton( parent, ProximConstants::COMMAND_STEPI, wxT("Stepi"), wxDefaultPosition, wxDefaultSize, 0 );
90 item2->Add( item3, 0, wxALIGN_CENTER|wxALL, 5 );
91
92 wxButton *item4 = new wxButton( parent, ProximConstants::COMMAND_NEXTI, wxT("Nexti"), wxDefaultPosition, wxDefaultSize, 0 );
93 item2->Add( item4, 0, wxALIGN_CENTER|wxALL, 5 );
94
95 item0->Add( item2, 0, wxALIGN_CENTER, 5 );
96
97 wxButton *item5 = new wxButton( parent, ProximConstants::COMMAND_KILL, wxT("Kill"), wxDefaultPosition, wxDefaultSize, 0 );
98 item0->Add( item5, 0, wxGROW|wxALL, 5 );
99
100 wxButton *item6 = new wxButton( parent, ProximConstants::COMMAND_RESUME, wxT("Resume"), wxDefaultPosition, wxDefaultSize, 0 );
101 item0->Add( item6, 0, wxGROW|wxALL, 5 );
102
103 if (set_sizer)
104 {
105 parent->SetSizer( item0 );
106 if (call_fit)
107 item0->SetSizeHints( parent );
108 }
109
110 return item0;
111}

References ProximConstants::COMMAND_KILL, ProximConstants::COMMAND_NEXTI, ProximConstants::COMMAND_RESUME, ProximConstants::COMMAND_RUN, and ProximConstants::COMMAND_STEPI.

Referenced by ProximControlWindow().

◆ reset()

void ProximControlWindow::reset ( )
virtual

Called when the simulator program, memory and machine models are reset.

Reimplemented from ProximSimulatorWindow.

Definition at line 69 of file ProximControlWindow.cc.

69 {
70 // Do nothing.
71}

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