mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-10 18: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",
|
"ImportExportPlugin.ImportExport",
|
||||||
QList<int>() <<
|
QList<int>() <<
|
||||||
Core::Constants::C_GLOBAL_ID);
|
Core::Constants::C_GLOBAL_ID);
|
||||||
cmd->setDefaultKeySequence(QKeySequence("Ctrl+I"));
|
cmd->setDefaultKeySequence(QKeySequence("Ctrl+S"));
|
||||||
cmd->action()->setText(tr("GCS Settings Import/Export..."));
|
cmd->action()->setText(tr("GCS Settings Import/Export..."));
|
||||||
|
|
||||||
// ac->menu()->addSeparator();
|
// ac->menu()->addSeparator();
|
||||||
|
@ -44,6 +44,10 @@ ImportSummaryDialog::ImportSummaryDialog( QWidget *parent) :
|
|||||||
|
|
||||||
connect( ui->closeButton, SIGNAL(clicked()), this, SLOT(close()));
|
connect( ui->closeButton, SIGNAL(clicked()), this, SLOT(close()));
|
||||||
connect(ui->saveToFlash, SIGNAL(clicked()), this, SLOT(doTheSaving()));
|
connect(ui->saveToFlash, SIGNAL(clicked()), this, SLOT(doTheSaving()));
|
||||||
|
|
||||||
|
// Connect the help button
|
||||||
|
connect(ui->helpButton, SIGNAL(clicked()), this, SLOT(openHelp()));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ImportSummaryDialog::~ImportSummaryDialog()
|
ImportSummaryDialog::~ImportSummaryDialog()
|
||||||
@ -51,6 +55,14 @@ ImportSummaryDialog::~ImportSummaryDialog()
|
|||||||
delete ui;
|
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
|
Adds a new line about a UAVObject along with its status
|
||||||
(whether it got saved OK or not)
|
(whether it got saved OK or not)
|
||||||
|
@ -29,6 +29,8 @@
|
|||||||
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
#include <QCheckBox>
|
#include <QCheckBox>
|
||||||
|
#include <QDesktopServices>
|
||||||
|
#include <QUrl>
|
||||||
#include "ui_importsummarydialog.h"
|
#include "ui_importsummarydialog.h"
|
||||||
#include "uavdataobject.h"
|
#include "uavdataobject.h"
|
||||||
#include "uavobjectmanager.h"
|
#include "uavobjectmanager.h"
|
||||||
@ -62,6 +64,7 @@ public slots:
|
|||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void doTheSaving();
|
void doTheSaving();
|
||||||
|
void openHelp();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -69,7 +69,7 @@
|
|||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="pushButton_3">
|
<widget class="QPushButton" name="helpButton">
|
||||||
<property name="maximumSize">
|
<property name="maximumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>32</width>
|
<width>32</width>
|
||||||
|
@ -88,6 +88,7 @@ bool UAVSettingsImportExportPlugin::initialize(const QStringList& args, QString
|
|||||||
"UAVSettingsImportExportPlugin.UAVSettingsImport",
|
"UAVSettingsImportExportPlugin.UAVSettingsImport",
|
||||||
QList<int>() <<
|
QList<int>() <<
|
||||||
Core::Constants::C_GLOBAL_ID);
|
Core::Constants::C_GLOBAL_ID);
|
||||||
|
cmd->setDefaultKeySequence(QKeySequence("Ctrl+I"));
|
||||||
cmd->action()->setText(tr("Import UAV Settings..."));
|
cmd->action()->setText(tr("Import UAV Settings..."));
|
||||||
ac->addAction(cmd, Core::Constants::G_FILE_SAVE);
|
ac->addAction(cmd, Core::Constants::G_FILE_SAVE);
|
||||||
connect(cmd->action(), SIGNAL(triggered(bool)), this, SLOT(importUAVSettings()));
|
connect(cmd->action(), SIGNAL(triggered(bool)), this, SLOT(importUAVSettings()));
|
||||||
|
Loading…
Reference in New Issue
Block a user