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

#include <SetStatusTextCmd.hh>

Inheritance diagram for SetStatusTextCmd:
Inheritance graph
Collaboration diagram for SetStatusTextCmd:
Collaboration graph

Public Member Functions

 SetStatusTextCmd (std::string text)
 
virtual ~SetStatusTextCmd ()
 
virtual bool Do ()
 
- Public Member Functions inherited from ComponentCommand
 ComponentCommand ()
 
virtual ~ComponentCommand ()
 
wxWindow * parentWindow ()
 
void setParentWindow (wxWindow *window)
 

Private Attributes

std::string text_
 Status text to set.
 

Detailed Description

Command for setting the status bar text.

Definition at line 43 of file SetStatusTextCmd.hh.

Constructor & Destructor Documentation

◆ SetStatusTextCmd()

SetStatusTextCmd::SetStatusTextCmd ( std::string  text)

The Constructor.

Parameters
textStatus text to set.

Definition at line 49 of file SetStatusTextCmd.cc.

49 :
50 ComponentCommand(), text_(text) {
51}
std::string text_
Status text to set.

◆ ~SetStatusTextCmd()

SetStatusTextCmd::~SetStatusTextCmd ( )
virtual

The Destructor.

Definition at line 57 of file SetStatusTextCmd.cc.

57 {
58}

Member Function Documentation

◆ Do()

bool SetStatusTextCmd::Do ( )
virtual

Executes the command.

Returns
true, if the command was succesfully executed, false otherwise.

Implements ComponentCommand.

Definition at line 67 of file SetStatusTextCmd.cc.

67 {
68 wxView * view = wxGetApp().docManager()->GetCurrentView();
69 if(view != NULL){
70 ChildFrame* frame = dynamic_cast<ChildFrame*>(view->GetFrame());
72 return true;
73 }
74 return false;
75}
void setStatus(const wxString text, int field=0)
Definition ChildFrame.cc:76
static wxString toWxString(const std::string &source)

References ChildFrame::setStatus(), text_, and WxConversion::toWxString().

Here is the call graph for this function:

Member Data Documentation

◆ text_

std::string SetStatusTextCmd::text_
private

Status text to set.

Definition at line 51 of file SetStatusTextCmd.hh.

Referenced by Do().


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