Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Append real-time tomography user manual to help documents #2259

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
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