Added Help menu item to point to online documentation
This commit is contained in:
parent
75efed5ec4
commit
0ab84e581d
@ -34,11 +34,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
|
|||||||
|
|
||||||
#include "fileformat.pb.h"
|
#include "fileformat.pb.h"
|
||||||
|
|
||||||
|
#include <QDesktopServices>
|
||||||
#include <QDockWidget>
|
#include <QDockWidget>
|
||||||
#include <QFileDialog>
|
#include <QFileDialog>
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
#include <QProcess>
|
#include <QProcess>
|
||||||
#include <QProgressDialog>
|
#include <QProgressDialog>
|
||||||
|
#include <QUrl>
|
||||||
|
|
||||||
extern const char* version;
|
extern const char* version;
|
||||||
extern const char* revision;
|
extern const char* revision;
|
||||||
@ -272,6 +274,11 @@ void MainWindow::on_actionViewRestoreDefaults_triggered()
|
|||||||
actionViewShowMyReservedPortsOnly->setChecked(false);
|
actionViewShowMyReservedPortsOnly->setChecked(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MainWindow::on_actionHelpOnline_triggered()
|
||||||
|
{
|
||||||
|
QDesktopServices::openUrl(QUrl("http://ostinato.org/docs"));
|
||||||
|
}
|
||||||
|
|
||||||
void MainWindow::on_actionHelpAbout_triggered()
|
void MainWindow::on_actionHelpAbout_triggered()
|
||||||
{
|
{
|
||||||
QDialog *aboutDialog = new QDialog;
|
QDialog *aboutDialog = new QDialog;
|
||||||
|
@ -55,6 +55,7 @@ public slots:
|
|||||||
void on_actionSaveSession_triggered();
|
void on_actionSaveSession_triggered();
|
||||||
void on_actionPreferences_triggered();
|
void on_actionPreferences_triggered();
|
||||||
void on_actionViewRestoreDefaults_triggered();
|
void on_actionViewRestoreDefaults_triggered();
|
||||||
|
void on_actionHelpOnline_triggered();
|
||||||
void on_actionHelpAbout_triggered();
|
void on_actionHelpAbout_triggered();
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
@ -31,6 +31,8 @@
|
|||||||
<property name="title" >
|
<property name="title" >
|
||||||
<string>&Help</string>
|
<string>&Help</string>
|
||||||
</property>
|
</property>
|
||||||
|
<addaction name="actionHelpOnline" />
|
||||||
|
<addaction name="separator" />
|
||||||
<addaction name="actionHelpAbout" />
|
<addaction name="actionHelpAbout" />
|
||||||
<addaction name="actionAboutQt" />
|
<addaction name="actionAboutQt" />
|
||||||
</widget>
|
</widget>
|
||||||
@ -101,6 +103,11 @@
|
|||||||
<string>Save Session ...</string>
|
<string>Save Session ...</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
|
<action name="actionHelpOnline" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>Help (Online)</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
</widget>
|
</widget>
|
||||||
<resources>
|
<resources>
|
||||||
<include location="ostinato.qrc" />
|
<include location="ostinato.qrc" />
|
||||||
|
Loading…
Reference in New Issue
Block a user