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

#include <OSEdMemoryCmd.hh>

Inheritance diagram for OSEdMemoryCmd:
Inheritance graph
Collaboration diagram for OSEdMemoryCmd:
Collaboration graph

Public Member Functions

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

 OSEdMemoryCmd (const OSEdMemoryCmd &)
 Copying not allowed.
 
OSEdMemoryCmdoperator= (const OSEdMemoryCmd &)
 Assignment not allowed.
 

Detailed Description

Class that opens memory dialog.

Definition at line 43 of file OSEdMemoryCmd.hh.

Constructor & Destructor Documentation

◆ OSEdMemoryCmd() [1/2]

OSEdMemoryCmd::OSEdMemoryCmd ( )

Constructor.

Definition at line 44 of file OSEdMemoryCmd.cc.

44 :
46}
static const std::string CMD_NAME_MEMORY
Investigate memory command name.

Referenced by create().

◆ ~OSEdMemoryCmd()

OSEdMemoryCmd::~OSEdMemoryCmd ( )
virtual

Destructor.

Definition at line 51 of file OSEdMemoryCmd.cc.

51 {
52}

◆ OSEdMemoryCmd() [2/2]

OSEdMemoryCmd::OSEdMemoryCmd ( const OSEdMemoryCmd )
private

Copying not allowed.

Member Function Documentation

◆ create()

GUICommand * OSEdMemoryCmd::create ( ) const
virtual

Creates a new command.

Returns
The created command.

Implements GUICommand.

Definition at line 70 of file OSEdMemoryCmd.cc.

70 {
71 return new OSEdMemoryCmd();
72}

References OSEdMemoryCmd().

Here is the call graph for this function:

◆ Do()

bool OSEdMemoryCmd::Do ( )
virtual

Executes the command.

Returns
Always true.

Implements GUICommand.

Definition at line 80 of file OSEdMemoryCmd.cc.

80 {
81 MemoryDialog* dialog = new MemoryDialog(parentWindow());
82 dialog->Show();
83 return true;
84}
wxWindow * parentWindow() const
Definition GUICommand.cc:75

References GUICommand::parentWindow().

Here is the call graph for this function:

◆ icon()

string OSEdMemoryCmd::icon ( ) const
virtual

Returns icon path.

Returns
Empty string (icons not used).

Implements GUICommand.

Definition at line 104 of file OSEdMemoryCmd.cc.

104 {
105 return "";
106}

◆ id()

int OSEdMemoryCmd::id ( ) const
virtual

Returns the id of the command.

Returns
The id of the command.

Implements GUICommand.

Definition at line 60 of file OSEdMemoryCmd.cc.

60 {
62}
@ CMD_MEMORY
Memory command id.

References OSEdConstants::CMD_MEMORY.

◆ isEnabled()

bool OSEdMemoryCmd::isEnabled ( )
virtual

Returns true if command is enabled.

Memory command is always enabled.

Returns
Always true.

Implements GUICommand.

Definition at line 94 of file OSEdMemoryCmd.cc.

94 {
95 return true;
96}

◆ operator=()

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

Assignment not allowed.


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