OpenASIP
2.0
|
#include <ProximCmdHistoryWindow.hh>
Public Member Functions | |
ProximCmdHistoryWindow (ProximMainFrame *parent, wxWindowID id, ProximLineReader &lineReader) | |
virtual | ~ProximCmdHistoryWindow () |
Public Member Functions inherited from ProximSimulatorWindow | |
virtual void | reset () |
Private Types | |
enum | { ID_LIST = 10000, ID_SAVE, ID_CLOSE, ID_LINE } |
Private Member Functions | |
void | onSimulatorCommand (SimulatorEvent &event) |
void | updateCommandList () |
wxSizer * | createContents (wxWindow *parent, bool set_sizer, bool call_fit) |
void | onClose (wxCommandEvent &event) |
void | onSave (wxCommandEvent &event) |
void | onCommandDClick (wxCommandEvent &event) |
Private Attributes | |
ProximLineReader & | lineReader_ |
Line reader storing the command history. More... | |
wxListBox * | cmdList_ |
ListBox widget displaying the command history. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from ProximSimulatorWindow | |
ProximSimulatorWindow (ProximMainFrame *mainFrame, wxWindowID id=-1, wxPoint pos=wxDefaultPosition, wxSize size=wxDefaultSize, long style=wxTAB_TRAVERSAL) | |
virtual | ~ProximSimulatorWindow () |
Window for browsing Proxim command history.
Definition at line 47 of file ProximCmdHistoryWindow.hh.
|
private |
ProximCmdHistoryWindow::ProximCmdHistoryWindow | ( | ProximMainFrame * | parent, |
wxWindowID | id, | ||
ProximLineReader & | lineReader | ||
) |
The Constructor.
parent | Proxim main frame. |
lineReader | Line reader handling the command history. |
Definition at line 58 of file ProximCmdHistoryWindow.cc.
|
virtual |
|
private |
Creates the window widgets.
Code generated by wxDesigner. Do not edit manually.
parent | Parent window of the window contents. |
call_fit | If true, resize the parent window to fit the created contents. |
set_sizer | If true, sets the created sizer as parent window contents. |
Definition at line 177 of file ProximCmdHistoryWindow.cc.
|
private |
Handles the Close button events.
Closes the window.
Definition at line 111 of file ProximCmdHistoryWindow.cc.
|
private |
Event handler for the command list double clicks.
Sends the double clicked command to the linereader input.
event | Event of the item dclick. |
Definition at line 123 of file ProximCmdHistoryWindow.cc.
References ProximLineReader::input(), lineReader_, and WxConversion::toString().
|
private |
Displays dialog for saving command history to a file.
Definition at line 132 of file ProximCmdHistoryWindow.cc.
References LineReader::inputHistoryEntry(), LineReader::inputsInHistory(), lineReader_, and WxConversion::toString().
|
private |
Calls history list update when a simulator event of a completed command is received.
Definition at line 99 of file ProximCmdHistoryWindow.cc.
References updateCommandList().
|
private |
Updates the command history list.
Definition at line 81 of file ProximCmdHistoryWindow.cc.
References cmdList_, ID_SAVE, LineReader::inputHistoryEntry(), LineReader::inputsInHistory(), lineReader_, and WxConversion::toWxString().
Referenced by onSimulatorCommand().
|
private |
ListBox widget displaying the command history.
Definition at line 75 of file ProximCmdHistoryWindow.hh.
Referenced by updateCommandList().
|
private |
Line reader storing the command history.
Definition at line 73 of file ProximCmdHistoryWindow.hh.
Referenced by onCommandDClick(), onSave(), and updateCommandList().