8 #ifndef __ImportStructOGRDlg_H__
9 #define __ImportStructOGRDlg_H__
15 #include "VTBuilder_UI.h"
16 #include "vtdata/StructArray.h"
28 const wxPoint& pos = wxDefaultPosition,
29 const wxSize& size = wxDefaultSize,
30 long style = wxDEFAULT_DIALOG_STYLE );
33 wxChoice* GetLayername() {
return (wxChoice*) FindWindow( ID_LAYERNAME ); }
34 wxCheckBox* GetUse25d() {
return (wxCheckBox*) FindWindow( ID_USE_25D ); }
35 wxCheckBox* GetBuildFoundations() {
return (wxCheckBox*) FindWindow( ID_BUILD_FOUNDATIONS ); }
36 wxChoice* GetChoiceHeightType() {
return (wxChoice*) FindWindow( ID_CHOICE_HEIGHT_TYPE ); }
37 wxChoice* GetChoiceHeightField() {
return (wxChoice*) FindWindow( ID_CHOICE_HEIGHT_FIELD ); }
38 wxChoice* GetChoiceFileField() {
return (wxChoice*) FindWindow( ID_CHOICE_FILE_FIELD ); }
39 wxRadioButton* GetTypeInstance() {
return (wxRadioButton*) FindWindow( ID_TYPE_INSTANCE ); }
40 wxRadioButton* GetTypeLinear() {
return (wxRadioButton*) FindWindow( ID_TYPE_LINEAR ); }
41 wxRadioButton* GetTypeBuilding() {
return (wxRadioButton*) FindWindow( ID_TYPE_BUILDING ); }
42 void SetDatasource(OGRDataSource *pDatasource) { m_pDatasource = pDatasource; }
43 void UpdateFieldNames();
45 bool GetRadio(
int id);
55 OGRDataSource *m_pDatasource;
59 void OnChoiceLayerName( wxCommandEvent &
event );
60 void OnChoiceFileField( wxCommandEvent &event );
61 void OnChoiceHeightField( wxCommandEvent &event );
62 void OnRadio( wxCommandEvent &event );
63 void OnInitDialog(wxInitDialogEvent& event);
68 #endif // __ImportStructOGRDlg_H__