-
Notifications
You must be signed in to change notification settings - Fork 0
/
OziGenDlg.h
174 lines (120 loc) · 3.39 KB
/
OziGenDlg.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
// OziGenDlg.h : header file
//
#pragma once
#include "..\MapLib\Track.h"
#include "MyTabCtrl.h"
#include "TabTrack.h"
#include "TabGrid.h"
#include "TabMap.h"
#include "CustomMap.h"
#include "afxwin.h"
void Global_AddToResultsWindow(const char *format, ...);
// COziGenDlg dialog
class COziGenDlg : public CDialog
{
// Construction
public:
COziGenDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
enum { IDD = IDD_OZIGEN_DIALOG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnEnKillfocusEditDatabaseFolder();
afx_msg void OnBnClickedButtonOutput();
afx_msg void OnEnKillfocusEditWest();
afx_msg void OnEnKillfocusEditEast();
afx_msg void OnEnKillfocusEditNorth();
afx_msg void OnEnKillfocusEditSouth();
afx_msg void OnDeltaposSpinNorth(NMHDR *pNMHDR, LRESULT *pResult);
afx_msg void OnDeltaposSpinSouth(NMHDR *pNMHDR, LRESULT *pResult);
afx_msg void OnDeltaposSpinEast(NMHDR *pNMHDR, LRESULT *pResult);
afx_msg void OnDeltaposSpinWest(NMHDR *pNMHDR, LRESULT *pResult);
afx_msg void OnEnKillfocusEditDrawOrder();
afx_msg void OnBnClickedCheckOffline();
afx_msg void OnBnClickedCheckReplace();
afx_msg void OnBnClickedCheckOptimize();
afx_msg void OnBnClickedRadioMap();
afx_msg void OnBnClickedRadioDatabase();
afx_msg void OnBnClickedRadioCoords();
afx_msg void OnBnClickedRadioMapScale();
afx_msg void OnCbnSelchangeComboTilesize();
afx_msg void OnCbnSelchangeComboTracksize();
afx_msg void OnBnClickedButtonGenerate();
afx_msg void OnBnClickedRadioCountry();
afx_msg void OnBnClickedRadioLayer();
public:
void ChangeCountry(int nCountry);
void ChangeProduct(int nProduct);
void ChangeLayer(int nLayer);
void PopulateCountryList();
void PopulateProductList();
void PopulateLayerList();
public:
void AddToResultsWindow(const char *format, ...);
void DisplayMapData();
void DisplayGridRef(CRect MyRect);
void DisplayGridSize();
void SetTileSize();
void UpdateDatum();
// void UpdateMapScaleRadioButtons();
// void UpdateMapScaleComboBox();
void SetComboBoxScale();
void UpdateDatabaseButtons();
public:
int m_nComboBoxCountry;
int m_nRadioCountry;
int m_nComboBoxProduct;
int m_nRadioProduct;
int m_nComboBoxLayer;
int m_nRadioLayer;
public:
CMyTabCtrl m_tabMyTabCtrl;
CString m_strResults;
CString m_strOutputDir;
CString m_strWest;
CString m_strEast;
CString m_strNorth;
CString m_strSouth;
CString m_strMapName;
CString m_strGridSize;
CRect m_rectBoundaries;
CTrack m_MyTrack;
CEdit m_ctl_edit_results;
CRect m_mapBoundaries;
// int m_nUTMZone;
// CCustomMap MyMap;
int m_nPreviousCoordsSystem;
long m_nDrawOrder;
int m_nTileSize;
int m_nTrackSize;
long m_tileWidth;
long m_tileHeight;
BOOL m_bOffline;
BOOL m_bReplace;
BOOL m_bOptimize;
BOOL m_bCollar;
CString m_strMapFolder;
CTabTrack* pTabTrack;
CTabGrid* pTabGrid;
CTabMap* pTabMap;
int m_nDatabase;
int m_nMapType;
int m_nGpsModel;
int m_nCoordSystem;
afx_msg void OnCbnSelchangeComboCountry();
afx_msg void OnCbnSelchangeComboProduct();
afx_msg void OnCbnSelchangeComboLayer();
CComboBox m_cboCountry;
CComboBox m_cboProduct;
CComboBox m_cboLayer;
};