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

#include <ProximShowRegistersCmd.hh>

Inheritance diagram for ProximShowRegistersCmd:
Inheritance graph
Collaboration diagram for ProximShowRegistersCmd:
Collaboration graph

Public Member Functions

 ProximShowRegistersCmd (EditPart *part)
 
virtual ~ProximShowRegistersCmd ()
 
virtual bool Do ()
 
- Public Member Functions inherited from ComponentCommand
 ComponentCommand ()
 
virtual ~ComponentCommand ()
 
wxWindow * parentWindow ()
 
void setParentWindow (wxWindow *window)
 

Private Attributes

EditPartpart_
 

Detailed Description

Command for opening a register window displaying register state of a registerfile.

Definition at line 45 of file ProximShowRegistersCmd.hh.

Constructor & Destructor Documentation

◆ ProximShowRegistersCmd()

ProximShowRegistersCmd::ProximShowRegistersCmd ( EditPart part)

The Constructor.

Definition at line 42 of file ProximShowRegistersCmd.cc.

43 :
45 part_(part) {
46
47}

◆ ~ProximShowRegistersCmd()

ProximShowRegistersCmd::~ProximShowRegistersCmd ( )
virtual

The Destructor.

Definition at line 53 of file ProximShowRegistersCmd.cc.

53 {
54}

Member Function Documentation

◆ Do()

bool ProximShowRegistersCmd::Do ( )
virtual

Executes the command.

Returns
True, if the command was succesfully executed, false otherwise.

Implements ComponentCommand.

Definition at line 64 of file ProximShowRegistersCmd.cc.

64 {
65
66 std::string rfName =
67 dynamic_cast<TTAMachine::Component*>(part_->model())->name();
68
71
73 regWindow, _T("Registers"), false, wxSize(270, 200));
74
75 regWindow->GetParent()->SetSize(270, 300);
76
77 regWindow->showRegisterFile(rfName);
78
79 return true;
80}
TTAMachine::MachinePart * model() const
void showRegisterFile(const std::string &name)
static void addFramedWindow(wxWindow *window, const wxString &title, bool stayOnTop=false, const wxSize &minSize=wxSize(100, 100))
static ProximMainFrame * mainFrame()

References ProximToolbox::addFramedWindow(), ProximToolbox::mainFrame(), EditPart::model(), part_, and ProximRegisterWindow::showRegisterFile().

Here is the call graph for this function:

Member Data Documentation

◆ part_

EditPart* ProximShowRegistersCmd::part_
private

Definition at line 52 of file ProximShowRegistersCmd.hh.

Referenced by Do().


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