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

#include <HDBEditorAboutCmd.hh>

Inheritance diagram for HDBEditorAboutCmd:
Inheritance graph
Collaboration diagram for HDBEditorAboutCmd:
Collaboration graph

Public Member Functions

 HDBEditorAboutCmd ()
 
virtual ~HDBEditorAboutCmd ()
 
virtual bool Do ()
 
virtual int id () const
 
virtual HDBEditorAboutCmdcreate () 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

Command for displaying HDBEditor about dialog.

Definition at line 42 of file HDBEditorAboutCmd.hh.

Constructor & Destructor Documentation

◆ HDBEditorAboutCmd()

HDBEditorAboutCmd::HDBEditorAboutCmd ( )

The Constructor.

Definition at line 41 of file HDBEditorAboutCmd.cc.

41  :
43 
44 }

Referenced by create().

◆ ~HDBEditorAboutCmd()

HDBEditorAboutCmd::~HDBEditorAboutCmd ( )
virtual

The Destructor.

Definition at line 49 of file HDBEditorAboutCmd.cc.

49  {
50 }

Member Function Documentation

◆ create()

HDBEditorAboutCmd * HDBEditorAboutCmd::create ( ) const
virtual

Creates and returns a new isntance of this command.

Returns
Newly created instance of this command.

Implements GUICommand.

Definition at line 91 of file HDBEditorAboutCmd.cc.

91  {
92  return new HDBEditorAboutCmd();
93 }

References HDBEditorAboutCmd().

Here is the call graph for this function:

◆ Do()

bool HDBEditorAboutCmd::Do ( )
virtual

Executes the command.

Implements GUICommand.

Definition at line 57 of file HDBEditorAboutCmd.cc.

57  {
58  assert(parentWindow() != NULL);
60  dialog.ShowModal();
61  return true;
62 }

References assert, and GUICommand::parentWindow().

Here is the call graph for this function:

◆ icon()

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

Returns full path to the command icon file.

Returns
Full path to the command icon file.

Implements GUICommand.

Definition at line 71 of file HDBEditorAboutCmd.cc.

71  {
72  return "about.png";
73 }

◆ id()

int HDBEditorAboutCmd::id ( ) const
virtual

Returns ID of this command.

Implements GUICommand.

Definition at line 80 of file HDBEditorAboutCmd.cc.

80  {
82 }

References HDBEditorConstants::COMMAND_ABOUT.

◆ isEnabled()

bool HDBEditorAboutCmd::isEnabled ( )
virtual

Returns true if the command is enabled, false otherwise.

Returns
Always true.

Implements GUICommand.

Definition at line 102 of file HDBEditorAboutCmd.cc.

102  {
103  return true;
104 }

The documentation for this class was generated from the following files:
HDBEditorAboutCmd::HDBEditorAboutCmd
HDBEditorAboutCmd()
Definition: HDBEditorAboutCmd.cc:41
assert
#define assert(condition)
Definition: Application.hh:86
HDBEditorConstants::COMMAND_ABOUT
@ COMMAND_ABOUT
Definition: HDBEditorConstants.hh:62
GUICommand::GUICommand
GUICommand(std::string name, wxWindow *parent)
Definition: GUICommand.cc:42
HDBEditorAboutDialog
Definition: HDBEditorAboutDialog.hh:42
HDBEditorConstants::COMMAND_NAME_ABOUT
static const std::string COMMAND_NAME_ABOUT
Name of the about command.
Definition: HDBEditorConstants.hh:102
GUICommand::parentWindow
wxWindow * parentWindow() const
Definition: GUICommand.cc:75