Merge branch 'next' into mhotar/modelsetup_items
Conflicts: radio/src/translations/en.h.txt radio/src/translations/fr.h.txt
This commit is contained in:
@@ -331,3 +331,6 @@ Francisco Gutierrez Muñoz
|
|||||||
Steve Coley
|
Steve Coley
|
||||||
Sean Cull
|
Sean Cull
|
||||||
Roberto Orsello
|
Roberto Orsello
|
||||||
|
David Finger
|
||||||
|
FrSky - www.frsky-rc.com
|
||||||
|
Jean-marie Oddo
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
#include "ui_downloaddialog.h"
|
#include "ui_downloaddialog.h"
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
#include <QtGui>
|
#include <QtGui>
|
||||||
|
#include <QTime>
|
||||||
#include "helpers.h"
|
#include "helpers.h"
|
||||||
|
|
||||||
downloadDialog::downloadDialog(QWidget *parent, QString src, QString tgt) :
|
downloadDialog::downloadDialog(QWidget *parent, QString src, QString tgt) :
|
||||||
@@ -87,3 +88,14 @@ void downloadDialog::fileError()
|
|||||||
file = 0;
|
file = 0;
|
||||||
reject();
|
reject();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void downloadDialog::closeEvent( QCloseEvent * event)
|
||||||
|
{
|
||||||
|
// Delay closing 2 seconds to avoid unpleasant flashing download dialogs
|
||||||
|
QTime closeTime= QTime::currentTime().addSecs(2);
|
||||||
|
while( QTime::currentTime() < closeTime )
|
||||||
|
QCoreApplication::processEvents(QEventLoop::AllEvents, 100);
|
||||||
|
|
||||||
|
event->accept();
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ private slots:
|
|||||||
void updateDataReadProgress(qint64 bytesRead, qint64 totalBytes);
|
void updateDataReadProgress(qint64 bytesRead, qint64 totalBytes);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
void closeEvent( QCloseEvent * event);
|
||||||
Ui::downloadDialog *ui;
|
Ui::downloadDialog *ui;
|
||||||
|
|
||||||
QNetworkAccessManager qnam;
|
QNetworkAccessManager qnam;
|
||||||
|
|||||||
@@ -222,7 +222,7 @@ void MainWindow::checkForUpdates(bool ignoreSettings, QString & fwId)
|
|||||||
|
|
||||||
if(ignoreSettings) {
|
if(ignoreSettings) {
|
||||||
downloadDialog_forWait = new downloadDialog(this, tr("Checking for updates"));
|
downloadDialog_forWait = new downloadDialog(this, tr("Checking for updates"));
|
||||||
downloadDialog_forWait->show();
|
downloadDialog_forWait->exec();
|
||||||
} else {
|
} else {
|
||||||
downloadDialog_forWait = NULL; // TODO needed?
|
downloadDialog_forWait = NULL; // TODO needed?
|
||||||
}
|
}
|
||||||
@@ -272,7 +272,7 @@ void MainWindow::checkForUpdateFinished(QNetworkReply * reply)
|
|||||||
downloadDialog * dd = new downloadDialog(this, QString(OPENTX_COMPANION_DOWNLOADS C9X_INSTALLER).arg(version), fileName);
|
downloadDialog * dd = new downloadDialog(this, QString(OPENTX_COMPANION_DOWNLOADS C9X_INSTALLER).arg(version), fileName);
|
||||||
installer_fileName = fileName;
|
installer_fileName = fileName;
|
||||||
connect(dd, SIGNAL(accepted()), this, SLOT(updateDownloaded()));
|
connect(dd, SIGNAL(accepted()), this, SLOT(updateDownloaded()));
|
||||||
dd->show();
|
dd->exec();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
|||||||
@@ -333,7 +333,7 @@
|
|||||||
#define TR_VSCREEN "Nums""Bars"
|
#define TR_VSCREEN "Nums""Bars"
|
||||||
|
|
||||||
#define LEN_GPSFORMAT "\004"
|
#define LEN_GPSFORMAT "\004"
|
||||||
#define TR_GPSFORMAT "HMS ""NMEA"
|
#define TR_GPSFORMAT "HMS NMEA"
|
||||||
|
|
||||||
#define LEN2_VTEMPLATES 13
|
#define LEN2_VTEMPLATES 13
|
||||||
#define LEN_VTEMPLATES "\015"
|
#define LEN_VTEMPLATES "\015"
|
||||||
@@ -455,8 +455,8 @@
|
|||||||
#define TR_ELIMITS TR("E.Limits", "Extended Limits")
|
#define TR_ELIMITS TR("E.Limits", "Extended Limits")
|
||||||
#define TR_ETRIMS TR("E.Trims", "Extended Trims")
|
#define TR_ETRIMS TR("E.Trims", "Extended Trims")
|
||||||
#define TR_TRIMINC "Trim Step"
|
#define TR_TRIMINC "Trim Step"
|
||||||
#define TR_TTRACE TR("T-Source", INDENT "Source")
|
#define TR_TTRACE TR("T-Source", "Throttle Source")
|
||||||
#define TR_TTRIM TR("T-Trim", INDENT "Idle Trim")
|
#define TR_TTRIM TR("T-Trim", "Throttle Trim")
|
||||||
#define TR_BEEPCTR TR("Ctr Beep", "Center Beep")
|
#define TR_BEEPCTR TR("Ctr Beep", "Center Beep")
|
||||||
#define TR_PROTO TR(INDENT "Proto", INDENT "Protocol")
|
#define TR_PROTO TR(INDENT "Proto", INDENT "Protocol")
|
||||||
#define TR_PPMFRAME TR("PPM frame", INDENT "PPM frame")
|
#define TR_PPMFRAME TR("PPM frame", INDENT "PPM frame")
|
||||||
@@ -529,9 +529,9 @@
|
|||||||
#define TR_BLONBRIGHTNESS INDENT"ON Brightness"
|
#define TR_BLONBRIGHTNESS INDENT"ON Brightness"
|
||||||
#define TR_BLOFFBRIGHTNESS INDENT"OFF Brightness"
|
#define TR_BLOFFBRIGHTNESS INDENT"OFF Brightness"
|
||||||
#define TR_SPLASHSCREEN "Splash screen"
|
#define TR_SPLASHSCREEN "Splash screen"
|
||||||
#define TR_THROTTLEWARNING TR("T-Warning", INDENT "Throttle State")
|
#define TR_THROTTLEWARNING TR("T-Warning","Throttle Warning")
|
||||||
#define TR_SWITCHWARNING TR("S-Warning", INDENT "Switch Position")
|
#define TR_SWITCHWARNING TR("S-Warning","Switch Warning")
|
||||||
#define TR_POTWARNING TR("Pot Warn.", INDENT "Pot Setup")
|
#define TR_POTWARNING TR("Pot Warn.","Pot Warning")
|
||||||
#define TR_TIMEZONE TR("Time Zone","GPS Time zone")
|
#define TR_TIMEZONE TR("Time Zone","GPS Time zone")
|
||||||
#define TR_RXCHANNELORD TR("Rx Channel Ord","Default channel order")
|
#define TR_RXCHANNELORD TR("Rx Channel Ord","Default channel order")
|
||||||
#define TR_SLAVE "Slave"
|
#define TR_SLAVE "Slave"
|
||||||
@@ -726,8 +726,7 @@
|
|||||||
#define TR_LOWALARM INDENT "Low Alarm"
|
#define TR_LOWALARM INDENT "Low Alarm"
|
||||||
#define TR_CRITICALALARM INDENT "Critical Alarm"
|
#define TR_CRITICALALARM INDENT "Critical Alarm"
|
||||||
#define TR_PERSISTENT_MAH INDENT "Store mAh"
|
#define TR_PERSISTENT_MAH INDENT "Store mAh"
|
||||||
#define TR_PREFLIGHT "Preflight Checks"
|
#define TR_CHECKLIST "Display Checklist"
|
||||||
#define TR_CHECKLIST INDENT "Display Checklist"
|
|
||||||
#define TR_FAS_OFFSET TR(INDENT "FAS Ofs", INDENT "FAS Offset")
|
#define TR_FAS_OFFSET TR(INDENT "FAS Ofs", INDENT "FAS Offset")
|
||||||
#define TR_UART3MODE "Serial port"
|
#define TR_UART3MODE "Serial port"
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,10 @@
|
|||||||
/*
|
/*
|
||||||
* Authors (alphabetical order)
|
* Authors (alphabetical order)
|
||||||
* - Andre Bernet <bernet.andre@gmail.com>
|
|
||||||
* - Bertrand Songis <bsongis@gmail.com>
|
* - Bertrand Songis <bsongis@gmail.com>
|
||||||
|
* - Bernet Andre <bernet.andre@gmail.com>
|
||||||
|
* - Kjell Kernen <kjell.kernen@gmail.com>
|
||||||
|
* - Martin Hotar <mhotar@gmail.com>
|
||||||
|
* - Romolo Manfredini <romolo.manfredini@gmail.com>
|
||||||
*
|
*
|
||||||
* opentx is based on code named
|
* opentx is based on code named
|
||||||
* gruvin9x by Bryan J. Rentoul: http://code.google.com/p/gruvin9x/,
|
* gruvin9x by Bryan J. Rentoul: http://code.google.com/p/gruvin9x/,
|
||||||
@@ -69,7 +72,7 @@
|
|||||||
#define TR_UART3MODES "OFF\0 ""Recopie S-Port\0""Debug\0 "
|
#define TR_UART3MODES "OFF\0 ""Recopie S-Port\0""Debug\0 "
|
||||||
|
|
||||||
#define LEN_POTTYPES "\017"
|
#define LEN_POTTYPES "\017"
|
||||||
#define TR_POTTYPES "Rien\0 ""Potentiomètre\0 ""Inter multi-pos"
|
#define TR_POTTYPES "Potentiomètre\0 ""Inter multi-pos"
|
||||||
|
|
||||||
#define LEN_DATETIME "\005"
|
#define LEN_DATETIME "\005"
|
||||||
#define TR_DATETIME "DATE:""HEURE"
|
#define TR_DATETIME "DATE:""HEURE"
|
||||||
@@ -261,22 +264,14 @@
|
|||||||
#define TR_FUNCSOUNDS TR("Bp1\0""Bp2\0""Bp3\0""Wrn1""Wrn2""Chee""Rata""Tick""Sirn""Ring""SciF""Robt""Chrp""Tada""Crck""Alrm", "Beep1 ""Beep2 ""Beep3 ""Warn1 ""Warn2 ""Cheep ""Ratata""Tick ""Siren ""Ring ""SciFi ""Robot ""Chirp ""Tada ""Crickt""AlmClk")
|
#define TR_FUNCSOUNDS TR("Bp1\0""Bp2\0""Bp3\0""Wrn1""Wrn2""Chee""Rata""Tick""Sirn""Ring""SciF""Robt""Chrp""Tada""Crck""Alrm", "Beep1 ""Beep2 ""Beep3 ""Warn1 ""Warn2 ""Cheep ""Ratata""Tick ""Siren ""Ring ""SciFi ""Robot ""Chirp ""Tada ""Crickt""AlmClk")
|
||||||
|
|
||||||
#define LEN_VTELEMCHNS "\004"
|
#define LEN_VTELEMCHNS "\004"
|
||||||
|
#if defined(PCBTARANIS)
|
||||||
#if defined(CPUARM)
|
#define TR_RSSI_0 "SWR\0"
|
||||||
#define TR_TELEM_RESERVE "[--]"
|
#define TR_RSSI_1 "RSSI"
|
||||||
#define TR_SWR "SWR\0"
|
|
||||||
#define TR_RX_BATT "RxBt"
|
|
||||||
#define TR_A3_A4 "A3\0 ""A4\0 "
|
|
||||||
#define TR_A3_A4_MIN "A3-\0""A4-\0"
|
|
||||||
#else
|
#else
|
||||||
#define TR_TELEM_RESERVE
|
#define TR_RSSI_0 "Tx\0 "
|
||||||
#define TR_SWR
|
#define TR_RSSI_1 "Rx\0 "
|
||||||
#define TR_RX_BATT
|
|
||||||
#define TR_A3_A4
|
|
||||||
#define TR_A3_A4_MIN
|
|
||||||
#endif
|
#endif
|
||||||
|
#define TR_VTELEMCHNS "---\0""Batt""Chr1""Chr2" TR_RSSI_0 TR_RSSI_1 "A1\0 ""A2\0 ""Alt\0""Rpm\0""Carb""T1\0 ""T2\0 ""Vit\0""Dist""AltG""Elem""Velm""Vfas""Cour""Cnsm""Puis""AccX""AccY""AccZ""Cap\0""VitV""VitA""dET\0""A1-\0""A2-\0""Alt-""Alt+""Rpm+""T1+\0""T2+\0""Vit+""Dst+""Elm-""Els-""Vfs-""Cur+""Pui+""Acc\0""Tmps"
|
||||||
#define TR_VTELEMCHNS "---\0""Batt""Chr1""Chr2" TR_SWR "Tx\0 ""Rx\0 " TR_RX_BATT "A1\0 ""A2\0 " TR_A3_A4 "Alt\0""Rpm\0""Carb""T1\0 ""T2\0 ""Vit\0""Dist""AltG""Elem""Velm""Vfas""Cour""Cnsm""Puis""AccX""AccY""AccZ""Cap\0""VitV""VitA""dET\0" TR_TELEM_RESERVE TR_TELEM_RESERVE TR_TELEM_RESERVE TR_TELEM_RESERVE TR_TELEM_RESERVE "A1-\0""A2-\0" TR_A3_A4_MIN "Alt-""Alt+""Rpm+""T1+\0""T2+\0""Vit+""Dst+""Elm-""Els-""Vfs-""Cur+""Pui+" TR_TELEM_RESERVE TR_TELEM_RESERVE TR_TELEM_RESERVE TR_TELEM_RESERVE TR_TELEM_RESERVE "Acc\0""Tmps"
|
|
||||||
|
|
||||||
#define LENGTH_UNIT_IMP "ft\0"
|
#define LENGTH_UNIT_IMP "ft\0"
|
||||||
#define SPEED_UNIT_IMP "mph"
|
#define SPEED_UNIT_IMP "mph"
|
||||||
@@ -287,16 +282,16 @@
|
|||||||
#define LEN_VUNITSSYSTEM TR("\006", "\012")
|
#define LEN_VUNITSSYSTEM TR("\006", "\012")
|
||||||
#define TR_VUNITSSYSTEM TR("Métr.\0""Impér.", "Métriques\0""Impériales")
|
#define TR_VUNITSSYSTEM TR("Métr.\0""Impér.", "Métriques\0""Impériales")
|
||||||
#define LEN_VTELEMUNIT_METR "\003"
|
#define LEN_VTELEMUNIT_METR "\003"
|
||||||
#define TR_VTELEMUNIT_METR "v\0 ""A\0 ""m/s""-\0 " SPEED_UNIT_METR LENGTH_UNIT_METR "@\0 ""%\0 ""mA\0""mAh""W\0 "
|
#define TR_VTELEMUNIT_METR "v\0 ""A\0 ""m/s""-\0 ""kmh""m\0 ""@\0 ""%\0 ""mA\0""mAh""W\0 "
|
||||||
#define LEN_VTELEMUNIT_IMP "\003"
|
#define LEN_VTELEMUNIT_IMP "\003"
|
||||||
#define TR_VTELEMUNIT_IMP "v\0 ""A\0 ""m/s""-\0 " SPEED_UNIT_IMP LENGTH_UNIT_IMP "@\0 ""%\0 ""mA\0""mAh""W\0 "
|
#define TR_VTELEMUNIT_IMP "v\0 ""A\0 ""m/s""-\0 ""kts""ft\0""@\0 ""%\0 ""mA\0""mAh""W\0 "
|
||||||
#else
|
#else
|
||||||
#if defined(IMPERIAL_UNITS)
|
#if defined(IMPERIAL_UNITS)
|
||||||
#define LENGTH_UNIT LENGTH_UNIT_IMP
|
#define LENGTH_UNIT "ft\0"
|
||||||
#define SPEED_UNIT SPEED_UNIT_IMP
|
#define SPEED_UNIT "kts"
|
||||||
#else
|
#else
|
||||||
#define LENGTH_UNIT LENGTH_UNIT_METR
|
#define LENGTH_UNIT "m\0 "
|
||||||
#define SPEED_UNIT SPEED_UNIT_METR
|
#define SPEED_UNIT "kmh"
|
||||||
#endif
|
#endif
|
||||||
#define LEN_VTELEMUNIT "\003"
|
#define LEN_VTELEMUNIT "\003"
|
||||||
#define TR_VTELEMUNIT "v\0 ""A\0 ""m/s""-\0 " SPEED_UNIT LENGTH_UNIT "@\0 ""%\0 ""mA\0""mAh""W\0 "
|
#define TR_VTELEMUNIT "v\0 ""A\0 ""m/s""-\0 " SPEED_UNIT LENGTH_UNIT "@\0 ""%\0 ""mA\0""mAh""W\0 "
|
||||||
@@ -319,7 +314,7 @@
|
|||||||
|
|
||||||
#define LEN_VARIOSRC "\005"
|
#define LEN_VARIOSRC "\005"
|
||||||
#if defined(FRSKY_SPORT)
|
#if defined(FRSKY_SPORT)
|
||||||
#define TR_VARIOSRC "Vario""A1\0 ""A2\0""dTE\0"
|
#define TR_VARIOSRC "Vario""A1\0 ""A2\0"
|
||||||
#else
|
#else
|
||||||
#define TR_VARIOSRC "Alti\0""Alti+""Vario""A1\0 ""A2\0"
|
#define TR_VARIOSRC "Alti\0""Alti+""Vario""A1\0 ""A2\0"
|
||||||
#endif
|
#endif
|
||||||
@@ -328,7 +323,7 @@
|
|||||||
#define TR_VSCREEN TR("Val.""Bars","Valeurs""Barres\0")
|
#define TR_VSCREEN TR("Val.""Bars","Valeurs""Barres\0")
|
||||||
|
|
||||||
#define LEN_GPSFORMAT "\004"
|
#define LEN_GPSFORMAT "\004"
|
||||||
#define TR_GPSFORMAT "DMS\0""NMEA"
|
#define TR_GPSFORMAT "DMS\0NMEA"
|
||||||
|
|
||||||
#define LEN2_VTEMPLATES 15
|
#define LEN2_VTEMPLATES 15
|
||||||
#define LEN_VTEMPLATES "\017"
|
#define LEN_VTEMPLATES "\017"
|
||||||
@@ -524,9 +519,9 @@
|
|||||||
#define TR_BLONBRIGHTNESS INDENT"Luminosité ON"
|
#define TR_BLONBRIGHTNESS INDENT"Luminosité ON"
|
||||||
#define TR_BLOFFBRIGHTNESS INDENT"Luminosité OFF"
|
#define TR_BLOFFBRIGHTNESS INDENT"Luminosité OFF"
|
||||||
#define TR_SPLASHSCREEN "Logo d'accueil"
|
#define TR_SPLASHSCREEN "Logo d'accueil"
|
||||||
#define TR_THROTTLEWARNING TR("Alerte gaz", INDENT "Alerte gaz")
|
#define TR_THROTTLEWARNING "Alerte gaz"
|
||||||
#define TR_SWITCHWARNING TR("Alerte int", INDENT "Alerte interrupt.")
|
#define TR_SWITCHWARNING TR("Alerte int","Alerte interrupt.")
|
||||||
#define TR_POTWARNING TR("Alerte pot", INDENT "Alerte potentiom.")
|
#define TR_POTWARNING TR("Alerte pot","Alerte potentiom.")
|
||||||
#define TR_TIMEZONE "Fuseau horaire"
|
#define TR_TIMEZONE "Fuseau horaire"
|
||||||
#define TR_RXCHANNELORD TR("Ordre voies RX","Ordre des voies préféré")
|
#define TR_RXCHANNELORD TR("Ordre voies RX","Ordre des voies préféré")
|
||||||
#define TR_SLAVE "Elève"
|
#define TR_SLAVE "Elève"
|
||||||
|
|||||||
Reference in New Issue
Block a user