forked from tcobbs/ldview
-
Notifications
You must be signed in to change notification settings - Fork 0
/
LatLonDialog.h
45 lines (36 loc) · 1.17 KB
/
LatLonDialog.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
#ifndef __LATLONDIALOG_H__
#define __LATLONDIALOG_H__
class ModelWindow;
class LDrawModelViewer;
#include <CUI/CUIDialog.h>
class LatLonDialog: public CUIDialog
{
public:
LatLonDialog(HINSTANCE hInstance);
INT_PTR doModal(ModelWindow *modelWindow);
float getLat(void) const { return m_lat; }
float getLon(void) const { return m_lon; }
float getDistance(void) const;
void setDefaultDistance(float value) { m_defaultDistance = value; }
void setCurrentDistance(float value) { m_currentDistance = value; }
protected:
virtual ~LatLonDialog(void);
virtual void dealloc(void);
virtual BOOL doInitDialog(HWND /*hKbControl*/);
virtual LRESULT doTextFieldChange(int controlId, HWND control);
virtual LRESULT doCommand(int notifyCode, int commandId, HWND control);
virtual void doOK(void);
LRESULT doDistanceCheck(void);
LRESULT doDistanceReset(float value);
BOOL verifyField(UINT fieldID, float &value, float min, float max,
bool checkMin = true, bool checkMax = true);
void updateEnabled(void);
void updateDistanceField(void);
float m_lat;
float m_lon;
bool m_haveDistance;
float m_distance;
float m_defaultDistance;
float m_currentDistance;
};
#endif // __LATLONDIALOG_H__