Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added docs/RealTimeTomographyManual.pdf
Binary file not shown.
18 changes: 18 additions & 0 deletions tomviz/MainWindow.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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)");
Expand Down Expand Up @@ -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/"
Expand Down
1 change: 1 addition & 0 deletions tomviz/MainWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ private slots:
void openDataLink();
void openReadTheDocs();
void openUserGuide();
void openRealTimeManual();
void openVisIntro();

/// Change the active data source in the UI.
Expand Down