From 63269ac35a899a8c96d80da3fc4c1f82da9b887f Mon Sep 17 00:00:00 2001 From: Andre Bernet Date: Thu, 26 Jun 2014 15:20:29 +0200 Subject: [PATCH] Backlight Alarm parameter added in companion (fix #1123) --- companion/src/generaledit.cpp | 7 +++ companion/src/generaledit.h | 1 + companion/src/generaledit.ui | 112 +++++++++++++++++++--------------- 3 files changed, 71 insertions(+), 49 deletions(-) diff --git a/companion/src/generaledit.cpp b/companion/src/generaledit.cpp index 7b0378da7..062532175 100644 --- a/companion/src/generaledit.cpp +++ b/companion/src/generaledit.cpp @@ -316,6 +316,7 @@ GeneralEdit::GeneralEdit(RadioData &radioData, QWidget *parent) : ui->switchesDelay->hide(); ui->switchesDelayLabel->hide(); } + ui->blAlarm_ChkB->setChecked(g_eeGeneral.flashBeep); disableMouseScrolling(); } @@ -325,6 +326,12 @@ GeneralEdit::~GeneralEdit() delete ui; } +void GeneralEdit::on_blAlarm_ChkB_stateChanged() +{ + g_eeGeneral.flashBeep = ui->blAlarm_ChkB->isChecked(); + updateSettings(); +} + void GeneralEdit::stickReverseEdited() { g_eeGeneral.stickReverse = ((int)ui->stickReverse1->isChecked()) | ((int)ui->stickReverse2->isChecked()<<1) | ((int)ui->stickReverse3->isChecked()<<2) | ((int)ui->stickReverse4->isChecked()<<3); diff --git a/companion/src/generaledit.h b/companion/src/generaledit.h index 8bd86e2d8..6422589d2 100644 --- a/companion/src/generaledit.h +++ b/companion/src/generaledit.h @@ -137,6 +137,7 @@ class GeneralEdit : public QDialog void shrink(); void stickReverseEdited(); void on_switchesDelay_valueChanged(); + void on_blAlarm_ChkB_stateChanged(); }; #endif // GENERALEDIT_H diff --git a/companion/src/generaledit.ui b/companion/src/generaledit.ui index 9943a015e..7f84d3068 100644 --- a/companion/src/generaledit.ui +++ b/companion/src/generaledit.ui @@ -113,17 +113,31 @@ These will be relevant for all models in the same EEPROM. Setup - + + + + GPS Coordinates + + + + + + + Speaker Pitch (spkr only) + + + + - + Measurement Units - + @@ -137,7 +151,7 @@ These will be relevant for all models in the same EEPROM. - + -14 @@ -150,28 +164,21 @@ These will be relevant for all models in the same EEPROM. - + Voice Language - - - - GPS Coordinates - - - - + Timeshift from UTC - + @@ -185,14 +192,14 @@ These will be relevant for all models in the same EEPROM. - + Country Code - + @@ -256,14 +263,7 @@ These will be relevant for all models in the same EEPROM. - - - - Speaker Pitch (spkr only) - - - - + @@ -298,7 +298,7 @@ These will be relevant for all models in the same EEPROM. - + RotEnc Navigation @@ -333,7 +333,7 @@ These will be relevant for all models in the same EEPROM. - + Readonly Unlock @@ -343,7 +343,7 @@ These will be relevant for all models in the same EEPROM. - + Qt::Vertical @@ -426,7 +426,7 @@ These will be relevant for all models in the same EEPROM. - + Qt::Horizontal @@ -526,7 +526,7 @@ p, li { white-space: pre-wrap; } - + QLayout::SetMinimumSize @@ -1199,7 +1199,7 @@ Acceptable values are 5v..10v - + Backlight Brightness @@ -1220,17 +1220,17 @@ Acceptable values are 5v..10v - + 100 - + - + Backlight color @@ -1272,7 +1272,7 @@ Acceptable values are 5v..10v - + @@ -1374,7 +1374,7 @@ Acceptable values are 5v..10v - + @@ -1409,7 +1409,7 @@ p, li { white-space: pre-wrap; } - + MAVLink Baud Rate @@ -1465,7 +1465,7 @@ p, li { white-space: pre-wrap; } - + @@ -1579,14 +1579,14 @@ p, li { white-space: pre-wrap; } - + "No Sound" Warning - + Low Memory Warning @@ -1696,14 +1696,14 @@ p, li { white-space: pre-wrap; } - + Stick Mode - + @@ -1716,7 +1716,7 @@ p, li { white-space: pre-wrap; } - + @@ -1729,14 +1729,14 @@ p, li { white-space: pre-wrap; } - + FAI Mode - + @@ -1790,7 +1790,7 @@ Mode 4: - + @@ -1822,7 +1822,7 @@ Mode 4: - + @@ -1958,7 +1958,7 @@ Mode 4: - + If you enable FAI, you loose the vario, the play functions, the telemetry screen. This function cannot be disabled by the radio. @@ -1968,7 +1968,7 @@ Mode 4: - + @@ -1981,7 +1981,7 @@ Mode 4: - + @@ -2014,6 +2014,20 @@ p, li { white-space: pre-wrap; } + + + + Backlight flash on alarm + + + + + + + + + +