mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-02 10:24:11 +01:00
Merge branch 'master' into bugfix-ground
This commit is contained in:
commit
81b29c2b51
@ -63,7 +63,7 @@ bool ImportExportPlugin::initialize(const QStringList& args, QString *errMsg)
|
||||
"ImportExportPlugin.ImportExport",
|
||||
QList<int>() <<
|
||||
Core::Constants::C_GLOBAL_ID);
|
||||
cmd->setDefaultKeySequence(QKeySequence("Ctrl+I"));
|
||||
cmd->setDefaultKeySequence(QKeySequence("Ctrl+S"));
|
||||
cmd->action()->setText(tr("GCS Settings Import/Export..."));
|
||||
|
||||
// ac->menu()->addSeparator();
|
||||
|
@ -44,6 +44,10 @@ ImportSummaryDialog::ImportSummaryDialog( QWidget *parent) :
|
||||
|
||||
connect( ui->closeButton, SIGNAL(clicked()), this, SLOT(close()));
|
||||
connect(ui->saveToFlash, SIGNAL(clicked()), this, SLOT(doTheSaving()));
|
||||
|
||||
// Connect the help button
|
||||
connect(ui->helpButton, SIGNAL(clicked()), this, SLOT(openHelp()));
|
||||
|
||||
}
|
||||
|
||||
ImportSummaryDialog::~ImportSummaryDialog()
|
||||
@ -51,6 +55,14 @@ ImportSummaryDialog::~ImportSummaryDialog()
|
||||
delete ui;
|
||||
}
|
||||
|
||||
/*
|
||||
Open the right page on the wiki
|
||||
*/
|
||||
void ImportSummaryDialog::openHelp()
|
||||
{
|
||||
QDesktopServices::openUrl( QUrl("http://wiki.openpilot.org/display/Doc/UAV+Settings+import-export", QUrl::StrictMode) );
|
||||
}
|
||||
|
||||
/*
|
||||
Adds a new line about a UAVObject along with its status
|
||||
(whether it got saved OK or not)
|
||||
|
@ -29,6 +29,8 @@
|
||||
|
||||
#include <QDialog>
|
||||
#include <QCheckBox>
|
||||
#include <QDesktopServices>
|
||||
#include <QUrl>
|
||||
#include "ui_importsummarydialog.h"
|
||||
#include "uavdataobject.h"
|
||||
#include "uavobjectmanager.h"
|
||||
@ -62,6 +64,7 @@ public slots:
|
||||
|
||||
private slots:
|
||||
void doTheSaving();
|
||||
void openHelp();
|
||||
|
||||
};
|
||||
|
||||
|
@ -69,7 +69,7 @@
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="pushButton_3">
|
||||
<widget class="QPushButton" name="helpButton">
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>32</width>
|
||||
|
@ -88,6 +88,7 @@ bool UAVSettingsImportExportPlugin::initialize(const QStringList& args, QString
|
||||
"UAVSettingsImportExportPlugin.UAVSettingsImport",
|
||||
QList<int>() <<
|
||||
Core::Constants::C_GLOBAL_ID);
|
||||
cmd->setDefaultKeySequence(QKeySequence("Ctrl+I"));
|
||||
cmd->action()->setText(tr("Import UAV Settings..."));
|
||||
ac->addAction(cmd, Core::Constants::G_FILE_SAVE);
|
||||
connect(cmd->action(), SIGNAL(triggered(bool)), this, SLOT(importUAVSettings()));
|
||||
|
Loading…
Reference in New Issue
Block a user