Garmin Fleet Management Controller
2.19.0
|
Form for individually capturing general HOS settings. More...
#include <CHosSettingDlg.h>
Public Types | |
enum | { IDD = IDD_HOS_SETTING } |
Public Member Functions | |
virtual | ~CHosSettingDlg () |
Static Public Member Functions | |
static UINT | CaptureSetting (CWnd *pParent, UINT titleStringId, UINT valueLabelStringId, UINT valueUnitStringId, long valueLowerLimit, long valueUpperLimit, BOOL &enabled, uint16 &value) |
Protected Member Functions | |
CHosSettingDlg (CWnd *pParent) | |
Constructor. More... | |
virtual void | DoDataExchange (CDataExchange *pDX) |
BOOL | OnInitDialog () |
Initialize the dialog. More... | |
afx_msg void | OnReevaluate () |
Change handler for editable controls. More... | |
Protected Attributes | |
BOOL | mDisabled |
Control value representing radio button for enable/disable. More... | |
UINT | mTitleStringId |
Resource ID for the window title. More... | |
CString | mValue |
Control value representing the HOS setting's value. More... | |
UINT | mValueLabelStringId |
Resource ID for the value field label. More... | |
long | mValueLowerLimit |
Field value lower limit. More... | |
UINT | mValueUnitStringId |
Resource ID for the value field units label. More... | |
long | mValueUpperLimit |
Field value upper limit. More... | |
Form for individually capturing general HOS settings.
Capture parameters for and send the Auto Status Updates
Definition at line 21 of file CHosSettingDlg.h.
anonymous enum |
Enumerator | |
---|---|
IDD |
Definition at line 40 of file CHosSettingDlg.h.
|
virtual |
Definition at line 61 of file CHosSettingDlg.cpp.
|
protected |
Constructor.
aParent | The parent window |
aCom | Reference to the FMI communication controller |
Definition at line 51 of file CHosSettingDlg.cpp.
|
static |
Definition at line 20 of file CHosSettingDlg.cpp.
References mDisabled, mTitleStringId, mValue, mValueLabelStringId, mValueLowerLimit, mValueUnitStringId, and mValueUpperLimit.
Referenced by CFmiPcAppDlg::OnBnClickedAutoStatusUpdates(), and CFmiPcAppDlg::OnToolsConfigureHosPeriodicUpdates().
|
protectedvirtual |
Definition at line 65 of file CHosSettingDlg.cpp.
References IDC_ENABLE_NO, IDC_ENABLE_YES, IDC_HOS_SETTING_VALUE, mDisabled, mValue, and OnReevaluate().
|
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 FmiApplicationLayer.
Definition at line 89 of file CHosSettingDlg.cpp.
References IDC_HOS_SETTING_VALUE_LABEL, IDC_HOS_SETTING_VALUE_UNIT, mTitleStringId, mValueLabelStringId, mValueUnitStringId, and TRUE.
|
protected |
Change handler for editable controls.
Make the OK button clickable if the data is valid for sending
Definition at line 113 of file CHosSettingDlg.cpp.
References FALSE, IDC_ENABLE_NO, IDC_ENABLE_YES, IDC_HOS_SETTING_VALUE, mValue, mValueLowerLimit, and mValueUpperLimit.
Referenced by DoDataExchange().
|
protected |
Control value representing radio button for enable/disable.
Definition at line 54 of file CHosSettingDlg.h.
Referenced by CaptureSetting(), and DoDataExchange().
|
protected |
Resource ID for the window title.
Definition at line 60 of file CHosSettingDlg.h.
Referenced by CaptureSetting(), and OnInitDialog().
|
protected |
Control value representing the HOS setting's value.
Definition at line 57 of file CHosSettingDlg.h.
Referenced by CaptureSetting(), DoDataExchange(), and OnReevaluate().
|
protected |
Resource ID for the value field label.
Definition at line 63 of file CHosSettingDlg.h.
Referenced by CaptureSetting(), and OnInitDialog().
|
protected |
Field value lower limit.
Definition at line 69 of file CHosSettingDlg.h.
Referenced by CaptureSetting(), and OnReevaluate().
|
protected |
Resource ID for the value field units label.
Definition at line 66 of file CHosSettingDlg.h.
Referenced by CaptureSetting(), and OnInitDialog().
|
protected |
Field value upper limit.
Definition at line 72 of file CHosSettingDlg.h.
Referenced by CaptureSetting(), and OnReevaluate().