OpenASIP  2.0
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 }

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:
ProximToolbox::mainFrame
static ProximMainFrame * mainFrame()
Definition: ProximToolbox.cc:105
ComponentCommand::ComponentCommand
ComponentCommand()
Definition: ComponentCommand.cc:38
ProximRegisterWindow
Definition: ProximRegisterWindow.hh:54
ProximToolbox::addFramedWindow
static void addFramedWindow(wxWindow *window, const wxString &title, bool stayOnTop=false, const wxSize &minSize=wxSize(100, 100))
Definition: ProximToolbox.cc:176
TTAMachine::Component
Definition: MachinePart.hh:90
EditPart::model
TTAMachine::MachinePart * model() const
ProximRegisterWindow::showRegisterFile
void showRegisterFile(const std::string &name)
Definition: ProximRegisterWindow.cc:252
ProximShowRegistersCmd::part_
EditPart * part_
Definition: ProximShowRegistersCmd.hh:52