Global Functions now integrated inside Companion - Fixes #502
This commit is contained in:
@@ -27,12 +27,12 @@ void HeliPanel::update()
|
||||
{
|
||||
lock = true;
|
||||
|
||||
ui->swashTypeCB->setCurrentIndex(model.swashRingData.type);
|
||||
populateSourceCB(ui->swashCollectiveCB, model.swashRingData.collectiveSource, model, POPULATE_SOURCES | POPULATE_SWITCHES | POPULATE_TRIMS);
|
||||
ui->swashRingValSB->setValue(model.swashRingData.value);
|
||||
ui->swashInvertELE->setChecked(model.swashRingData.invertELE);
|
||||
ui->swashInvertAIL->setChecked(model.swashRingData.invertAIL);
|
||||
ui->swashInvertCOL->setChecked(model.swashRingData.invertCOL);
|
||||
ui->swashTypeCB->setCurrentIndex(model->swashRingData.type);
|
||||
populateSourceCB(ui->swashCollectiveCB, model->swashRingData.collectiveSource, model, POPULATE_SOURCES | POPULATE_SWITCHES | POPULATE_TRIMS);
|
||||
ui->swashRingValSB->setValue(model->swashRingData.value);
|
||||
ui->swashInvertELE->setChecked(model->swashRingData.invertELE);
|
||||
ui->swashInvertAIL->setChecked(model->swashRingData.invertAIL);
|
||||
ui->swashInvertCOL->setChecked(model->swashRingData.invertCOL);
|
||||
|
||||
lock = false;
|
||||
}
|
||||
@@ -40,12 +40,12 @@ void HeliPanel::update()
|
||||
void HeliPanel::edited()
|
||||
{
|
||||
if (!lock) {
|
||||
model.swashRingData.type = ui->swashTypeCB->currentIndex();
|
||||
model.swashRingData.collectiveSource = ui->swashCollectiveCB->itemData(ui->swashCollectiveCB->currentIndex()).toInt();
|
||||
model.swashRingData.value = ui->swashRingValSB->value();
|
||||
model.swashRingData.invertELE = ui->swashInvertELE->isChecked();
|
||||
model.swashRingData.invertAIL = ui->swashInvertAIL->isChecked();
|
||||
model.swashRingData.invertCOL = ui->swashInvertCOL->isChecked();
|
||||
model->swashRingData.type = ui->swashTypeCB->currentIndex();
|
||||
model->swashRingData.collectiveSource = ui->swashCollectiveCB->itemData(ui->swashCollectiveCB->currentIndex()).toInt();
|
||||
model->swashRingData.value = ui->swashRingValSB->value();
|
||||
model->swashRingData.invertELE = ui->swashInvertELE->isChecked();
|
||||
model->swashRingData.invertAIL = ui->swashInvertAIL->isChecked();
|
||||
model->swashRingData.invertCOL = ui->swashInvertCOL->isChecked();
|
||||
emit modified();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user