OpenASIP  2.0
Public Member Functions | Private Attributes | List of all members
ComponentCommand Class Referenceabstract

#include <ComponentCommand.hh>

Inheritance diagram for ComponentCommand:
Inheritance graph
Collaboration diagram for ComponentCommand:
Collaboration graph

Public Member Functions

 ComponentCommand ()
 
virtual ~ComponentCommand ()
 
virtual bool Do ()=0
 
wxWindow * parentWindow ()
 
void setParentWindow (wxWindow *window)
 

Private Attributes

wxWindow * parentWindow_
 Parent window of the command. More...
 

Detailed Description

Base class for the commands created by component EditPolicies.

Setting the parent window allows command to popup dialogs.

Definition at line 46 of file ComponentCommand.hh.

Constructor & Destructor Documentation

◆ ComponentCommand()

ComponentCommand::ComponentCommand ( )

The Constructor.

Definition at line 38 of file ComponentCommand.cc.

38  : parentWindow_(NULL) {
39 }

◆ ~ComponentCommand()

ComponentCommand::~ComponentCommand ( )
virtual

The Destructor.

Definition at line 45 of file ComponentCommand.cc.

45  {
46 }

Member Function Documentation

◆ Do()

virtual bool ComponentCommand::Do ( )
pure virtual

◆ parentWindow()

wxWindow * ComponentCommand::parentWindow ( )

Returns the parent window for the dialogs created by this command.

Returns
The parent window for the dialogs created by this command.

Definition at line 66 of file ComponentCommand.cc.

66  {
67  return parentWindow_;
68 }

References parentWindow_.

Referenced by ModifyBusCmd::Do(), ModifyGCUCmd::Do(), ModifyRFCmd::Do(), ModifySocketCmd::Do(), ModifyFUCmd::Do(), ModifyIUCmd::Do(), ModifyRFPortCmd::Do(), ModifyFUPortCmd::Do(), ModifySRPortCmd::Do(), ModifyIUPortCmd::Do(), and ModifyBridgeCmd::Do().

◆ setParentWindow()

void ComponentCommand::setParentWindow ( wxWindow *  window)

Sets a parent window for the dialogs created by this command.

Parameters
windowA parent window for the dialogs.

Definition at line 55 of file ComponentCommand.cc.

55  {
56  parentWindow_ = window;
57 }

References parentWindow_.

Referenced by CopyComponentCmd::Do(), CutComponentCmd::Do(), ModifyComponentCmd::Do(), and ProximMachineCanvasTool::onMouseEvent().

Member Data Documentation

◆ parentWindow_

wxWindow* ComponentCommand::parentWindow_
private

Parent window of the command.

Definition at line 58 of file ComponentCommand.hh.

Referenced by parentWindow(), and setParentWindow().


The documentation for this class was generated from the following files:
ComponentCommand::parentWindow_
wxWindow * parentWindow_
Parent window of the command.
Definition: ComponentCommand.hh:58