mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-10 10:33:29 -05:00
ATV Modulator: serialize/deserialize FPS and number of lines
This commit is contained in:
parent
f9f0c53168
commit
e05a0484ae
@ -75,6 +75,8 @@ void ATVModGUI::resetToDefaults()
|
|||||||
ui->rfBW->setValue(10);
|
ui->rfBW->setValue(10);
|
||||||
ui->uniformLevel->setValue(35);
|
ui->uniformLevel->setValue(35);
|
||||||
ui->standard->setCurrentIndex(0);
|
ui->standard->setCurrentIndex(0);
|
||||||
|
ui->nbLines->setCurrentIndex(0);
|
||||||
|
ui->fps->setCurrentIndex(1);
|
||||||
ui->inputSelect->setCurrentIndex(0);
|
ui->inputSelect->setCurrentIndex(0);
|
||||||
ui->deltaFrequency->setValue(0);
|
ui->deltaFrequency->setValue(0);
|
||||||
ui->modulation->setCurrentIndex(0);
|
ui->modulation->setCurrentIndex(0);
|
||||||
@ -96,6 +98,8 @@ QByteArray ATVModGUI::serialize() const
|
|||||||
s.writeS32(7, ui->rfOppBW->value());
|
s.writeS32(7, ui->rfOppBW->value());
|
||||||
s.writeS32(8, ui->modulation->currentIndex());
|
s.writeS32(8, ui->modulation->currentIndex());
|
||||||
s.writeBool(9, ui->invertVideo->isChecked());
|
s.writeBool(9, ui->invertVideo->isChecked());
|
||||||
|
s.writeS32(10, ui->nbLines->currentIndex());
|
||||||
|
s.writeS32(11, ui->fps->currentIndex());
|
||||||
|
|
||||||
return s.final();
|
return s.final();
|
||||||
}
|
}
|
||||||
@ -142,6 +146,10 @@ bool ATVModGUI::deserialize(const QByteArray& data)
|
|||||||
ui->modulation->setCurrentIndex(tmp);
|
ui->modulation->setCurrentIndex(tmp);
|
||||||
d.readBool(9, &booltmp, false);
|
d.readBool(9, &booltmp, false);
|
||||||
ui->invertVideo->setChecked(booltmp);
|
ui->invertVideo->setChecked(booltmp);
|
||||||
|
d.readS32(10, &tmp, 0);
|
||||||
|
ui->nbLines->setCurrentIndex(tmp);
|
||||||
|
d.readS32(11, &tmp, 0);
|
||||||
|
ui->fps->setCurrentIndex(tmp);
|
||||||
|
|
||||||
blockApplySettings(false);
|
blockApplySettings(false);
|
||||||
m_channelMarker.blockSignals(false);
|
m_channelMarker.blockSignals(false);
|
||||||
|
@ -6,19 +6,19 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>619</width>
|
<width>620</width>
|
||||||
<height>364</height>
|
<height>364</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
|
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>490</width>
|
<width>620</width>
|
||||||
<height>0</height>
|
<height>0</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
@ -43,12 +43,6 @@
|
|||||||
<height>341</height>
|
<height>341</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>480</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Settings</string>
|
<string>Settings</string>
|
||||||
</property>
|
</property>
|
||||||
|
Loading…
Reference in New Issue
Block a user