Rename functions from eeprom to settings
This commit is contained in:
committed by
Raphael Coeffic
parent
30c1e703b1
commit
703f14d153
@@ -912,9 +912,9 @@ void MainWindow::readSettings()
|
|||||||
else
|
else
|
||||||
tempFile = generateProcessUniqueTempFileName("temp.bin");
|
tempFile = generateProcessUniqueTempFileName("temp.bin");
|
||||||
|
|
||||||
qDebug() << "MainWindow::readEeprom(): using temp file: " << tempFile;
|
qDebug() << "Reading models and settings into temp file: " << tempFile;
|
||||||
|
|
||||||
if (readEepromFromRadio(tempFile)) {
|
if (readSettingsFromRadio(tempFile)) {
|
||||||
MdiChild * child = createMdiChild();
|
MdiChild * child = createMdiChild();
|
||||||
child->newFile(false);
|
child->newFile(false);
|
||||||
child->loadFile(tempFile, false);
|
child->loadFile(tempFile, false);
|
||||||
@@ -933,7 +933,7 @@ bool MainWindow::readFirmwareFromRadio(const QString & filename)
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool MainWindow::readEepromFromRadio(const QString & filename)
|
bool MainWindow::readSettingsFromRadio(const QString & filename)
|
||||||
{
|
{
|
||||||
ProgressDialog progressDialog(this, tr("Read Models and Settings from Radio"), CompanionIcon("read_eeprom.png"));
|
ProgressDialog progressDialog(this, tr("Read Models and Settings from Radio"), CompanionIcon("read_eeprom.png"));
|
||||||
bool result = ::readSettings(filename, progressDialog.progress());
|
bool result = ::readSettings(filename, progressDialog.progress());
|
||||||
@@ -974,7 +974,7 @@ void MainWindow::readBackup()
|
|||||||
}
|
}
|
||||||
QString fileName = QFileDialog::getSaveFileName(this, tr("Save Radio Backup to File"), g.eepromDir(), EXTERNAL_EEPROM_FILES_FILTER);
|
QString fileName = QFileDialog::getSaveFileName(this, tr("Save Radio Backup to File"), g.eepromDir(), EXTERNAL_EEPROM_FILES_FILTER);
|
||||||
if (!fileName.isEmpty()) {
|
if (!fileName.isEmpty()) {
|
||||||
if (!readEepromFromRadio(fileName))
|
if (!readSettingsFromRadio(fileName))
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -156,7 +156,7 @@ class MainWindow : public QMainWindow
|
|||||||
QMdiSubWindow * findMdiChild(const QString & fileName);
|
QMdiSubWindow * findMdiChild(const QString & fileName);
|
||||||
bool anyChildrenDirty();
|
bool anyChildrenDirty();
|
||||||
|
|
||||||
bool readEepromFromRadio(const QString & filename);
|
bool readSettingsFromRadio(const QString & filename);
|
||||||
bool readFirmwareFromRadio(const QString & filename);
|
bool readFirmwareFromRadio(const QString & filename);
|
||||||
|
|
||||||
bool checkProfileRadioExists(int profId);
|
bool checkProfileRadioExists(int profId);
|
||||||
|
|||||||
Reference in New Issue
Block a user