8 #ifndef __InstanceDlg_H__
9 #define __InstanceDlg_H__
12 #include "AutoDialog.h"
14 #include "vtdata/Content.h"
26 InstanceDlg( wxWindow *parent, wxWindowID
id,
const wxString &title,
27 const wxPoint& pos = wxDefaultPosition,
28 const wxSize& size = wxDefaultSize,
29 long style = wxDEFAULT_DIALOG_STYLE );
34 void SetProjection(
const vtProjection &proj) { m_proj = proj; }
35 void SetLocation(
const DPoint2 &pos);
40 wxTextCtrl* GetLocation() {
return (wxTextCtrl*) FindWindow( ID_LOCATION ); }
41 wxButton* GetBrowseModelFile() {
return (wxButton*) FindWindow( ID_BROWSE_MODEL_FILE ); }
42 wxTextCtrl* GetModelFile() {
return (wxTextCtrl*) FindWindow( ID_MODEL_FILE ); }
43 wxChoice* GetChoiceItem() {
return (wxChoice*) FindWindow( ID_CHOICE_ITEM ); }
44 wxChoice* GetChoiceType() {
return (wxChoice*) FindWindow( ID_CHOICE_TYPE ); }
45 wxChoice* GetChoiceFile() {
return (wxChoice*) FindWindow( ID_CHOICE_FILE ); }
46 wxRadioButton* GetRadioModel() {
return (wxRadioButton*) FindWindow( ID_RADIO_MODEL ); }
47 wxRadioButton* GetRadioContent() {
return (wxRadioButton*) FindWindow( ID_RADIO_CONTENT ); }
60 void OnLocationText( wxCommandEvent &
event );
61 void OnBrowseModelFile( wxCommandEvent &event );
62 void OnChoice( wxCommandEvent &event );
63 void OnChoiceItem( wxCommandEvent &event );
64 void OnRadio( wxCommandEvent &event );
65 void OnInitDialog(wxInitDialogEvent& event);
68 void UpdateEnabling();
69 void UpdateContentItems();
71 std::vector<vtContentManager*> m_contents;
78 #endif // __InstanceDlg_H__