Garmin Fleet Management Controller  2.19.0
CUITextChangeDlg Class Reference

Dialog allowing the user to change certain UI text elements on the client. More...

#include <CUITextChangeDlg.h>

+ Inheritance diagram for CUITextChangeDlg:

Public Member Functions

 CUITextChangeDlg (CWnd *aParent, FmiApplicationLayer &aCom)
 Constructor. More...
 
virtual ~CUITextChangeDlg ()
 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 OnChange ()
 Change handler for all controls on the dialog. More...
 
BOOL OnInitDialog ()
 Initialize the dialog. More...
 

Protected Attributes

FmiApplicationLayermCom
 Reference to the FMI communication controller that this dialog uses. More...
 
int mListIndex
 Index of the selected user interface element. More...
 
CString mNewText
 The new text entered by the user for the selected element. More...
 

Detailed Description

Dialog allowing the user to change certain UI text elements on the client.

Since
Protocol A604

Definition at line 20 of file CUITextChangeDlg.h.

Constructor & Destructor Documentation

CUITextChangeDlg::CUITextChangeDlg ( CWnd *  aParent,
FmiApplicationLayer aCom 
)

Constructor.

Parameters
aParentThe parent of this dialog
aComReference to the FMI communication controller

Definition at line 28 of file CUITextChangeDlg.cpp.

CUITextChangeDlg::~CUITextChangeDlg ( )
virtual

Destructor.

Definition at line 42 of file CUITextChangeDlg.cpp.

References DoDataExchange().

Member Function Documentation

void CUITextChangeDlg::DoDataExchange ( CDataExchange *  aDataExchange)
protectedvirtual

Perform dialog data exchange and validation.

Parameters
aDataExchangeThe DDX context

Definition at line 51 of file CUITextChangeDlg.cpp.

References IDC_UITEXT_CBO_ITEM, IDC_UITEXT_EDIT_NEWTEXT, mListIndex, and mNewText.

Referenced by ~CUITextChangeDlg().

void CUITextChangeDlg::OnBnClickedOk ( )
protected

Click handler for the OK button.

Initiate the User Interface Text Change protocol using the information entered on this dialog, then close this dialog box.

Definition at line 99 of file CUITextChangeDlg.cpp.

References FmiApplicationLayer::mClientCodepage, mCom, mListIndex, mNewText, FmiApplicationLayer::sendUserInterfaceText(), and TRUE.

void CUITextChangeDlg::OnChange ( )
protected

Change handler for all controls on the dialog.

Enable the OK button if an item is selected and the new text edit box is not blank

Definition at line 78 of file CUITextChangeDlg.cpp.

References FALSE, mListIndex, mNewText, and TRUE.

BOOL CUITextChangeDlg::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 67 of file CUITextChangeDlg.cpp.

References TRUE.

Member Data Documentation

FmiApplicationLayer& CUITextChangeDlg::mCom
protected

Reference to the FMI communication controller that this dialog uses.

Definition at line 51 of file CUITextChangeDlg.h.

Referenced by OnBnClickedOk().

int CUITextChangeDlg::mListIndex
protected

Index of the selected user interface element.

Definition at line 45 of file CUITextChangeDlg.h.

Referenced by DoDataExchange(), OnBnClickedOk(), and OnChange().

CString CUITextChangeDlg::mNewText
protected

The new text entered by the user for the selected element.

Definition at line 48 of file CUITextChangeDlg.h.

Referenced by DoDataExchange(), OnBnClickedOk(), and OnChange().


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