Added Documentation and Pinout links

This commit is contained in:
Chris Esposito 2019-01-28 11:33:59 +11:00
parent 57c7f5f61f
commit b0ac0cc645
3 changed files with 29 additions and 0 deletions

View File

@ -1,10 +1,13 @@
#include "mainwindow.h"
#include "uartstyledecoder.h"
#include "daqform.h"
#include <QDesktopServices>
namespace
{
constexpr uint32_t MAX_CONSOLE_BLOCK_COUNT = 512;
constexpr char kDocumentationUrl[] = "https://github.com/EspoTek/Labrador/wiki";
constexpr char kPinoutUrl[] = "https://github.com/EspoTek/Labrador/wiki/Pinout";
}
MainWindow::MainWindow(QWidget *parent) :
@ -2317,3 +2320,13 @@ void MainWindow::on_actionOdd_2_triggered()
{
ui->controller_iso->parity_CH2 = UartParity::Odd;
}
void MainWindow::on_actionDocumentation_triggered()
{
QDesktopServices::openUrl(QUrl(kDocumentationUrl, QUrl::TolerantMode));
}
void MainWindow::on_actionPinout_triggered()
{
QDesktopServices::openUrl(QUrl(kPinoutUrl, QUrl::TolerantMode));
}

View File

@ -209,6 +209,10 @@ private slots:
void on_actionOdd_2_triggered();
void on_actionDocumentation_triggered();
void on_actionPinout_triggered();
private:
//Generic Vars
Ui::MainWindow *ui;

View File

@ -1592,6 +1592,8 @@
<property name="title">
<string>Help</string>
</property>
<addaction name="actionDocumentation"/>
<addaction name="actionPinout"/>
<addaction name="actionFirmware_Recovery"/>
<addaction name="actionShow_Debug_Console"/>
<addaction name="actionAbout"/>
@ -2370,6 +2372,16 @@
<string>&amp;Odd</string>
</property>
</action>
<action name="actionPinout">
<property name="text">
<string>Pinout</string>
</property>
</action>
<action name="actionDocumentation">
<property name="text">
<string>Documentation</string>
</property>
</action>
</widget>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>