00001
00002
00003
00004
00005
00007
00008 #include "gui/GUI.h"
00009
00011
00012 namespace GUI_PTU {
00013
00014 GUIDialog::GUIDialog( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
00015 {
00016 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
00017
00018 wxFlexGridSizer* dialogSizer;
00019 dialogSizer = new wxFlexGridSizer( 2, 1, 0, 0 );
00020 dialogSizer->SetFlexibleDirection( wxBOTH );
00021 dialogSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
00022
00023 cameraPanel = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxSize( -1,-1 ), wxTAB_TRAVERSAL );
00024 wxFlexGridSizer* cameraImageSizer;
00025 cameraImageSizer = new wxFlexGridSizer( 2, 2, 0, 0 );
00026 cameraImageSizer->SetFlexibleDirection( wxBOTH );
00027 cameraImageSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
00028
00029 leftImageTopic = new wxComboBox( cameraPanel, ID_LEFTTOPICCHOICE, wxEmptyString, wxDefaultPosition, wxSize( -1,-1 ), 0, NULL, wxCB_READONLY|wxCB_SORT );
00030 cameraImageSizer->Add( leftImageTopic, 0, wxALL|wxEXPAND, 5 );
00031
00032 rightImageTopic = new wxComboBox( cameraPanel, ID_RIGHTTOPICCHOICE, wxEmptyString, wxDefaultPosition, wxSize( -1,-1 ), 0, NULL, wxCB_READONLY|wxCB_SORT );
00033 cameraImageSizer->Add( rightImageTopic, 0, wxALL|wxEXPAND, 5 );
00034
00035 leftPanel = new wxImagePanel( cameraPanel);
00036 cameraImageSizer->Add( leftPanel, 1, wxEXPAND | wxALL, 5 );
00037
00038 rightPanel = new wxImagePanel( cameraPanel);
00039 cameraImageSizer->Add( rightPanel, 1, wxEXPAND | wxALL, 5 );
00040
00041 cameraPanel->SetSizer( cameraImageSizer );
00042 cameraPanel->Layout();
00043 cameraImageSizer->Fit( cameraPanel );
00044 dialogSizer->Add( cameraPanel, 1, wxEXPAND | wxALL, 5 );
00045
00046 settingsPanel = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxSize( -1,-1 ), wxTAB_TRAVERSAL );
00047 wxFlexGridSizer* settingsContentSizer;
00048 settingsContentSizer = new wxFlexGridSizer( 6, 1, 0, 0 );
00049 settingsContentSizer->SetFlexibleDirection( wxBOTH );
00050 settingsContentSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
00051
00052 ptuChoice = new wxComboBox( settingsPanel, ID_PTUCHOICE, wxEmptyString, wxDefaultPosition, wxSize( 380,-1 ), 0, NULL, wxCB_READONLY|wxCB_SORT );
00053 settingsContentSizer->Add( ptuChoice, 0, wxALL, 5 );
00054
00055 wxFlexGridSizer* angleSettingsSizer;
00056 angleSettingsSizer = new wxFlexGridSizer( 2, 8, 0, 0 );
00057 angleSettingsSizer->SetFlexibleDirection( wxBOTH );
00058 angleSettingsSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
00059
00060 panAngleLabel = new wxStaticText( settingsPanel, wxID_ANY, wxT("pan angle"), wxDefaultPosition, wxDefaultSize, 0 );
00061 panAngleLabel->Wrap( -1 );
00062 angleSettingsSizer->Add( panAngleLabel, 0, wxALL, 10 );
00063
00064 panSlider = new wxSlider( settingsPanel, ID_PANSLIDER, 0, -180, 180, wxPoint( -1,-1 ), wxSize( 200,25 ), wxSL_HORIZONTAL );
00065 panSlider->SetMinSize( wxSize( 200,25 ) );
00066
00067 angleSettingsSizer->Add( panSlider, 0, wxALL, 5 );
00068
00069 panSpinner = new wxSpinCtrl( settingsPanel, ID_PANSPINNER, wxEmptyString, wxDefaultPosition, wxSize( 80,25 ), wxSP_ARROW_KEYS, -180, 180, -18 );
00070 angleSettingsSizer->Add( panSpinner, 0, wxALL, 5 );
00071
00072 m_staticline2 = new wxStaticLine( settingsPanel, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_VERTICAL );
00073 angleSettingsSizer->Add( m_staticline2, 0, wxEXPAND | wxALL, 5 );
00074
00075 m_staticText3 = new wxStaticText( settingsPanel, wxID_ANY, wxT("pan min angle"), wxPoint( -1,-1 ), wxSize( -1,-1 ), 0 );
00076 m_staticText3->Wrap( -1 );
00077 angleSettingsSizer->Add( m_staticText3, 0, wxALL, 10 );
00078
00079 pan_min = new wxSpinCtrl( settingsPanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, -180, 180, 0 );
00080 angleSettingsSizer->Add( pan_min, 0, wxALL, 5 );
00081
00082 m_staticText4 = new wxStaticText( settingsPanel, wxID_ANY, wxT("pan max angle"), wxDefaultPosition, wxDefaultSize, 0 );
00083 m_staticText4->Wrap( -1 );
00084 angleSettingsSizer->Add( m_staticText4, 0, wxALL, 10 );
00085
00086 pan_max = new wxSpinCtrl( settingsPanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, -180, 180, 0 );
00087 angleSettingsSizer->Add( pan_max, 0, wxALL, 5 );
00088
00089 tiltAngleLabel = new wxStaticText( settingsPanel, wxID_ANY, wxT("tilt angle"), wxDefaultPosition, wxDefaultSize, 0 );
00090 tiltAngleLabel->Wrap( -1 );
00091 angleSettingsSizer->Add( tiltAngleLabel, 0, wxALL, 10 );
00092
00093 tiltSlider = new wxSlider( settingsPanel, ID_TILTSLIDER, 0, -180, 180, wxDefaultPosition, wxSize( 200,25 ), wxSL_HORIZONTAL );
00094 tiltSlider->SetMinSize( wxSize( 200,25 ) );
00095
00096 angleSettingsSizer->Add( tiltSlider, 0, wxALL, 5 );
00097
00098 tiltSpinner = new wxSpinCtrl( settingsPanel, ID_TILTSPINNER, wxEmptyString, wxDefaultPosition, wxSize( 80,25 ), wxSP_ARROW_KEYS, -180, 180, -1 );
00099 angleSettingsSizer->Add( tiltSpinner, 0, wxALL, 5 );
00100
00101 m_staticline3 = new wxStaticLine( settingsPanel, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_VERTICAL );
00102 angleSettingsSizer->Add( m_staticline3, 0, wxEXPAND | wxALL, 5 );
00103
00104 m_staticText5 = new wxStaticText( settingsPanel, wxID_ANY, wxT("tilt min angle"), wxDefaultPosition, wxDefaultSize, 0 );
00105 m_staticText5->Wrap( -1 );
00106 angleSettingsSizer->Add( m_staticText5, 0, wxALL, 10 );
00107
00108 tilt_min = new wxSpinCtrl( settingsPanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, -180, 180, 0 );
00109 angleSettingsSizer->Add( tilt_min, 0, wxALL, 5 );
00110
00111 m_staticText6 = new wxStaticText( settingsPanel, wxID_ANY, wxT("tilt max angle"), wxDefaultPosition, wxDefaultSize, 0 );
00112 m_staticText6->Wrap( -1 );
00113 angleSettingsSizer->Add( m_staticText6, 0, wxALL, 10 );
00114
00115 tilt_max = new wxSpinCtrl( settingsPanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, -180, 180, 0 );
00116 angleSettingsSizer->Add( tilt_max, 0, wxALL, 5 );
00117
00118 settingsContentSizer->Add( angleSettingsSizer, 1, wxEXPAND, 5 );
00119
00120 settingsDivider = new wxStaticLine( settingsPanel, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
00121 settingsContentSizer->Add( settingsDivider, 0, wxEXPAND | wxALL, 5 );
00122
00123 wxFlexGridSizer* speedSettingsSizer;
00124 speedSettingsSizer = new wxFlexGridSizer( 2, 12, 0, 0 );
00125 speedSettingsSizer->SetFlexibleDirection( wxBOTH );
00126 speedSettingsSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
00127
00128 m_staticText10 = new wxStaticText( settingsPanel, wxID_ANY, wxT("pan base speed"), wxDefaultPosition, wxDefaultSize, 0 );
00129 m_staticText10->Wrap( -1 );
00130 speedSettingsSizer->Add( m_staticText10, 0, wxALL, 10 );
00131
00132 pan_base = new wxSpinCtrl( settingsPanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 9999, 0 );
00133 speedSettingsSizer->Add( pan_base, 0, wxALL, 5 );
00134
00135 m_staticText11 = new wxStaticText( settingsPanel, wxID_ANY, wxT("pan target speed"), wxDefaultPosition, wxDefaultSize, 0 );
00136 m_staticText11->Wrap( -1 );
00137 speedSettingsSizer->Add( m_staticText11, 0, wxALL, 10 );
00138
00139 pan_target = new wxSpinCtrl( settingsPanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 9999, 0 );
00140 speedSettingsSizer->Add( pan_target, 0, wxALL, 5 );
00141
00142 m_staticText13 = new wxStaticText( settingsPanel, wxID_ANY, wxT("pan upper speed"), wxDefaultPosition, wxDefaultSize, 0 );
00143 m_staticText13->Wrap( -1 );
00144 speedSettingsSizer->Add( m_staticText13, 0, wxALL, 10 );
00145
00146 pan_upper = new wxSpinCtrl( settingsPanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 9999, 0 );
00147 speedSettingsSizer->Add( pan_upper, 0, wxALL, 5 );
00148
00149 m_staticText14 = new wxStaticText( settingsPanel, wxID_ANY, wxT("pan accel"), wxDefaultPosition, wxDefaultSize, 0 );
00150 m_staticText14->Wrap( -1 );
00151 speedSettingsSizer->Add( m_staticText14, 0, wxALL, 10 );
00152
00153 pan_accel = new wxSpinCtrl( settingsPanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 9999, 0 );
00154 speedSettingsSizer->Add( pan_accel, 0, wxALL, 5 );
00155
00156 m_staticText15 = new wxStaticText( settingsPanel, wxID_ANY, wxT("pan hold pwr"), wxDefaultPosition, wxDefaultSize, 0 );
00157 m_staticText15->Wrap( -1 );
00158 speedSettingsSizer->Add( m_staticText15, 0, wxALL, 10 );
00159
00160 pan_hold = new wxSpinCtrl( settingsPanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 2, 0 );
00161 speedSettingsSizer->Add( pan_hold, 0, wxALL, 5 );
00162
00163 m_staticText16 = new wxStaticText( settingsPanel, wxID_ANY, wxT("pan move pwr"), wxDefaultPosition, wxDefaultSize, 0 );
00164 m_staticText16->Wrap( -1 );
00165 speedSettingsSizer->Add( m_staticText16, 0, wxALL, 10 );
00166
00167 pan_move = new wxSpinCtrl( settingsPanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 2, 0 );
00168 speedSettingsSizer->Add( pan_move, 0, wxALL, 5 );
00169
00170 m_staticText20 = new wxStaticText( settingsPanel, wxID_ANY, wxT("tilt base speed"), wxDefaultPosition, wxDefaultSize, 0 );
00171 m_staticText20->Wrap( -1 );
00172 speedSettingsSizer->Add( m_staticText20, 0, wxALL, 10 );
00173
00174 tilt_base = new wxSpinCtrl( settingsPanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 9999, 0 );
00175 speedSettingsSizer->Add( tilt_base, 0, wxALL, 5 );
00176
00177 m_staticText21 = new wxStaticText( settingsPanel, wxID_ANY, wxT("tilt target speed"), wxDefaultPosition, wxDefaultSize, 0 );
00178 m_staticText21->Wrap( -1 );
00179 speedSettingsSizer->Add( m_staticText21, 0, wxALL, 10 );
00180
00181 tilt_target = new wxSpinCtrl( settingsPanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 9999, 0 );
00182 speedSettingsSizer->Add( tilt_target, 0, wxALL, 5 );
00183
00184 m_staticText22 = new wxStaticText( settingsPanel, wxID_ANY, wxT("tilt upper speed"), wxDefaultPosition, wxDefaultSize, 0 );
00185 m_staticText22->Wrap( -1 );
00186 speedSettingsSizer->Add( m_staticText22, 0, wxALL, 10 );
00187
00188 tilt_upper = new wxSpinCtrl( settingsPanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 9999, 0 );
00189 speedSettingsSizer->Add( tilt_upper, 0, wxALL, 5 );
00190
00191 m_staticText23 = new wxStaticText( settingsPanel, wxID_ANY, wxT("tilt accel"), wxDefaultPosition, wxDefaultSize, 0 );
00192 m_staticText23->Wrap( -1 );
00193 speedSettingsSizer->Add( m_staticText23, 0, wxALL, 10 );
00194
00195 tilt_accel = new wxSpinCtrl( settingsPanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 9999, 0 );
00196 speedSettingsSizer->Add( tilt_accel, 0, wxALL, 5 );
00197
00198 m_staticText24 = new wxStaticText( settingsPanel, wxID_ANY, wxT("tilt hold pwr"), wxDefaultPosition, wxDefaultSize, 0 );
00199 m_staticText24->Wrap( -1 );
00200 speedSettingsSizer->Add( m_staticText24, 0, wxALL, 10 );
00201
00202 tilt_hold = new wxSpinCtrl( settingsPanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 2, 0 );
00203 speedSettingsSizer->Add( tilt_hold, 0, wxALL, 5 );
00204
00205 m_staticText25 = new wxStaticText( settingsPanel, wxID_ANY, wxT("tilt move pwr"), wxDefaultPosition, wxDefaultSize, 0 );
00206 m_staticText25->Wrap( -1 );
00207 speedSettingsSizer->Add( m_staticText25, 0, wxALL, 10 );
00208
00209 tilt_move = new wxSpinCtrl( settingsPanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 2, 0 );
00210 speedSettingsSizer->Add( tilt_move, 0, wxALL, 5 );
00211
00212 settingsContentSizer->Add( speedSettingsSizer, 1, wxEXPAND, 5 );
00213
00214 wxFlexGridSizer* miscSettingsSizer;
00215 miscSettingsSizer = new wxFlexGridSizer( 1, 2, 0, 0 );
00216 miscSettingsSizer->SetFlexibleDirection( wxBOTH );
00217 miscSettingsSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
00218
00219 immCheck = new wxCheckBox( settingsPanel, ID_UPDATEIMMCHECKBOX, wxT("update current angle immediately"), wxDefaultPosition, wxDefaultSize, 0 );
00220 miscSettingsSizer->Add( immCheck, 0, wxALL, 5 );
00221
00222 listenCheck = new wxCheckBox( settingsPanel, ID_LISTENFORUPDATES, wxT("listen for updates"), wxDefaultPosition, wxDefaultSize, 0 );
00223 miscSettingsSizer->Add( listenCheck, 0, wxALL, 5 );
00224
00225 settingsContentSizer->Add( miscSettingsSizer, 1, wxEXPAND, 5 );
00226
00227 wxFlexGridSizer* buttonSizer;
00228 buttonSizer = new wxFlexGridSizer( 2, 2, 0, 0 );
00229 buttonSizer->SetFlexibleDirection( wxBOTH );
00230 buttonSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
00231
00232 updateButton = new wxButton( settingsPanel, ID_UPDATEBUTTON, wxT("Update"), wxDefaultPosition, wxDefaultSize, 0 );
00233 buttonSizer->Add( updateButton, 0, wxALL, 5 );
00234
00235 settingsContentSizer->Add( buttonSizer, 1, wxEXPAND, 5 );
00236
00237 settingsPanel->SetSizer( settingsContentSizer );
00238 settingsPanel->Layout();
00239 settingsContentSizer->Fit( settingsPanel );
00240 dialogSizer->Add( settingsPanel, 1, wxEXPAND | wxALL, 5 );
00241
00242 this->SetSizer( dialogSizer );
00243 this->Layout();
00244 dialogSizer->Fit( this );
00245
00246 this->Centre( wxBOTH );
00247
00248
00249 this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( GUIDialog::OnDialogClose ) );
00250 leftImageTopic->Connect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( GUIDialog::OnLeftTopicChoice ), NULL, this );
00251 rightImageTopic->Connect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( GUIDialog::OnRightTopicChoice ), NULL, this );
00252 ptuChoice->Connect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( GUIDialog::OnPTUChoice ), NULL, this );
00253 panSlider->Connect( wxEVT_SCROLL_TOP, wxScrollEventHandler( GUIDialog::OnPanScroll ), NULL, this );
00254 panSlider->Connect( wxEVT_SCROLL_BOTTOM, wxScrollEventHandler( GUIDialog::OnPanScroll ), NULL, this );
00255 panSlider->Connect( wxEVT_SCROLL_LINEUP, wxScrollEventHandler( GUIDialog::OnPanScroll ), NULL, this );
00256 panSlider->Connect( wxEVT_SCROLL_LINEDOWN, wxScrollEventHandler( GUIDialog::OnPanScroll ), NULL, this );
00257 panSlider->Connect( wxEVT_SCROLL_PAGEUP, wxScrollEventHandler( GUIDialog::OnPanScroll ), NULL, this );
00258 panSlider->Connect( wxEVT_SCROLL_PAGEDOWN, wxScrollEventHandler( GUIDialog::OnPanScroll ), NULL, this );
00259 panSlider->Connect( wxEVT_SCROLL_THUMBTRACK, wxScrollEventHandler( GUIDialog::OnPanScroll ), NULL, this );
00260 panSlider->Connect( wxEVT_SCROLL_THUMBRELEASE, wxScrollEventHandler( GUIDialog::OnPanScroll ), NULL, this );
00261 panSlider->Connect( wxEVT_SCROLL_CHANGED, wxScrollEventHandler( GUIDialog::OnPanScroll ), NULL, this );
00262 panSpinner->Connect( wxEVT_COMMAND_SPINCTRL_UPDATED, wxSpinEventHandler( GUIDialog::OnPanSpin ), NULL, this );
00263 panSpinner->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( GUIDialog::OnPanSpinText ), NULL, this );
00264 tiltSlider->Connect( wxEVT_SCROLL_TOP, wxScrollEventHandler( GUIDialog::OnTiltScroll ), NULL, this );
00265 tiltSlider->Connect( wxEVT_SCROLL_BOTTOM, wxScrollEventHandler( GUIDialog::OnTiltScroll ), NULL, this );
00266 tiltSlider->Connect( wxEVT_SCROLL_LINEUP, wxScrollEventHandler( GUIDialog::OnTiltScroll ), NULL, this );
00267 tiltSlider->Connect( wxEVT_SCROLL_LINEDOWN, wxScrollEventHandler( GUIDialog::OnTiltScroll ), NULL, this );
00268 tiltSlider->Connect( wxEVT_SCROLL_PAGEUP, wxScrollEventHandler( GUIDialog::OnTiltScroll ), NULL, this );
00269 tiltSlider->Connect( wxEVT_SCROLL_PAGEDOWN, wxScrollEventHandler( GUIDialog::OnTiltScroll ), NULL, this );
00270 tiltSlider->Connect( wxEVT_SCROLL_THUMBTRACK, wxScrollEventHandler( GUIDialog::OnTiltScroll ), NULL, this );
00271 tiltSlider->Connect( wxEVT_SCROLL_THUMBRELEASE, wxScrollEventHandler( GUIDialog::OnTiltScroll ), NULL, this );
00272 tiltSlider->Connect( wxEVT_SCROLL_CHANGED, wxScrollEventHandler( GUIDialog::OnTiltScroll ), NULL, this );
00273 tiltSpinner->Connect( wxEVT_COMMAND_SPINCTRL_UPDATED, wxSpinEventHandler( GUIDialog::OnTiltSpin ), NULL, this );
00274 tiltSpinner->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( GUIDialog::OnTiltSpinText ), NULL, this );
00275 immCheck->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( GUIDialog::OnImmChecked ), NULL, this );
00276 listenCheck->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( GUIDialog::OnListenChecked ), NULL, this );
00277 updateButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( GUIDialog::OnUpdateClicked ), NULL, this );
00278 }
00279
00280 GUIDialog::~GUIDialog()
00281 {
00282
00283 this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( GUIDialog::OnDialogClose ) );
00284 leftImageTopic->Disconnect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( GUIDialog::OnLeftTopicChoice ), NULL, this );
00285 rightImageTopic->Disconnect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( GUIDialog::OnRightTopicChoice ), NULL, this );
00286 ptuChoice->Disconnect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( GUIDialog::OnPTUChoice ), NULL, this );
00287 panSlider->Disconnect( wxEVT_SCROLL_TOP, wxScrollEventHandler( GUIDialog::OnPanScroll ), NULL, this );
00288 panSlider->Disconnect( wxEVT_SCROLL_BOTTOM, wxScrollEventHandler( GUIDialog::OnPanScroll ), NULL, this );
00289 panSlider->Disconnect( wxEVT_SCROLL_LINEUP, wxScrollEventHandler( GUIDialog::OnPanScroll ), NULL, this );
00290 panSlider->Disconnect( wxEVT_SCROLL_LINEDOWN, wxScrollEventHandler( GUIDialog::OnPanScroll ), NULL, this );
00291 panSlider->Disconnect( wxEVT_SCROLL_PAGEUP, wxScrollEventHandler( GUIDialog::OnPanScroll ), NULL, this );
00292 panSlider->Disconnect( wxEVT_SCROLL_PAGEDOWN, wxScrollEventHandler( GUIDialog::OnPanScroll ), NULL, this );
00293 panSlider->Disconnect( wxEVT_SCROLL_THUMBTRACK, wxScrollEventHandler( GUIDialog::OnPanScroll ), NULL, this );
00294 panSlider->Disconnect( wxEVT_SCROLL_THUMBRELEASE, wxScrollEventHandler( GUIDialog::OnPanScroll ), NULL, this );
00295 panSlider->Disconnect( wxEVT_SCROLL_CHANGED, wxScrollEventHandler( GUIDialog::OnPanScroll ), NULL, this );
00296 panSpinner->Disconnect( wxEVT_COMMAND_SPINCTRL_UPDATED, wxSpinEventHandler( GUIDialog::OnPanSpin ), NULL, this );
00297 panSpinner->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( GUIDialog::OnPanSpinText ), NULL, this );
00298 tiltSlider->Disconnect( wxEVT_SCROLL_TOP, wxScrollEventHandler( GUIDialog::OnTiltScroll ), NULL, this );
00299 tiltSlider->Disconnect( wxEVT_SCROLL_BOTTOM, wxScrollEventHandler( GUIDialog::OnTiltScroll ), NULL, this );
00300 tiltSlider->Disconnect( wxEVT_SCROLL_LINEUP, wxScrollEventHandler( GUIDialog::OnTiltScroll ), NULL, this );
00301 tiltSlider->Disconnect( wxEVT_SCROLL_LINEDOWN, wxScrollEventHandler( GUIDialog::OnTiltScroll ), NULL, this );
00302 tiltSlider->Disconnect( wxEVT_SCROLL_PAGEUP, wxScrollEventHandler( GUIDialog::OnTiltScroll ), NULL, this );
00303 tiltSlider->Disconnect( wxEVT_SCROLL_PAGEDOWN, wxScrollEventHandler( GUIDialog::OnTiltScroll ), NULL, this );
00304 tiltSlider->Disconnect( wxEVT_SCROLL_THUMBTRACK, wxScrollEventHandler( GUIDialog::OnTiltScroll ), NULL, this );
00305 tiltSlider->Disconnect( wxEVT_SCROLL_THUMBRELEASE, wxScrollEventHandler( GUIDialog::OnTiltScroll ), NULL, this );
00306 tiltSlider->Disconnect( wxEVT_SCROLL_CHANGED, wxScrollEventHandler( GUIDialog::OnTiltScroll ), NULL, this );
00307 tiltSpinner->Disconnect( wxEVT_COMMAND_SPINCTRL_UPDATED, wxSpinEventHandler( GUIDialog::OnTiltSpin ), NULL, this );
00308 tiltSpinner->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( GUIDialog::OnTiltSpinText ), NULL, this );
00309 immCheck->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( GUIDialog::OnImmChecked ), NULL, this );
00310 listenCheck->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( GUIDialog::OnListenChecked ), NULL, this );
00311 updateButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( GUIDialog::OnUpdateClicked ), NULL, this );
00312
00313 }
00314
00315 }