OpenASIP 2.2
Loading...
Searching...
No Matches
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}
static const std::string COMMAND_NAME_ABOUT
Name of the about command.

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}
#define assert(condition)
wxWindow * parentWindow() const
Definition GUICommand.cc:75

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.

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: