Garmin Fleet Management Controller  2.19.0
CWaypointDlg.h
Go to the documentation of this file.
1 /*********************************************************************
2 *
3 * HEADER NAME:
4 * CWaypointDlg.h
5 *
6 * Copyright 2009 by Garmin Ltd. or its subsidiaries.
7 *---------------------------------------------------------------------
8 * $NoKeywords$
9 *********************************************************************/
10 
11 #ifndef CWaypointDlg_H
12 #define CWaypointDlg_H
13 
14 #include "stdafx.h"
15 #include "FmiApplicationLayer.h"
16 #include "CWndEventListener.h"
17 
18 //----------------------------------------------------------------------
23 //----------------------------------------------------------------------
24 class CWaypointDlg : public CDialog, public CWndEventListener
25 {
26  DECLARE_DYNAMIC( CWaypointDlg )
27  DECLARE_MESSAGE_MAP()
28 
29 public:
31  (
32  CWnd * aParent,
33  FmiApplicationLayer & aCom
34  ); // standard constructor
35  virtual ~CWaypointDlg();
36 
37  afx_msg void OnBnClickedOk();
38  afx_msg void OnBnClickedWptBtnSend();
39  afx_msg void OnEnChangeWptEdit();
40  afx_msg void OnBnClickedWptBtnDelete();
41  afx_msg void OnBnClickedWptBtnDeleteCat();
42  afx_msg void OnBnClickedWptBtnCreateCat();
43 
44 private:
45  virtual void DoDataExchange
46  (
47  CDataExchange * aDataExchange
48  ); // DDX/DDV support
49  void PostNcDestroy();
50  BOOL OnInitDialog();
51  void updateListBox();
52  void updateCatBox();
53  afx_msg LPARAM OnWaypointListChanged( WPARAM, LPARAM );
54  afx_msg LPARAM OnCategoryListChanged( WPARAM, LPARAM );
55  uint16 getCatIds();
56 
59 
60 private:
62  UINT mWptId;
63 
65  double mLat;
66 
68  double mLon;
69 
71  UINT mSymbol;
72 
74  CString mCat;
75 
77  CString mName;
78 
80  CString mComment;
81 
83  CListBox mListBox;
84 
86  CListBox mCatBox;
87 
89  unsigned int mCatId;
90 };
91 
92 #endif
CString mComment
Waypoint comment entered by the user.
Definition: CWaypointDlg.h:80
CListBox mCatBox
List box containing waypoint categories sent to the client.
Definition: CWaypointDlg.h:86
UINT mWptId
Waypoint ID entered by the user.
Definition: CWaypointDlg.h:62
CString mCat
Waypoint category entered by the user.
Definition: CWaypointDlg.h:74
uint16 getCatIds()
Get category bit field value for the selected category IDs.
afx_msg void OnEnChangeWptEdit()
Edit handler for the waypoint edit boxes on this dialog.
FmiApplicationLayer & mCom
Reference to the FMI communication controller.
Definition: CWaypointDlg.h:58
CString mName
Waypoint name entered by the user.
Definition: CWaypointDlg.h:77
afx_msg void OnBnClickedOk()
Handler for the OK button.
afx_msg LPARAM OnCategoryListChanged(WPARAM, LPARAM)
Handler for EVENT_FMI_CATEGORY_LIST_CHANGED event.
Modeless dialog allowing the user to manage waypoints.
Definition: CWaypointDlg.h:24
unsigned int mCatId
Waypoint category ID entered by the user.
Definition: CWaypointDlg.h:89
virtual ~CWaypointDlg()
Destructor.
afx_msg void OnBnClickedWptBtnDeleteCat()
Handler for the Delete Category button.
afx_msg LPARAM OnWaypointListChanged(WPARAM, LPARAM)
Handler for EVENT_FMI_WAYPOINT_LIST_CHANGED event.
UINT mSymbol
Waypoint symbol entered by the user.
Definition: CWaypointDlg.h:71
Serial communication controller for Garmin and FMI packets.
EventListener that dispatches a Windows message.
unsigned short int uint16
16-bit unsigned integer
Definition: garmin_types.h:64
void PostNcDestroy()
Perform final cleanup.
afx_msg void OnBnClickedWptBtnCreateCat()
Handler for the Create Category button.
afx_msg void OnBnClickedWptBtnSend()
Handler for the Send Waypoint button.
virtual void DoDataExchange(CDataExchange *aDataExchange)
Perform dialog data exchange and validation.
CListBox mListBox
List box containing waypoints sent to the client.
Definition: CWaypointDlg.h:83
BOOL OnInitDialog()
Initialize the dialog.
void updateListBox()
Update the waypoint list box from the map owned by Com.
CWaypointDlg(CWnd *aParent, FmiApplicationLayer &aCom)
Constructor.
void updateCatBox()
Update the waypoint list box from the map owned by Com.
afx_msg void OnBnClickedWptBtnDelete()
Handler for the Delete Waypoint button.
double mLat
Waypoint latitude in decimal degrees.
Definition: CWaypointDlg.h:65
double mLon
Waypoint longitude in decimal degrees.
Definition: CWaypointDlg.h:68