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

#include <HDBEditorQuitCmd.hh>

Inheritance diagram for HDBEditorQuitCmd:
Inheritance graph
Collaboration diagram for HDBEditorQuitCmd:
Collaboration graph

Public Member Functions

 HDBEditorQuitCmd ()
 
virtual ~HDBEditorQuitCmd ()
 
virtual bool Do ()
 
virtual int id () const
 
virtual HDBEditorQuitCmdcreate () 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 quiting HDBEditor.

Definition at line 41 of file HDBEditorQuitCmd.hh.

Constructor & Destructor Documentation

◆ HDBEditorQuitCmd()

HDBEditorQuitCmd::HDBEditorQuitCmd ( )

The Constructor.

Definition at line 42 of file HDBEditorQuitCmd.cc.

Referenced by create().

◆ ~HDBEditorQuitCmd()

HDBEditorQuitCmd::~HDBEditorQuitCmd ( )
virtual

The Destructor.

Definition at line 50 of file HDBEditorQuitCmd.cc.

50  {
51 }

Member Function Documentation

◆ create()

HDBEditorQuitCmd * HDBEditorQuitCmd::create ( ) const
virtual

Creates and returns a new isntance of this command.

Returns
Newly created instance of this command.

Implements GUICommand.

Definition at line 92 of file HDBEditorQuitCmd.cc.

92  {
93  return new HDBEditorQuitCmd();
94 }

References HDBEditorQuitCmd().

Here is the call graph for this function:

◆ Do()

bool HDBEditorQuitCmd::Do ( )
virtual

Executes the command.

Implements GUICommand.

Definition at line 58 of file HDBEditorQuitCmd.cc.

58  {
59 
60  wxGetApp().mainFrame().Close();
61 
62  return true;
63 }

◆ icon()

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

Returns full path to the command icon file.

Returns
Full path to the command icon file.

Implements GUICommand.

Definition at line 72 of file HDBEditorQuitCmd.cc.

72  {
73  return "quit.png";
74 }

◆ id()

int HDBEditorQuitCmd::id ( ) const
virtual

Returns ID of this command.

Implements GUICommand.

Definition at line 81 of file HDBEditorQuitCmd.cc.

81  {
83 }

References HDBEditorConstants::COMMAND_QUIT.

◆ isEnabled()

bool HDBEditorQuitCmd::isEnabled ( )
virtual

Returns true if the command is enabled, false otherwise.

Returns
Always true.

Implements GUICommand.

Definition at line 103 of file HDBEditorQuitCmd.cc.

103  {
104  return true;
105 }

The documentation for this class was generated from the following files:
HDBEditorConstants::COMMAND_NAME_QUIT
static const std::string COMMAND_NAME_QUIT
Name of the quit command.
Definition: HDBEditorConstants.hh:70
GUICommand::GUICommand
GUICommand(std::string name, wxWindow *parent)
Definition: GUICommand.cc:42
HDBEditorConstants::COMMAND_QUIT
@ COMMAND_QUIT
Definition: HDBEditorConstants.hh:61
HDBEditorQuitCmd::HDBEditorQuitCmd
HDBEditorQuitCmd()
Definition: HDBEditorQuitCmd.cc:42