Skip to content

Commit

Permalink
software/talipot: Cleanup Help menu
Browse files Browse the repository at this point in the history
  • Loading branch information
anlambert committed Oct 20, 2019
1 parent 1023bf5 commit 529b7a4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
3 changes: 1 addition & 2 deletions software/talipot/designer/TalipotMainWindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -1492,11 +1492,10 @@ border-image: url(:/talipot/app/ui/panel_button_hover.png) 2 2 2 19
<string>&amp;Help</string>
</property>
<addaction name="actionShowUserDocumentation"/>
<addaction name="actionShowDevelDocumentation"/>
<addaction name="actionShowAPIDocumentation"/>
<addaction name="actionShowPythonDocumentation"/>
<addaction name="actionAbout_us"/>
<addaction name="actionPlugins_Center"/>
<addaction name="actionAbout_us"/>
</widget>
<widget class="QMenu" name="menuFile">
<property name="title">
Expand Down
1 change: 0 additions & 1 deletion software/talipot/include/TalipotMainWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ public slots:
void showLogger();
void showAPIDocumentation();
void showUserDocumentation();
void showDevelDocumentation();
void showPythonDocumentation();

void redrawPanels(bool center = false);
Expand Down
10 changes: 0 additions & 10 deletions software/talipot/src/TalipotMainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,6 @@ TalipotMainWindow::TalipotMainWindow()
setToolTipWithCtrlShortcut(_ui->actionPreferences, "Show Talipot preferences dialog", ",");
setToolTipWithCtrlShortcut(_ui->actionShowUserDocumentation,
"Display the User handbook in a navigator", "?");
setToolTipWithCtrlShortcut(_ui->actionShowDevelDocumentation,
"Display the Developer handbook in a navigator", "D");
setToolTipWithCtrlShortcut(_ui->actionShowPythonDocumentation,
"Display the Talipot python documentation in a navigator", "P");
setToolTipWithCtrlShortcut(_ui->actionMessages_log, "Show the message log", "M");
Expand Down Expand Up @@ -414,13 +412,10 @@ TalipotMainWindow::TalipotMainWindow()
.exists()) {
connect(_ui->actionShowUserDocumentation, SIGNAL(triggered()), this,
SLOT(showUserDocumentation()));
connect(_ui->actionShowDevelDocumentation, SIGNAL(triggered()), this,
SLOT(showDevelDocumentation()));
connect(_ui->actionShowPythonDocumentation, SIGNAL(triggered()), this,
SLOT(showPythonDocumentation()));
} else {
_ui->actionShowUserDocumentation->setVisible(false);
_ui->actionShowDevelDocumentation->setVisible(false);
_ui->actionShowPythonDocumentation->setVisible(false);
}

Expand Down Expand Up @@ -1614,11 +1609,6 @@ void TalipotMainWindow::showUserDocumentation() {
"../doc/talipot/talipot-user/html/index.html"));
}

void TalipotMainWindow::showDevelDocumentation() {
QDesktopServices::openUrl(QUrl::fromLocalFile(tlpStringToQString(tlp::TalipotShareDir) +
"../doc/talipot/talipot-dev/html/index.html"));
}

void TalipotMainWindow::showPythonDocumentation() {
QDesktopServices::openUrl(QUrl::fromLocalFile(tlpStringToQString(tlp::TalipotShareDir) +
"../doc/talipot/talipot-python/html/index.html"));
Expand Down

0 comments on commit 529b7a4

Please sign in to comment.