8 #ifndef __VegFieldsDlg_H__
9 #define __VegFieldsDlg_H__
11 #include "VTBuilder_UI.h"
12 #include "vtdata/shapelib/shapefil.h"
14 #include "VegPointOptions.h"
28 VegFieldsDlg( wxWindow *parent, wxWindowID
id,
const wxString &title,
29 const wxPoint& pos = wxDefaultPosition,
30 const wxSize& size = wxDefaultSize,
31 long style = wxDEFAULT_DIALOG_STYLE );
33 void SetShapefileName(
const wxString &filename);
34 void SetVegLayer(
vtVegLayer *pLayer) { m_pLayer = pLayer; }
37 wxRadioButton* GetHeightRandom() {
return (wxRadioButton*) FindWindow( ID_HEIGHT_RANDOM ); }
38 wxChoice* GetSpeciesChoice() {
return (wxChoice*) FindWindow( ID_SPECIES_CHOICE ); }
39 wxRadioButton* GetUseSpecies() {
return (wxRadioButton*) FindWindow( ID_USE_SPECIES ); }
40 wxRadioButton* GetBiotypeString() {
return (wxRadioButton*) FindWindow( ID_BIOTYPE_STRING ); }
41 wxRadioButton* GetBiotypeInt() {
return (wxRadioButton*) FindWindow( ID_BIOTYPE_INT ); }
42 wxRadioButton* GetCommonName() {
return (wxRadioButton*) FindWindow( ID_COMMON_NAME ); }
43 wxRadioButton* GetSpeciesName() {
return (wxRadioButton*) FindWindow( ID_SPECIES_NAME ); }
44 wxRadioButton* GetSpeciesId() {
return (wxRadioButton*) FindWindow( ID_SPECIES_ID ); }
45 wxChoice* GetHeightField() {
return (wxChoice*) FindWindow( ID_HEIGHT_FIELD ); }
46 wxChoice* GetSpeciesField() {
return (wxChoice*) FindWindow( ID_SPECIES_FIELD ); }
56 int m_nElem, m_nShapeType;
61 bool m_bSpeciesUseField;
62 bool m_bHeightRandomize;
64 bool m_bHeightUseField;
67 void RefreshEnabled();
71 void OnRadio( wxCommandEvent &
event );
72 void OnOK( wxCommandEvent &event );
73 void OnChoice2( wxCommandEvent &event );
74 void OnChoice1( wxCommandEvent &event );
75 void OnInitDialog(wxInitDialogEvent& event);
81 #endif // __VegFieldsDlg_H__