diff --git a/GUI/coregui/Views/WelcomeView.cpp b/GUI/coregui/Views/WelcomeView.cpp index ebab66b38d95d86af2f83e634176d5acf2317d1f..0999fd9bff703e7e9638a726d6b905e2796267ce 100644 --- a/GUI/coregui/Views/WelcomeView.cpp +++ b/GUI/coregui/Views/WelcomeView.cpp @@ -135,7 +135,7 @@ void WelcomeView::onWebLinkClicked(const QUrl& url) void WelcomeView::onNewUser() { - QDesktopServices::openUrl(QUrl("http://www.bornagainproject.org")); + QDesktopServices::openUrl(QUrl("https://www.bornagainproject.org")); } void WelcomeView::updateRecentProjectPanel() diff --git a/GUI/coregui/mainwindow/aboutapplicationdialog.cpp b/GUI/coregui/mainwindow/aboutapplicationdialog.cpp index 5e564a432dca896d1d7cb68961d1d4722c62edb7..eb0b744b1c503a8f4cd1ebe0c8ce722005ef0869 100644 --- a/GUI/coregui/mainwindow/aboutapplicationdialog.cpp +++ b/GUI/coregui/mainwindow/aboutapplicationdialog.cpp @@ -111,8 +111,8 @@ QBoxLayout* AboutApplicationDialog::createTextLayout() // home page auto homepageLabel = createLinkLabel( - "Documentation at" - " <a href=\"http://www.bornagainproject.org\">www.bornagainproject.org</a>."); + "Homepage: " + " <a href=\"https://www.bornagainproject.org\">www.bornagainproject.org</a>."); homepageLabel->setFont(normalFont); // mailing list diff --git a/GUI/coregui/mainwindow/actionmanager.cpp b/GUI/coregui/mainwindow/actionmanager.cpp index c8105febb7f78b7b3b9ef817dfade8970f2c9d81..9f64a598402f5ee668071420e538e579434b2f26 100644 --- a/GUI/coregui/mainwindow/actionmanager.cpp +++ b/GUI/coregui/mainwindow/actionmanager.cpp @@ -25,10 +25,12 @@ #include "GUI/coregui/utils/qstringutils.h" #include "Views/JobView.h" #include "Views/SampleView.h" +#include <QDesktopServices> #include <QDir> #include <QMenuBar> #include <QSettings> #include <QShortcut> +#include <QUrl> ActionManager::ActionManager(MainWindow* parent) : QObject(parent) @@ -94,8 +96,14 @@ void ActionManager::createActions() m_exitAction->setStatusTip("Exit the application"); connect(m_exitAction, &QAction::triggered, m_mainWindow, &MainWindow::close); + // visit web doc action + m_webdocAction = new QAction("&Visit web docs", this); + m_webdocAction->setStatusTip("Open BornAgain documentation in default browser"); + connect(m_webdocAction, &QAction::triggered, this, + []() { QDesktopServices::openUrl(QUrl("https://www.bornagainproject.org/m")); }); + // about application action - m_aboutAction = new QAction("About &BornAgain", this); + m_aboutAction = new QAction("&About BornAgain", this); m_aboutAction->setStatusTip("About the application"); connect(m_aboutAction, &QAction::triggered, this, &ActionManager::onAboutApplication); } @@ -153,6 +161,7 @@ void ActionManager::createMenus() // Help Menu m_helpMenu = m_menuBar->addMenu("&Help"); + m_helpMenu->addAction(m_webdocAction); m_helpMenu->addAction(m_aboutAction); onCurrentViewChanged(); diff --git a/GUI/coregui/mainwindow/actionmanager.h b/GUI/coregui/mainwindow/actionmanager.h index 0e0668357958970a214942aa06c7801c1026decc..73904a0683f22bc0dac3a951302309bdc0080ef8 100644 --- a/GUI/coregui/mainwindow/actionmanager.h +++ b/GUI/coregui/mainwindow/actionmanager.h @@ -49,6 +49,7 @@ private: QAction* m_saveAction; QAction* m_saveAsAction; QAction* m_exitAction; + QAction* m_webdocAction; QAction* m_aboutAction; QMenuBar* m_menuBar;