1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-03-16 08:29:15 +01:00

Changed Help in help menu from displaying plugins to sending user to Wiki.

This commit is contained in:
Laura Sebesta 2012-04-19 19:10:42 -04:00
parent 0b7b86cd24
commit 73cafd742c
3 changed files with 9 additions and 1 deletions

View File

@ -49,6 +49,7 @@ const char * const GCS_VERSION_LONG = GCS_VERSION;
const char * const GCS_AUTHOR = "OpenPilot Project";
const char * const GCS_YEAR = "2011";
const char * const GCS_HELP = "http://wiki.openpilot.org";
#ifdef GCS_REVISION
const char * const GCS_REVISION_STR = STRINGIFY(GCS_REVISION);
#else

View File

@ -83,6 +83,7 @@
#include <QtGui/QWizard>
#include <QtGui/QToolButton>
#include <QtGui/QMessageBox>
#include <QDesktopServices>
/*
#ifdef Q_OS_UNIX
@ -731,7 +732,7 @@ void MainWindow::registerDefaultActions()
cmd = am->registerAction(tmpaction, Constants::G_HELP_HELP, m_globalContext);
mhelp->addAction(cmd, Constants::G_HELP_HELP);
tmpaction->setEnabled(true);
connect(tmpaction, SIGNAL(triggered()), this, SLOT(aboutPlugins()));
connect(tmpaction, SIGNAL(triggered()), this, SLOT(showHelp()));
// About sep
#ifndef Q_WS_MAC // doesn't have the "About" actions in the Help menu
@ -867,6 +868,11 @@ void MainWindow::applyTabBarSettings(QTabWidget::TabPosition pos, bool movable)
m_modeStack->setMovable(movable);
}
void MainWindow::showHelp()
{
QDesktopServices::openUrl( QUrl(Constants::GCS_HELP, QUrl::StrictMode) );
}
ActionManager *MainWindow::actionManager() const
{
return m_actionManager;

View File

@ -163,6 +163,7 @@ private slots:
void modeChanged(Core::IMode *mode);
void showUavGadgetMenus(bool show, bool hasSplitter);
void applyTabBarSettings(QTabWidget::TabPosition pos, bool movable);
void showHelp();
private:
void updateContextObject(IContext *context);