mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-03-11 14:58:47 -04:00
Remote input GUI: add mini dial for sub kHz center frequency digits
This commit is contained in:
parent
111c035c09
commit
7199ff8271
@ -80,6 +80,9 @@ RemoteInputGui::RemoteInputGui(DeviceUISet *deviceUISet, QWidget* parent) :
|
|||||||
ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold));
|
ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold));
|
||||||
ui->centerFrequency->setValueRange(7, 0, 9999999U);
|
ui->centerFrequency->setValueRange(7, 0, 9999999U);
|
||||||
|
|
||||||
|
ui->centerFrequencyHz->setColorMapper(ColorMapper(ColorMapper::GrayGold));
|
||||||
|
ui->centerFrequencyHz->setValueRange(3, 0, 999U);
|
||||||
|
|
||||||
CRightClickEnabler *startStopRightClickEnabler = new CRightClickEnabler(ui->startStop);
|
CRightClickEnabler *startStopRightClickEnabler = new CRightClickEnabler(ui->startStop);
|
||||||
connect(startStopRightClickEnabler, SIGNAL(rightClick(const QPoint &)), this, SLOT(openDeviceSettingsDialog(const QPoint &)));
|
connect(startStopRightClickEnabler, SIGNAL(rightClick(const QPoint &)), this, SLOT(openDeviceSettingsDialog(const QPoint &)));
|
||||||
|
|
||||||
@ -284,6 +287,7 @@ void RemoteInputGui::updateSampleRateAndFrequency()
|
|||||||
ui->deviceRateText->setText(tr("%1k").arg((float)m_streamSampleRate / 1000));
|
ui->deviceRateText->setText(tr("%1k").arg((float)m_streamSampleRate / 1000));
|
||||||
blockApplySettings(true);
|
blockApplySettings(true);
|
||||||
ui->centerFrequency->setValue(m_streamCenterFrequency / 1000);
|
ui->centerFrequency->setValue(m_streamCenterFrequency / 1000);
|
||||||
|
ui->centerFrequencyHz->setValue(0); // TODO
|
||||||
blockApplySettings(false);
|
blockApplySettings(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -292,6 +296,7 @@ void RemoteInputGui::displaySettings()
|
|||||||
blockApplySettings(true);
|
blockApplySettings(true);
|
||||||
|
|
||||||
ui->centerFrequency->setValue(m_streamCenterFrequency / 1000);
|
ui->centerFrequency->setValue(m_streamCenterFrequency / 1000);
|
||||||
|
ui->centerFrequencyHz->setValue(0); // TODO
|
||||||
ui->deviceRateText->setText(tr("%1k").arg(m_streamSampleRate / 1000.0));
|
ui->deviceRateText->setText(tr("%1k").arg(m_streamSampleRate / 1000.0));
|
||||||
|
|
||||||
ui->apiAddress->setText(m_settings.m_apiAddress);
|
ui->apiAddress->setText(m_settings.m_apiAddress);
|
||||||
|
@ -137,7 +137,7 @@
|
|||||||
</font>
|
</font>
|
||||||
</property>
|
</property>
|
||||||
<property name="cursor">
|
<property name="cursor">
|
||||||
<cursorShape>PointingHandCursor</cursorShape>
|
<cursorShape>ForbiddenCursor</cursorShape>
|
||||||
</property>
|
</property>
|
||||||
<property name="focusPolicy">
|
<property name="focusPolicy">
|
||||||
<enum>Qt::StrongFocus</enum>
|
<enum>Qt::StrongFocus</enum>
|
||||||
@ -147,6 +147,11 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<layout class="QVBoxLayout" name="hertzLayout">
|
||||||
|
<property name="rightMargin">
|
||||||
|
<number>10</number>
|
||||||
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="freqUnits">
|
<widget class="QLabel" name="freqUnits">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
@ -155,17 +160,25 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<spacer name="freqRightlSpacer">
|
<widget class="ValueDial" name="centerFrequencyHz" native="true">
|
||||||
<property name="orientation">
|
<property name="enabled">
|
||||||
<enum>Qt::Horizontal</enum>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" stdset="0">
|
<property name="font">
|
||||||
<size>
|
<font>
|
||||||
<width>0</width>
|
<family>Liberation Mono</family>
|
||||||
<height>0</height>
|
<pointsize>10</pointsize>
|
||||||
</size>
|
</font>
|
||||||
</property>
|
</property>
|
||||||
</spacer>
|
<property name="cursor">
|
||||||
|
<cursorShape>ForbiddenCursor</cursorShape>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Remote center frequency sub kHz</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
|
Loading…
Reference in New Issue
Block a user