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 <QDesktopServices>
|
||||
#include <QDockWidget>
|
||||
#include <QFileDialog>
|
||||
#include <QMessageBox>
|
||||
#include <QProcess>
|
||||
#include <QProgressDialog>
|
||||
#include <QUrl>
|
||||
|
||||
extern const char* version;
|
||||
extern const char* revision;
|
||||
@ -272,6 +274,11 @@ void MainWindow::on_actionViewRestoreDefaults_triggered()
|
||||
actionViewShowMyReservedPortsOnly->setChecked(false);
|
||||
}
|
||||
|
||||
void MainWindow::on_actionHelpOnline_triggered()
|
||||
{
|
||||
QDesktopServices::openUrl(QUrl("http://ostinato.org/docs"));
|
||||
}
|
||||
|
||||
void MainWindow::on_actionHelpAbout_triggered()
|
||||
{
|
||||
QDialog *aboutDialog = new QDialog;
|
||||
|
@ -55,6 +55,7 @@ public slots:
|
||||
void on_actionSaveSession_triggered();
|
||||
void on_actionPreferences_triggered();
|
||||
void on_actionViewRestoreDefaults_triggered();
|
||||
void on_actionHelpOnline_triggered();
|
||||
void on_actionHelpAbout_triggered();
|
||||
|
||||
private slots:
|
||||
|
@ -31,6 +31,8 @@
|
||||
<property name="title" >
|
||||
<string>&Help</string>
|
||||
</property>
|
||||
<addaction name="actionHelpOnline" />
|
||||
<addaction name="separator" />
|
||||
<addaction name="actionHelpAbout" />
|
||||
<addaction name="actionAboutQt" />
|
||||
</widget>
|
||||
@ -101,6 +103,11 @@
|
||||
<string>Save Session ...</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionHelpOnline" >
|
||||
<property name="text" >
|
||||
<string>Help (Online)</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<resources>
|
||||
<include location="ostinato.qrc" />
|
||||
|
Loading…
Reference in New Issue
Block a user