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->uniformLevel->setValue(35);
|
||||
ui->standard->setCurrentIndex(0);
|
||||
ui->nbLines->setCurrentIndex(0);
|
||||
ui->fps->setCurrentIndex(1);
|
||||
ui->inputSelect->setCurrentIndex(0);
|
||||
ui->deltaFrequency->setValue(0);
|
||||
ui->modulation->setCurrentIndex(0);
|
||||
@ -96,6 +98,8 @@ QByteArray ATVModGUI::serialize() const
|
||||
s.writeS32(7, ui->rfOppBW->value());
|
||||
s.writeS32(8, ui->modulation->currentIndex());
|
||||
s.writeBool(9, ui->invertVideo->isChecked());
|
||||
s.writeS32(10, ui->nbLines->currentIndex());
|
||||
s.writeS32(11, ui->fps->currentIndex());
|
||||
|
||||
return s.final();
|
||||
}
|
||||
@ -142,6 +146,10 @@ bool ATVModGUI::deserialize(const QByteArray& data)
|
||||
ui->modulation->setCurrentIndex(tmp);
|
||||
d.readBool(9, &booltmp, false);
|
||||
ui->invertVideo->setChecked(booltmp);
|
||||
d.readS32(10, &tmp, 0);
|
||||
ui->nbLines->setCurrentIndex(tmp);
|
||||
d.readS32(11, &tmp, 0);
|
||||
ui->fps->setCurrentIndex(tmp);
|
||||
|
||||
blockApplySettings(false);
|
||||
m_channelMarker.blockSignals(false);
|
||||
|
@ -6,19 +6,19 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>619</width>
|
||||
<width>620</width>
|
||||
<height>364</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>490</width>
|
||||
<width>620</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
@ -43,12 +43,6 @@
|
||||
<height>341</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>480</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Settings</string>
|
||||
</property>
|
||||
|
Loading…
Reference in New Issue
Block a user