1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-10 10:33:29 -05:00

Tune SSB bandwidth by 100Hz steps. Use double arrow cursor on value dials

This commit is contained in:
f4exb 2015-05-11 01:36:53 +02:00
parent 92c8aa78f8
commit e9a93ff1c6
4 changed files with 28 additions and 12 deletions

View File

@ -227,6 +227,9 @@
<pointsize>12</pointsize>
</font>
</property>
<property name="cursor">
<cursorShape>SizeVerCursor</cursorShape>
</property>
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
</property>

View File

@ -31,8 +31,8 @@ void SSBDemodGUI::setName(const QString& name)
void SSBDemodGUI::resetToDefaults()
{
ui->BW->setValue(3);
ui->volume->setValue(4);
ui->BW->setValue(30);
ui->volume->setValue(40);
ui->deltaFrequency->setValue(0);
applySettings();
}
@ -111,8 +111,9 @@ void SSBDemodGUI::on_deltaFrequency_changed(quint64 value)
void SSBDemodGUI::on_BW_valueChanged(int value)
{
ui->BWText->setText(QString("%1 kHz").arg(value));
m_channelMarker->setBandwidth(value * 1000 * 2);
QString s = QString::number(value/10.0, 'f', 1);
ui->BWText->setText(s);
m_channelMarker->setBandwidth(value * 100 * 2);
applySettings();
}
@ -165,7 +166,7 @@ SSBDemodGUI::SSBDemodGUI(PluginAPI* pluginAPI, QWidget* parent) :
m_channelMarker = new ChannelMarker(this);
m_channelMarker->setColor(Qt::green);
m_channelMarker->setBandwidth(8000);
m_channelMarker->setBandwidth(6000);
m_channelMarker->setCenterFrequency(0);
m_channelMarker->setVisible(true);
connect(m_channelMarker, SIGNAL(changed()), this, SLOT(viewChanged()));
@ -199,6 +200,6 @@ void SSBDemodGUI::applySettings()
48000,
m_channelMarker->getCenterFrequency());
m_ssbDemod->configure(m_threadedSampleSink->getMessageQueue(),
ui->BW->value() * 1000.0,
ui->BW->value() * 100.0,
ui->volume->value() / 10.0 );
}

View File

@ -73,16 +73,16 @@
<item row="1" column="1">
<widget class="QSlider" name="BW">
<property name="minimum">
<number>-8</number>
<number>-60</number>
</property>
<property name="maximum">
<number>8</number>
<number>60</number>
</property>
<property name="pageStep">
<number>1</number>
<number>10</number>
</property>
<property name="value">
<number>3</number>
<number>30</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
@ -149,6 +149,9 @@
<pointsize>12</pointsize>
</font>
</property>
<property name="cursor">
<cursorShape>SizeVerCursor</cursorShape>
</property>
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
</property>
@ -229,6 +232,12 @@
<header>gui/rollupwidget.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>ValueDial</class>
<extends>QWidget</extends>
<header>gui/valuedial.h</header>
<container>1</container>
</customwidget>
</customwidgets>
<resources/>
<connections/>

View File

@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>198</width>
<height>155</height>
<height>173</height>
</rect>
</property>
<property name="sizePolicy">
@ -70,6 +70,9 @@
<pointsize>20</pointsize>
</font>
</property>
<property name="cursor">
<cursorShape>SizeVerCursor</cursorShape>
</property>
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
</property>