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

#include <ProximNewRegisterWindowCmd.hh>

Inheritance diagram for ProximNewRegisterWindowCmd:
Inheritance graph
Collaboration diagram for ProximNewRegisterWindowCmd:
Collaboration graph

Public Member Functions

 ProximNewRegisterWindowCmd ()
 
virtual ~ProximNewRegisterWindowCmd ()
 
virtual bool Do ()
 
virtual int id () const
 
virtual ProximNewRegisterWindowCmdcreate () 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 register window in Proxim.

Definition at line 41 of file ProximNewRegisterWindowCmd.hh.

Constructor & Destructor Documentation

◆ ProximNewRegisterWindowCmd()

ProximNewRegisterWindowCmd::ProximNewRegisterWindowCmd ( )

The Constructor.

Definition at line 41 of file ProximNewRegisterWindowCmd.cc.

Referenced by create().

◆ ~ProximNewRegisterWindowCmd()

ProximNewRegisterWindowCmd::~ProximNewRegisterWindowCmd ( )
virtual

The Destructor.

Definition at line 49 of file ProximNewRegisterWindowCmd.cc.

49  {
50 }

Member Function Documentation

◆ create()

ProximNewRegisterWindowCmd * ProximNewRegisterWindowCmd::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 ProximNewRegisterWindowCmd.cc.

97  {
98  return new ProximNewRegisterWindowCmd();
99 }

References ProximNewRegisterWindowCmd().

Here is the call graph for this function:

◆ Do()

bool ProximNewRegisterWindowCmd::Do ( )
virtual

Executes the command.

Implements GUICommand.

Definition at line 57 of file ProximNewRegisterWindowCmd.cc.

57  {
58 
61 
63  regWindow, _T("Registers"), false, wxSize(270, 200));
64 
65  regWindow->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 ProximNewRegisterWindowCmd::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 ProximNewRegisterWindowCmd.cc.

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

◆ id()

int ProximNewRegisterWindowCmd::id ( ) const
virtual

Returns ID of this command.

Implements GUICommand.

Definition at line 86 of file ProximNewRegisterWindowCmd.cc.

References ProximConstants::COMMAND_NEW_REGISTER_WINDOW.

◆ isEnabled()

bool ProximNewRegisterWindowCmd::isEnabled ( )
virtual

Returns true if the command is enabled, false otherwise.

Returns
Always true.

Implements GUICommand.

Definition at line 108 of file ProximNewRegisterWindowCmd.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
ProximNewRegisterWindowCmd::ProximNewRegisterWindowCmd
ProximNewRegisterWindowCmd()
Definition: ProximNewRegisterWindowCmd.cc:41
ProximConstants::COMMAND_NEW_REGISTER_WINDOW
@ COMMAND_NEW_REGISTER_WINDOW
Definition: ProximConstants.hh:66
ProximRegisterWindow
Definition: ProximRegisterWindow.hh:54
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
ProximConstants::COMMAND_NAME_NEW_REGISTER_WINDOW
static const std::string COMMAND_NAME_NEW_REGISTER_WINDOW
Name of the new register window command.
Definition: ProximConstants.hh:130