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

#include <AboutCmd.hh>

Inheritance diagram for AboutCmd:
Inheritance graph
Collaboration diagram for AboutCmd:
Collaboration graph

Public Member Functions

 AboutCmd ()
 
virtual ~AboutCmd ()
 
virtual bool Do ()
 
virtual int id () const
 
virtual AboutCmdcreate () const
 
virtual bool isEnabled ()
 
virtual std::string icon () const
 
- Public Member Functions inherited from EditorCommand
 EditorCommand (std::string name, wxWindow *parent=NULL)
 
virtual ~EditorCommand ()
 
void setView (wxView *view)
 
wxView * view () const
 
- 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

wxCommand for editing connections.

Definition at line 40 of file AboutCmd.hh.

Constructor & Destructor Documentation

◆ AboutCmd()

AboutCmd::AboutCmd ( )

The Constructor.

Definition at line 41 of file AboutCmd.cc.

41  :
43 
44 }

Referenced by create().

◆ ~AboutCmd()

AboutCmd::~AboutCmd ( )
virtual

The Destructor.

Definition at line 50 of file AboutCmd.cc.

50 {}

Member Function Documentation

◆ create()

AboutCmd * AboutCmd::create ( ) const
virtual

Creates and returns a new instance of this command.

Implements GUICommand.

Definition at line 79 of file AboutCmd.cc.

79  {
80  return new AboutCmd();
81 }

References AboutCmd().

Here is the call graph for this function:

◆ Do()

bool AboutCmd::Do ( )
virtual

Executes the command.

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

Implements GUICommand.

Definition at line 59 of file AboutCmd.cc.

59  {
60  AboutDialog about(parentWindow());
61  about.ShowModal();
62  return true;
63 }

References GUICommand::parentWindow().

Here is the call graph for this function:

◆ icon()

string AboutCmd::icon ( ) const
virtual

Returns path to the command's icon file.

Reimplemented from EditorCommand.

Definition at line 99 of file AboutCmd.cc.

99  {
101 }

References ProDeConstants::CMD_ICON_ABOUT.

◆ id()

int AboutCmd::id ( ) const
virtual

Returns id of this command.

Implements GUICommand.

Definition at line 70 of file AboutCmd.cc.

70  {
72 }

References ProDeConstants::COMMAND_ABOUT.

◆ isEnabled()

bool AboutCmd::isEnabled ( )
virtual

This command is always executable.

Returns
Always true.

Reimplemented from EditorCommand.

Definition at line 90 of file AboutCmd.cc.

90  {
91  return true;
92 }

The documentation for this class was generated from the following files:
ProDeConstants::CMD_NAME_ABOUT
static const std::string CMD_NAME_ABOUT
Command name for the "About" command.
Definition: ProDeConstants.hh:186
ProDeConstants::COMMAND_ABOUT
@ COMMAND_ABOUT
Definition: ProDeConstants.hh:467
EditorCommand::EditorCommand
EditorCommand(std::string name, wxWindow *parent=NULL)
Definition: EditorCommand.cc:42
ProDeConstants::CMD_ICON_ABOUT
static const std::string CMD_ICON_ABOUT
Icon location for the "About" command.
Definition: ProDeConstants.hh:354
AboutDialog
Definition: AboutDialog.hh:18
AboutCmd::AboutCmd
AboutCmd()
Definition: AboutCmd.cc:41
GUICommand::parentWindow
wxWindow * parentWindow() const
Definition: GUICommand.cc:75