From ec0be32bc8f094efbb13916720f3ea7af320dc55 Mon Sep 17 00:00:00 2001 From: That One Seong Date: Sat, 6 Jul 2024 04:03:57 +0000 Subject: [PATCH] Help links added to menubar Just to make sure people actually read the fucking manuals, hyperlinks are added that link directly to both the OpenFIRE Enclosed Instruction Book (for general use) and the OpenFIRE Wiki (for Serial codes docs). --- guiwindow.cpp | 14 ++++++++++++++ guiwindow.h | 4 ++++ guiwindow.ui | 24 ++++++++++++++++++++++++ 3 files changed, 42 insertions(+) diff --git a/guiwindow.cpp b/guiwindow.cpp index b24c094..61a0848 100644 --- a/guiwindow.cpp +++ b/guiwindow.cpp @@ -33,6 +33,8 @@ #include #include #include +#include +#include // Currently loaded board object boardInfo_s board; @@ -2331,3 +2333,15 @@ void guiWindow::on_actionAbout_UI_triggered() about->setWindowFlags(Qt::MSWindowsFixedSizeDialogHint | Qt::WindowCloseButtonHint); about->show(); } + +void guiWindow::on_actionOpenFIRE_Documentation_triggered() +{ + QDesktopServices::openUrl(QUrl("https://github.com/TeamOpenFIRE/OpenFIRE-Firmware/blob/OpenFIRE-dev/SamcoEnhanced/README.md")); +} + + +void guiWindow::on_actionOpenFIRE_Serial_Usage_triggered() +{ + QDesktopServices::openUrl(QUrl("https://github.com/TeamOpenFIRE/OpenFIRE-Firmware/wiki")); +} + diff --git a/guiwindow.h b/guiwindow.h index 5af3ad8..7ad28f4 100644 --- a/guiwindow.h +++ b/guiwindow.h @@ -152,6 +152,10 @@ private slots: void on_blueLedTestBtn_clicked(); + void on_actionOpenFIRE_Documentation_triggered(); + + void on_actionOpenFIRE_Serial_Usage_triggered(); + private: Ui::guiWindow *ui; diff --git a/guiwindow.ui b/guiwindow.ui index 10cd758..2480f98 100644 --- a/guiwindow.ui +++ b/guiwindow.ui @@ -1540,6 +1540,14 @@ + + + Help + + + + + @@ -1552,6 +1560,22 @@ About OpenFIRE... + + + OpenFIRE Documentation... + + + Alt+D + + + + + OpenFIRE Serial Usage Docs... + + + Alt+S + +