Main Page | Modules | Class Hierarchy | Data Structures | File List | Data Fields | Globals | Related Pages

maiaconfigFrame Class Reference
[MAIA Virtual Keyboard configurator]

#include <maiaconfigFrame.h>

Inheritance diagram for maiaconfigFrame:

omObject

Public Member Functions

 maiaconfigFrame (wxWindow *parent=(wxWindow *) NULL)
 Constructor.


Private Member Functions

void NotifyTCPMessage (omTCPMessage)
bool Destroy ()
void OnChangeScanTime (wxCommandEvent &WXUNUSED(event))
void SaveButtonPressed (wxCommandEvent &WXUNUSED(event))
void ApplyChangesPressed (wxCommandEvent &WXUNUSED(event))
void GetActionKey (wxCommandEvent &WXUNUSED(event))
void GetUpKey (wxCommandEvent &WXUNUSED(event))
void GetDownKey (wxCommandEvent &WXUNUSED(event))
void GetLeftKey (wxCommandEvent &WXUNUSED(event))
void GetRightKey (wxCommandEvent &WXUNUSED(event))
void AskAllParameters ()
void SendAllParameters ()
void OnSize (wxSizeEvent)
 Process resize event (don't work).

void OnClose (wxSizeEvent)

Private Attributes

omConnectorconnector
 Connector for messages exchange (over tcp/ip).

wxString host
 Host to connect with.

int port
omGetKeyDialoggetKeyDialog
bool toSave
 Flag indicating if some option changed.

wxCheckBox * autoscan
wxCheckBox * joystick
wxCheckBox * direct
wxCheckBox * actionOnPress
wxCheckBox * enableKeyboard
wxCheckBox * grabKeys
wxCheckBox * enableJoystick
wxCheckBox * enableSerial
wxTextCtrl * actionKeyDisplay
wxTextCtrl * upKeyDisplay
wxTextCtrl * downKeyDisplay
wxTextCtrl * leftKeyDisplay
wxTextCtrl * rightKeyDisplay
wxTextCtrl * scanTimeDisplay
wxSlider * scanTime

Detailed Description

This class is the frame that the user uses to handle maia application. The value of controls handled by this frame are syncronized using GetParValue message when the frame is build. The frame handles events form user and send values using SetParValue message when apply or save button is pressed. Apply button also sand ApplyOptions message and save button send ApplyOptions and SaveOptions messages to maia application.


Constructor & Destructor Documentation

maiaconfigFrame::maiaconfigFrame wxWindow *  parent = (wxWindow *)NULL  ) 
 

Constructor.

Build maiaconfigFrame class. The constructor builds the class and load maiaconfigFrame frame resource. The resource must be initialized by the caller of the class.

Parameters:
parent parent window of the frame (may be null)

Todo:
fix language selection


Member Function Documentation

void maiaconfigFrame::ApplyChangesPressed wxCommandEvent &  WXUNUSED(event)  )  [private]
 

Apply button pressed. Send all prarameters and Apply message to maia agent.

void maiaconfigFrame::AskAllParameters  )  [private]
 

Ask all parameters values to Maia application.

bool maiaconfigFrame::Destroy  )  [private]
 

Destroy the class

void maiaconfigFrame::GetActionKey wxCommandEvent &  WXUNUSED(event)  )  [private]
 

GetActionKey button pressed. Load getKeyDialog dialog.

void maiaconfigFrame::GetDownKey wxCommandEvent &  WXUNUSED(event)  )  [private]
 

GetDownKey button pressed. Load getKeyDialog dialog.

void maiaconfigFrame::GetLeftKey wxCommandEvent &  WXUNUSED(event)  )  [private]
 

GetLeftKey button pressed. Load getKeyDialog dialog.

void maiaconfigFrame::GetRightKey wxCommandEvent &  WXUNUSED(event)  )  [private]
 

GetRightKey button pressed. Load getKeyDialog dialog.

void maiaconfigFrame::GetUpKey wxCommandEvent &  WXUNUSED(event)  )  [private]
 

GetUpKey button pressed. Load getKeyDialog dialog.

void maiaconfigFrame::NotifyTCPMessage omTCPMessage  mes  )  [private, virtual]
 

Receive message from Open Maia Server and parses it. This metohod is used to sincronize options from maia to maiaconfig.

Parameters:
mes message sended.

Reimplemented from omObject.

void maiaconfigFrame::OnChangeScanTime wxCommandEvent &  WXUNUSED(event)  )  [private]
 

Process scanTime scroll event

void maiaconfigFrame::OnClose wxSizeEvent  event  )  [private]
 

Process close event

Todo:
implement controls during closing of the application.

void maiaconfigFrame::OnSize wxSizeEvent   )  [private]
 

Process resize event (don't work).

void maiaconfigFrame::SaveButtonPressed wxCommandEvent &  WXUNUSED(event)  )  [private]
 

Save button pressed. Send parameters and Save message to maia agent.

void maiaconfigFrame::SendAllParameters  )  [private]
 

Send all parameters values to Maia application.


Field Documentation

wxTextCtrl* maiaconfigFrame::actionKeyDisplay [private]
 

wxCheckBox * maiaconfigFrame::actionOnPress [private]
 

wxCheckBox* maiaconfigFrame::autoscan [private]
 

omConnector* maiaconfigFrame::connector [private]
 

Connector for messages exchange (over tcp/ip).

wxCheckBox * maiaconfigFrame::direct [private]
 

wxTextCtrl * maiaconfigFrame::downKeyDisplay [private]
 

wxCheckBox * maiaconfigFrame::enableJoystick [private]
 

wxCheckBox * maiaconfigFrame::enableKeyboard [private]
 

wxCheckBox * maiaconfigFrame::enableSerial [private]
 

omGetKeyDialog* maiaconfigFrame::getKeyDialog [private]
 

wxCheckBox * maiaconfigFrame::grabKeys [private]
 

wxString maiaconfigFrame::host [private]
 

Host to connect with.

wxCheckBox * maiaconfigFrame::joystick [private]
 

wxTextCtrl * maiaconfigFrame::leftKeyDisplay [private]
 

int maiaconfigFrame::port [private]
 

wxTextCtrl * maiaconfigFrame::rightKeyDisplay [private]
 

wxSlider* maiaconfigFrame::scanTime [private]
 

wxTextCtrl * maiaconfigFrame::scanTimeDisplay [private]
 

bool maiaconfigFrame::toSave [private]
 

Flag indicating if some option changed.

wxTextCtrl * maiaconfigFrame::upKeyDisplay [private]
 


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