OpenASIP  2.0
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. More...
 
virtual ~AddOperationImplementationResourceCmd ()=default
 
virtual bool Do ()
 Execute command. More...
 
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.

82  {
84 }

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.

48  {
51  dialog->Show(true);
52 
53  return true;
54 }

◆ 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:
HDBEditorConstants::COMMAND_ADD_OPERATION_IMPLEMENTATION_RESOURCE
@ COMMAND_ADD_OPERATION_IMPLEMENTATION_RESOURCE
Definition: HDBEditorConstants.hh:63
HDB::HDBManager
Definition: HDBManager.hh:82
GUICommand::GUICommand
GUICommand(std::string name, wxWindow *parent)
Definition: GUICommand.cc:42
OperationImplementationResourceDialog
Definition: OperationImplementationResourceDialog.hh:44
HDBEditorConstants
Definition: HDBEditorConstants.hh:42
AddOperationImplementationResourceCmd::AddOperationImplementationResourceCmd
AddOperationImplementationResourceCmd()
Constructor.
Definition: AddOperationImplementationResourceCmd.cc:40