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

#include <ProximShowPortsCmd.hh>

Inheritance diagram for ProximShowPortsCmd:
Inheritance graph
Collaboration diagram for ProximShowPortsCmd:
Collaboration graph

Public Member Functions

 ProximShowPortsCmd (EditPart *part)
 
virtual ~ProximShowPortsCmd ()
 
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 function unit window displaying port state of a function unit.

Definition at line 45 of file ProximShowPortsCmd.hh.

Constructor & Destructor Documentation

◆ ProximShowPortsCmd()

ProximShowPortsCmd::ProximShowPortsCmd ( EditPart part)

The Constructor.

Definition at line 42 of file ProximShowPortsCmd.cc.

43 :
45 part_(part) {
46
47}

◆ ~ProximShowPortsCmd()

ProximShowPortsCmd::~ProximShowPortsCmd ( )
virtual

The Destructor.

Definition at line 53 of file ProximShowPortsCmd.cc.

53 {
54}

Member Function Documentation

◆ Do()

bool ProximShowPortsCmd::Do ( )
virtual

Executes the command.

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

Implements ComponentCommand.

Definition at line 64 of file ProximShowPortsCmd.cc.

64 {
65
66 std::string fuName =
67 dynamic_cast<TTAMachine::Component*>(part_->model())->name();
68
69 ProximPortWindow* portWin =
71
73 portWin, _T("Ports"), false, wxSize(270, 200));
74
75 portWin->GetParent()->SetSize(270, 300);
76
77 portWin->showFunctionUnit(fuName);
78
79 return true;
80}
TTAMachine::MachinePart * model() const
void showFunctionUnit(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 ProximPortWindow::showFunctionUnit().

Here is the call graph for this function:

Member Data Documentation

◆ part_

EditPart* ProximShowPortsCmd::part_
private

Definition at line 52 of file ProximShowPortsCmd.hh.

Referenced by Do().


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