mirror of https://github.com/EspoTek/Labrador.git
Added Documentation and Pinout links
This commit is contained in:
parent
57c7f5f61f
commit
b0ac0cc645
|
@ -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));
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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>&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>
|
||||
|
|
Loading…
Reference in New Issue