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

#include <OSEdAboutCmd.hh>

Inheritance diagram for OSEdAboutCmd:
Inheritance graph
Collaboration diagram for OSEdAboutCmd:
Collaboration graph

Public Member Functions

 OSEdAboutCmd ()
 
virtual ~OSEdAboutCmd ()
 
virtual int id () const
 
virtual GUICommandcreate () const
 
virtual bool Do ()
 
virtual bool isEnabled ()
 
virtual std::string icon () 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
 

Private Member Functions

 OSEdAboutCmd (const OSEdAboutCmd &)
 Copying not allowed.
 
OSEdAboutCmdoperator= (const OSEdAboutCmd &)
 Assignment not allowed.
 

Detailed Description

Command that shows the about dialog of OSEd.

Definition at line 43 of file OSEdAboutCmd.hh.

Constructor & Destructor Documentation

◆ OSEdAboutCmd() [1/2]

OSEdAboutCmd::OSEdAboutCmd ( )

Constructor.

Definition at line 48 of file OSEdAboutCmd.cc.

48 :
50}
static const std::string CMD_NAME_ABOUT
About command name.

Referenced by create().

◆ ~OSEdAboutCmd()

OSEdAboutCmd::~OSEdAboutCmd ( )
virtual

Destructor.

Definition at line 55 of file OSEdAboutCmd.cc.

55 {
56}

◆ OSEdAboutCmd() [2/2]

OSEdAboutCmd::OSEdAboutCmd ( const OSEdAboutCmd )
private

Copying not allowed.

Member Function Documentation

◆ create()

GUICommand * OSEdAboutCmd::create ( ) const
virtual

Creates a new command.

Returns
The created command.

Implements GUICommand.

Definition at line 74 of file OSEdAboutCmd.cc.

74 {
75 return new OSEdAboutCmd();
76}

References OSEdAboutCmd().

Here is the call graph for this function:

◆ Do()

bool OSEdAboutCmd::Do ( )
virtual

Executes the command.

Returns
True.

Implements GUICommand.

Definition at line 84 of file OSEdAboutCmd.cc.

84 {
86 about.ShowModal();
87 return true;
88}
wxWindow * parentWindow() const
Definition GUICommand.cc:75

References GUICommand::parentWindow().

Here is the call graph for this function:

◆ icon()

string OSEdAboutCmd::icon ( ) const
virtual

Returns the icon path.

Returns
Empty string (no icons used).

Implements GUICommand.

Definition at line 106 of file OSEdAboutCmd.cc.

106 {
107 return "";
108}

◆ id()

int OSEdAboutCmd::id ( ) const
virtual

Returns the id of the command.

Returns
The id of the command.

Implements GUICommand.

Definition at line 64 of file OSEdAboutCmd.cc.

64 {
66}
@ CMD_ABOUT
About command id.

References OSEdConstants::CMD_ABOUT.

◆ isEnabled()

bool OSEdAboutCmd::isEnabled ( )
virtual

Returns true, if command is enabled.

Returns
Always true.

Implements GUICommand.

Definition at line 96 of file OSEdAboutCmd.cc.

96 {
97 return true;
98}

◆ operator=()

OSEdAboutCmd & OSEdAboutCmd::operator= ( const OSEdAboutCmd )
private

Assignment not allowed.


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