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:
parent
0b7b86cd24
commit
73cafd742c
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user