Garmin Fleet Management Controller
2.19.0
|
Modal dialog allowing the user to set FMI Safe Mode and the threshold speed. More...
#include <CSafeModeDlg.h>
Public Member Functions | |
CSafeModeDlg (CWnd *aParent, FmiApplicationLayer &aCom) | |
Constructor. More... | |
virtual | ~CSafeModeDlg () |
Destructor. More... | |
Protected Member Functions | |
virtual void | DoDataExchange (CDataExchange *aDataExchange) |
Perform dialog data exchange and validation. More... | |
afx_msg void | OnBnClickedOk () |
Click handler for the OK button. More... | |
afx_msg void | OnEnChangeSafeModeSpeed () |
Edit Change handler for Safe Mode Speed text box. More... | |
BOOL | OnInitDialog () |
Initialize the dialog. More... | |
Protected Attributes | |
FmiApplicationLayer & | mCom |
Reference to the FMI communication controller that this dialog uses. More... | |
CString | speed |
Speed entered by the user. More... | |
Modal dialog allowing the user to set FMI Safe Mode and the threshold speed.
Definition at line 20 of file CSafeModeDlg.h.
CSafeModeDlg::CSafeModeDlg | ( | CWnd * | aParent, |
FmiApplicationLayer & | aCom | ||
) |
Constructor.
aParent | The parent of this dialog |
aCom | Reference to the FMI communication controller |
Definition at line 29 of file CSafeModeDlg.cpp.
|
virtual |
|
protectedvirtual |
Perform dialog data exchange and validation.
aDataExchange | The DDX context |
Definition at line 51 of file CSafeModeDlg.cpp.
References IDC_SAFE_MODE_SPEED, and speed.
Referenced by ~CSafeModeDlg().
|
protected |
Click handler for the OK button.
Sends a speed to the client based on the input entered by the user.
Definition at line 92 of file CSafeModeDlg.cpp.
References FmiApplicationLayer::mClientCodepage, mCom, FmiApplicationLayer::sendFmiSafeModeSpeed(), speed, and TRUE.
|
protected |
Edit Change handler for Safe Mode Speed text box.
Enables OK button if the speed is not empty; disables OK button otherwise.
Definition at line 78 of file CSafeModeDlg.cpp.
|
protected |
Initialize the dialog.
This function is called when the window is created. It sets up the parent, so it can get info from and send a message to Com.
Definition at line 66 of file CSafeModeDlg.cpp.
References TRUE.
|
protected |
Reference to the FMI communication controller that this dialog uses.
Definition at line 43 of file CSafeModeDlg.h.
Referenced by OnBnClickedOk().
|
protected |
Speed entered by the user.
Definition at line 46 of file CSafeModeDlg.h.
Referenced by DoDataExchange(), OnBnClickedOk(), and OnEnChangeSafeModeSpeed().