Umasoft
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
ImportVegDlg.h
1 //
2 // Name: ImportVegDlg.h
3 //
4 // Copyright (c) 2002-2011 Virtual Terrain Project
5 // Free for all uses, see license.txt for details.
6 //
7 
8 #ifndef __ImportVegDlg_H__
9 #define __ImportVegDlg_H__
10 
11 #include "VTBuilder_UI.h"
12 #include "VegLayer.h"
13 
14 // WDR: class declarations
15 
16 //----------------------------------------------------------------------------
17 // ImportVegDlg
18 //----------------------------------------------------------------------------
19 
21 {
22 public:
23  // constructors and destructors
24  ImportVegDlg( 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  // Methods
30  void SetShapefileName(const wxString &filename);
31 
32  // Data
33  int m_fieldindex;
34  VegImportFieldType m_datatype;
35  wxComboBox *m_pcbField;
36  wxRadioButton *m_pDensity, *m_pBiotype1, *m_pBiotype2;
37  wxString m_filename;
38 
39  // WDR: method declarations for ImportVegDlg
40  wxRadioButton* GetDensity() { return (wxRadioButton*) FindWindow( ID_DENSITY ); }
41  wxRadioButton* GetBiotype2() { return (wxRadioButton*) FindWindow( ID_BIOTYPE2 ); }
42  wxRadioButton* GetBiotype1() { return (wxRadioButton*) FindWindow( ID_BIOTYPE1 ); }
43  wxComboBox* GetField() { return (wxComboBox*) FindWindow( ID_FIELD ); }
44 
45 private:
46  // WDR: member variable declarations for ImportVegDlg
47  void OnInitDialog(wxInitDialogEvent& event);
48 
49 private:
50  // WDR: handler declarations for ImportVegDlg
51  void OnOK( wxCommandEvent &event );
52 
53 private:
54  DECLARE_EVENT_TABLE()
55 };
56 
57 #endif // __ImportVegDlg_H__
58