Skip to content

Commit

Permalink
Help links added to menubar
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
SeongGino authored Jul 6, 2024
1 parent cf0b499 commit ec0be32
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
14 changes: 14 additions & 0 deletions guiwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
#include <QColorDialog>
#include <QInputDialog>
#include <QTimer>
#include <QDesktopServices>
#include <QUrl>

// Currently loaded board object
boardInfo_s board;
Expand Down Expand Up @@ -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"));
}

4 changes: 4 additions & 0 deletions guiwindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
24 changes: 24 additions & 0 deletions guiwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -1540,6 +1540,14 @@
</property>
<addaction name="actionAbout_UI"/>
</widget>
<widget class="QMenu" name="menuHelp">
<property name="title">
<string>Help</string>
</property>
<addaction name="actionOpenFIRE_Documentation"/>
<addaction name="actionOpenFIRE_Serial_Usage"/>
</widget>
<addaction name="menuHelp"/>
<addaction name="menuAbout"/>
</widget>
<widget class="QStatusBar" name="statusBar">
Expand All @@ -1552,6 +1560,22 @@
<string>About OpenFIRE...</string>
</property>
</action>
<action name="actionOpenFIRE_Documentation">
<property name="text">
<string>OpenFIRE Documentation...</string>
</property>
<property name="shortcut">
<string>Alt+D</string>
</property>
</action>
<action name="actionOpenFIRE_Serial_Usage">
<property name="text">
<string>OpenFIRE Serial Usage Docs...</string>
</property>
<property name="shortcut">
<string>Alt+S</string>
</property>
</action>
</widget>
<resources>
<include location="vectors.qrc"/>
Expand Down

0 comments on commit ec0be32

Please sign in to comment.