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

#include <OSEdOptionsCmd.hh>

Inheritance diagram for OSEdOptionsCmd:
Inheritance graph
Collaboration diagram for OSEdOptionsCmd:
Collaboration graph

Public Member Functions

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

 OSEdOptionsCmd (const OSEdOptionsCmd &)
 Copying not allowed. More...
 
OSEdOptionsCmdoperator= (const OSEdOptionsCmd &)
 Assignment not allowed. More...
 

Detailed Description

Command for modifying options.

Definition at line 43 of file OSEdOptionsCmd.hh.

Constructor & Destructor Documentation

◆ OSEdOptionsCmd() [1/2]

OSEdOptionsCmd::OSEdOptionsCmd ( )

Constructor.

Definition at line 42 of file OSEdOptionsCmd.cc.

42  :
44 }

Referenced by create().

◆ ~OSEdOptionsCmd()

OSEdOptionsCmd::~OSEdOptionsCmd ( )
virtual

Destructor.

Definition at line 49 of file OSEdOptionsCmd.cc.

49  {
50 }

◆ OSEdOptionsCmd() [2/2]

OSEdOptionsCmd::OSEdOptionsCmd ( const OSEdOptionsCmd )
private

Copying not allowed.

Member Function Documentation

◆ create()

GUICommand * OSEdOptionsCmd::create ( ) const
virtual

Creates a new command.

Returns
New command.

Implements GUICommand.

Definition at line 68 of file OSEdOptionsCmd.cc.

68  {
69  return new OSEdOptionsCmd();
70 }

References OSEdOptionsCmd().

Here is the call graph for this function:

◆ Do()

bool OSEdOptionsCmd::Do ( )
virtual

Executes the command.

Returns
True if execution is successful.

Implements GUICommand.

Definition at line 78 of file OSEdOptionsCmd.cc.

78  {
80  dialog.ShowModal();
81  return true;
82 }

References GUICommand::parentWindow().

Here is the call graph for this function:

◆ icon()

string OSEdOptionsCmd::icon ( ) const
virtual

Return icon path.

Returns
Empty string (icons not used).

Implements GUICommand.

Definition at line 100 of file OSEdOptionsCmd.cc.

100  {
101  return "";
102 }

◆ id()

int OSEdOptionsCmd::id ( ) const
virtual

Returns the id of the command.

Returns
The id of the command.

Implements GUICommand.

Definition at line 58 of file OSEdOptionsCmd.cc.

58  {
60 }

References OSEdConstants::CMD_OPTIONS.

◆ isEnabled()

bool OSEdOptionsCmd::isEnabled ( )
virtual

Return true if command is enabled.

Returns
Always true.

Implements GUICommand.

Definition at line 90 of file OSEdOptionsCmd.cc.

90  {
91  return true;
92 }

◆ operator=()

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

Assignment not allowed.


The documentation for this class was generated from the following files:
OSEdOptionsDialog
Definition: OSEdOptionsDialog.hh:41
OSEdConstants::CMD_NAME_OPTIONS
static const std::string CMD_NAME_OPTIONS
Option command name.
Definition: OSEdConstants.hh:61
OSEdConstants::CMD_OPTIONS
@ CMD_OPTIONS
Option command id.
Definition: OSEdConstants.hh:102
GUICommand::GUICommand
GUICommand(std::string name, wxWindow *parent)
Definition: GUICommand.cc:42
OSEdOptionsCmd::OSEdOptionsCmd
OSEdOptionsCmd()
Definition: OSEdOptionsCmd.cc:42
GUICommand::parentWindow
wxWindow * parentWindow() const
Definition: GUICommand.cc:75