diff --git a/src/propelleride/forms/mainwindow.ui b/src/propelleride/forms/mainwindow.ui index 34b6df4..af85f90 100644 --- a/src/propelleride/forms/mainwindow.ui +++ b/src/propelleride/forms/mainwindow.ui @@ -132,6 +132,8 @@ + + @@ -860,6 +862,15 @@ Ctrl+P + + + + :/icons/help-manual.png:/icons/help-manual.png + + + Prop&BASIC Manual + + diff --git a/src/propelleride/mainwindow.cpp b/src/propelleride/mainwindow.cpp index 263d496..b3c2163 100644 --- a/src/propelleride/mainwindow.cpp +++ b/src/propelleride/mainwindow.cpp @@ -124,6 +124,7 @@ MainWindow::MainWindow(QWidget *parent) connect(ui.actionPropeller_Quick_Reference, SIGNAL(triggered()), this, SLOT(propellerQuickReference())); connect(ui.actionPropeller_Datasheet, SIGNAL(triggered()), this, SLOT(propellerDatasheet())); connect(ui.actionPropeller_Manual, SIGNAL(triggered()), this, SLOT(propellerManual())); + connect(ui.actionPropBASIC_Manual, SIGNAL(triggered()), this, SLOT(propBasicManual())); connect(ui.action_About, SIGNAL(triggered()), this, SLOT(about())); // Toolbar Extras @@ -804,7 +805,7 @@ void MainWindow::openFileResource(QString const & resource) if (QFileInfo(path).exists() && QFileInfo(path).isFile()) QDesktopServices::openUrl(QUrl::fromLocalFile(path)); else - qDebug() << "File not found:" << path; + qCritical() << "File not found:" << path; } void MainWindow::propellerManual() @@ -822,6 +823,11 @@ void MainWindow::propellerQuickReference() openFileResource("/doc/pdf/QuickReference-v15.pdf"); } +void MainWindow::propBasicManual() +{ + openFileResource("/doc/pdf/PropBASIC.pdf"); +} + void MainWindow::about() { QDialog * about = new QDialog(); diff --git a/src/propelleride/mainwindow.h b/src/propelleride/mainwindow.h index b35e98b..2a5191d 100644 --- a/src/propelleride/mainwindow.h +++ b/src/propelleride/mainwindow.h @@ -81,6 +81,7 @@ public slots: void propellerManual(); void propellerDatasheet(); void propellerQuickReference(); + void propBasicManual(); void about(); void newFromTemplate();