GUI.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Sep 8 2010)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO "NOT" EDIT THIS FILE!
7 
8 #include "gui/GUI.h"
9 
11 
12 namespace GUI_PTU {
13 
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 )
15 {
16  this->SetSizeHints( wxDefaultSize, wxDefaultSize );
17 
18  wxFlexGridSizer* dialogSizer;
19  dialogSizer = new wxFlexGridSizer( 2, 1, 0, 0 );
20  dialogSizer->SetFlexibleDirection( wxBOTH );
21  dialogSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
22 
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 );
28 
29  leftImageTopic = new wxComboBox( cameraPanel, ID_LEFTTOPICCHOICE, wxEmptyString, wxDefaultPosition, wxSize( -1,-1 ), 0, NULL, wxCB_READONLY|wxCB_SORT );
30  cameraImageSizer->Add( leftImageTopic, 0, wxALL|wxEXPAND, 5 );
31 
32  rightImageTopic = new wxComboBox( cameraPanel, ID_RIGHTTOPICCHOICE, wxEmptyString, wxDefaultPosition, wxSize( -1,-1 ), 0, NULL, wxCB_READONLY|wxCB_SORT );
33  cameraImageSizer->Add( rightImageTopic, 0, wxALL|wxEXPAND, 5 );
34 
36  cameraImageSizer->Add( leftPanel, 1, wxEXPAND | wxALL, 5 );
37 
39  cameraImageSizer->Add( rightPanel, 1, wxEXPAND | wxALL, 5 );
40 
41  cameraPanel->SetSizer( cameraImageSizer );
42  cameraPanel->Layout();
43  cameraImageSizer->Fit( cameraPanel );
44  dialogSizer->Add( cameraPanel, 1, wxEXPAND | wxALL, 5 );
45 
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 );
51 
52  ptuChoice = new wxComboBox( settingsPanel, ID_PTUCHOICE, wxEmptyString, wxDefaultPosition, wxSize( 380,-1 ), 0, NULL, wxCB_READONLY|wxCB_SORT );
53  settingsContentSizer->Add( ptuChoice, 0, wxALL, 5 );
54 
55  wxFlexGridSizer* angleSettingsSizer;
56  angleSettingsSizer = new wxFlexGridSizer( 2, 8, 0, 0 );
57  angleSettingsSizer->SetFlexibleDirection( wxBOTH );
58  angleSettingsSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
59 
60  panAngleLabel = new wxStaticText( settingsPanel, wxID_ANY, wxT("pan angle"), wxDefaultPosition, wxDefaultSize, 0 );
61  panAngleLabel->Wrap( -1 );
62  angleSettingsSizer->Add( panAngleLabel, 0, wxALL, 10 );
63 
64  panSlider = new wxSlider( settingsPanel, ID_PANSLIDER, 0, -180, 180, wxPoint( -1,-1 ), wxSize( 200,25 ), wxSL_HORIZONTAL );
65  panSlider->SetMinSize( wxSize( 200,25 ) );
66 
67  angleSettingsSizer->Add( panSlider, 0, wxALL, 5 );
68 
69  panSpinner = new wxSpinCtrl( settingsPanel, ID_PANSPINNER, wxEmptyString, wxDefaultPosition, wxSize( 80,25 ), wxSP_ARROW_KEYS, -180, 180, -18 );
70  angleSettingsSizer->Add( panSpinner, 0, wxALL, 5 );
71 
72  m_staticline2 = new wxStaticLine( settingsPanel, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_VERTICAL );
73  angleSettingsSizer->Add( m_staticline2, 0, wxEXPAND | wxALL, 5 );
74 
75  m_staticText3 = new wxStaticText( settingsPanel, wxID_ANY, wxT("pan min angle"), wxPoint( -1,-1 ), wxSize( -1,-1 ), 0 );
76  m_staticText3->Wrap( -1 );
77  angleSettingsSizer->Add( m_staticText3, 0, wxALL, 10 );
78 
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 );
81 
82  m_staticText4 = new wxStaticText( settingsPanel, wxID_ANY, wxT("pan max angle"), wxDefaultPosition, wxDefaultSize, 0 );
83  m_staticText4->Wrap( -1 );
84  angleSettingsSizer->Add( m_staticText4, 0, wxALL, 10 );
85 
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 );
88 
89  tiltAngleLabel = new wxStaticText( settingsPanel, wxID_ANY, wxT("tilt angle"), wxDefaultPosition, wxDefaultSize, 0 );
90  tiltAngleLabel->Wrap( -1 );
91  angleSettingsSizer->Add( tiltAngleLabel, 0, wxALL, 10 );
92 
93  tiltSlider = new wxSlider( settingsPanel, ID_TILTSLIDER, 0, -180, 180, wxDefaultPosition, wxSize( 200,25 ), wxSL_HORIZONTAL );
94  tiltSlider->SetMinSize( wxSize( 200,25 ) );
95 
96  angleSettingsSizer->Add( tiltSlider, 0, wxALL, 5 );
97 
98  tiltSpinner = new wxSpinCtrl( settingsPanel, ID_TILTSPINNER, wxEmptyString, wxDefaultPosition, wxSize( 80,25 ), wxSP_ARROW_KEYS, -180, 180, -1 );
99  angleSettingsSizer->Add( tiltSpinner, 0, wxALL, 5 );
100 
101  m_staticline3 = new wxStaticLine( settingsPanel, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_VERTICAL );
102  angleSettingsSizer->Add( m_staticline3, 0, wxEXPAND | wxALL, 5 );
103 
104  m_staticText5 = new wxStaticText( settingsPanel, wxID_ANY, wxT("tilt min angle"), wxDefaultPosition, wxDefaultSize, 0 );
105  m_staticText5->Wrap( -1 );
106  angleSettingsSizer->Add( m_staticText5, 0, wxALL, 10 );
107 
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 );
110 
111  m_staticText6 = new wxStaticText( settingsPanel, wxID_ANY, wxT("tilt max angle"), wxDefaultPosition, wxDefaultSize, 0 );
112  m_staticText6->Wrap( -1 );
113  angleSettingsSizer->Add( m_staticText6, 0, wxALL, 10 );
114 
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 );
117 
118  settingsContentSizer->Add( angleSettingsSizer, 1, wxEXPAND, 5 );
119 
120  settingsDivider = new wxStaticLine( settingsPanel, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
121  settingsContentSizer->Add( settingsDivider, 0, wxEXPAND | wxALL, 5 );
122 
123  wxFlexGridSizer* speedSettingsSizer;
124  speedSettingsSizer = new wxFlexGridSizer( 2, 12, 0, 0 );
125  speedSettingsSizer->SetFlexibleDirection( wxBOTH );
126  speedSettingsSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
127 
128  m_staticText10 = new wxStaticText( settingsPanel, wxID_ANY, wxT("pan base speed"), wxDefaultPosition, wxDefaultSize, 0 );
129  m_staticText10->Wrap( -1 );
130  speedSettingsSizer->Add( m_staticText10, 0, wxALL, 10 );
131 
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 );
134 
135  m_staticText11 = new wxStaticText( settingsPanel, wxID_ANY, wxT("pan target speed"), wxDefaultPosition, wxDefaultSize, 0 );
136  m_staticText11->Wrap( -1 );
137  speedSettingsSizer->Add( m_staticText11, 0, wxALL, 10 );
138 
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 );
141 
142  m_staticText13 = new wxStaticText( settingsPanel, wxID_ANY, wxT("pan upper speed"), wxDefaultPosition, wxDefaultSize, 0 );
143  m_staticText13->Wrap( -1 );
144  speedSettingsSizer->Add( m_staticText13, 0, wxALL, 10 );
145 
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 );
148 
149  m_staticText14 = new wxStaticText( settingsPanel, wxID_ANY, wxT("pan accel"), wxDefaultPosition, wxDefaultSize, 0 );
150  m_staticText14->Wrap( -1 );
151  speedSettingsSizer->Add( m_staticText14, 0, wxALL, 10 );
152 
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 );
155 
156  m_staticText15 = new wxStaticText( settingsPanel, wxID_ANY, wxT("pan hold pwr"), wxDefaultPosition, wxDefaultSize, 0 );
157  m_staticText15->Wrap( -1 );
158  speedSettingsSizer->Add( m_staticText15, 0, wxALL, 10 );
159 
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 );
162 
163  m_staticText16 = new wxStaticText( settingsPanel, wxID_ANY, wxT("pan move pwr"), wxDefaultPosition, wxDefaultSize, 0 );
164  m_staticText16->Wrap( -1 );
165  speedSettingsSizer->Add( m_staticText16, 0, wxALL, 10 );
166 
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 );
169 
170  m_staticText20 = new wxStaticText( settingsPanel, wxID_ANY, wxT("tilt base speed"), wxDefaultPosition, wxDefaultSize, 0 );
171  m_staticText20->Wrap( -1 );
172  speedSettingsSizer->Add( m_staticText20, 0, wxALL, 10 );
173 
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 );
176 
177  m_staticText21 = new wxStaticText( settingsPanel, wxID_ANY, wxT("tilt target speed"), wxDefaultPosition, wxDefaultSize, 0 );
178  m_staticText21->Wrap( -1 );
179  speedSettingsSizer->Add( m_staticText21, 0, wxALL, 10 );
180 
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 );
183 
184  m_staticText22 = new wxStaticText( settingsPanel, wxID_ANY, wxT("tilt upper speed"), wxDefaultPosition, wxDefaultSize, 0 );
185  m_staticText22->Wrap( -1 );
186  speedSettingsSizer->Add( m_staticText22, 0, wxALL, 10 );
187 
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 );
190 
191  m_staticText23 = new wxStaticText( settingsPanel, wxID_ANY, wxT("tilt accel"), wxDefaultPosition, wxDefaultSize, 0 );
192  m_staticText23->Wrap( -1 );
193  speedSettingsSizer->Add( m_staticText23, 0, wxALL, 10 );
194 
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 );
197 
198  m_staticText24 = new wxStaticText( settingsPanel, wxID_ANY, wxT("tilt hold pwr"), wxDefaultPosition, wxDefaultSize, 0 );
199  m_staticText24->Wrap( -1 );
200  speedSettingsSizer->Add( m_staticText24, 0, wxALL, 10 );
201 
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 );
204 
205  m_staticText25 = new wxStaticText( settingsPanel, wxID_ANY, wxT("tilt move pwr"), wxDefaultPosition, wxDefaultSize, 0 );
206  m_staticText25->Wrap( -1 );
207  speedSettingsSizer->Add( m_staticText25, 0, wxALL, 10 );
208 
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 );
211 
212  settingsContentSizer->Add( speedSettingsSizer, 1, wxEXPAND, 5 );
213 
214  wxFlexGridSizer* miscSettingsSizer;
215  miscSettingsSizer = new wxFlexGridSizer( 1, 2, 0, 0 );
216  miscSettingsSizer->SetFlexibleDirection( wxBOTH );
217  miscSettingsSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
218 
219  immCheck = new wxCheckBox( settingsPanel, ID_UPDATEIMMCHECKBOX, wxT("update current angle immediately"), wxDefaultPosition, wxDefaultSize, 0 );
220  miscSettingsSizer->Add( immCheck, 0, wxALL, 5 );
221 
222  listenCheck = new wxCheckBox( settingsPanel, ID_LISTENFORUPDATES, wxT("listen for updates"), wxDefaultPosition, wxDefaultSize, 0 );
223  miscSettingsSizer->Add( listenCheck, 0, wxALL, 5 );
224 
225  settingsContentSizer->Add( miscSettingsSizer, 1, wxEXPAND, 5 );
226 
227  wxFlexGridSizer* buttonSizer;
228  buttonSizer = new wxFlexGridSizer( 2, 2, 0, 0 );
229  buttonSizer->SetFlexibleDirection( wxBOTH );
230  buttonSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
231 
232  updateButton = new wxButton( settingsPanel, ID_UPDATEBUTTON, wxT("Update"), wxDefaultPosition, wxDefaultSize, 0 );
233  buttonSizer->Add( updateButton, 0, wxALL, 5 );
234 
235  settingsContentSizer->Add( buttonSizer, 1, wxEXPAND, 5 );
236 
237  settingsPanel->SetSizer( settingsContentSizer );
238  settingsPanel->Layout();
239  settingsContentSizer->Fit( settingsPanel );
240  dialogSizer->Add( settingsPanel, 1, wxEXPAND | wxALL, 5 );
241 
242  this->SetSizer( dialogSizer );
243  this->Layout();
244  dialogSizer->Fit( this );
245 
246  this->Centre( wxBOTH );
247 
248  // Connect Events
249  this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( GUIDialog::OnDialogClose ) );
250  leftImageTopic->Connect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( GUIDialog::OnLeftTopicChoice ), NULL, this );
251  rightImageTopic->Connect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( GUIDialog::OnRightTopicChoice ), NULL, this );
252  ptuChoice->Connect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( GUIDialog::OnPTUChoice ), NULL, this );
253  panSlider->Connect( wxEVT_SCROLL_TOP, wxScrollEventHandler( GUIDialog::OnPanScroll ), NULL, this );
254  panSlider->Connect( wxEVT_SCROLL_BOTTOM, wxScrollEventHandler( GUIDialog::OnPanScroll ), NULL, this );
255  panSlider->Connect( wxEVT_SCROLL_LINEUP, wxScrollEventHandler( GUIDialog::OnPanScroll ), NULL, this );
256  panSlider->Connect( wxEVT_SCROLL_LINEDOWN, wxScrollEventHandler( GUIDialog::OnPanScroll ), NULL, this );
257  panSlider->Connect( wxEVT_SCROLL_PAGEUP, wxScrollEventHandler( GUIDialog::OnPanScroll ), NULL, this );
258  panSlider->Connect( wxEVT_SCROLL_PAGEDOWN, wxScrollEventHandler( GUIDialog::OnPanScroll ), NULL, this );
259  panSlider->Connect( wxEVT_SCROLL_THUMBTRACK, wxScrollEventHandler( GUIDialog::OnPanScroll ), NULL, this );
260  panSlider->Connect( wxEVT_SCROLL_THUMBRELEASE, wxScrollEventHandler( GUIDialog::OnPanScroll ), NULL, this );
261  panSlider->Connect( wxEVT_SCROLL_CHANGED, wxScrollEventHandler( GUIDialog::OnPanScroll ), NULL, this );
262  panSpinner->Connect( wxEVT_COMMAND_SPINCTRL_UPDATED, wxSpinEventHandler( GUIDialog::OnPanSpin ), NULL, this );
263  panSpinner->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( GUIDialog::OnPanSpinText ), NULL, this );
264  tiltSlider->Connect( wxEVT_SCROLL_TOP, wxScrollEventHandler( GUIDialog::OnTiltScroll ), NULL, this );
265  tiltSlider->Connect( wxEVT_SCROLL_BOTTOM, wxScrollEventHandler( GUIDialog::OnTiltScroll ), NULL, this );
266  tiltSlider->Connect( wxEVT_SCROLL_LINEUP, wxScrollEventHandler( GUIDialog::OnTiltScroll ), NULL, this );
267  tiltSlider->Connect( wxEVT_SCROLL_LINEDOWN, wxScrollEventHandler( GUIDialog::OnTiltScroll ), NULL, this );
268  tiltSlider->Connect( wxEVT_SCROLL_PAGEUP, wxScrollEventHandler( GUIDialog::OnTiltScroll ), NULL, this );
269  tiltSlider->Connect( wxEVT_SCROLL_PAGEDOWN, wxScrollEventHandler( GUIDialog::OnTiltScroll ), NULL, this );
270  tiltSlider->Connect( wxEVT_SCROLL_THUMBTRACK, wxScrollEventHandler( GUIDialog::OnTiltScroll ), NULL, this );
271  tiltSlider->Connect( wxEVT_SCROLL_THUMBRELEASE, wxScrollEventHandler( GUIDialog::OnTiltScroll ), NULL, this );
272  tiltSlider->Connect( wxEVT_SCROLL_CHANGED, wxScrollEventHandler( GUIDialog::OnTiltScroll ), NULL, this );
273  tiltSpinner->Connect( wxEVT_COMMAND_SPINCTRL_UPDATED, wxSpinEventHandler( GUIDialog::OnTiltSpin ), NULL, this );
274  tiltSpinner->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( GUIDialog::OnTiltSpinText ), NULL, this );
275  immCheck->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( GUIDialog::OnImmChecked ), NULL, this );
276  listenCheck->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( GUIDialog::OnListenChecked ), NULL, this );
277  updateButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( GUIDialog::OnUpdateClicked ), NULL, this );
278 }
279 
281 {
282  // Disconnect Events
283  this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( GUIDialog::OnDialogClose ) );
284  leftImageTopic->Disconnect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( GUIDialog::OnLeftTopicChoice ), NULL, this );
285  rightImageTopic->Disconnect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( GUIDialog::OnRightTopicChoice ), NULL, this );
286  ptuChoice->Disconnect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( GUIDialog::OnPTUChoice ), NULL, this );
287  panSlider->Disconnect( wxEVT_SCROLL_TOP, wxScrollEventHandler( GUIDialog::OnPanScroll ), NULL, this );
288  panSlider->Disconnect( wxEVT_SCROLL_BOTTOM, wxScrollEventHandler( GUIDialog::OnPanScroll ), NULL, this );
289  panSlider->Disconnect( wxEVT_SCROLL_LINEUP, wxScrollEventHandler( GUIDialog::OnPanScroll ), NULL, this );
290  panSlider->Disconnect( wxEVT_SCROLL_LINEDOWN, wxScrollEventHandler( GUIDialog::OnPanScroll ), NULL, this );
291  panSlider->Disconnect( wxEVT_SCROLL_PAGEUP, wxScrollEventHandler( GUIDialog::OnPanScroll ), NULL, this );
292  panSlider->Disconnect( wxEVT_SCROLL_PAGEDOWN, wxScrollEventHandler( GUIDialog::OnPanScroll ), NULL, this );
293  panSlider->Disconnect( wxEVT_SCROLL_THUMBTRACK, wxScrollEventHandler( GUIDialog::OnPanScroll ), NULL, this );
294  panSlider->Disconnect( wxEVT_SCROLL_THUMBRELEASE, wxScrollEventHandler( GUIDialog::OnPanScroll ), NULL, this );
295  panSlider->Disconnect( wxEVT_SCROLL_CHANGED, wxScrollEventHandler( GUIDialog::OnPanScroll ), NULL, this );
296  panSpinner->Disconnect( wxEVT_COMMAND_SPINCTRL_UPDATED, wxSpinEventHandler( GUIDialog::OnPanSpin ), NULL, this );
297  panSpinner->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( GUIDialog::OnPanSpinText ), NULL, this );
298  tiltSlider->Disconnect( wxEVT_SCROLL_TOP, wxScrollEventHandler( GUIDialog::OnTiltScroll ), NULL, this );
299  tiltSlider->Disconnect( wxEVT_SCROLL_BOTTOM, wxScrollEventHandler( GUIDialog::OnTiltScroll ), NULL, this );
300  tiltSlider->Disconnect( wxEVT_SCROLL_LINEUP, wxScrollEventHandler( GUIDialog::OnTiltScroll ), NULL, this );
301  tiltSlider->Disconnect( wxEVT_SCROLL_LINEDOWN, wxScrollEventHandler( GUIDialog::OnTiltScroll ), NULL, this );
302  tiltSlider->Disconnect( wxEVT_SCROLL_PAGEUP, wxScrollEventHandler( GUIDialog::OnTiltScroll ), NULL, this );
303  tiltSlider->Disconnect( wxEVT_SCROLL_PAGEDOWN, wxScrollEventHandler( GUIDialog::OnTiltScroll ), NULL, this );
304  tiltSlider->Disconnect( wxEVT_SCROLL_THUMBTRACK, wxScrollEventHandler( GUIDialog::OnTiltScroll ), NULL, this );
305  tiltSlider->Disconnect( wxEVT_SCROLL_THUMBRELEASE, wxScrollEventHandler( GUIDialog::OnTiltScroll ), NULL, this );
306  tiltSlider->Disconnect( wxEVT_SCROLL_CHANGED, wxScrollEventHandler( GUIDialog::OnTiltScroll ), NULL, this );
307  tiltSpinner->Disconnect( wxEVT_COMMAND_SPINCTRL_UPDATED, wxSpinEventHandler( GUIDialog::OnTiltSpin ), NULL, this );
308  tiltSpinner->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( GUIDialog::OnTiltSpinText ), NULL, this );
309  immCheck->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( GUIDialog::OnImmChecked ), NULL, this );
310  listenCheck->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( GUIDialog::OnListenChecked ), NULL, this );
311  updateButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( GUIDialog::OnUpdateClicked ), NULL, this );
312 
313 }
314 
315 }
wxStaticLine * m_staticline2
Definition: GUI.h:61
wxStaticText * m_staticText3
Definition: GUI.h:62
wxPanel * cameraPanel
Definition: GUI.h:51
wxPanel * settingsPanel
Definition: GUI.h:56
wxImagePanel * rightPanel
Definition: GUI.h:55
wxSlider * panSlider
Definition: GUI.h:59
virtual void OnTiltSpin(wxSpinEvent &event)
Definition: GUI.h:112
#define ID_UPDATEIMMCHECKBOX
Definition: GUI.h:37
wxStaticText * m_staticText25
Definition: GUI.h:97
wxStaticText * panAngleLabel
Definition: GUI.h:58
wxSpinCtrl * tilt_min
Definition: GUI.h:71
virtual void OnImmChecked(wxCommandEvent &event)
Definition: GUI.h:114
wxStaticText * m_staticText20
Definition: GUI.h:87
#define ID_TILTSPINNER
Definition: GUI.h:36
wxStaticText * m_staticText14
Definition: GUI.h:81
wxStaticText * m_staticText15
Definition: GUI.h:83
#define ID_TILTSLIDER
Definition: GUI.h:35
wxSpinCtrl * pan_hold
Definition: GUI.h:84
#define ID_LEFTTOPICCHOICE
Definition: GUI.h:30
virtual void OnPTUChoice(wxCommandEvent &event)
Definition: GUI.h:107
wxSpinCtrl * tilt_hold
Definition: GUI.h:96
wxStaticText * m_staticText11
Definition: GUI.h:77
wxImagePanel * leftPanel
Definition: GUI.h:54
wxSpinCtrl * tilt_target
Definition: GUI.h:90
wxStaticText * m_staticText22
Definition: GUI.h:91
wxSpinCtrl * pan_move
Definition: GUI.h:86
wxSpinCtrl * tilt_accel
Definition: GUI.h:94
#define ID_PANSPINNER
Definition: GUI.h:34
wxStaticText * m_staticText13
Definition: GUI.h:79
wxSpinCtrl * tilt_upper
Definition: GUI.h:92
wxStaticText * m_staticText16
Definition: GUI.h:85
wxSpinCtrl * pan_max
Definition: GUI.h:65
wxSpinCtrl * pan_min
Definition: GUI.h:63
#define ID_PANSLIDER
Definition: GUI.h:33
wxStaticText * m_staticText21
Definition: GUI.h:89
wxButton * updateButton
Definition: GUI.h:101
wxStaticText * m_staticText6
Definition: GUI.h:72
wxSpinCtrl * panSpinner
Definition: GUI.h:60
virtual void OnPanSpin(wxSpinEvent &event)
Definition: GUI.h:109
wxStaticText * m_staticText4
Definition: GUI.h:64
wxSpinCtrl * tilt_move
Definition: GUI.h:98
#define ID_PTUCHOICE
Definition: GUI.h:32
wxStaticLine * m_staticline3
Definition: GUI.h:69
wxStaticText * tiltAngleLabel
Definition: GUI.h:66
#define ID_RIGHTTOPICCHOICE
Definition: GUI.h:31
wxComboBox * ptuChoice
Definition: GUI.h:57
wxStaticText * m_staticText23
Definition: GUI.h:93
wxStaticText * m_staticText24
Definition: GUI.h:95
virtual void OnDialogClose(wxCloseEvent &event)
Definition: GUI.h:104
virtual void OnPanScroll(wxScrollEvent &event)
Definition: GUI.h:108
Definition: GUI.h:41
virtual void OnTiltSpinText(wxCommandEvent &event)
Definition: GUI.h:113
wxSpinCtrl * pan_base
Definition: GUI.h:76
virtual void OnListenChecked(wxCommandEvent &event)
Definition: GUI.h:115
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)
Definition: GUI.cpp:14
wxComboBox * leftImageTopic
Definition: GUI.h:52
virtual void OnTiltScroll(wxScrollEvent &event)
Definition: GUI.h:111
virtual void OnRightTopicChoice(wxCommandEvent &event)
Definition: GUI.h:106
wxSpinCtrl * pan_target
Definition: GUI.h:78
#define ID_UPDATEBUTTON
Definition: GUI.h:39
wxCheckBox * immCheck
Definition: GUI.h:99
wxSpinCtrl * tiltSpinner
Definition: GUI.h:68
wxStaticText * m_staticText10
Definition: GUI.h:75
wxSlider * tiltSlider
Definition: GUI.h:67
wxSpinCtrl * tilt_max
Definition: GUI.h:73
wxSpinCtrl * tilt_base
Definition: GUI.h:88
virtual void OnUpdateClicked(wxCommandEvent &event)
Definition: GUI.h:116
wxStaticLine * settingsDivider
Definition: GUI.h:74
virtual void OnLeftTopicChoice(wxCommandEvent &event)
Definition: GUI.h:105
wxComboBox * rightImageTopic
Definition: GUI.h:53
wxSpinCtrl * pan_accel
Definition: GUI.h:82
wxStaticText * m_staticText5
Definition: GUI.h:70
wxCheckBox * listenCheck
Definition: GUI.h:100
wxSpinCtrl * pan_upper
Definition: GUI.h:80
#define ID_LISTENFORUPDATES
Definition: GUI.h:38
virtual void OnPanSpinText(wxCommandEvent &event)
Definition: GUI.h:110


asr_flir_ptu_driver
Author(s): Valerij Wittenbeck, Joachim Gehrung, Pascal Mei├čner, Patrick Schlosser
autogenerated on Mon Dec 2 2019 03:15:17