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

#include <ProximAboutCmd.hh>

Inheritance diagram for ProximAboutCmd:
Inheritance graph
Collaboration diagram for ProximAboutCmd:
Collaboration graph

Public Member Functions

 ProximAboutCmd ()
 
virtual ~ProximAboutCmd ()
 
virtual bool Do ()
 
virtual int id () const
 
virtual ProximAboutCmdcreate () 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 displaying Proxim about dialog.

Definition at line 42 of file ProximAboutCmd.hh.

Constructor & Destructor Documentation

◆ ProximAboutCmd()

ProximAboutCmd::ProximAboutCmd ( )

The Constructor.

Definition at line 41 of file ProximAboutCmd.cc.

41  :
43 
44 }

Referenced by create().

◆ ~ProximAboutCmd()

ProximAboutCmd::~ProximAboutCmd ( )
virtual

The Destructor.

Definition at line 49 of file ProximAboutCmd.cc.

49  {
50 }

Member Function Documentation

◆ create()

ProximAboutCmd * ProximAboutCmd::create ( ) const
virtual

Creates and returns a new isntance of this command.

Returns
Newly created instance of this command.

Implements GUICommand.

Definition at line 91 of file ProximAboutCmd.cc.

91  {
92  return new ProximAboutCmd();
93 }

References ProximAboutCmd().

Here is the call graph for this function:

◆ Do()

bool ProximAboutCmd::Do ( )
virtual

Executes the command.

Implements GUICommand.

Definition at line 57 of file ProximAboutCmd.cc.

57  {
58  assert(parentWindow() != NULL);
60  dialog.ShowModal();
61  return true;
62 }

References assert, and GUICommand::parentWindow().

Here is the call graph for this function:

◆ icon()

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

Returns full path to the command icon file.

Returns
Full path to the command icon file.

Implements GUICommand.

Definition at line 71 of file ProximAboutCmd.cc.

71  {
72  return "about.png";
73 }

◆ id()

int ProximAboutCmd::id ( ) const
virtual

Returns ID of this command.

Implements GUICommand.

Definition at line 80 of file ProximAboutCmd.cc.

80  {
82 }

References ProximConstants::COMMAND_ABOUT.

◆ isEnabled()

bool ProximAboutCmd::isEnabled ( )
virtual

Returns true if the command is enabled, false otherwise.

Returns
Always true.

Implements GUICommand.

Definition at line 102 of file ProximAboutCmd.cc.

102  {
103  return true;
104 }

The documentation for this class was generated from the following files:
ProximAboutCmd::ProximAboutCmd
ProximAboutCmd()
Definition: ProximAboutCmd.cc:41
assert
#define assert(condition)
Definition: Application.hh:86
ProximAboutDialog
Definition: ProximAboutDialog.hh:42
GUICommand::GUICommand
GUICommand(std::string name, wxWindow *parent)
Definition: GUICommand.cc:42
ProximConstants::COMMAND_NAME_ABOUT
static const std::string COMMAND_NAME_ABOUT
Name of the about command.
Definition: ProximConstants.hh:116
ProximConstants::COMMAND_ABOUT
@ COMMAND_ABOUT
Definition: ProximConstants.hh:58
GUICommand::parentWindow
wxWindow * parentWindow() const
Definition: GUICommand.cc:75