MCPcopy Create free account
hub / github.com/BehaviorTree/Groot / on_actionMonitor_mode_triggered

Method on_actionMonitor_mode_triggered

bt_editor/mainwindow.cpp:1259–1279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1257}
1258
1259void 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
1281void MainWindow::on_actionReplay_mode_triggered()
1282{

Callers

nothing calls this directly

Calls 3

sceneMethod · 0.80
clearSceneMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected