14 GUIDialog::GUIDialog( wxWindow* parent, wxWindowID
id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style ) : wxDialog( parent, id, title, pos, size, style )
16 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
18 wxFlexGridSizer* dialogSizer;
19 dialogSizer =
new wxFlexGridSizer( 2, 1, 0, 0 );
20 dialogSizer->SetFlexibleDirection( wxBOTH );
21 dialogSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
23 cameraPanel =
new wxPanel(
this, wxID_ANY, wxDefaultPosition, wxSize( -1,-1 ), wxTAB_TRAVERSAL );
24 wxFlexGridSizer* cameraImageSizer;
25 cameraImageSizer =
new wxFlexGridSizer( 2, 2, 0, 0 );
26 cameraImageSizer->SetFlexibleDirection( wxBOTH );
27 cameraImageSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
36 cameraImageSizer->Add(
leftPanel, 1, wxEXPAND | wxALL, 5 );
39 cameraImageSizer->Add(
rightPanel, 1, wxEXPAND | wxALL, 5 );
44 dialogSizer->Add(
cameraPanel, 1, wxEXPAND | wxALL, 5 );
46 settingsPanel =
new wxPanel(
this, wxID_ANY, wxDefaultPosition, wxSize( -1,-1 ), wxTAB_TRAVERSAL );
47 wxFlexGridSizer* settingsContentSizer;
48 settingsContentSizer =
new wxFlexGridSizer( 6, 1, 0, 0 );
49 settingsContentSizer->SetFlexibleDirection( wxBOTH );
50 settingsContentSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
53 settingsContentSizer->Add(
ptuChoice, 0, wxALL, 5 );
55 wxFlexGridSizer* angleSettingsSizer;
56 angleSettingsSizer =
new wxFlexGridSizer( 2, 8, 0, 0 );
57 angleSettingsSizer->SetFlexibleDirection( wxBOTH );
58 angleSettingsSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
65 panSlider->SetMinSize( wxSize( 200,25 ) );
67 angleSettingsSizer->Add(
panSlider, 0, wxALL, 5 );
70 angleSettingsSizer->Add(
panSpinner, 0, wxALL, 5 );
73 angleSettingsSizer->Add(
m_staticline2, 0, wxEXPAND | wxALL, 5 );
79 pan_min =
new wxSpinCtrl(
settingsPanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, -180, 180, 0 );
80 angleSettingsSizer->Add(
pan_min, 0, wxALL, 5 );
86 pan_max =
new wxSpinCtrl(
settingsPanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, -180, 180, 0 );
87 angleSettingsSizer->Add(
pan_max, 0, wxALL, 5 );
96 angleSettingsSizer->Add(
tiltSlider, 0, wxALL, 5 );
99 angleSettingsSizer->Add(
tiltSpinner, 0, wxALL, 5 );
102 angleSettingsSizer->Add(
m_staticline3, 0, wxEXPAND | wxALL, 5 );
108 tilt_min =
new wxSpinCtrl(
settingsPanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, -180, 180, 0 );
109 angleSettingsSizer->Add(
tilt_min, 0, wxALL, 5 );
115 tilt_max =
new wxSpinCtrl(
settingsPanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, -180, 180, 0 );
116 angleSettingsSizer->Add(
tilt_max, 0, wxALL, 5 );
118 settingsContentSizer->Add( angleSettingsSizer, 1, wxEXPAND, 5 );
123 wxFlexGridSizer* speedSettingsSizer;
124 speedSettingsSizer =
new wxFlexGridSizer( 2, 12, 0, 0 );
125 speedSettingsSizer->SetFlexibleDirection( wxBOTH );
126 speedSettingsSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
132 pan_base =
new wxSpinCtrl(
settingsPanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 9999, 0 );
133 speedSettingsSizer->Add(
pan_base, 0, wxALL, 5 );
139 pan_target =
new wxSpinCtrl(
settingsPanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 9999, 0 );
140 speedSettingsSizer->Add(
pan_target, 0, wxALL, 5 );
146 pan_upper =
new wxSpinCtrl(
settingsPanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 9999, 0 );
147 speedSettingsSizer->Add(
pan_upper, 0, wxALL, 5 );
153 pan_accel =
new wxSpinCtrl(
settingsPanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 9999, 0 );
154 speedSettingsSizer->Add(
pan_accel, 0, wxALL, 5 );
160 pan_hold =
new wxSpinCtrl(
settingsPanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 2, 0 );
161 speedSettingsSizer->Add(
pan_hold, 0, wxALL, 5 );
167 pan_move =
new wxSpinCtrl(
settingsPanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 2, 0 );
168 speedSettingsSizer->Add(
pan_move, 0, wxALL, 5 );
174 tilt_base =
new wxSpinCtrl(
settingsPanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 9999, 0 );
175 speedSettingsSizer->Add(
tilt_base, 0, wxALL, 5 );
181 tilt_target =
new wxSpinCtrl(
settingsPanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 9999, 0 );
182 speedSettingsSizer->Add(
tilt_target, 0, wxALL, 5 );
188 tilt_upper =
new wxSpinCtrl(
settingsPanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 9999, 0 );
189 speedSettingsSizer->Add(
tilt_upper, 0, wxALL, 5 );
195 tilt_accel =
new wxSpinCtrl(
settingsPanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 9999, 0 );
196 speedSettingsSizer->Add(
tilt_accel, 0, wxALL, 5 );
202 tilt_hold =
new wxSpinCtrl(
settingsPanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 2, 0 );
203 speedSettingsSizer->Add(
tilt_hold, 0, wxALL, 5 );
209 tilt_move =
new wxSpinCtrl(
settingsPanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 2, 0 );
210 speedSettingsSizer->Add(
tilt_move, 0, wxALL, 5 );
212 settingsContentSizer->Add( speedSettingsSizer, 1, wxEXPAND, 5 );
214 wxFlexGridSizer* miscSettingsSizer;
215 miscSettingsSizer =
new wxFlexGridSizer( 1, 2, 0, 0 );
216 miscSettingsSizer->SetFlexibleDirection( wxBOTH );
217 miscSettingsSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
220 miscSettingsSizer->Add(
immCheck, 0, wxALL, 5 );
223 miscSettingsSizer->Add(
listenCheck, 0, wxALL, 5 );
225 settingsContentSizer->Add( miscSettingsSizer, 1, wxEXPAND, 5 );
227 wxFlexGridSizer* buttonSizer;
228 buttonSizer =
new wxFlexGridSizer( 2, 2, 0, 0 );
229 buttonSizer->SetFlexibleDirection( wxBOTH );
230 buttonSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
235 settingsContentSizer->Add( buttonSizer, 1, wxEXPAND, 5 );
242 this->SetSizer( dialogSizer );
244 dialogSizer->Fit(
this );
246 this->Centre( wxBOTH );
wxStaticLine * m_staticline2
wxStaticText * m_staticText3
wxImagePanel * rightPanel
virtual void OnTiltSpin(wxSpinEvent &event)
#define ID_UPDATEIMMCHECKBOX
wxStaticText * m_staticText25
wxStaticText * panAngleLabel
virtual void OnImmChecked(wxCommandEvent &event)
wxStaticText * m_staticText20
wxStaticText * m_staticText14
wxStaticText * m_staticText15
#define ID_LEFTTOPICCHOICE
virtual void OnPTUChoice(wxCommandEvent &event)
wxStaticText * m_staticText11
wxStaticText * m_staticText22
wxStaticText * m_staticText13
wxStaticText * m_staticText16
wxStaticText * m_staticText21
wxStaticText * m_staticText6
virtual void OnPanSpin(wxSpinEvent &event)
wxStaticText * m_staticText4
wxStaticLine * m_staticline3
wxStaticText * tiltAngleLabel
#define ID_RIGHTTOPICCHOICE
wxStaticText * m_staticText23
wxStaticText * m_staticText24
virtual void OnDialogClose(wxCloseEvent &event)
virtual void OnPanScroll(wxScrollEvent &event)
virtual void OnTiltSpinText(wxCommandEvent &event)
virtual void OnListenChecked(wxCommandEvent &event)
GUIDialog(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=wxT("PTU Visualisation"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE)
wxComboBox * leftImageTopic
virtual void OnTiltScroll(wxScrollEvent &event)
virtual void OnRightTopicChoice(wxCommandEvent &event)
wxStaticText * m_staticText10
virtual void OnUpdateClicked(wxCommandEvent &event)
wxStaticLine * settingsDivider
virtual void OnLeftTopicChoice(wxCommandEvent &event)
wxComboBox * rightImageTopic
wxStaticText * m_staticText5
#define ID_LISTENFORUPDATES
virtual void OnPanSpinText(wxCommandEvent &event)