Merge branch 'origin/next'
Conflicts: companion/src/translations/companion_pl.ts
This commit is contained in:
@@ -536,17 +536,57 @@ void ModelData::setDefault(uint8_t id)
|
||||
sprintf(name, "MODEL%02d", id+1);
|
||||
}
|
||||
|
||||
unsigned int ModelData::getTrimFlightPhase(uint8_t idx, int8_t phase)
|
||||
int ModelData::getTrimValue(int phaseIdx, int trimIdx)
|
||||
{
|
||||
// if (phase == -1) phase = getFlightPhase();
|
||||
|
||||
for (uint8_t i=0; i<C9X_MAX_PHASES; i++) {
|
||||
if (phase == 0 || phaseData[phase].trimRef[idx] < 0) return phase;
|
||||
phase = phaseData[phase].trimRef[idx];
|
||||
int result = 0;
|
||||
for (int i=0; i<C9X_MAX_PHASES; i++) {
|
||||
PhaseData & phase = phaseData[phaseIdx];
|
||||
if (phase.trimMode[trimIdx] < 0) {
|
||||
return result;
|
||||
}
|
||||
else {
|
||||
if (phase.trimRef[trimIdx] == phaseIdx || phaseIdx == 0) {
|
||||
return result + phase.trim[trimIdx];
|
||||
}
|
||||
else {
|
||||
phaseIdx = phase.trimRef[trimIdx];
|
||||
if (phase.trimMode[trimIdx] == 0)
|
||||
result = 0;
|
||||
else
|
||||
result += phase.trim[trimIdx];
|
||||
}
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
void ModelData::setTrimValue(int phaseIdx, int trimIdx, int value)
|
||||
{
|
||||
for (uint8_t i=0; i<C9X_MAX_PHASES; i++) {
|
||||
PhaseData & phase = phaseData[phaseIdx];
|
||||
int mode = phase.trimMode[trimIdx];
|
||||
int p = phase.trimRef[trimIdx];
|
||||
int & trim = phase.trim[trimIdx];
|
||||
if (mode < 0)
|
||||
return;
|
||||
if (p == phaseIdx || phaseIdx == 0) {
|
||||
trim = value;
|
||||
break;;
|
||||
}
|
||||
else if (mode == 0) {
|
||||
phaseIdx = p;
|
||||
}
|
||||
else {
|
||||
trim = value - getTrimValue(p, trimIdx);
|
||||
if (trim < -500)
|
||||
trim = -500;
|
||||
if (trim > 500)
|
||||
trim = 500;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void ModelData::removeGlobalVar(int & var)
|
||||
{
|
||||
if (var >= 126 && var <= 130)
|
||||
|
||||
@@ -680,7 +680,8 @@ class FuncSwData { // Function Switches data
|
||||
class PhaseData {
|
||||
public:
|
||||
PhaseData() { clear(); }
|
||||
int trimRef[NUM_STICKS]; //
|
||||
int trimMode[NUM_STICKS];
|
||||
int trimRef[NUM_STICKS];
|
||||
int trim[NUM_STICKS];
|
||||
RawSwitch swtch;
|
||||
char name[10+1];
|
||||
@@ -688,7 +689,7 @@ class PhaseData {
|
||||
unsigned int fadeOut;
|
||||
int rotaryEncoders[2];
|
||||
int gvars[C9X_MAX_GVARS];
|
||||
void clear() { memset(this, 0, sizeof(PhaseData)); for (int i=0; i<NUM_STICKS; i++) trimRef[i] = -1; }
|
||||
void clear() { memset(this, 0, sizeof(PhaseData)); }
|
||||
};
|
||||
|
||||
class SwashRingData { // Swash Ring data
|
||||
@@ -924,8 +925,9 @@ class ModelData {
|
||||
void clear();
|
||||
bool isempty();
|
||||
void setDefault(uint8_t id);
|
||||
unsigned int getTrimFlightPhase(uint8_t idx, int8_t phase);
|
||||
|
||||
int getTrimValue(int phaseIdx, int trimIdx);
|
||||
void setTrimValue(int phaseIdx, int trimIdx, int value);
|
||||
ModelData removeGlobalVars();
|
||||
|
||||
void clearMixes();
|
||||
@@ -1014,7 +1016,6 @@ enum Capability {
|
||||
GvarsInCS,
|
||||
GvarsAreNamed,
|
||||
GvarsFlightPhases,
|
||||
GvarsHaveSources,
|
||||
GvarsName,
|
||||
NoTelemetryProtocol,
|
||||
TelemetryCustomScreens,
|
||||
|
||||
@@ -281,8 +281,6 @@ int Er9xInterface::getCapability(const Capability capability)
|
||||
case ModelVoice:
|
||||
case Gvars:
|
||||
return 7;
|
||||
case GvarsHaveSources:
|
||||
return 1;
|
||||
case GetThrSwitch:
|
||||
return DSW_THR;
|
||||
default:
|
||||
|
||||
@@ -317,8 +317,6 @@ int Ersky9xInterface::getCapability(const Capability capability)
|
||||
return 125;
|
||||
case MaxVolume:
|
||||
return 23;
|
||||
case GvarsHaveSources:
|
||||
return 1;
|
||||
case TelemetryMaxMultiplier:
|
||||
return 2;
|
||||
case LCDWidth:
|
||||
|
||||
@@ -433,6 +433,12 @@ class PhaseField: public TransformedField {
|
||||
for (int i=0; i<NUM_STICKS; i++)
|
||||
internalField.Append(new SignedField<2>(trimExt[i]));
|
||||
}
|
||||
else if (board == BOARD_TARANIS && version >= 216) {
|
||||
for (int i=0; i<NUM_STICKS; i++) {
|
||||
internalField.Append(new SignedField<11>(phase.trim[i]));
|
||||
internalField.Append(new UnsignedField<5>(trimMode[i]));
|
||||
}
|
||||
}
|
||||
else {
|
||||
for (int i=0; i<NUM_STICKS; i++)
|
||||
internalField.Append(new SignedField<16>(trimBase[i]));
|
||||
@@ -467,19 +473,27 @@ class PhaseField: public TransformedField {
|
||||
virtual void beforeExport()
|
||||
{
|
||||
for (int i=0; i<NUM_STICKS; i++) {
|
||||
int trim;
|
||||
if (phase.trimRef[i] >= 0) {
|
||||
trim = 501 + phase.trimRef[i] - (phase.trimRef[i] >= index ? 1 : 0);
|
||||
if (board == BOARD_TARANIS && version >= 216) {
|
||||
if (phase.trimMode[i] < 0)
|
||||
trimMode[i] = TRIM_MODE_NONE;
|
||||
else
|
||||
trimMode[i] = 2*phase.trimRef[i] + phase.trimMode[i];
|
||||
}
|
||||
else {
|
||||
trim = std::max(-500, std::min(500, phase.trim[i]));
|
||||
}
|
||||
if (board == BOARD_STOCK || (board == BOARD_M128 && version >= 215)) {
|
||||
trimBase[i] = trim >> 2;
|
||||
trimExt[i] = (trim & 0x03);
|
||||
}
|
||||
else {
|
||||
trimBase[i] = trim;
|
||||
int trim;
|
||||
if (phase.trimMode[i] < 0)
|
||||
trim = 0;
|
||||
else if (phase.trimRef[i] != index)
|
||||
trim = 501 + phase.trimRef[i] - (phase.trimRef[i] > index ? 1 : 0);
|
||||
else
|
||||
trim = std::max(-500, std::min(500, phase.trim[i]));
|
||||
if (board == BOARD_STOCK || (board == BOARD_M128 && version >= 215)) {
|
||||
trimBase[i] = trim >> 2;
|
||||
trimExt[i] = (trim & 0x03);
|
||||
}
|
||||
else {
|
||||
trimBase[i] = trim;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -487,21 +501,31 @@ class PhaseField: public TransformedField {
|
||||
virtual void afterImport()
|
||||
{
|
||||
for (int i=0; i<NUM_STICKS; i++) {
|
||||
int trim;
|
||||
if (board == BOARD_STOCK || (board == BOARD_M128 && version >= 215))
|
||||
trim = ((trimBase[i]) << 2) + (trimExt[i] & 0x03);
|
||||
else
|
||||
trim = trimBase[i];
|
||||
if (trim > 500) {
|
||||
phase.trimRef[i] = trim - 501;
|
||||
if (phase.trimRef[i] >= index)
|
||||
phase.trimRef[i] += 1;
|
||||
phase.trim[i] = 0;
|
||||
if (board == BOARD_TARANIS && version >= 216) {
|
||||
if (trimMode[i] == TRIM_MODE_NONE) {
|
||||
phase.trimMode[i] = -1;
|
||||
}
|
||||
else {
|
||||
phase.trimMode[i] = trimMode[i] % 2;
|
||||
phase.trimRef[i] = trimMode[i] / 2;
|
||||
}
|
||||
}
|
||||
else {
|
||||
phase.trim[i] = trim;
|
||||
int trim;
|
||||
if (board == BOARD_STOCK || (board == BOARD_M128 && version >= 215))
|
||||
trim = ((trimBase[i]) << 2) + (trimExt[i] & 0x03);
|
||||
else
|
||||
trim = trimBase[i];
|
||||
if (trim > 500) {
|
||||
phase.trimRef[i] = trim - 501;
|
||||
if (phase.trimRef[i] >= index)
|
||||
phase.trimRef[i] += 1;
|
||||
phase.trim[i] = 0;
|
||||
}
|
||||
else {
|
||||
phase.trim[i] = trim;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -514,6 +538,7 @@ class PhaseField: public TransformedField {
|
||||
int rotencCount;
|
||||
int trimBase[NUM_STICKS];
|
||||
int trimExt[NUM_STICKS];
|
||||
unsigned int trimMode[NUM_STICKS];
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -684,19 +684,6 @@ void CurveGroup::valuesChanged()
|
||||
}
|
||||
}
|
||||
|
||||
void populateTrimUseCB(QComboBox *b, unsigned int phase)
|
||||
{
|
||||
b->addItem(QObject::tr("Own trim"));
|
||||
unsigned int num_phases = GetEepromInterface()->getCapability(FlightPhases);
|
||||
if (num_phases>0) {
|
||||
for (unsigned int i = 0; i < num_phases; i++) {
|
||||
if (i != phase) {
|
||||
b->addItem(QObject::tr("Flight mode %1 trim").arg(i));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void populateGvarUseCB(QComboBox *b, unsigned int phase)
|
||||
{
|
||||
b->addItem(QObject::tr("Own value"));
|
||||
|
||||
@@ -23,6 +23,8 @@
|
||||
#define TRIM_OFF 1
|
||||
#define TRIM_OFFSET 2
|
||||
|
||||
#define TRIM_MODE_NONE 0x1F // 0b11111
|
||||
|
||||
void populateGvSourceCB(QComboBox *b, int value);
|
||||
void populateVoiceLangCB(QComboBox *b, QString language);
|
||||
void populateTTraceCB(QComboBox *b, int value);
|
||||
@@ -89,7 +91,6 @@ QString FuncParam(uint function, int value, QString paramT="",unsigned int adjus
|
||||
void populateFuncParamCB(QComboBox *b, const ModelData & model, uint function, unsigned int value, unsigned int adjustmode=0);
|
||||
void populateFuncParamArmTCB(QComboBox *b, ModelData * g_model, char * value, QStringList & paramsList);
|
||||
void populatePhasesCB(QComboBox *b, int value);
|
||||
void populateTrimUseCB(QComboBox *b, unsigned int phase);
|
||||
void populateGvarUseCB(QComboBox *b, unsigned int phase);
|
||||
void populateCustomScreenFieldCB(QComboBox *b, unsigned int value, bool last, int hubproto);
|
||||
void populateTimerSwitchCB(QComboBox *b, int value);
|
||||
|
||||
@@ -17,9 +17,11 @@ FlightMode::FlightMode(QWidget * parent, ModelData & model, int phaseIdx, Genera
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
int modesCount = GetEepromInterface()->getCapability(FlightPhases);
|
||||
|
||||
// Phase name
|
||||
QRegExp rx(CHAR_FOR_NAMES_REGEX);
|
||||
if (GetEepromInterface()->getCapability(FlightPhases)) {
|
||||
if (modesCount) {
|
||||
ui->name->setValidator(new QRegExpValidator(rx, this));
|
||||
ui->name->setMaxLength(GetEepromInterface()->getCapability(FlightModesName));
|
||||
connect(ui->name, SIGNAL(editingFinished()), this, SLOT(phaseName_editingFinished()));
|
||||
@@ -66,14 +68,19 @@ FlightMode::FlightMode(QWidget * parent, ModelData & model, int phaseIdx, Genera
|
||||
for (int i=0; i<4; i++) {
|
||||
trimsLabel[i]->setText(labels[CONVERT_MODE(i+1)-1]);
|
||||
|
||||
if (phaseIdx > 0) {
|
||||
trimsUse[i]->setProperty("index", i);
|
||||
populateTrimUseCB(trimsUse[i], phaseIdx);
|
||||
connect(trimsUse[i], SIGNAL(currentIndexChanged(int)), this, SLOT(phaseTrimUse_currentIndexChanged(int)));
|
||||
}
|
||||
else {
|
||||
trimsUse[i]->hide();
|
||||
QComboBox * cb = trimsUse[i];
|
||||
cb->setProperty("index", i);
|
||||
cb->addItem(QObject::tr("Trim disabled"), -1);
|
||||
for (int m=0; m<modesCount; m++) {
|
||||
if (m == phaseIdx) {
|
||||
cb->addItem(QObject::tr("Own Trim"), m*2);
|
||||
}
|
||||
else if (phaseIdx > 0) {
|
||||
cb->addItem(QObject::tr("Use Trim from Flight mode %1").arg(m), m*2);
|
||||
cb->addItem(QObject::tr("Use Trim from Flight mode %1 + Own Trim as an offset").arg(m), m*2+1);
|
||||
}
|
||||
}
|
||||
connect(cb, SIGNAL(currentIndexChanged(int)), this, SLOT(phaseTrimUse_currentIndexChanged(int)));
|
||||
|
||||
trimsValue[i]->setProperty("index", i);
|
||||
connect(trimsValue[i], SIGNAL(valueChanged(int)), this, SLOT(phaseTrim_valueChanged()));
|
||||
@@ -123,17 +130,6 @@ FlightMode::FlightMode(QWidget * parent, ModelData & model, int phaseIdx, Genera
|
||||
QLabel *label = new QLabel(ui->gvGB);
|
||||
label->setText(tr("GVAR%1").arg(i+1));
|
||||
gvLayout->addWidget(label, i, col++, 1, 1);
|
||||
#if 0
|
||||
// TODO remove this capability?
|
||||
// GVar source (er9x/ersky9x)
|
||||
if (GetEepromInterface()->getCapability(GvarsHaveSources)) {
|
||||
QComboBox *source = new QComboBox(ui->gvGB);
|
||||
source->setProperty("index", i);
|
||||
populateGvSourceCB(source, model.gvsource[i]);
|
||||
// connect(source, SIGNAL(currentIndexChanged(int)), this, SLOT(phaseGVSource_currentIndexChanged(int)));
|
||||
gvLayout->addWidget(source, i, col++, 1, 1);
|
||||
}
|
||||
#endif
|
||||
// GVar name
|
||||
int nameLen = GetEepromInterface()->getCapability(GvarsName);
|
||||
if (nameLen > 0) {
|
||||
@@ -193,7 +189,6 @@ void FlightMode::update()
|
||||
int chn = CONVERT_MODE(i+1)-1;
|
||||
if (chn == 2/*TODO constant*/ && model.throttleReversed)
|
||||
trimsSlider[i]->setInvertedAppearance(true);
|
||||
|
||||
trimUpdate(i);
|
||||
}
|
||||
|
||||
@@ -262,23 +257,22 @@ void FlightMode::phaseFadeOut_editingFinished()
|
||||
|
||||
void FlightMode::trimUpdate(unsigned int trim)
|
||||
{
|
||||
lock = true;
|
||||
int chn = CONVERT_MODE(trim+1)-1;
|
||||
int value = phase.trim[chn];
|
||||
if (phaseIdx > 0 && phase.trimRef[chn] >= 0) {
|
||||
trimsUse[trim]->setCurrentIndex(1 + phase.trimRef[chn] - (phase.trimRef[chn] >= phaseIdx ? 1 : 0));
|
||||
value = model.phaseData[model.getTrimFlightPhase(chn, phaseIdx)].trim[chn];
|
||||
trimsValue[trim]->setEnabled(false);
|
||||
trimsSlider[trim]->setEnabled(false);
|
||||
}
|
||||
else {
|
||||
if (phaseIdx > 0) trimsUse[trim]->setCurrentIndex(0);
|
||||
trimsValue[trim]->setEnabled(true);
|
||||
trimsSlider[trim]->setEnabled(true);
|
||||
}
|
||||
trimsSlider[trim]->setValue(value);
|
||||
trimsValue[trim]->setValue(value);
|
||||
lock = false;
|
||||
lock = true;
|
||||
int chn = CONVERT_MODE(trim+1)-1;
|
||||
int value = model.getTrimValue(phaseIdx, chn);
|
||||
trimsSlider[trim]->setValue(value);
|
||||
trimsValue[trim]->setValue(value);
|
||||
if (phase.trimMode[chn] < 0) {
|
||||
trimsUse[trim]->setCurrentIndex(0);
|
||||
trimsValue[trim]->setEnabled(false);
|
||||
trimsSlider[trim]->setEnabled(false);
|
||||
}
|
||||
else {
|
||||
trimsUse[trim]->setCurrentIndex(1 + 2*phase.trimRef[chn] + phase.trimMode[chn] - (phase.trimRef[chn] > phaseIdx ? 1 : 0));
|
||||
trimsValue[trim]->setEnabled(true);
|
||||
trimsSlider[trim]->setEnabled(true);
|
||||
}
|
||||
lock = false;
|
||||
}
|
||||
|
||||
void FlightMode::phaseGVValue_editingFinished()
|
||||
@@ -380,15 +374,17 @@ void FlightMode::phaseTrimUse_currentIndexChanged(int index)
|
||||
QComboBox *comboBox = qobject_cast<QComboBox*>(sender());
|
||||
int trim = comboBox->property("index").toInt();
|
||||
int chn = CONVERT_MODE(trim+1)-1;
|
||||
if (index == 0) {
|
||||
phase.trim[chn] = model.phaseData[model.getTrimFlightPhase(chn, phaseIdx)].trim[chn];
|
||||
phase.trimRef[chn] = -1;
|
||||
int data = comboBox->itemData(index).toInt();
|
||||
if (data < 0) {
|
||||
phase.trimMode[chn] = -1;
|
||||
phase.trimRef[chn] = 0;
|
||||
phase.trim[chn] = 0;
|
||||
}
|
||||
else {
|
||||
phase.trimMode[chn] = data % 2;
|
||||
phase.trimRef[chn] = data / 2;
|
||||
phase.trim[chn] = 0;
|
||||
phase.trimRef[chn] = index - 1 + (index > (int)phaseIdx ? 1 : 0);
|
||||
}
|
||||
|
||||
trimUpdate(trim);
|
||||
emit modified();
|
||||
}
|
||||
@@ -401,7 +397,7 @@ void FlightMode::phaseTrim_valueChanged()
|
||||
int trim = spinBox->property("index").toInt();
|
||||
int chn = CONVERT_MODE(trim+1)-1;
|
||||
int value = spinBox->value();
|
||||
phase.trim[chn] = value;
|
||||
model.setTrimValue(phaseIdx, chn, value);
|
||||
lock = true;
|
||||
trimsSlider[trim]->setValue(value);
|
||||
lock = false;
|
||||
@@ -416,7 +412,7 @@ void FlightMode::phaseTrimSlider_valueChanged()
|
||||
int trim = slider->property("index").toInt();
|
||||
int chn = CONVERT_MODE(trim+1)-1;
|
||||
int value = slider->value();
|
||||
phase.trim[chn] = value;
|
||||
model.setTrimValue(phaseIdx, chn, value);
|
||||
lock = true;
|
||||
trimsValue[trim]->setValue(value);
|
||||
lock = false;
|
||||
|
||||
@@ -497,6 +497,8 @@ void simulatorDialog::setValues()
|
||||
{
|
||||
TxOutputs outputs;
|
||||
simulator->getValues(outputs);
|
||||
Trims trims;
|
||||
simulator->getTrims(trims);
|
||||
|
||||
ui->chnout_1->setValue(chVal(outputs.chans[0]));
|
||||
ui->chnout_2->setValue(chVal(outputs.chans[1]));
|
||||
@@ -536,11 +538,11 @@ void simulatorDialog::setValues()
|
||||
ui->chnoutV_16->setText(QString("%1").arg((qreal)outputs.chans[15]*100/1024, 0, 'f', 1));
|
||||
}
|
||||
|
||||
ui->leftXPerc->setText(QString("X %1%").arg((qreal)nodeLeft->getX()*100, 2, 'f', 0));
|
||||
ui->leftYPerc->setText(QString("Y %1%").arg((qreal)nodeLeft->getY()*-100, 2, 'f', 0));
|
||||
ui->leftXPerc->setText(QString("X %1%").arg((qreal)nodeLeft->getX()*100+trims.values[0]/5, 2, 'f', 0));
|
||||
ui->leftYPerc->setText(QString("Y %1%").arg((qreal)nodeLeft->getY()*-100+trims.values[1]/5, 2, 'f', 0));
|
||||
|
||||
ui->rightXPerc->setText(QString("X %1%").arg((qreal)nodeRight->getX()*100, 2, 'f', 0));
|
||||
ui->rightYPerc->setText(QString("Y %1%").arg((qreal)nodeRight->getY()*-100, 2, 'f', 0));
|
||||
ui->rightXPerc->setText(QString("X %1%").arg((qreal)nodeRight->getX()*100+trims.values[2]/5, 2, 'f', 0));
|
||||
ui->rightYPerc->setText(QString("Y %1%").arg((qreal)nodeRight->getY()*-100+trims.values[3]/5, 2, 'f', 0));
|
||||
|
||||
#define CSWITCH_ON "QLabel { background-color: #4CC417 }"
|
||||
#define CSWITCH_OFF "QLabel { }"
|
||||
|
||||
@@ -2180,204 +2180,209 @@ Chcesz pobrać teraz?</translation>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="1731"/>
|
||||
<location filename="../mainwindow.cpp" line="1670"/>
|
||||
<source>&General Preferences...</source>
|
||||
<translation>&Główne Preferencje...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="1695"/>
|
||||
<source>Configure transmitter start screen...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Ustawienia ekranu startowego radia...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="1784"/>
|
||||
<source>&Configure connection software...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>&Ustawienia oprogramowania łączącego...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="1831"/>
|
||||
<source>Classic</source>
|
||||
<translation type="unfinished">Klasyczna</translation>
|
||||
<translation>Klasyczna</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="1832"/>
|
||||
<source>The multicolor classical Companion icon theme</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Wielokolorowy klasyczny wygląd ikon Companion</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="1835"/>
|
||||
<source>A monochrome black icon theme</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Monochromatyczny czarny wygląd ikon</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="1838"/>
|
||||
<source>A monochrome white icon theme</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Monochromatyczny biały wygląd ikon</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="1841"/>
|
||||
<source>A monochrome blue icon theme</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Monochromatyczny niebieski wygląd ikon</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="1844"/>
|
||||
<source>Small</source>
|
||||
<translation type="unfinished">Mała</translation>
|
||||
<translation>Małe</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="1845"/>
|
||||
<source>Use small toolbar icons</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Użyj małych ikon paska narzędzi</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="1848"/>
|
||||
<source>Use normal size toolbar icons</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Użyj normalnych ikon paska narzędzi</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="1849"/>
|
||||
<source>Normal</source>
|
||||
<translation type="unfinished">Normalna</translation>
|
||||
<translation>Normalne</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="1852"/>
|
||||
<source>Use big toolbar icons</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Użyj dużych ikon paska narzędzi</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="1853"/>
|
||||
<source>Big</source>
|
||||
<translation type="unfinished">Duża</translation>
|
||||
<translation>Duże</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="1856"/>
|
||||
<source>Use huge toolbar icons</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Użyj olbrzymich ikon paska narzędzi</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="1857"/>
|
||||
<source>Huge</source>
|
||||
<translation type="unfinished">Olbrzymia</translation>
|
||||
<translation>Olbrzymie</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="1860"/>
|
||||
<source>System default language</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Podstawowy język systemu</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="1861"/>
|
||||
<source>Use system default language in menus</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Użyj podstawowego języka systemu w menu</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="1864"/>
|
||||
<source>Czech</source>
|
||||
<translation type="unfinished">Czeski</translation>
|
||||
<translation>Czeski</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="1865"/>
|
||||
<source>Use Czech in menus</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Użyj Czeskiego w menu</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="1868"/>
|
||||
<source>German</source>
|
||||
<translation type="unfinished">Niemiecki</translation>
|
||||
<translation>Niemiecki</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="1869"/>
|
||||
<source>Use German in menus</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Użyj Niemieckiego w menu</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="1872"/>
|
||||
<source>English</source>
|
||||
<translation type="unfinished">Angielski</translation>
|
||||
<translation>Angielski</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="1873"/>
|
||||
<source>Use English in menus</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Użyj Angielskiego w menu</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="1876"/>
|
||||
<source>French</source>
|
||||
<translation type="unfinished">Francuski</translation>
|
||||
<translation>Francuski</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="1877"/>
|
||||
<source>Use French in menus</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Użyj Francuskiego w menu</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="1880"/>
|
||||
<source>Italian</source>
|
||||
<translation type="unfinished">Włoski</translation>
|
||||
<translation>Włoski</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="1881"/>
|
||||
<source>Use Italian in menus</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Użyj Włoskiego w menu</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="1884"/>
|
||||
<source>Hebrew</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Hebrajski</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="1885"/>
|
||||
<source>Use Hebrew in menus</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Użyj Hebrajskiego w menu</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="1888"/>
|
||||
<source>Polish</source>
|
||||
<translation type="unfinished">Polski</translation>
|
||||
<translation>Polski</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="1889"/>
|
||||
<source>Use Polish in menus</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Użyj Polskiego w menu</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="1892"/>
|
||||
<source>Portuguese</source>
|
||||
<translation type="unfinished">Portugalski</translation>
|
||||
<translation>Portugalski</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="1893"/>
|
||||
<source>Use Portuguese in menus</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Użyj Portualskiego w menu</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="1896"/>
|
||||
<source>Swedish</source>
|
||||
<translation type="unfinished">Szwedzki</translation>
|
||||
<translation>Szwedzki</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="1897"/>
|
||||
<source>Use Swedish in menus</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Użyj Szwedzkiego w menu</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="1900"/>
|
||||
<source>Russian</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Rosyjski</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="1901"/>
|
||||
<source>Use Russian in menus</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Użyj Rosyjskiego w menu</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="1911"/>
|
||||
<source>Set Icon Theme</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Ustaw wygląd ikon</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="1912"/>
|
||||
<source>Set Icon Size</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Ustaw wielkość ikon</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="1943"/>
|
||||
<source>&Settings</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>&Ustawienia</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="2165"/>
|
||||
@@ -2436,24 +2441,24 @@ Chcesz pobrać teraz?</translation>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="652"/>
|
||||
<source>The selected language will be used the next time you start Companion.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Wybrany język będzie użyty po ponownym uruchomieniu Comapnion.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="654"/>
|
||||
<location filename="../mainwindow.cpp" line="666"/>
|
||||
<location filename="../mainwindow.cpp" line="678"/>
|
||||
<source>OK</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>OK</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="664"/>
|
||||
<source>The new theme will be loaded the next time you start Companion.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Wybrany wygląd będzie użyty po ponownym uruchomieniu Comapnion.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="676"/>
|
||||
<source>The icon size will be used the next time you start Companion.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Wybrana wiekość ikon będzie użyta po ponownym uruchomieniu Comapnion.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="693"/>
|
||||
@@ -2654,10 +2659,7 @@ Czy mimo wszystko zapisać?</translation>
|
||||
<translation>Otwórz plik logów</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>&Preferences...</source>
|
||||
<translation type="obsolete">&Preferencje...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="1671"/>
|
||||
<source>Edit general preferences</source>
|
||||
<translation type="obsolete">Edycja głównych ustawień</translation>
|
||||
</message>
|
||||
@@ -2828,11 +2830,7 @@ Czy mimo wszystko zapisać?</translation>
|
||||
<translation>Porównaj modele</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Customize your &TX...</source>
|
||||
<translation type="obsolete">&Personalizuj swoje radio...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="1732"/>
|
||||
<location filename="../mainwindow.cpp" line="1696"/>
|
||||
<source>Customize the splash screen of your TX</source>
|
||||
<translation>Personalizuj obrazek na swoim radiu</translation>
|
||||
</message>
|
||||
@@ -2887,11 +2885,7 @@ Czy mimo wszystko zapisać?</translation>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>&Configure...</source>
|
||||
<translation type="obsolete">&Konfiguracja...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="1789"/>
|
||||
<location filename="../mainwindow.cpp" line="1753"/>
|
||||
<source>&List programmers</source>
|
||||
<translation>&Lista programatorów</translation>
|
||||
</message>
|
||||
@@ -2965,7 +2959,7 @@ Czy mimo wszystko zapisać?</translation>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="1910"/>
|
||||
<source>Set Menu Language</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Ustaw język menu</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="1914"/>
|
||||
@@ -9136,50 +9130,6 @@ Moze być inny od języka firmware</translation>
|
||||
<source>Yellow</source>
|
||||
<translation>Żółty</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Theme</source>
|
||||
<translation type="obsolete">Skórka</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Requires restart</source>
|
||||
<translation type="obsolete">Wymagany restart</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Classic</source>
|
||||
<translation type="obsolete">Klasyczna</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Monochrome</source>
|
||||
<translation type="obsolete">Monochromatyczna</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>MonoWhite</source>
|
||||
<translation type="obsolete">Mono-Biała</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>MonoBlue</source>
|
||||
<translation type="obsolete">Mono-Niebieska</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Icon size</source>
|
||||
<translation type="obsolete">Wielkość Ikon</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Small</source>
|
||||
<translation type="obsolete">Mała</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Normal</source>
|
||||
<translation type="obsolete">Normalna</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Big</source>
|
||||
<translation type="obsolete">Duża</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Huge</source>
|
||||
<translation type="obsolete">Olbrzymia</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../preferencesdialog.ui" line="1571"/>
|
||||
<source>Check for updates on startup</source>
|
||||
@@ -9196,11 +9146,6 @@ Moze być inny od języka firmware</translation>
|
||||
<translation>Znajdź wykonywalny plik</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Language (requires restart)</source>
|
||||
<translation type="obsolete">Język programu (wymaga restartu)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../imgpreferences.ui" line="311"/>
|
||||
<location filename="../preferencesdialog.ui" line="520"/>
|
||||
<source>Custom TX splash screen</source>
|
||||
<translation>Własny obrazek na wyświetlaczu</translation>
|
||||
|
||||
@@ -383,6 +383,9 @@ void xsimulatorDialog::setValues()
|
||||
{
|
||||
TxOutputs outputs;
|
||||
simulator->getValues(outputs);
|
||||
|
||||
Trims trims;
|
||||
simulator->getTrims(trims);
|
||||
|
||||
ui->chnout_1->setValue(chVal(outputs.chans[0]));
|
||||
ui->chnout_2->setValue(chVal(outputs.chans[1]));
|
||||
@@ -422,11 +425,11 @@ void xsimulatorDialog::setValues()
|
||||
ui->chnoutV_16->setText(QString("%1").arg((qreal)outputs.chans[15]*100/1024, 0, 'f', 1));
|
||||
}
|
||||
|
||||
ui->leftXPerc->setText(QString("X %1%").arg((qreal)nodeLeft->getX()*100, 2, 'f', 0));
|
||||
ui->leftYPerc->setText(QString("Y %1%").arg((qreal)nodeLeft->getY()*-100, 2, 'f', 0));
|
||||
ui->leftXPerc->setText(QString("X %1%").arg((qreal)nodeLeft->getX()*100+trims.values[0]/5, 2, 'f', 0));
|
||||
ui->leftYPerc->setText(QString("Y %1%").arg((qreal)nodeLeft->getY()*-100+trims.values[1]/5, 2, 'f', 0));
|
||||
|
||||
ui->rightXPerc->setText(QString("X %1%").arg((qreal)nodeRight->getX()*100, 2, 'f', 0));
|
||||
ui->rightYPerc->setText(QString("Y %1%").arg((qreal)nodeRight->getY()*-100, 2, 'f', 0));
|
||||
ui->rightXPerc->setText(QString("X %1%").arg((qreal)nodeRight->getX()*100+trims.values[2]/5, 2, 'f', 0));
|
||||
ui->rightYPerc->setText(QString("Y %1%").arg((qreal)nodeRight->getY()*-100+trims.values[3]/5, 2, 'f', 0));
|
||||
|
||||
#define CSWITCH_ON "QLabel { background-color: #4CC417 }"
|
||||
#define CSWITCH_OFF "QLabel { }"
|
||||
|
||||
Reference in New Issue
Block a user