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

#include <AddOperationImplementationResourceCmd.hh>

Inheritance diagram for AddOperationImplementationResourceCmd:
Inheritance graph
Collaboration diagram for AddOperationImplementationResourceCmd:
Collaboration graph

Public Member Functions

 AddOperationImplementationResourceCmd ()
 Constructor.
 
virtual ~AddOperationImplementationResourceCmd ()=default
 
virtual bool Do ()
 Execute command.
 
virtual int id () const
 
virtual AddOperationImplementationResourceCmdcreate () 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 AddOperationImplementationResourceCmd.hh.

Constructor & Destructor Documentation

◆ AddOperationImplementationResourceCmd()

AddOperationImplementationResourceCmd::AddOperationImplementationResourceCmd ( )

Constructor.

Definition at line 40 of file AddOperationImplementationResourceCmd.cc.

41 : GUICommand(
43 COMMAND_NAME_ADD_OPERATION_IMPLEMENTATION_RESOURCE,
44 NULL) {}

Referenced by create().

◆ ~AddOperationImplementationResourceCmd()

virtual AddOperationImplementationResourceCmd::~AddOperationImplementationResourceCmd ( )
virtualdefault

Member Function Documentation

◆ create()

AddOperationImplementationResourceCmd * AddOperationImplementationResourceCmd::create ( ) const
virtual

Creates a new instance of this command.

Returns
Newly created instance of this command.

Implements GUICommand.

Definition at line 82 of file AddOperationImplementationResourceCmd.cc.

References AddOperationImplementationResourceCmd().

Here is the call graph for this function:

◆ Do()

bool AddOperationImplementationResourceCmd::Do ( )
virtual

Execute command.

Implements GUICommand.

Definition at line 48 of file AddOperationImplementationResourceCmd.cc.

◆ icon()

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

Returns name of the command icon file.

Returns
Command icon file name.

Implements GUICommand.

Definition at line 62 of file AddOperationImplementationResourceCmd.cc.

62 {
63 return "";
64}

◆ id()

int AddOperationImplementationResourceCmd::id ( ) const
virtual

Returns command id.

Returns
Command identifier.

Implements GUICommand.

Definition at line 72 of file AddOperationImplementationResourceCmd.cc.

References HDBEditorConstants::COMMAND_ADD_OPERATION_IMPLEMENTATION_RESOURCE.

◆ isEnabled()

bool AddOperationImplementationResourceCmd::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 92 of file AddOperationImplementationResourceCmd.cc.

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

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