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

#include <ProximNewPortWindowCmd.hh>

Inheritance diagram for ProximNewPortWindowCmd:
Inheritance graph
Collaboration diagram for ProximNewPortWindowCmd:
Collaboration graph

Public Member Functions

 ProximNewPortWindowCmd ()
 
virtual ~ProximNewPortWindowCmd ()
 
virtual bool Do ()
 
virtual int id () const
 
virtual ProximNewPortWindowCmdcreate () 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 opening a new port window in Proxim.

Definition at line 41 of file ProximNewPortWindowCmd.hh.

Constructor & Destructor Documentation

◆ ProximNewPortWindowCmd()

ProximNewPortWindowCmd::ProximNewPortWindowCmd ( )

The Constructor.

Definition at line 41 of file ProximNewPortWindowCmd.cc.

Referenced by create().

◆ ~ProximNewPortWindowCmd()

ProximNewPortWindowCmd::~ProximNewPortWindowCmd ( )
virtual

The Destructor.

Definition at line 49 of file ProximNewPortWindowCmd.cc.

49  {
50 }

Member Function Documentation

◆ create()

ProximNewPortWindowCmd * ProximNewPortWindowCmd::create ( ) const
virtual

Creates and returns a new isntance of this command.

Returns
Newly created instance of this command.

Implements GUICommand.

Definition at line 97 of file ProximNewPortWindowCmd.cc.

97  {
98  return new ProximNewPortWindowCmd();
99 }

References ProximNewPortWindowCmd().

Here is the call graph for this function:

◆ Do()

bool ProximNewPortWindowCmd::Do ( )
virtual

Executes the command.

Implements GUICommand.

Definition at line 57 of file ProximNewPortWindowCmd.cc.

57  {
58 
59  ProximPortWindow* portWindow =
61 
63  portWindow, _T("Ports"), false, wxSize(270, 200));
64 
65  portWindow->GetParent()->SetSize(270, 300);
66 
67  return true;
68 }

References ProximToolbox::addFramedWindow(), and ProximToolbox::mainFrame().

Here is the call graph for this function:

◆ icon()

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

Returns full path to the command icon file.

Returns
Full path to the command icon file.

Implements GUICommand.

Definition at line 77 of file ProximNewPortWindowCmd.cc.

77  {
78  return "window_new.png";
79 }

◆ id()

int ProximNewPortWindowCmd::id ( ) const
virtual

Returns ID of this command.

Implements GUICommand.

Definition at line 86 of file ProximNewPortWindowCmd.cc.

86  {
88 }

References ProximConstants::COMMAND_NEW_PORT_WINDOW.

◆ isEnabled()

bool ProximNewPortWindowCmd::isEnabled ( )
virtual

Returns true if the command is enabled, false otherwise.

Returns
Always true.

Implements GUICommand.

Definition at line 108 of file ProximNewPortWindowCmd.cc.

108  {
109  return true;
110 }

The documentation for this class was generated from the following files:
ProximToolbox::mainFrame
static ProximMainFrame * mainFrame()
Definition: ProximToolbox.cc:105
ProximConstants::COMMAND_NAME_NEW_PORT_WINDOW
static const std::string COMMAND_NAME_NEW_PORT_WINDOW
Name of the new port window command.
Definition: ProximConstants.hh:132
ProximNewPortWindowCmd::ProximNewPortWindowCmd
ProximNewPortWindowCmd()
Definition: ProximNewPortWindowCmd.cc:41
ProximConstants::COMMAND_NEW_PORT_WINDOW
@ COMMAND_NEW_PORT_WINDOW
Definition: ProximConstants.hh:67
ProximToolbox::addFramedWindow
static void addFramedWindow(wxWindow *window, const wxString &title, bool stayOnTop=false, const wxSize &minSize=wxSize(100, 100))
Definition: ProximToolbox.cc:176
GUICommand::GUICommand
GUICommand(std::string name, wxWindow *parent)
Definition: GUICommand.cc:42
ProximPortWindow
Definition: ProximPortWindow.hh:47