Garmin Fleet Management Controller  2.19.0
CHosSettingDlg Class Reference

Form for individually capturing general HOS settings. More...

#include <CHosSettingDlg.h>

+ Inheritance diagram for CHosSettingDlg:

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...
 

Detailed Description

Form for individually capturing general HOS settings.

Capture parameters for and send the Auto Status Updates

Definition at line 21 of file CHosSettingDlg.h.

Member Enumeration Documentation

anonymous enum
Enumerator
IDD 

Definition at line 40 of file CHosSettingDlg.h.

Constructor & Destructor Documentation

CHosSettingDlg::~CHosSettingDlg ( )
virtual

Definition at line 61 of file CHosSettingDlg.cpp.

CHosSettingDlg::CHosSettingDlg ( CWnd *  pParent)
protected

Constructor.

Parameters
aParentThe parent window
aComReference to the FMI communication controller

Definition at line 51 of file CHosSettingDlg.cpp.

Member Function Documentation

UINT CHosSettingDlg::CaptureSetting ( CWnd *  pParent,
UINT  titleStringId,
UINT  valueLabelStringId,
UINT  valueUnitStringId,
long  valueLowerLimit,
long  valueUpperLimit,
BOOL &  enabled,
uint16 value 
)
static
void CHosSettingDlg::DoDataExchange ( CDataExchange *  pDX)
protectedvirtual
BOOL CHosSettingDlg::OnInitDialog ( )
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.

Returns
TRUE, since this function does not set focus to a control

Definition at line 89 of file CHosSettingDlg.cpp.

References IDC_HOS_SETTING_VALUE_LABEL, IDC_HOS_SETTING_VALUE_UNIT, mTitleStringId, mValueLabelStringId, mValueUnitStringId, and TRUE.

void CHosSettingDlg::OnReevaluate ( )
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().

Member Data Documentation

BOOL CHosSettingDlg::mDisabled
protected

Control value representing radio button for enable/disable.

Definition at line 54 of file CHosSettingDlg.h.

Referenced by CaptureSetting(), and DoDataExchange().

UINT CHosSettingDlg::mTitleStringId
protected

Resource ID for the window title.

Definition at line 60 of file CHosSettingDlg.h.

Referenced by CaptureSetting(), and OnInitDialog().

CString CHosSettingDlg::mValue
protected

Control value representing the HOS setting's value.

Definition at line 57 of file CHosSettingDlg.h.

Referenced by CaptureSetting(), DoDataExchange(), and OnReevaluate().

UINT CHosSettingDlg::mValueLabelStringId
protected

Resource ID for the value field label.

Definition at line 63 of file CHosSettingDlg.h.

Referenced by CaptureSetting(), and OnInitDialog().

long CHosSettingDlg::mValueLowerLimit
protected

Field value lower limit.

Definition at line 69 of file CHosSettingDlg.h.

Referenced by CaptureSetting(), and OnReevaluate().

UINT CHosSettingDlg::mValueUnitStringId
protected

Resource ID for the value field units label.

Definition at line 66 of file CHosSettingDlg.h.

Referenced by CaptureSetting(), and OnInitDialog().

long CHosSettingDlg::mValueUpperLimit
protected

Field value upper limit.

Definition at line 72 of file CHosSettingDlg.h.

Referenced by CaptureSetting(), and OnReevaluate().


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