OpenASIP  2.0
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ConsoleWindow::ConsoleWindowInputCtrl Class Reference
Inheritance diagram for ConsoleWindow::ConsoleWindowInputCtrl:
Inheritance graph
Collaboration diagram for ConsoleWindow::ConsoleWindowInputCtrl:
Collaboration graph

Public Member Functions

 ConsoleWindowInputCtrl (ConsoleWindow *console)
 
virtual ~ConsoleWindowInputCtrl ()
 

Private Member Functions

void onKeyDown (wxKeyEvent &event)
 

Private Attributes

ConsoleWindowconsole_
 Parent console of the widget. More...
 

Detailed Description

Text input widget for the console.

This derived wxTextCtrl passes all key events through the parent console's key event handler. Event passing makes it possible to hook special keys such as browsing command history with up/down arrow keys.

Definition at line 90 of file ConsoleWindow.hh.

Constructor & Destructor Documentation

◆ ConsoleWindowInputCtrl()

ConsoleWindow::ConsoleWindowInputCtrl::ConsoleWindowInputCtrl ( ConsoleWindow console)

The Constructor.

Parameters
consolePointer to the parent console of the input widget.

Definition at line 66 of file ConsoleWindow.cc.

67  :
68  wxTextCtrl(console, ID_INPUT, _T(""), wxDefaultPosition,
69  wxSize(500,30), wxTE_PROCESS_ENTER),
70  console_(console) {
71 
72 }

◆ ~ConsoleWindowInputCtrl()

virtual ConsoleWindow::ConsoleWindowInputCtrl::~ConsoleWindowInputCtrl ( )
inlinevirtual

Definition at line 93 of file ConsoleWindow.hh.

93 {};

Member Function Documentation

◆ onKeyDown()

void ConsoleWindow::ConsoleWindowInputCtrl::onKeyDown ( wxKeyEvent &  event)
private

An event handler for the input control key events.

Events are passed to the parent console's event handler.

Parameters
eventKey press event to handle.

Definition at line 83 of file ConsoleWindow.cc.

83  {
84  console_->onInputKey(event);
85 }

References console_, and ConsoleWindow::onInputKey().

Here is the call graph for this function:

Member Data Documentation

◆ console_

ConsoleWindow* ConsoleWindow::ConsoleWindowInputCtrl::console_
private

Parent console of the widget.

Definition at line 97 of file ConsoleWindow.hh.

Referenced by onKeyDown().


The documentation for this class was generated from the following files:
ConsoleWindow::ConsoleWindowInputCtrl::console_
ConsoleWindow * console_
Parent console of the widget.
Definition: ConsoleWindow.hh:97
ConsoleWindow::ID_INPUT
@ ID_INPUT
Definition: ConsoleWindow.hh:79
ConsoleWindow::onInputKey
void onInputKey(wxKeyEvent &event)
Definition: ConsoleWindow.cc:226