Public Member Functions | |
| GuiClientFrame (const wxString &title, const wxPoint &pos, const wxSize &size) | |
| The GuiClientFrame Constructor. | |
| ~GuiClientFrame () | |
| GuiClientFrame destructor. | |
| void | OnQuit (wxCommandEvent &event) |
| void | OnAbout (wxCommandEvent &event) |
| void | OnMove (wxCommandEvent &event) |
| Handles movement button events. | |
| void | OnText (wxKeyEvent &event) |
| Text input handler. | |
| void | OnCheck (wxCommandEvent &event) |
| void | OnCommandEnter (wxCommandEvent &event) |
| Console command handler. | |
| void | OnSocket (wxSocketEvent &event) |
| Handles socket events. | |
| GuiClientFrame (const wxString &title, const wxPoint &pos, const wxSize &size) | |
| void | OnButton (wxCommandEvent &event) |
| Short Description. | |
Private Member Functions | |
| void | Connect () |
| Helper function to connect the network. | |
Private Attributes | |
| wxTextCtrl * | console |
| wxTextCtrl * | commandline |
| wxSocketClient * | sock |
| wxButton * | forward |
| wxButton * | left |
| wxButton * | back |
| wxButton * | right |
| wxButton * | stop |
| wxMsg | msg |
| wxMenu * | menuMovement |
| GuiGraphFrame * | graph |
| GuiMapFrame * | map |
This class implements the main window of the application.
Definition at line 91 of file guiclient.cpp.
|
||||||||||||||||
|
The GuiClientFrame Constructor. The frame constructor must set up all the controls.
Definition at line 245 of file guiclient.cpp. References back(), Connect(), forward(), ID_About, ID_Back, ID_Commandline, ID_Console, ID_Forward, ID_FOView, ID_Graph, ID_Left, ID_Map, ID_Numeric, ID_Power, ID_Quit, ID_Right, ID_Stop, left, right, sock, and stop(). |
|
|
GuiClientFrame destructor. The only thing we must delete is the socket. Everything else is automatically handeled by wxWidgets.
Definition at line 341 of file guiclient.cpp. References sock. |
|
||||||||||||||||
|
|
|
|
Helper function to connect the network. This function pops up a dialog box asking for the server address, then connects to it.
Definition at line 356 of file guiclient.cpp. References GUI_PORT, __PORT::PORT, and sock. Referenced by OnSocket(). |
|
|
|
|
|
Short Description. Long Description if necessary.
|
|
|
Definition at line 617 of file guiclient.cpp. References graph, ID_FOView, ID_Graph, ID_Map, ID_Numeric, ID_Power, and map. |
|
|
Console command handler. Parses, formats and sends data when commands are entered to the console.
Definition at line 745 of file guiclient.cpp. References commandline, endmsg, i, and startmsg(). |
|
|
Handles movement button events. This function sends the correct messages over the wxMsg when a movement button is pressed.
Definition at line 447 of file guiclient.cpp. References endmsg, ID_Back, ID_Forward, ID_Left, ID_Right, ID_Stop, and startmsg(). |
|
|
|
|
|
Handles socket events. This function handles displaying the connection status, recieving new data, and reconnecting on disconnects.
Definition at line 386 of file guiclient.cpp. References GuiMapFrame::AddPoint(), buflen, Connect(), console, count, map, GuiMapFrame::PaintMe(), GuiMapFrame::SetAngle(), sock, x, and y. |
|
|
Text input handler. TODO document
Definition at line 684 of file guiclient.cpp. References commandline, ID_Back, ID_Forward, ID_Left, ID_Right, ID_Stop, menuMovement, and stop. |
|
|
Definition at line 113 of file guiclient.cpp. |
|
|
Definition at line 111 of file guiclient.cpp. Referenced by OnCommandEnter(), and OnText(). |
|
|
Definition at line 110 of file guiclient.cpp. Referenced by OnSocket(). |
|
|
Definition at line 113 of file guiclient.cpp. |
|
|
Definition at line 116 of file guiclient.cpp. Referenced by OnCheck(). |
|
|
Definition at line 113 of file guiclient.cpp. |
|
|
Definition at line 117 of file guiclient.cpp. Referenced by OnCheck(), and OnSocket(). |
|
|
Definition at line 115 of file guiclient.cpp. Referenced by OnText(). |
|
|
Definition at line 114 of file guiclient.cpp. |
|
|
Definition at line 113 of file guiclient.cpp. |
|
|
Definition at line 112 of file guiclient.cpp. Referenced by Connect(), OnSocket(), and ~GuiClientFrame(). |
|
|
Definition at line 113 of file guiclient.cpp. Referenced by OnText(). |
1.4.4