Umasoft
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
ExtentDlg.h
1 //
2 // Name: ExtentDlg.h
3 //
4 // Copyright (c) 2001-2011 Virtual Terrain Project
5 // Free for all uses, see license.txt for details.
6 //
7 
8 #ifndef __ExtentDlg_H__
9 #define __ExtentDlg_H__
10 
11 #include "VTBuilder_UI.h"
12 #include "vtdata/MathTypes.h"
13 
14 // WDR: class declarations
15 
16 //---------------------------------------------------------------------------
17 // ExtentDlg
18 //---------------------------------------------------------------------------
19 
20 class ExtentDlg: public ExtentDlgBase
21 {
22 public:
23  // constructors and destructors
24  ExtentDlg( wxWindow *parent, wxWindowID id, const wxString &title,
25  const wxPoint& pos = wxDefaultPosition,
26  const wxSize& size = wxDefaultSize,
27  long style = wxDEFAULT_DIALOG_STYLE );
28 
29  // WDR: method declarations for ExtentDlg
30  wxCheckBox* GetDMS() { return (wxCheckBox*) FindWindow( ID_DMS ); }
31  void SetArea(DRECT area, bool bMeters);
32  void FormatExtent(wxString &str, double value);
33  double GetValueFrom(const wxString &str);
34 
35  wxString m_strAll;
36  wxString m_strEast;
37  wxString m_strNorth;
38  wxString m_strSouth;
39  wxString m_strWest;
40 
41  DRECT m_area;
42  bool m_bDegrees;
43  bool m_bSetting;
44  bool m_bDMS; // Degrees Minutes Seconds
45  wxString m_fs; // Format string depends on coordinate scheme
46 
47 private:
48  // WDR: member variable declarations for ExtentDlg
49 
50 private:
51  // WDR: handler declarations for ExtentDlg
52  void OnExtentAll( wxCommandEvent &event );
53  void OnExtentS( wxCommandEvent &event );
54  void OnExtentE( wxCommandEvent &event );
55  void OnExtentW( wxCommandEvent &event );
56  void OnExtentN( wxCommandEvent &event );
57  void OnDMS( wxCommandEvent &event );
58 
59  void FormatStrings(int which);
60  void OnInitDialog(wxInitDialogEvent& event);
61 
62 private:
63  DECLARE_EVENT_TABLE()
64 };
65 
66 #endif // __ExtentDlg_H__
67