Merge branch 'origin/next'
This commit is contained in:
@@ -299,3 +299,4 @@ Heinz Vogel
|
|||||||
Heung Jin Choi
|
Heung Jin Choi
|
||||||
MMJS van der Helm
|
MMJS van der Helm
|
||||||
Dan Neelands
|
Dan Neelands
|
||||||
|
Yashiro Masayuki
|
||||||
|
|||||||
@@ -1038,7 +1038,7 @@ void compareDialog::printSwitches()
|
|||||||
int sc=0;
|
int sc=0;
|
||||||
QString color;
|
QString color;
|
||||||
QString str = "<table border=1 cellspacing=0 cellpadding=3 width=\"100%\">";
|
QString str = "<table border=1 cellspacing=0 cellpadding=3 width=\"100%\">";
|
||||||
str.append("<tr><td><h2>"+tr("Custom Switches")+"</h2></td></tr>");
|
str.append("<tr><td><h2>"+tr("Logical Switches")+"</h2></td></tr>");
|
||||||
str.append("<tr><td><table border=1 cellspacing=0 cellpadding=1 width=\"100%\">");
|
str.append("<tr><td><table border=1 cellspacing=0 cellpadding=1 width=\"100%\">");
|
||||||
for (int i=0; i<GetEepromInterface()->getCapability(CustomSwitches); i++) {
|
for (int i=0; i<GetEepromInterface()->getCapability(CustomSwitches); i++) {
|
||||||
QString sw1 = getCustomSwitchStr(&g_model1->customSw[i], *g_model1);
|
QString sw1 = getCustomSwitchStr(&g_model1->customSw[i], *g_model1);
|
||||||
@@ -1048,9 +1048,9 @@ void compareDialog::printSwitches()
|
|||||||
color=getColor1(sw1,sw2);
|
color=getColor1(sw1,sw2);
|
||||||
str.append(QString("<td width=\"45%\"><font color=%1>").arg(color)+sw1+"</font></td>");
|
str.append(QString("<td width=\"45%\"><font color=%1>").arg(color)+sw1+"</font></td>");
|
||||||
if (i<9) {
|
if (i<9) {
|
||||||
str.append("<td align=\"center\" width=\"10%\"><b>"+tr("CS")+QString("%1</b></td>").arg(i+1));
|
str.append("<td align=\"center\" width=\"10%\"><b>"+tr("LS")+QString("%1</b></td>").arg(i+1));
|
||||||
} else {
|
} else {
|
||||||
str.append("<td align=\"center\" width=\"10%\"><b>"+tr("CS")+('A'+(i-9))+"</b></td>");
|
str.append("<td align=\"center\" width=\"10%\"><b>"+tr("LS")+('A'+(i-9))+"</b></td>");
|
||||||
}
|
}
|
||||||
color=getColor2(sw1,sw2);
|
color=getColor2(sw1,sw2);
|
||||||
str.append(QString("<td width=\"45%\"><font color=%1>").arg(color)+sw2+"</font></td>");
|
str.append(QString("<td width=\"45%\"><font color=%1>").arg(color)+sw2+"</font></td>");
|
||||||
@@ -1069,7 +1069,7 @@ void compareDialog::printFSwitches()
|
|||||||
QString color2;
|
QString color2;
|
||||||
int sc=0;
|
int sc=0;
|
||||||
QString str = "<table border=1 cellspacing=0 cellpadding=3 style=\"page-break-before:always;\" width=\"100%\">";
|
QString str = "<table border=1 cellspacing=0 cellpadding=3 style=\"page-break-before:always;\" width=\"100%\">";
|
||||||
str.append("<tr><td><h2>"+tr("Custom Functions")+"</h2></td></tr>");
|
str.append("<tr><td><h2>"+tr("Switch Assignment")+"</h2></td></tr>");
|
||||||
str.append("<tr><td><table border=1 cellspacing=0 cellpadding=1 width=\"100%\"><tr>");
|
str.append("<tr><td><table border=1 cellspacing=0 cellpadding=1 width=\"100%\"><tr>");
|
||||||
str.append("<td width=\"7%\" align=\"center\"><b>"+tr("Switch")+"</b></td>");
|
str.append("<td width=\"7%\" align=\"center\"><b>"+tr("Switch")+"</b></td>");
|
||||||
str.append("<td width=\"12%\" align=\"center\"><b>"+tr("Function")+"</b></td>");
|
str.append("<td width=\"12%\" align=\"center\"><b>"+tr("Function")+"</b></td>");
|
||||||
|
|||||||
@@ -90,15 +90,6 @@ CustomFunctionsPanel::CustomFunctionsPanel(QWidget * parent, ModelData & model,
|
|||||||
for (int i=0; i<num_fsw; i++) {
|
for (int i=0; i<num_fsw; i++) {
|
||||||
AssignFunc func = model.funcSw[i].func;
|
AssignFunc func = model.funcSw[i].func;
|
||||||
|
|
||||||
// The label
|
|
||||||
QLabel * label = new QLabel(this);
|
|
||||||
label->setContextMenuPolicy(Qt::CustomContextMenu);
|
|
||||||
label->setMouseTracking(true);
|
|
||||||
label->setProperty("index", i);
|
|
||||||
label->setText(tr("CF%1").arg(i+1));
|
|
||||||
gridLayout->addWidget(label, i+1, 0);
|
|
||||||
connect(label, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(fsw_customContextMenuRequested(QPoint)));
|
|
||||||
|
|
||||||
// The switch
|
// The switch
|
||||||
fswtchSwtch[i] = new QComboBox(this);
|
fswtchSwtch[i] = new QComboBox(this);
|
||||||
fswtchSwtch[i]->setProperty("index", i);
|
fswtchSwtch[i]->setProperty("index", i);
|
||||||
|
|||||||
@@ -29,9 +29,9 @@ CustomSwitchesPanel::CustomSwitchesPanel(QWidget * parent, ModelData & model):
|
|||||||
QLabel * label = new QLabel(this);
|
QLabel * label = new QLabel(this);
|
||||||
label->setProperty("index", i);
|
label->setProperty("index", i);
|
||||||
if (i < 9)
|
if (i < 9)
|
||||||
label->setText(tr("CS%1").arg(i+1));
|
label->setText(tr("LS%1").arg(i+1));
|
||||||
else
|
else
|
||||||
label->setText(tr("CS%1").arg(QChar('A'+i-9)));
|
label->setText(tr("LS%1").arg(QChar('A'+i-9)));
|
||||||
label->setContextMenuPolicy(Qt::CustomContextMenu);
|
label->setContextMenuPolicy(Qt::CustomContextMenu);
|
||||||
label->setMouseTracking(true);
|
label->setMouseTracking(true);
|
||||||
connect(label, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(csw_customContextMenuRequested(QPoint)));
|
connect(label, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(csw_customContextMenuRequested(QPoint)));
|
||||||
|
|||||||
@@ -30,9 +30,9 @@ ModelEdit::ModelEdit(RadioData & radioData, int modelId, bool openWizard, bool i
|
|||||||
addTab(new InputsPanel(this, model, radioData.generalSettings), tr("Inputs"));
|
addTab(new InputsPanel(this, model, radioData.generalSettings), tr("Inputs"));
|
||||||
addTab(new MixesPanel(this, model, radioData.generalSettings), tr("Mixes"));
|
addTab(new MixesPanel(this, model, radioData.generalSettings), tr("Mixes"));
|
||||||
addTab(new Channels(this, model), tr("Channels"));
|
addTab(new Channels(this, model), tr("Channels"));
|
||||||
addTab(new CustomSwitchesPanel(this, model), tr("Custom Switches"));
|
addTab(new CustomSwitchesPanel(this, model), tr("Logical Switches"));
|
||||||
if (GetEepromInterface()->getCapability(CustomFunctions))
|
if (GetEepromInterface()->getCapability(CustomFunctions))
|
||||||
addTab(new CustomFunctionsPanel(this, model, radioData.generalSettings), tr("Assignable Functions"));
|
addTab(new CustomFunctionsPanel(this, model, radioData.generalSettings), tr("Switch Assignment"));
|
||||||
addTab(new Curves(this, model), tr("Curves"));
|
addTab(new Curves(this, model), tr("Curves"));
|
||||||
if (GetEepromInterface()->getCapability(Telemetry) & TM_HASTELEMETRY)
|
if (GetEepromInterface()->getCapability(Telemetry) & TM_HASTELEMETRY)
|
||||||
addTab(new TelemetryPanel(this, model), tr("Telemetry"));
|
addTab(new TelemetryPanel(this, model), tr("Telemetry"));
|
||||||
|
|||||||
@@ -640,16 +640,16 @@ void printDialog::printSwitches()
|
|||||||
{
|
{
|
||||||
int sc=0;
|
int sc=0;
|
||||||
QString str = "<table border=1 cellspacing=0 cellpadding=3 width=\"100%\">";
|
QString str = "<table border=1 cellspacing=0 cellpadding=3 width=\"100%\">";
|
||||||
str.append("<tr><td><h2>"+tr("Custom Switches")+"</h2></td></tr>");
|
str.append("<tr><td><h2>"+tr("Logical Switches")+"</h2></td></tr>");
|
||||||
str.append("<tr><td><table border=0 cellspacing=0 cellpadding=3>");
|
str.append("<tr><td><table border=0 cellspacing=0 cellpadding=3>");
|
||||||
|
|
||||||
for (int i=0; i<GetEepromInterface()->getCapability(CustomSwitches); i++) {
|
for (int i=0; i<GetEepromInterface()->getCapability(CustomSwitches); i++) {
|
||||||
if (g_model->customSw[i].func) {
|
if (g_model->customSw[i].func) {
|
||||||
str.append("<tr>");
|
str.append("<tr>");
|
||||||
if (i<9) {
|
if (i<9) {
|
||||||
str.append("<td width=\"60\" align=\"center\"><b>"+tr("CS")+QString("%1</b></td>").arg(i+1));
|
str.append("<td width=\"60\" align=\"center\"><b>"+tr("LS")+QString("%1</b></td>").arg(i+1));
|
||||||
} else {
|
} else {
|
||||||
str.append("<td width=\"60\" align=\"center\"><b>"+tr("CS")+('A'+(i-9))+"</b></td>");
|
str.append("<td width=\"60\" align=\"center\"><b>"+tr("LS")+('A'+(i-9))+"</b></td>");
|
||||||
}
|
}
|
||||||
QString tstr = getCustomSwitchStr(&g_model->customSw[i], *g_model);
|
QString tstr = getCustomSwitchStr(&g_model->customSw[i], *g_model);
|
||||||
str.append(doTC(tstr,"green"));
|
str.append(doTC(tstr,"green"));
|
||||||
@@ -724,9 +724,8 @@ void printDialog::printFSwitches()
|
|||||||
{
|
{
|
||||||
int sc=0;
|
int sc=0;
|
||||||
QString str = "<table border=1 cellspacing=0 cellpadding=3 width=\"100%\">";
|
QString str = "<table border=1 cellspacing=0 cellpadding=3 width=\"100%\">";
|
||||||
str.append("<tr><td><h2>"+tr("Function Switches")+"</h2></td></tr>");
|
str.append("<tr><td><h2>"+tr("Switch Assignments")+"</h2></td></tr>");
|
||||||
str.append("<tr><td><table border=0 cellspacing=0 cellpadding=3><tr>");
|
str.append("<tr><td><table border=0 cellspacing=0 cellpadding=3><tr>");
|
||||||
str.append("<td width=\"60\"> </td>");
|
|
||||||
str.append(doTC(tr("Switch"), "", true));
|
str.append(doTC(tr("Switch"), "", true));
|
||||||
str.append(doTL(tr("Function"), "", true));
|
str.append(doTL(tr("Function"), "", true));
|
||||||
str.append(doTL(tr("Parameter"), "", true));
|
str.append(doTL(tr("Parameter"), "", true));
|
||||||
@@ -736,7 +735,6 @@ void printDialog::printFSwitches()
|
|||||||
for(int i=0; i<GetEepromInterface()->getCapability(CustomFunctions); i++) {
|
for(int i=0; i<GetEepromInterface()->getCapability(CustomFunctions); i++) {
|
||||||
if (g_model->funcSw[i].swtch.type!=SWITCH_TYPE_NONE) {
|
if (g_model->funcSw[i].swtch.type!=SWITCH_TYPE_NONE) {
|
||||||
str.append("<tr>");
|
str.append("<tr>");
|
||||||
str.append(doTC(tr("CF")+QString("%1").arg(i+1),"",true));
|
|
||||||
str.append(doTC(g_model->funcSw[i].swtch.toString(),"green"));
|
str.append(doTC(g_model->funcSw[i].swtch.toString(),"green"));
|
||||||
str.append(doTC(getFuncName(g_model->funcSw[i].func),"green"));
|
str.append(doTC(getFuncName(g_model->funcSw[i].func),"green"));
|
||||||
str.append(doTC(FuncParam(g_model->funcSw[i].func,g_model->funcSw[i].param,g_model->funcSw[i].paramarm, g_model->funcSw[i].adjustMode),"green"));
|
str.append(doTC(FuncParam(g_model->funcSw[i].func,g_model->funcSw[i].param,g_model->funcSw[i].paramarm, g_model->funcSw[i].adjustMode),"green"));
|
||||||
|
|||||||
@@ -661,7 +661,7 @@ void telemetryWakeup()
|
|||||||
alarmsCheckTime = get_tmr10ms() + 100; /* next check in 1second */
|
alarmsCheckTime = get_tmr10ms() + 100; /* next check in 1second */
|
||||||
|
|
||||||
if (alarmsCheckStep == 0) {
|
if (alarmsCheckStep == 0) {
|
||||||
if (frskyData.rssi[1].value > 0x33) {
|
if ((IS_MODULE_XJT(0) || IS_MODULE_XJT(1)) && frskyData.rssi[1].value > 0x33) {
|
||||||
AUDIO_SWR_RED();
|
AUDIO_SWR_RED();
|
||||||
s_global_warning = STR_ANTENNAPROBLEM;
|
s_global_warning = STR_ANTENNAPROBLEM;
|
||||||
alarmsCheckTime = get_tmr10ms() + 300; /* next check in 3seconds */
|
alarmsCheckTime = get_tmr10ms() + 300; /* next check in 3seconds */
|
||||||
|
|||||||
@@ -69,7 +69,7 @@
|
|||||||
#define TR_TRNCHN "KN1KN2KN3KN4"
|
#define TR_TRNCHN "KN1KN2KN3KN4"
|
||||||
|
|
||||||
#define LEN_UART3MODES "\017"
|
#define LEN_UART3MODES "\017"
|
||||||
#define TR_UART3MODES "OFF\0 ""SPORT Mirror\0 ""Virtual SP2UART"
|
#define TR_UART3MODES "Av\0 ""SPORT-spegel\0 ""VirtuellSP2UART"
|
||||||
|
|
||||||
#define LEN_DATETIME "\005"
|
#define LEN_DATETIME "\005"
|
||||||
#define TR_DATETIME "DAG: ""TID: "
|
#define TR_DATETIME "DAG: ""TID: "
|
||||||
@@ -396,7 +396,11 @@
|
|||||||
#define TR_MODELNAME "Modellnamn"
|
#define TR_MODELNAME "Modellnamn"
|
||||||
#define TR_PHASENAME "Modnamn "
|
#define TR_PHASENAME "Modnamn "
|
||||||
#define TR_MIXNAME "Mixnamn "
|
#define TR_MIXNAME "Mixnamn "
|
||||||
|
#if defined(PCBTARANIS)
|
||||||
|
#define TR_EXPONAME "Line Name"
|
||||||
|
#else
|
||||||
#define TR_EXPONAME "Exponamn"
|
#define TR_EXPONAME "Exponamn"
|
||||||
|
#endif
|
||||||
#define TR_BITMAP "Modellikon"
|
#define TR_BITMAP "Modellikon"
|
||||||
#define TR_TIMER TR("Timer","Timer ")
|
#define TR_TIMER TR("Timer","Timer ")
|
||||||
#define TR_ELIMITS TR("Gränser++","Utökade Gränser")
|
#define TR_ELIMITS TR("Gränser++","Utökade Gränser")
|
||||||
@@ -673,7 +677,7 @@
|
|||||||
#define TR_CRITICALALARM INDENT "Kritiskt alarm"
|
#define TR_CRITICALALARM INDENT "Kritiskt alarm"
|
||||||
#define TR_PERSISTENT_MAH INDENT "Store mAh"
|
#define TR_PERSISTENT_MAH INDENT "Store mAh"
|
||||||
#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 "Serieport"
|
||||||
|
|
||||||
#if defined(MAVLINK)
|
#if defined(MAVLINK)
|
||||||
#define TR_MAVLINK_RC_RSSI_SCALE_LABEL "Max RSSI"
|
#define TR_MAVLINK_RC_RSSI_SCALE_LABEL "Max RSSI"
|
||||||
|
|||||||
Reference in New Issue
Block a user