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

#include <OSEdQuitCmd.hh>

Inheritance diagram for OSEdQuitCmd:
Inheritance graph
Collaboration diagram for OSEdQuitCmd:
Collaboration graph

Public Member Functions

 OSEdQuitCmd ()
 
virtual ~OSEdQuitCmd ()
 
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

 OSEdQuitCmd (const OSEdQuitCmd &)
 Copying not allowed. More...
 
OSEdQuitCmdoperator= (OSEdQuitCmd &)
 Assignment not allowed. More...
 

Detailed Description

Command that quits the execution of the application.

Definition at line 43 of file OSEdQuitCmd.hh.

Constructor & Destructor Documentation

◆ OSEdQuitCmd() [1/2]

OSEdQuitCmd::OSEdQuitCmd ( )

Constructor.

Definition at line 43 of file OSEdQuitCmd.cc.

Referenced by create().

◆ ~OSEdQuitCmd()

OSEdQuitCmd::~OSEdQuitCmd ( )
virtual

Destructor.

Definition at line 49 of file OSEdQuitCmd.cc.

49  {
50 }

◆ OSEdQuitCmd() [2/2]

OSEdQuitCmd::OSEdQuitCmd ( const OSEdQuitCmd )
private

Copying not allowed.

Member Function Documentation

◆ create()

GUICommand * OSEdQuitCmd::create ( ) const
virtual

Creates a new command.

Returns
Created command.

Implements GUICommand.

Definition at line 66 of file OSEdQuitCmd.cc.

66  {
67  return new OSEdQuitCmd();
68 }

References OSEdQuitCmd().

Here is the call graph for this function:

◆ Do()

bool OSEdQuitCmd::Do ( )
virtual

Executes the command.

Returns
False.

Implements GUICommand.

Definition at line 76 of file OSEdQuitCmd.cc.

76  {
77  OSEdMainFrame* parent = wxGetApp().mainFrame();
78  parent->Close(true);
79  return false;
80 }

◆ icon()

string OSEdQuitCmd::icon ( ) const
virtual

Returns the icon file.

Returns
Empty string (no icons used).

Implements GUICommand.

Definition at line 98 of file OSEdQuitCmd.cc.

98  {
99  return "";
100 }

◆ id()

int OSEdQuitCmd::id ( ) const
virtual

Returns the id of the command.

Implements GUICommand.

Definition at line 56 of file OSEdQuitCmd.cc.

56  {
58 }

References OSEdConstants::CMD_QUIT.

◆ isEnabled()

bool OSEdQuitCmd::isEnabled ( )
virtual

Returns true if command is enabled.

Returns
True.

Implements GUICommand.

Definition at line 88 of file OSEdQuitCmd.cc.

88  {
89  return true;
90 }

◆ operator=()

OSEdQuitCmd& OSEdQuitCmd::operator= ( OSEdQuitCmd )
private

Assignment not allowed.


The documentation for this class was generated from the following files:
OSEdConstants::CMD_QUIT
@ CMD_QUIT
Quit command id.
Definition: OSEdConstants.hh:91
OSEdConstants::CMD_NAME_QUIT
static const std::string CMD_NAME_QUIT
Quit command name.
Definition: OSEdConstants.hh:49
OSEdMainFrame
Definition: OSEdMainFrame.hh:49
GUICommand::GUICommand
GUICommand(std::string name, wxWindow *parent)
Definition: GUICommand.cc:42
OSEdQuitCmd::OSEdQuitCmd
OSEdQuitCmd()
Definition: OSEdQuitCmd.cc:43