Umasoft
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
ImportPointDlg.h
1 //
2 // Name: ImportPointDlg.h
3 //
4 // Copyright (c) 2004-2011 Virtual Terrain Project
5 // Free for all uses, see license.txt for details.
6 //
7 
8 #ifndef __ImportPointDlg_H__
9 #define __ImportPointDlg_H__
10 
11 #ifndef WX_PRECOMP
12  #include "wx/wx.h"
13 #endif
14 
15 #include "VTBuilder_UI.h"
16 #include "vtdata/Projections.h"
17 
18 // WDR: class declarations
19 
20 //----------------------------------------------------------------------------
21 // ImportPointDlg
22 //----------------------------------------------------------------------------
23 
25 {
26 public:
27  // constructors and destructors
28  ImportPointDlg( wxWindow *parent, wxWindowID id, const wxString &title,
29  const wxPoint& pos = wxDefaultPosition,
30  const wxSize& size = wxDefaultSize,
31  long style = wxDEFAULT_DIALOG_STYLE );
32 
33  int m_iEasting;
34  int m_iNorthing;
35  bool m_bElevation;
36  int m_iElevation;
37  bool m_bImportField;
38  int m_iImportField;
39  wxString m_strCRS;
40  vtProjection m_proj;
41  bool m_bFormat1;
42  bool m_bFormat2;
43  bool m_bFormat3;
44  bool m_bLongitudeWest;
45 
46  void SetCRS(const vtProjection &proj);
47  void RefreshProjString();
48 
49  // WDR: method declarations for ImportPointDlg
50  wxCheckBox* GetLongitudeWest() { return (wxCheckBox*) FindWindow( ID_LONGITUDE_WEST ); }
51  wxButton* GetSetCrs() { return (wxButton*) FindWindow( ID_SET_CRS ); }
52  wxRadioButton* GetFormatDms() { return (wxRadioButton*) FindWindow( ID_FORMAT_DMS ); }
53  wxRadioButton* GetFormatDecimal() { return (wxRadioButton*) FindWindow( ID_FORMAT_DECIMAL ); }
54  wxTextCtrl* GetCrs() { return (wxTextCtrl*) FindWindow( ID_CRS ); }
55  wxChoice* GetImportField() { return (wxChoice*) FindWindow( ID_IMPORT_FIELD ); }
56  wxChoice* GetElevation() { return (wxChoice*) FindWindow( ID_ELEVATION ); }
57  wxChoice* GetNorthing() { return (wxChoice*) FindWindow( ID_NORTHING ); }
58  wxChoice* GetEasting() { return (wxChoice*) FindWindow( ID_EASTING ); }
59 
60 private:
61  // WDR: member variable declarations for ImportPointDlg
62 
63 private:
64  // WDR: handler declarations for ImportPointDlg
65  void OnSetCRS( wxCommandEvent &event );
66  void OnCheck( wxCommandEvent &event );
67 
68  void UpdateEnabling();
69 
70 private:
71  DECLARE_EVENT_TABLE()
72 };
73 
74 #endif