forked from gopa810/gcal-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DlgGetLocation.h
84 lines (73 loc) · 1.95 KB
/
DlgGetLocation.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#pragma once
#include "TString.h"
#include "locationref.h"
#include "StaticHeader1.h"
/////////////////////////////////////////////////////////////////////////////
// DlgGetLocation dialog
class DlgGetLocation : public CDialog
{
// Construction
public:
int m_nLastDst;
int SetCurSelDST(int nID);
bool b_upd;
double m_longSign;
double m_latiSign;
CLocationRef m_location;
int UpdateDstByTimezone(double tzone);
TString m_strTitle;
BOOL m_bFinal;
void UpdateDSTInfo();
void GetEarthData(EARTHDATA &earth);
void LocationToDialog();
BOOL m_bMyLocation;
int m_nNextStep;
BOOL wrongCoordinates;
const char * errorText;
DlgGetLocation(LPCTSTR szTitle, CWnd* pParent = NULL); // standard constructor
int LocGetDeg(double d);
int LocGetArc(double d);
// Dialog Data
//{{AFX_DATA(DlgGetLocation)
enum { IDD = IDD_GET_LOCATION };
CButton cLongSw;
CButton cLatiSw;
CEdit cLongDeg;
CEdit cLongArc;
CEdit cLatiDeg;
CEdit cLatiArc;
CComboBox cDst;
CEdit cLocName;
CEdit cDstInfo;
CStaticHeader1 m_hdr;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(DlgGetLocation)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(DlgGetLocation)
afx_msg void OnSelectLocation();
afx_msg void OnButtonBack();
afx_msg void OnButtonNext();
virtual BOOL OnInitDialog();
afx_msg void OnSelendokComboDst();
afx_msg void OnDropdownComboDst();
afx_msg void OnBtnLong();
afx_msg void OnBtnLati();
afx_msg void OnChangeLatiArc();
afx_msg void OnChangeLatiDeg();
afx_msg void OnChangeLongArc();
afx_msg void OnChangeLongDeg();
afx_msg void OnChangeLocation();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
public:
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.