Garmin Fleet Management Controller
2.19.0
|
Dialog allowing the user to change certain UI text elements on the client. More...
#include <CUITextChangeDlg.h>
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 | |
FmiApplicationLayer & | mCom |
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... | |
Dialog allowing the user to change certain UI text elements on the client.
Definition at line 20 of file CUITextChangeDlg.h.
CUITextChangeDlg::CUITextChangeDlg | ( | CWnd * | aParent, |
FmiApplicationLayer & | aCom | ||
) |
Constructor.
aParent | The parent of this dialog |
aCom | Reference to the FMI communication controller |
Definition at line 28 of file CUITextChangeDlg.cpp.
|
virtual |
|
protectedvirtual |
Perform dialog data exchange and validation.
aDataExchange | The 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().
|
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.
|
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.
|
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 67 of file CUITextChangeDlg.cpp.
References TRUE.
|
protected |
Reference to the FMI communication controller that this dialog uses.
Definition at line 51 of file CUITextChangeDlg.h.
Referenced by OnBnClickedOk().
|
protected |
Index of the selected user interface element.
Definition at line 45 of file CUITextChangeDlg.h.
Referenced by DoDataExchange(), OnBnClickedOk(), and OnChange().
|
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().