diff --git a/docs/RealTimeTomographyManual.pdf b/docs/RealTimeTomographyManual.pdf new file mode 100644 index 000000000..e78702067 Binary files /dev/null and b/docs/RealTimeTomographyManual.pdf differ diff --git a/tomviz/MainWindow.cxx b/tomviz/MainWindow.cxx index 63c60c576..5021357be 100644 --- a/tomviz/MainWindow.cxx +++ b/tomviz/MainWindow.cxx @@ -494,6 +494,9 @@ MainWindow::MainWindow(QWidget* parent, Qt::WindowFlags flags) connect(userGuideAction, SIGNAL(triggered()), SLOT(openUserGuide())); QAction* introAction = m_ui->menuHelp->addAction("Intro to 3D Visualization"); connect(introAction, SIGNAL(triggered()), SLOT(openVisIntro())); + QAction* realTimeAction = + m_ui->menuHelp->addAction("Real-Time Tomography User Manual"); + connect(realTimeAction, SIGNAL(triggered()), SLOT(openRealTimeManual())); #ifdef TOMVIZ_DATA QAction* reconAction = sampleDataMenu->addAction("Star Nanoparticle (Reconstruction)"); @@ -728,6 +731,21 @@ void MainWindow::openUserGuide() } } +void MainWindow::openRealTimeManual() +{ + QString path = QApplication::applicationDirPath() + + "/../share/tomviz/docs/RealTimeTomographyManual.pdf"; + QFileInfo info(path); + if (info.exists()) { + QUrl realTimeUrl = QUrl::fromLocalFile(path); + openUrl(realTimeUrl); + } else { + QMessageBox::warning( + this, "User Guide not found", + QString("The user guide \"%1\" was not found.").arg(path)); + } +} + void MainWindow::openVisIntro() { QString link = "https://www.cambridge.org/core/journals/microscopy-today/" diff --git a/tomviz/MainWindow.h b/tomviz/MainWindow.h index 8bacf2514..cc4950f8a 100644 --- a/tomviz/MainWindow.h +++ b/tomviz/MainWindow.h @@ -53,6 +53,7 @@ private slots: void openDataLink(); void openReadTheDocs(); void openUserGuide(); + void openRealTimeManual(); void openVisIntro(); /// Change the active data source in the UI.