| 1257 | } |
| 1258 | |
| 1259 | void MainWindow::on_actionMonitor_mode_triggered() |
| 1260 | { |
| 1261 | #ifdef ZMQ_FOUND |
| 1262 | QMessageBox::StandardButton res = QMessageBox::Ok; |
| 1263 | |
| 1264 | if( currentTabInfo()->scene()->nodes().size() > 0) |
| 1265 | { |
| 1266 | res = QMessageBox::warning(this, tr("Carefull!"), |
| 1267 | tr("If you switch to Monitor Mode, " |
| 1268 | "the current BehaviorTree in the Scene will be deleted"), |
| 1269 | QMessageBox::Cancel | QMessageBox::Ok, QMessageBox::Cancel); |
| 1270 | } |
| 1271 | if( res == QMessageBox::Ok) |
| 1272 | { |
| 1273 | currentTabInfo()->clearScene(); |
| 1274 | _monitor_widget->clear(); |
| 1275 | _current_mode = GraphicMode::MONITOR; |
| 1276 | updateCurrentMode(); |
| 1277 | } |
| 1278 | #endif |
| 1279 | } |
| 1280 | |
| 1281 | void MainWindow::on_actionReplay_mode_triggered() |
| 1282 | { |
nothing calls this directly
no test coverage detected