Added action handler for Help->Getting Started option in Insight window help menu
This commit is contained in:
@@ -15,7 +15,6 @@ using Targets::TargetDescriptor;
|
|||||||
using Targets::TargetVariant;
|
using Targets::TargetVariant;
|
||||||
using Targets::TargetPackage;
|
using Targets::TargetPackage;
|
||||||
|
|
||||||
|
|
||||||
void InsightWindow::init(
|
void InsightWindow::init(
|
||||||
QApplication& application,
|
QApplication& application,
|
||||||
TargetDescriptor targetDescriptor,
|
TargetDescriptor targetDescriptor,
|
||||||
@@ -48,10 +47,12 @@ void InsightWindow::init(
|
|||||||
auto helpMenu = this->mainMenuBar->findChild<QMenu*>("help-menu");
|
auto helpMenu = this->mainMenuBar->findChild<QMenu*>("help-menu");
|
||||||
auto quitAction = fileMenu->findChild<QAction*>("close-insight");
|
auto quitAction = fileMenu->findChild<QAction*>("close-insight");
|
||||||
auto openReportIssuesUrlAction = helpMenu->findChild<QAction*>("open-report-issues-url");
|
auto openReportIssuesUrlAction = helpMenu->findChild<QAction*>("open-report-issues-url");
|
||||||
|
auto openGettingStartedUrlAction = helpMenu->findChild<QAction*>("open-getting-started-url");
|
||||||
auto openAboutWindowAction = helpMenu->findChild<QAction*>("open-about-dialogue");
|
auto openAboutWindowAction = helpMenu->findChild<QAction*>("open-about-dialogue");
|
||||||
|
|
||||||
connect(quitAction, &QAction::triggered, this, &InsightWindow::close);
|
connect(quitAction, &QAction::triggered, this, &InsightWindow::close);
|
||||||
connect(openReportIssuesUrlAction, &QAction::triggered, this, &InsightWindow::openReportIssuesUrl);
|
connect(openReportIssuesUrlAction, &QAction::triggered, this, &InsightWindow::openReportIssuesUrl);
|
||||||
|
connect(openGettingStartedUrlAction, &QAction::triggered, this, &InsightWindow::openGettingStartedUrl);
|
||||||
connect(openAboutWindowAction, &QAction::triggered, this, &InsightWindow::openAboutWindow);
|
connect(openAboutWindowAction, &QAction::triggered, this, &InsightWindow::openAboutWindow);
|
||||||
|
|
||||||
this->header = this->mainWindowWidget->findChild<QWidget*>("header");
|
this->header = this->mainWindowWidget->findChild<QWidget*>("header");
|
||||||
@@ -233,6 +234,10 @@ void InsightWindow::openReportIssuesUrl() {
|
|||||||
QDesktopServices::openUrl(url);
|
QDesktopServices::openUrl(url);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void InsightWindow::openGettingStartedUrl() {
|
||||||
|
QDesktopServices::openUrl(QUrl("https://bloom.oscillate.io/docs/getting-started"));
|
||||||
|
}
|
||||||
|
|
||||||
void InsightWindow::openAboutWindow() {
|
void InsightWindow::openAboutWindow() {
|
||||||
if (this->aboutWindowWidget == nullptr) {
|
if (this->aboutWindowWidget == nullptr) {
|
||||||
this->aboutWindowWidget = new AboutWindow(this->mainWindowWidget);
|
this->aboutWindowWidget = new AboutWindow(this->mainWindowWidget);
|
||||||
|
|||||||
@@ -88,6 +88,7 @@ namespace Bloom
|
|||||||
void onTargetIoPortsUpdate();
|
void onTargetIoPortsUpdate();
|
||||||
void close();
|
void close();
|
||||||
void openReportIssuesUrl();
|
void openReportIssuesUrl();
|
||||||
|
void openGettingStartedUrl();
|
||||||
void openAboutWindow();
|
void openAboutWindow();
|
||||||
void togglePinIoState(TargetPinWidget* pinWidget);
|
void togglePinIoState(TargetPinWidget* pinWidget);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user