OpenASIP  2.0
Public Member Functions | List of all members
AddOperationImplementationCmd Class Reference

#include <AddOperationImplementationCmd.hh>

Inheritance diagram for AddOperationImplementationCmd:
Inheritance graph
Collaboration diagram for AddOperationImplementationCmd:
Collaboration graph

Public Member Functions

 AddOperationImplementationCmd ()
 Constructor. More...
 
virtual ~AddOperationImplementationCmd ()=default
 
virtual bool Do ()
 Execute command. More...
 
virtual int id () const
 
virtual AddOperationImplementationCmdcreate () const
 
virtual std::string icon () const
 
virtual bool isEnabled ()
 
- Public Member Functions inherited from GUICommand
 GUICommand (std::string name, wxWindow *parent)
 
virtual ~GUICommand ()
 
virtual bool isChecked () const
 
virtual std::string shortName () const
 
void setParentWindow (wxWindow *view)
 
wxWindow * parentWindow () const
 
std::string name () const
 

Detailed Description

Definition at line 35 of file AddOperationImplementationCmd.hh.

Constructor & Destructor Documentation

◆ AddOperationImplementationCmd()

AddOperationImplementationCmd::AddOperationImplementationCmd ( )

Constructor.

Definition at line 40 of file AddOperationImplementationCmd.cc.

Referenced by create().

◆ ~AddOperationImplementationCmd()

virtual AddOperationImplementationCmd::~AddOperationImplementationCmd ( )
virtualdefault

Member Function Documentation

◆ create()

AddOperationImplementationCmd * AddOperationImplementationCmd::create ( ) const
virtual

Creates a new instance of this command.

Returns
Newly created instance of this command.

Implements GUICommand.

Definition at line 81 of file AddOperationImplementationCmd.cc.

81  {
82  return new AddOperationImplementationCmd();
83 }

References AddOperationImplementationCmd().

Here is the call graph for this function:

◆ Do()

bool AddOperationImplementationCmd::Do ( )
virtual

Execute command.

Implements GUICommand.

Definition at line 47 of file AddOperationImplementationCmd.cc.

47  {
50  dialog->Show(true);
51 
52  return true;
53 }

◆ icon()

std::string AddOperationImplementationCmd::icon ( ) const
virtual

Returns name of the command icon file.

Returns
Command icon file name.

Implements GUICommand.

Definition at line 61 of file AddOperationImplementationCmd.cc.

61  {
62  return "";
63 }

◆ id()

int AddOperationImplementationCmd::id ( ) const
virtual

Returns command id.

Returns
Command identifier.

Implements GUICommand.

Definition at line 71 of file AddOperationImplementationCmd.cc.

References HDBEditorConstants::COMMAND_ADD_OPERATION_IMPLEMENTATION.

◆ isEnabled()

bool AddOperationImplementationCmd::isEnabled ( )
virtual

Returns true if the command should be enabled in the menu/toolbar.

Returns
True if the command is enabled, false if not.

Implements GUICommand.

Definition at line 91 of file AddOperationImplementationCmd.cc.

91  {
92  HDB::HDBManager* manager = wxGetApp().mainFrame().hdbManager();
93 
94  if (manager == NULL) {
95  return false;
96  }
97 
98  return true;
99 }

The documentation for this class was generated from the following files:
AddOperationImplementationCmd::AddOperationImplementationCmd
AddOperationImplementationCmd()
Constructor.
Definition: AddOperationImplementationCmd.cc:40
HDB::HDBManager
Definition: HDBManager.hh:82
HDBEditorConstants::COMMAND_NAME_ADD_OPERATION_IMPLEMENTATION
static const std::string COMMAND_NAME_ADD_OPERATION_IMPLEMENTATION
Name of the add fugen operation command.
Definition: HDBEditorConstants.hh:106
OperationImplementationDialog
Definition: OperationImplementationDialog.hh:41
GUICommand::GUICommand
GUICommand(std::string name, wxWindow *parent)
Definition: GUICommand.cc:42
HDBEditorConstants::COMMAND_ADD_OPERATION_IMPLEMENTATION
@ COMMAND_ADD_OPERATION_IMPLEMENTATION
Definition: HDBEditorConstants.hh:64