1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-25 09:18:54 -05:00

SoapySDR: fixed some GUI issues

This commit is contained in:
f4exb 2019-02-07 23:45:16 +01:00
parent 211bfcf873
commit 42cb3ea74f
10 changed files with 54 additions and 16 deletions

View File

@ -35,7 +35,7 @@ static int runQtApplication(int argc, char* argv[], qtwebapp::LoggerWithFile *lo
*/ */
QCoreApplication::setOrganizationName("f4exb"); QCoreApplication::setOrganizationName("f4exb");
QCoreApplication::setApplicationName("SDRangel"); QCoreApplication::setApplicationName("SDRangel");
QCoreApplication::setApplicationVersion("4.4.3"); QCoreApplication::setApplicationVersion("4.4.4");
#if QT_VERSION >= 0x050600 #if QT_VERSION >= 0x050600
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); //HiDPI pixmaps QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); //HiDPI pixmaps

View File

@ -57,7 +57,7 @@ static int runQtApplication(int argc, char* argv[], qtwebapp::LoggerWithFile *lo
QCoreApplication::setOrganizationName("f4exb"); QCoreApplication::setOrganizationName("f4exb");
QCoreApplication::setApplicationName("SDRangelBench"); QCoreApplication::setApplicationName("SDRangelBench");
QCoreApplication::setApplicationVersion("4.4.3"); QCoreApplication::setApplicationVersion("4.4.4");
int catchSignals[] = {SIGQUIT, SIGINT, SIGTERM, SIGHUP}; int catchSignals[] = {SIGQUIT, SIGINT, SIGTERM, SIGHUP};
std::vector<int> vsig(catchSignals, catchSignals + sizeof(catchSignals) / sizeof(int)); std::vector<int> vsig(catchSignals, catchSignals + sizeof(catchSignals) / sizeof(int));

View File

@ -56,7 +56,7 @@ static int runQtApplication(int argc, char* argv[], qtwebapp::LoggerWithFile *lo
QCoreApplication::setOrganizationName("f4exb"); QCoreApplication::setOrganizationName("f4exb");
QCoreApplication::setApplicationName("SDRangelSrv"); QCoreApplication::setApplicationName("SDRangelSrv");
QCoreApplication::setApplicationVersion("4.4.3"); QCoreApplication::setApplicationVersion("4.4.4");
int catchSignals[] = {SIGQUIT, SIGINT, SIGTERM, SIGHUP}; int catchSignals[] = {SIGQUIT, SIGINT, SIGTERM, SIGHUP};
std::vector<int> vsig(catchSignals, catchSignals + sizeof(catchSignals) / sizeof(int)); std::vector<int> vsig(catchSignals, catchSignals + sizeof(catchSignals) / sizeof(int));

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
sdrangel (4.4.4-1) unstable; urgency=medium
* SoapySDR: fixed some GUI issues
-- Edouard Griffiths, F4EXB <f4exb06@gmail.com> Sun, 10 Feb 2019 10:14:18 +0100
sdrangel (4.4.3-1) unstable; urgency=medium sdrangel (4.4.3-1) unstable; urgency=medium
* Migration of SDRDaemon* devices to Remote* devices * Migration of SDRDaemon* devices to Remote* devices

View File

@ -245,6 +245,9 @@
</item> </item>
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout_ppm"> <layout class="QHBoxLayout" name="horizontalLayout_ppm">
<property name="bottomMargin">
<number>4</number>
</property>
<item> <item>
<widget class="QLabel" name="LOppmLabel"> <widget class="QLabel" name="LOppmLabel">
<property name="text"> <property name="text">
@ -289,6 +292,13 @@
</item> </item>
</layout> </layout>
</item> </item>
<item>
<widget class="Line" name="line">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item> <item>
<widget class="QScrollArea" name="scrollArea"> <widget class="QScrollArea" name="scrollArea">
<property name="widgetResizable"> <property name="widgetResizable">
@ -300,7 +310,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>318</width> <width>318</width>
<height>53</height> <height>49</height>
</rect> </rect>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_3"> <layout class="QVBoxLayout" name="verticalLayout_3">

View File

@ -31,7 +31,7 @@
const PluginDescriptor SoapySDROutputPlugin::m_pluginDescriptor = { const PluginDescriptor SoapySDROutputPlugin::m_pluginDescriptor = {
QString("SoapySDR Output"), QString("SoapySDR Output"),
QString("4.4.1"), QString("4.4.4"),
QString("(c) Edouard Griffiths, F4EXB"), QString("(c) Edouard Griffiths, F4EXB"),
QString("https://github.com/f4exb/sdrangel"), QString("https://github.com/f4exb/sdrangel"),
true, true,

View File

@ -321,6 +321,9 @@
</item> </item>
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout_ppm"> <layout class="QHBoxLayout" name="horizontalLayout_ppm">
<property name="bottomMargin">
<number>4</number>
</property>
<item> <item>
<widget class="QLabel" name="LOppmLabel"> <widget class="QLabel" name="LOppmLabel">
<property name="text"> <property name="text">
@ -365,6 +368,13 @@
</item> </item>
</layout> </layout>
</item> </item>
<item>
<widget class="Line" name="line">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item> <item>
<widget class="QScrollArea" name="scrollArea"> <widget class="QScrollArea" name="scrollArea">
<property name="verticalScrollBarPolicy"> <property name="verticalScrollBarPolicy">
@ -379,7 +389,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>318</width> <width>318</width>
<height>53</height> <height>49</height>
</rect> </rect>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_3"> <layout class="QVBoxLayout" name="verticalLayout_3">

View File

@ -30,7 +30,7 @@
const PluginDescriptor SoapySDRInputPlugin::m_pluginDescriptor = { const PluginDescriptor SoapySDRInputPlugin::m_pluginDescriptor = {
QString("SoapySDR Input"), QString("SoapySDR Input"),
QString("4.4.1"), QString("4.4.4"),
QString("(c) Edouard Griffiths, F4EXB"), QString("(c) Edouard Griffiths, F4EXB"),
QString("https://github.com/f4exb/sdrangel"), QString("https://github.com/f4exb/sdrangel"),
true, true,

View File

@ -47,12 +47,16 @@ bool ComplexFactorGUI::getAutomatic() const
void ComplexFactorGUI::setModule(double value) void ComplexFactorGUI::setModule(double value)
{ {
ui->module->setValue((int) (value < -1.0 ? -1.0 : value > 1.0 ? 1.0 : value)*100.0f); double modValue = value < -1.0 ? -1.0 : value > 1.0 ? 1.0 : value;
ui->module->setValue((int) modValue*100.0f);
ui->moduleText->setText(tr("%1").arg(modValue, 0, 'f', 2));
} }
void ComplexFactorGUI::setArgument(double value) void ComplexFactorGUI::setArgument(double value)
{ {
ui->module->setValue((int) (value < -180.0 ? -180.0 : value > 180.0 ? 180.0 : value)); int argValue = (int) (value < -180.0 ? -180.0 : value > 180.0 ? 180.0 : value);
ui->arg->setValue(argValue);
ui->argText->setText(tr("%1").arg(value));
} }
void ComplexFactorGUI::setAutomatic(bool automatic) void ComplexFactorGUI::setAutomatic(bool automatic)
@ -84,10 +88,12 @@ void ComplexFactorGUI::on_automatic_toggled(bool set)
void ComplexFactorGUI::on_module_valueChanged(int value) void ComplexFactorGUI::on_module_valueChanged(int value)
{ {
emit moduleChanged(value / 100.0f); ui->moduleText->setText(tr("%1").arg(value/100.0f, 0, 'f', 2));
emit moduleChanged(value/100.0f);
} }
void ComplexFactorGUI::on_arg_valueChanged(int value) void ComplexFactorGUI::on_arg_valueChanged(int value)
{ {
ui->argText->setText(tr("%1").arg(value));
emit argumentChanged(value); emit argumentChanged(value);
} }

View File

@ -6,8 +6,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>307</width> <width>300</width>
<height>51</height> <height>58</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">
@ -18,8 +18,8 @@
</property> </property>
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>0</width> <width>300</width>
<height>30</height> <height>58</height>
</size> </size>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
@ -53,6 +53,9 @@
</item> </item>
<item> <item>
<widget class="QCheckBox" name="automatic"> <widget class="QCheckBox" name="automatic">
<property name="toolTip">
<string>Automatic setting</string>
</property>
<property name="layoutDirection"> <property name="layoutDirection">
<enum>Qt::RightToLeft</enum> <enum>Qt::RightToLeft</enum>
</property> </property>
@ -67,6 +70,9 @@ QCheckBox::indicator::checked {background: rgb(255, 157, 38);}</string>
</item> </item>
<item> <item>
<layout class="QVBoxLayout" name="verticalLayout"> <layout class="QVBoxLayout" name="verticalLayout">
<property name="spacing">
<number>0</number>
</property>
<property name="leftMargin"> <property name="leftMargin">
<number>6</number> <number>6</number>
</property> </property>
@ -91,7 +97,7 @@ QCheckBox::indicator::checked {background: rgb(255, 157, 38);}</string>
<item> <item>
<widget class="QSlider" name="module"> <widget class="QSlider" name="module">
<property name="toolTip"> <property name="toolTip">
<string>Normalized module</string> <string>Complex modulus normalized</string>
</property> </property>
<property name="minimum"> <property name="minimum">
<number>0</number> <number>0</number>
@ -143,7 +149,7 @@ QCheckBox::indicator::checked {background: rgb(255, 157, 38);}</string>
<item> <item>
<widget class="QSlider" name="arg"> <widget class="QSlider" name="arg">
<property name="toolTip"> <property name="toolTip">
<string>Argument (angle) in degrees</string> <string>Complex argument (angle) in degrees</string>
</property> </property>
<property name="minimum"> <property name="minimum">
<number>-180</number> <number>-180</number>