29 : QWidget(parent), m_currentFrame(1), m_numberFrames(0), m_robotTrajectoryAvailable(false)
49 return QSize(250, 180);
68 if(!available)
ui.followTrajectoryButton->setChecked(
false);
69 ui.followTrajectoryButton->setEnabled(available);
121 if(
ui.playScanButton->isChecked()) {
122 ui.scanProgressSlider->setEnabled(
false);
123 ui.followGroupBox->setEnabled(
false);
126 ui.scanProgressSlider->setEnabled(
true);
127 ui.followGroupBox->setEnabled(
true);
138 ui.followGroupBox->setEnabled(
true);
139 ui.scanProgressSlider->setEnabled(
true);
140 ui.playScanButton->setChecked(
false);
149 ui.scanProgressSlider->setMaximum(max);
150 ui.scanProgressSlider->setMinimum(1);
152 if(
ui.playScanButton->isChecked()) {
153 ui.firstScanButton->setEnabled(
false);
154 ui.nextScanButton->setEnabled(
false);
155 ui.previousScanButton->setEnabled(
false);
156 ui.lastScanButton->setEnabled(
false);
159 ui.nextScanButton->setEnabled(
false);
160 ui.playScanButton->setEnabled(
false);
161 ui.lastScanButton->setEnabled(
false);
163 ui.nextScanButton->setEnabled(
true);
164 ui.playScanButton->setEnabled(
true);
165 ui.lastScanButton->setEnabled(
true);
169 ui.firstScanButton->setEnabled(cur > 0);
170 ui.previousScanButton->setEnabled(
false);
172 ui.firstScanButton->setEnabled(
true);
173 ui.previousScanButton->setEnabled(
true);
177 ui.playScanButton->setEnabled(
true);
179 ui.playScanButton->setEnabled(
false);
184 ui.cameraPathAdd->setEnabled(
false);
185 ui.cameraPathRemove->setEnabled(
false);
186 ui.cameraPathSave->setEnabled(
false);
187 ui.cameraPathClear->setEnabled(
false);
189 ui.cameraPathAdd->setEnabled(
true);
195 if(max > 0 && !
ui.playScanButton->isChecked()) {
196 ui.scanProgressSlider->setEnabled(
true);
198 ui.scanProgressSlider->setEnabled(
false);
201 ui.scanProgressSlider->setValue(cur);
202 ui.scanProgressLabel->setText(QString(
"%1/%2").arg(cur).arg(max));
205 ui.scanProgressSlider->update();
210 return ui.followTrajectoryButton->isChecked();