diff --git a/companion/src/CMakeLists.txt b/companion/src/CMakeLists.txt
index 6392ad400..2adcd05ec 100644
--- a/companion/src/CMakeLists.txt
+++ b/companion/src/CMakeLists.txt
@@ -159,7 +159,6 @@ set(companion_SRCS
splashlibrary.cpp
mainwindow.cpp
companion.cpp
- modelconfigdialog.cpp
taranisnotfound.cpp
qcustomplot.cpp
wizarddata.cpp
@@ -185,7 +184,6 @@ set(companion_MOC_HDRS
modelslist.h
mdichild.h
mainwindow.h
- modelconfigdialog.h
taranisnotfound.h
qcustomplot.h
helpers.h
@@ -208,7 +206,6 @@ set(companion_UIS
customizesplashdialog.ui
splashlibrary.ui
burndialog.ui
- modelconfigdialog.ui
taranisnotfound.ui
)
diff --git a/companion/src/apppreferencesdialog.cpp b/companion/src/apppreferencesdialog.cpp
index ee329b2c0..3281c7400 100644
--- a/companion/src/apppreferencesdialog.cpp
+++ b/companion/src/apppreferencesdialog.cpp
@@ -104,6 +104,8 @@ void appPreferencesDialog::initSettings()
ui->showSplash->setChecked(g.showSplash());
ui->historySize->setValue(g.historySize());
ui->backLightColor->setCurrentIndex(g.backLight());
+ if (getRadioType(g.profile[g.id()].fwType())==6) // TODO - NOT AT ALL OK. THERE SHOULD BE A COMMON RADIO DEFINITION.
+ ui->backLightColor->setEnabled(false);
ui->simuSW->setChecked(g.simuSW());
ui->libraryPath->setText(g.libDir());
ui->ge_lineedit->setText(g.gePath());
diff --git a/companion/src/apppreferencesdialog.ui b/companion/src/apppreferencesdialog.ui
index de381395b..d883095fc 100644
--- a/companion/src/apppreferencesdialog.ui
+++ b/companion/src/apppreferencesdialog.ui
@@ -7,7 +7,7 @@
0
0
685
- 462
+ 514
@@ -26,21 +26,12 @@
Edit Settings
-
- 6
-
-
- 6
-
-
- 6
-
-
- 6
-
2
+
+ 6
+
-
@@ -61,7 +52,14 @@
Radio Profile
-
-
+
-
+
+
+ Qt::Horizontal
+
+
+
+ -
@@ -115,7 +113,7 @@ Mode 4:
- -
+
-
@@ -265,7 +263,7 @@ This is used by the templated to determine which channel goes to what number out
- -
+
-
@@ -285,7 +283,7 @@ This is used by the templated to determine which channel goes to what number out
- -
+
-
Qt::Vertical
@@ -298,7 +296,7 @@ This is used by the templated to determine which channel goes to what number out
- -
+
-
@@ -311,7 +309,7 @@ This is used by the templated to determine which channel goes to what number out
- -
+
-
@@ -327,14 +325,14 @@ This is used by the templated to determine which channel goes to what number out
- -
+
-
Append version number to FW file name
- -
+
-
@@ -350,7 +348,7 @@ This is used by the templated to determine which channel goes to what number out
- -
+
-
true
@@ -372,7 +370,7 @@ This is used by the templated to determine which channel goes to what number out
- -
+
-
Qt::Horizontal
@@ -385,35 +383,28 @@ This is used by the templated to determine which channel goes to what number out
- -
+
-
Offer to write FW to Tx after download
- -
+
-
Remove Profile
- -
+
-
Open Folder
- -
-
-
- Qt::Horizontal
-
-
-
- -
+
-
true
@@ -435,7 +426,7 @@ This is used by the templated to determine which channel goes to what number out
- -
+
-
Select Image
@@ -449,14 +440,14 @@ This is used by the templated to determine which channel goes to what number out
- -
+
-
Clear Image
- -
+
-
Qt::Horizontal
@@ -479,7 +470,7 @@ This is used by the templated to determine which channel goes to what number out
- -
+
-
@@ -555,6 +546,23 @@ This is used by the templated to determine which channel goes to what number out
+ -
+
+
+ General Settings
+
+
+
+ -
+
+
+ true
+
+
+ General Settings Label
+
+
+
diff --git a/companion/src/mdichild.cpp b/companion/src/mdichild.cpp
index 80f086dc7..6b20bcc61 100644
--- a/companion/src/mdichild.cpp
+++ b/companion/src/mdichild.cpp
@@ -173,17 +173,20 @@ void MdiChild::modelEdit()
generalEdit();
}
else {
+ QApplication::setOverrideCursor(Qt::WaitCursor);
checkAndInitModel( row );
ModelData &model = radioData.models[row - 1];
ModelEdit *t = new ModelEdit(radioData, (row - 1), false, this);
t->setWindowTitle(tr("Editing model %1: ").arg(row) + model.name);
connect(t, SIGNAL(modified()), this, SLOT(setModified()));
t->show();
+ QApplication::restoreOverrideCursor();
}
}
void MdiChild::wizardEdit()
{
+return modelEdit(); // TODO FOR BERTRAND- REMOVE THIS LINE TO TURN THE WIZARD BACK ON
int row = ui->modelsList->currentRow();
if (row > 0) {
checkAndInitModel(row);
@@ -198,7 +201,6 @@ void MdiChild::wizardEdit()
void MdiChild::openEditWindow()
{
- QApplication::setOverrideCursor(Qt::WaitCursor);
int row = ui->modelsList->currentRow();
if (row == 0){
generalEdit();
@@ -212,7 +214,6 @@ void MdiChild::openEditWindow()
modelEdit();
}
}
- QApplication::restoreOverrideCursor();
}
void MdiChild::newFile()