Merge branch 'sequence' into audio-enhance

audioplugins
Phil Taylor 2021-07-17 11:49:44 +01:00
commit df690e0fd1
3 zmienionych plików z 19 dodań i 2 usunięć

Wyświetl plik

@ -915,6 +915,12 @@ void wfmain::setUIToPrefs()
on_drawPeakChk_clicked(prefs.drawPeaks); on_drawPeakChk_clicked(prefs.drawPeaks);
drawPeaks = prefs.drawPeaks; drawPeaks = prefs.drawPeaks;
ui->wfAntiAliasChk->setChecked(prefs.wfAntiAlias);
on_wfAntiAliasChk_clicked(prefs.wfAntiAlias);
ui->wfInterpolateChk->setChecked(prefs.wfInterpolate);
on_wfInterpolateChk_clicked(prefs.wfInterpolate);
ui->wfLengthSlider->setValue(prefs.wflength); ui->wfLengthSlider->setValue(prefs.wflength);
prepareWf(prefs.wflength); prepareWf(prefs.wflength);
@ -1182,6 +1188,8 @@ void wfmain::setDefPrefs()
defPrefs.useDarkMode = true; defPrefs.useDarkMode = true;
defPrefs.useSystemTheme = false; defPrefs.useSystemTheme = false;
defPrefs.drawPeaks = true; defPrefs.drawPeaks = true;
defPrefs.wfAntiAlias = false;
defPrefs.wfInterpolate = true;
defPrefs.stylesheetPath = QString("qdarkstyle/style.qss"); defPrefs.stylesheetPath = QString("qdarkstyle/style.qss");
defPrefs.radioCIVAddr = 0x00; // previously was 0x94 for 7300. defPrefs.radioCIVAddr = 0x00; // previously was 0x94 for 7300.
defPrefs.serialPortRadio = QString("auto"); defPrefs.serialPortRadio = QString("auto");
@ -1203,7 +1211,6 @@ void wfmain::setDefPrefs()
udpDefPrefs.username = QString(""); udpDefPrefs.username = QString("");
udpDefPrefs.password = QString(""); udpDefPrefs.password = QString("");
udpDefPrefs.clientName = QHostInfo::localHostName(); udpDefPrefs.clientName = QHostInfo::localHostName();
} }
void wfmain::loadSettings() void wfmain::loadSettings()
@ -1218,6 +1225,8 @@ void wfmain::loadSettings()
prefs.useSystemTheme = settings->value("UseSystemTheme", defPrefs.useSystemTheme).toBool(); prefs.useSystemTheme = settings->value("UseSystemTheme", defPrefs.useSystemTheme).toBool();
prefs.wftheme = settings->value("WFTheme", defPrefs.wftheme).toInt(); prefs.wftheme = settings->value("WFTheme", defPrefs.wftheme).toInt();
prefs.drawPeaks = settings->value("DrawPeaks", defPrefs.drawPeaks).toBool(); prefs.drawPeaks = settings->value("DrawPeaks", defPrefs.drawPeaks).toBool();
prefs.wfAntiAlias = settings->value("WFAntiAlias", defPrefs.wfAntiAlias).toBool();
prefs.wfInterpolate = settings->value("WFInterpolate", defPrefs.wfInterpolate).toBool();
prefs.wflength = (unsigned int) settings->value("WFLength", defPrefs.wflength).toInt(); prefs.wflength = (unsigned int) settings->value("WFLength", defPrefs.wflength).toInt();
prefs.stylesheetPath = settings->value("StylesheetPath", defPrefs.stylesheetPath).toString(); prefs.stylesheetPath = settings->value("StylesheetPath", defPrefs.stylesheetPath).toString();
ui->splitter->restoreState(settings->value("splitter").toByteArray()); ui->splitter->restoreState(settings->value("splitter").toByteArray());
@ -1510,6 +1519,8 @@ void wfmain::saveSettings()
settings->setValue("UseSystemTheme", prefs.useSystemTheme); settings->setValue("UseSystemTheme", prefs.useSystemTheme);
settings->setValue("UseDarkMode", prefs.useDarkMode); settings->setValue("UseDarkMode", prefs.useDarkMode);
settings->setValue("DrawPeaks", prefs.drawPeaks); settings->setValue("DrawPeaks", prefs.drawPeaks);
settings->setValue("WFAntiAlias", prefs.wfAntiAlias);
settings->setValue("WFInterpolate", prefs.wfInterpolate);
settings->setValue("WFTheme", prefs.wftheme); settings->setValue("WFTheme", prefs.wftheme);
settings->setValue("StylesheetPath", prefs.stylesheetPath); settings->setValue("StylesheetPath", prefs.stylesheetPath);
settings->setValue("splitter", ui->splitter->saveState()); settings->setValue("splitter", ui->splitter->saveState());
@ -5099,12 +5110,13 @@ void wfmain::on_pollingBtn_clicked()
void wfmain::on_wfAntiAliasChk_clicked(bool checked) void wfmain::on_wfAntiAliasChk_clicked(bool checked)
{ {
colorMap->setAntialiased(checked); colorMap->setAntialiased(checked);
prefs.wfAntiAlias = checked;
} }
void wfmain::on_wfInterpolateChk_clicked(bool checked) void wfmain::on_wfInterpolateChk_clicked(bool checked)
{ {
colorMap->setInterpolate(checked); colorMap->setInterpolate(checked);
prefs.wfInterpolate = checked;
} }
// --- DEBUG FUNCTION --- // --- DEBUG FUNCTION ---

Wyświetl plik

@ -684,6 +684,8 @@ private:
bool useDarkMode; bool useDarkMode;
bool useSystemTheme; bool useSystemTheme;
bool drawPeaks; bool drawPeaks;
bool wfAntiAlias;
bool wfInterpolate;
QString stylesheetPath; QString stylesheetPath;
unsigned char radioCIVAddr; unsigned char radioCIVAddr;
QString serialPortRadio; QString serialPortRadio;

Wyświetl plik

@ -2073,6 +2073,9 @@
<property name="text"> <property name="text">
<string>Interpolate Waterfall</string> <string>Interpolate Waterfall</string>
</property> </property>
<property name="checked">
<bool>true</bool>
</property>
</widget> </widget>
</item> </item>
<item> <item>