Massive UI revamping (v7): fixed widget size handling: sample sources. Part ofs #1209

This commit is contained in:
f4exb 2022-04-21 07:53:36 +02:00
parent 62ca8f8b29
commit 90d331675a
69 changed files with 695 additions and 225 deletions

View File

@ -18,6 +18,7 @@
#include <QDebug> #include <QDebug>
#include <QMessageBox> #include <QMessageBox>
#include <QFileDialog> #include <QFileDialog>
#include <QResizeEvent>
#include <libairspy/airspy.h> #include <libairspy/airspy.h>
@ -47,6 +48,7 @@ AirspyGui::AirspyGui(DeviceUISet *deviceUISet, QWidget* parent) :
m_sampleSource = (AirspyInput*) m_deviceUISet->m_deviceAPI->getSampleSource(); m_sampleSource = (AirspyInput*) m_deviceUISet->m_deviceAPI->getSampleSource();
ui->setupUi(getContents()); ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
getContents()->setStyleSheet(QString(tr("#AirspyGui { border: 1px solid %1 }") getContents()->setStyleSheet(QString(tr("#AirspyGui { border: 1px solid %1 }")
.arg(palette().highlight().color().darker(115).name()))); .arg(palette().highlight().color().darker(115).name())));
ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold)); ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold));
@ -104,6 +106,12 @@ bool AirspyGui::deserialize(const QByteArray& data)
} }
} }
void AirspyGui::resizeEvent(QResizeEvent* size)
{
adjustSize();
size->accept();
}
bool AirspyGui::handleMessage(const Message& message) bool AirspyGui::handleMessage(const Message& message)
{ {
if (AirspyInput::MsgConfigureAirspy::match(message)) if (AirspyInput::MsgConfigureAirspy::match(message))

View File

@ -48,6 +48,9 @@ public:
uint32_t getDevSampleRate(unsigned int index); uint32_t getDevSampleRate(unsigned int index);
int getDevSampleRateIndex(uint32_t sampleRate); int getDevSampleRateIndex(uint32_t sampleRate);
protected:
void resizeEvent(QResizeEvent* size);
private: private:
Ui::AirspyGui* ui; Ui::AirspyGui* ui;

View File

@ -7,11 +7,11 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>360</width> <width>360</width>
<height>244</height> <height>187</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Maximum"> <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
@ -19,7 +19,13 @@
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>360</width> <width>360</width>
<height>0</height> <height>187</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>360</width>
<height>187</height>
</size> </size>
</property> </property>
<property name="font"> <property name="font">
@ -286,7 +292,7 @@
<item row="0" column="0"> <item row="0" column="0">
<widget class="QLabel" name="sampleRateLabel"> <widget class="QLabel" name="sampleRateLabel">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Preferred"> <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
@ -612,17 +618,17 @@
</layout> </layout>
</widget> </widget>
<customwidgets> <customwidgets>
<customwidget>
<class>ButtonSwitch</class>
<extends>QToolButton</extends>
<header>gui/buttonswitch.h</header>
</customwidget>
<customwidget> <customwidget>
<class>ValueDial</class> <class>ValueDial</class>
<extends>QWidget</extends> <extends>QWidget</extends>
<header>gui/valuedial.h</header> <header>gui/valuedial.h</header>
<container>1</container> <container>1</container>
</customwidget> </customwidget>
<customwidget>
<class>ButtonSwitch</class>
<extends>QToolButton</extends>
<header>gui/buttonswitch.h</header>
</customwidget>
<customwidget> <customwidget>
<class>TransverterButton</class> <class>TransverterButton</class>
<extends>QPushButton</extends> <extends>QPushButton</extends>

View File

@ -18,6 +18,7 @@
#include <QDebug> #include <QDebug>
#include <QMessageBox> #include <QMessageBox>
#include <QFileDialog> #include <QFileDialog>
#include <QResizeEvent>
#include <libairspyhf/airspyhf.h> #include <libairspyhf/airspyhf.h>
@ -46,6 +47,7 @@ AirspyHFGui::AirspyHFGui(DeviceUISet *deviceUISet, QWidget* parent) :
m_sampleSource = (AirspyHFInput*) m_deviceUISet->m_deviceAPI->getSampleSource(); m_sampleSource = (AirspyHFInput*) m_deviceUISet->m_deviceAPI->getSampleSource();
ui->setupUi(getContents()); ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
getContents()->setStyleSheet(QString(tr("#AirspyHFGui { border: 1px solid %1 }") getContents()->setStyleSheet(QString(tr("#AirspyHFGui { border: 1px solid %1 }")
.arg(palette().highlight().color().darker(115).name()))); .arg(palette().highlight().color().darker(115).name())));
m_helpURL = "plugins/samplesource/airspyhf/readme.md"; m_helpURL = "plugins/samplesource/airspyhf/readme.md";
@ -104,6 +106,12 @@ bool AirspyHFGui::deserialize(const QByteArray& data)
} }
} }
void AirspyHFGui::resizeEvent(QResizeEvent* size)
{
adjustSize();
size->accept();
}
bool AirspyHFGui::handleMessage(const Message& message) bool AirspyHFGui::handleMessage(const Message& message)
{ {
if (AirspyHFInput::MsgConfigureAirspyHF::match(message)) if (AirspyHFInput::MsgConfigureAirspyHF::match(message))

View File

@ -49,6 +49,9 @@ public:
uint32_t getDevSampleRate(unsigned int index); uint32_t getDevSampleRate(unsigned int index);
int getDevSampleRateIndex(uint32_t sampleRate); int getDevSampleRateIndex(uint32_t sampleRate);
protected:
void resizeEvent(QResizeEvent* size);
private: private:
Ui::AirspyHFGui* ui; Ui::AirspyHFGui* ui;

View File

@ -7,11 +7,11 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>360</width> <width>360</width>
<height>180</height> <height>137</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Maximum"> <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
@ -19,7 +19,13 @@
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>360</width> <width>360</width>
<height>0</height> <height>137</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>360</width>
<height>137</height>
</size> </size>
</property> </property>
<property name="font"> <property name="font">
@ -49,9 +55,6 @@
</property> </property>
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout_freq"> <layout class="QHBoxLayout" name="horizontalLayout_freq">
<property name="topMargin">
<number>4</number>
</property>
<item> <item>
<layout class="QVBoxLayout" name="deviceUILayout"> <layout class="QVBoxLayout" name="deviceUILayout">
<item> <item>
@ -584,17 +587,17 @@
</layout> </layout>
</widget> </widget>
<customwidgets> <customwidgets>
<customwidget>
<class>ButtonSwitch</class>
<extends>QToolButton</extends>
<header>gui/buttonswitch.h</header>
</customwidget>
<customwidget> <customwidget>
<class>ValueDial</class> <class>ValueDial</class>
<extends>QWidget</extends> <extends>QWidget</extends>
<header>gui/valuedial.h</header> <header>gui/valuedial.h</header>
<container>1</container> <container>1</container>
</customwidget> </customwidget>
<customwidget>
<class>ButtonSwitch</class>
<extends>QToolButton</extends>
<header>gui/buttonswitch.h</header>
</customwidget>
<customwidget> <customwidget>
<class>TransverterButton</class> <class>TransverterButton</class>
<extends>QPushButton</extends> <extends>QPushButton</extends>

View File

@ -18,6 +18,7 @@
#include <QMessageBox> #include <QMessageBox>
#include <QFileDialog> #include <QFileDialog>
#include <QResizeEvent>
#include "ui_audioinputgui.h" #include "ui_audioinputgui.h"
#include "gui/colormapper.h" #include "gui/colormapper.h"
@ -43,6 +44,7 @@ AudioInputGui::AudioInputGui(DeviceUISet *deviceUISet, QWidget* parent) :
m_sampleSource = (AudioInput*) m_deviceUISet->m_deviceAPI->getSampleSource(); m_sampleSource = (AudioInput*) m_deviceUISet->m_deviceAPI->getSampleSource();
ui->setupUi(getContents()); ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
getContents()->setStyleSheet(QString(tr("#AudioInputGui { border: 1px solid %1 }") getContents()->setStyleSheet(QString(tr("#AudioInputGui { border: 1px solid %1 }")
.arg(palette().highlight().color().darker(115).name()))); .arg(palette().highlight().color().darker(115).name())));
m_helpURL = "plugins/samplesource/audioinput/readme.md"; m_helpURL = "plugins/samplesource/audioinput/readme.md";
@ -95,6 +97,12 @@ bool AudioInputGui::deserialize(const QByteArray& data)
} }
} }
void AudioInputGui::resizeEvent(QResizeEvent* size)
{
adjustSize();
size->accept();
}
bool AudioInputGui::handleMessage(const Message& message) bool AudioInputGui::handleMessage(const Message& message)
{ {
if (AudioInput::MsgConfigureAudioInput::match(message)) if (AudioInput::MsgConfigureAudioInput::match(message))

View File

@ -47,6 +47,9 @@ public:
bool deserialize(const QByteArray& data); bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; } virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
protected:
void resizeEvent(QResizeEvent* size);
private: private:
Ui::AudioInputGui* ui; Ui::AudioInputGui* ui;

View File

@ -11,7 +11,7 @@
</rect> </rect>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed"> <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
@ -19,7 +19,13 @@
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>360</width> <width>360</width>
<height>0</height> <height>191</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>360</width>
<height>191</height>
</size> </size>
</property> </property>
<property name="font"> <property name="font">
@ -29,7 +35,7 @@
</font> </font>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
<string>FunCubeDongle</string> <string>Audio</string>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout"> <layout class="QVBoxLayout" name="verticalLayout">
<property name="spacing"> <property name="spacing">
@ -49,15 +55,18 @@
</property> </property>
<item> <item>
<layout class="QHBoxLayout" name="layoutFrequency"> <layout class="QHBoxLayout" name="layoutFrequency">
<property name="topMargin">
<number>4</number>
</property>
<item> <item>
<layout class="QVBoxLayout" name="deviceUILayout"> <layout class="QVBoxLayout" name="deviceUILayout">
<item> <item>
<layout class="QHBoxLayout" name="deviceButtonsLayout"> <layout class="QHBoxLayout" name="deviceButtonsLayout">
<item> <item>
<widget class="ButtonSwitch" name="startStop"> <widget class="ButtonSwitch" name="startStop">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip"> <property name="toolTip">
<string>start/stop acquisition</string> <string>start/stop acquisition</string>
</property> </property>
@ -105,6 +114,31 @@
</property> </property>
</spacer> </spacer>
</item> </item>
<item>
<widget class="QLabel" name="label_2">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>5</width>
<height>32</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>5</width>
<height>32</height>
</size>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
</layout> </layout>
</item> </item>
<item> <item>

View File

@ -18,6 +18,7 @@
#include <QDebug> #include <QDebug>
#include <QMessageBox> #include <QMessageBox>
#include <QFileDialog> #include <QFileDialog>
#include <QResizeEvent>
#include <libbladeRF.h> #include <libbladeRF.h>
@ -48,6 +49,7 @@ Bladerf1InputGui::Bladerf1InputGui(DeviceUISet *deviceUISet, QWidget* parent) :
m_sampleSource = (Bladerf1Input*) m_deviceUISet->m_deviceAPI->getSampleSource(); m_sampleSource = (Bladerf1Input*) m_deviceUISet->m_deviceAPI->getSampleSource();
ui->setupUi(getContents()); ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
getContents()->setStyleSheet(QString(tr("#Bladerf1InputGui { border: 1px solid %1 }") getContents()->setStyleSheet(QString(tr("#Bladerf1InputGui { border: 1px solid %1 }")
.arg(palette().highlight().color().darker(115).name()))); .arg(palette().highlight().color().darker(115).name())));
m_helpURL = "plugins/samplesource/bladerf1input/readme.md"; m_helpURL = "plugins/samplesource/bladerf1input/readme.md";
@ -114,6 +116,12 @@ bool Bladerf1InputGui::deserialize(const QByteArray& data)
} }
} }
void Bladerf1InputGui::resizeEvent(QResizeEvent* size)
{
adjustSize();
size->accept();
}
bool Bladerf1InputGui::handleMessage(const Message& message) bool Bladerf1InputGui::handleMessage(const Message& message)
{ {
if (Bladerf1Input::MsgConfigureBladerf1::match(message)) if (Bladerf1Input::MsgConfigureBladerf1::match(message))

View File

@ -72,6 +72,9 @@ private:
bool handleMessage(const Message& message); bool handleMessage(const Message& message);
void makeUIConnections(); void makeUIConnections();
protected:
void resizeEvent(QResizeEvent* size);
private slots: private slots:
void handleInputMessages(); void handleInputMessages();
void on_centerFrequency_changed(quint64 value); void on_centerFrequency_changed(quint64 value);

View File

@ -7,11 +7,11 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>360</width> <width>360</width>
<height>250</height> <height>173</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum"> <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
@ -19,7 +19,13 @@
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>360</width> <width>360</width>
<height>0</height> <height>173</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>360</width>
<height>173</height>
</size> </size>
</property> </property>
<property name="font"> <property name="font">
@ -684,17 +690,17 @@
</layout> </layout>
</widget> </widget>
<customwidgets> <customwidgets>
<customwidget>
<class>ButtonSwitch</class>
<extends>QToolButton</extends>
<header>gui/buttonswitch.h</header>
</customwidget>
<customwidget> <customwidget>
<class>ValueDial</class> <class>ValueDial</class>
<extends>QWidget</extends> <extends>QWidget</extends>
<header>gui/valuedial.h</header> <header>gui/valuedial.h</header>
<container>1</container> <container>1</container>
</customwidget> </customwidget>
<customwidget>
<class>ButtonSwitch</class>
<extends>QToolButton</extends>
<header>gui/buttonswitch.h</header>
</customwidget>
</customwidgets> </customwidgets>
<resources> <resources>
<include location="../../../sdrgui/resources/res.qrc"/> <include location="../../../sdrgui/resources/res.qrc"/>

View File

@ -18,6 +18,7 @@
#include <QDebug> #include <QDebug>
#include <QMessageBox> #include <QMessageBox>
#include <QFileDialog> #include <QFileDialog>
#include <QResizeEvent>
#include <libbladeRF.h> #include <libbladeRF.h>
@ -51,6 +52,7 @@ BladeRF2InputGui::BladeRF2InputGui(DeviceUISet *deviceUISet, QWidget* parent) :
uint64_t f_min, f_max; uint64_t f_min, f_max;
ui->setupUi(getContents()); ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
getContents()->setStyleSheet(QString(tr("#Bladerf2InputGui { border: 1px solid %1 }") getContents()->setStyleSheet(QString(tr("#Bladerf2InputGui { border: 1px solid %1 }")
.arg(palette().highlight().color().darker(115).name()))); .arg(palette().highlight().color().darker(115).name())));
m_helpURL = "plugins/samplesource/bladerf2input/readme.md"; m_helpURL = "plugins/samplesource/bladerf2input/readme.md";
@ -136,6 +138,12 @@ bool BladeRF2InputGui::deserialize(const QByteArray& data)
} }
} }
void BladeRF2InputGui::resizeEvent(QResizeEvent* size)
{
adjustSize();
size->accept();
}
void BladeRF2InputGui::updateFrequencyLimits() void BladeRF2InputGui::updateFrequencyLimits()
{ {
// values in kHz // values in kHz

View File

@ -79,6 +79,9 @@ private:
bool handleMessage(const Message& message); bool handleMessage(const Message& message);
void makeUIConnections(); void makeUIConnections();
protected:
void resizeEvent(QResizeEvent* size);
private slots: private slots:
void handleInputMessages(); void handleInputMessages();
void on_centerFrequency_changed(quint64 value); void on_centerFrequency_changed(quint64 value);

View File

@ -7,11 +7,11 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>360</width> <width>360</width>
<height>209</height> <height>172</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum"> <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
@ -19,7 +19,13 @@
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>360</width> <width>360</width>
<height>0</height> <height>172</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>360</width>
<height>172</height>
</size> </size>
</property> </property>
<property name="font"> <property name="font">
@ -552,17 +558,17 @@
</layout> </layout>
</widget> </widget>
<customwidgets> <customwidgets>
<customwidget>
<class>ButtonSwitch</class>
<extends>QToolButton</extends>
<header>gui/buttonswitch.h</header>
</customwidget>
<customwidget> <customwidget>
<class>ValueDial</class> <class>ValueDial</class>
<extends>QWidget</extends> <extends>QWidget</extends>
<header>gui/valuedial.h</header> <header>gui/valuedial.h</header>
<container>1</container> <container>1</container>
</customwidget> </customwidget>
<customwidget>
<class>ButtonSwitch</class>
<extends>QToolButton</extends>
<header>gui/buttonswitch.h</header>
</customwidget>
<customwidget> <customwidget>
<class>TransverterButton</class> <class>TransverterButton</class>
<extends>QPushButton</extends> <extends>QPushButton</extends>

View File

@ -17,6 +17,7 @@
#include <QMessageBox> #include <QMessageBox>
#include <QFileDialog> #include <QFileDialog>
#include <QResizeEvent>
#include "ui_fcdprogui.h" #include "ui_fcdprogui.h"
#include "gui/colormapper.h" #include "gui/colormapper.h"
@ -44,6 +45,7 @@ FCDProGui::FCDProGui(DeviceUISet *deviceUISet, QWidget* parent) :
m_sampleSource = (FCDProInput*) m_deviceUISet->m_deviceAPI->getSampleSource(); m_sampleSource = (FCDProInput*) m_deviceUISet->m_deviceAPI->getSampleSource();
ui->setupUi(getContents()); ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
getContents()->setStyleSheet(QString(tr("#FCDProGui { border: 1px solid %1 }") getContents()->setStyleSheet(QString(tr("#FCDProGui { border: 1px solid %1 }")
.arg(palette().highlight().color().darker(115).name()))); .arg(palette().highlight().color().darker(115).name())));
m_helpURL = "plugins/samplesource/fcdpro/readme.md"; m_helpURL = "plugins/samplesource/fcdpro/readme.md";
@ -197,6 +199,12 @@ bool FCDProGui::deserialize(const QByteArray& data)
} }
} }
void FCDProGui::resizeEvent(QResizeEvent* size)
{
adjustSize();
size->accept();
}
bool FCDProGui::handleMessage(const Message& message) bool FCDProGui::handleMessage(const Message& message)
{ {
if (FCDProInput::MsgConfigureFCDPro::match(message)) if (FCDProInput::MsgConfigureFCDPro::match(message))

View File

@ -70,6 +70,9 @@ private:
bool handleMessage(const Message& message); bool handleMessage(const Message& message);
void makeUIConnections(); void makeUIConnections();
protected:
void resizeEvent(QResizeEvent* size);
private slots: private slots:
void handleInputMessages(); void handleInputMessages();
void on_centerFrequency_changed(quint64 value); void on_centerFrequency_changed(quint64 value);

View File

@ -7,11 +7,11 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>360</width> <width>360</width>
<height>443</height> <height>394</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed"> <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
@ -19,7 +19,13 @@
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>360</width> <width>360</width>
<height>0</height> <height>394</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>360</width>
<height>394</height>
</size> </size>
</property> </property>
<property name="font"> <property name="font">
@ -613,17 +619,17 @@
</layout> </layout>
</widget> </widget>
<customwidgets> <customwidgets>
<customwidget>
<class>ButtonSwitch</class>
<extends>QToolButton</extends>
<header>gui/buttonswitch.h</header>
</customwidget>
<customwidget> <customwidget>
<class>ValueDial</class> <class>ValueDial</class>
<extends>QWidget</extends> <extends>QWidget</extends>
<header>gui/valuedial.h</header> <header>gui/valuedial.h</header>
<container>1</container> <container>1</container>
</customwidget> </customwidget>
<customwidget>
<class>ButtonSwitch</class>
<extends>QToolButton</extends>
<header>gui/buttonswitch.h</header>
</customwidget>
<customwidget> <customwidget>
<class>TransverterButton</class> <class>TransverterButton</class>
<extends>QPushButton</extends> <extends>QPushButton</extends>

View File

@ -18,6 +18,7 @@
#include <QDebug> #include <QDebug>
#include <QMessageBox> #include <QMessageBox>
#include <QFileDialog> #include <QFileDialog>
#include <QResizeEvent>
#include "ui_fcdproplusgui.h" #include "ui_fcdproplusgui.h"
#include "gui/colormapper.h" #include "gui/colormapper.h"
@ -45,6 +46,7 @@ FCDProPlusGui::FCDProPlusGui(DeviceUISet *deviceUISet, QWidget* parent) :
m_sampleSource = (FCDProPlusInput*) m_deviceUISet->m_deviceAPI->getSampleSource(); m_sampleSource = (FCDProPlusInput*) m_deviceUISet->m_deviceAPI->getSampleSource();
ui->setupUi(getContents()); ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
getContents()->setStyleSheet(QString(tr("#FCDProPlusGui { border: 1px solid %1 }") getContents()->setStyleSheet(QString(tr("#FCDProPlusGui { border: 1px solid %1 }")
.arg(palette().highlight().color().darker(115).name()))); .arg(palette().highlight().color().darker(115).name())));
m_helpURL = "plugins/samplesource/fcdproplus/readme.md"; m_helpURL = "plugins/samplesource/fcdproplus/readme.md";
@ -115,6 +117,12 @@ bool FCDProPlusGui::deserialize(const QByteArray& data)
} }
} }
void FCDProPlusGui::resizeEvent(QResizeEvent* size)
{
adjustSize();
size->accept();
}
bool FCDProPlusGui::handleMessage(const Message& message) bool FCDProPlusGui::handleMessage(const Message& message)
{ {
if (FCDProPlusInput::MsgConfigureFCDProPlus::match(message)) if (FCDProPlusInput::MsgConfigureFCDProPlus::match(message))

View File

@ -69,6 +69,9 @@ private:
bool handleMessage(const Message& message); bool handleMessage(const Message& message);
void makeUIConnections(); void makeUIConnections();
protected:
void resizeEvent(QResizeEvent* size);
private slots: private slots:
void handleInputMessages(); void handleInputMessages();
void on_centerFrequency_changed(quint64 value); void on_centerFrequency_changed(quint64 value);

View File

@ -7,11 +7,11 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>360</width> <width>360</width>
<height>219</height> <height>162</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Maximum"> <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
@ -19,7 +19,13 @@
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>360</width> <width>360</width>
<height>0</height> <height>162</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>360</width>
<height>162</height>
</size> </size>
</property> </property>
<property name="font"> <property name="font">
@ -455,17 +461,17 @@
</layout> </layout>
</widget> </widget>
<customwidgets> <customwidgets>
<customwidget>
<class>ButtonSwitch</class>
<extends>QToolButton</extends>
<header>gui/buttonswitch.h</header>
</customwidget>
<customwidget> <customwidget>
<class>ValueDial</class> <class>ValueDial</class>
<extends>QWidget</extends> <extends>QWidget</extends>
<header>gui/valuedial.h</header> <header>gui/valuedial.h</header>
<container>1</container> <container>1</container>
</customwidget> </customwidget>
<customwidget>
<class>ButtonSwitch</class>
<extends>QToolButton</extends>
<header>gui/buttonswitch.h</header>
</customwidget>
<customwidget> <customwidget>
<class>TransverterButton</class> <class>TransverterButton</class>
<extends>QPushButton</extends> <extends>QPushButton</extends>

View File

@ -22,6 +22,7 @@
#include <QString> #include <QString>
#include <QFileDialog> #include <QFileDialog>
#include <QMessageBox> #include <QMessageBox>
#include <QResizeEvent>
#include "ui_fileinputgui.h" #include "ui_fileinputgui.h"
#include "plugin/pluginapi.h" #include "plugin/pluginapi.h"
@ -56,6 +57,7 @@ FileInputGUI::FileInputGUI(DeviceUISet *deviceUISet, QWidget* parent) :
{ {
setAttribute(Qt::WA_DeleteOnClose, true); setAttribute(Qt::WA_DeleteOnClose, true);
ui->setupUi(getContents()); ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
getContents()->setStyleSheet(QString(tr("#FileInputGUI { border: 1px solid %1 }") getContents()->setStyleSheet(QString(tr("#FileInputGUI { border: 1px solid %1 }")
.arg(palette().highlight().color().darker(115).name()))); .arg(palette().highlight().color().darker(115).name())));
m_helpURL = "plugins/samplesource/fileinput/readme.md"; m_helpURL = "plugins/samplesource/fileinput/readme.md";
@ -117,6 +119,12 @@ bool FileInputGUI::deserialize(const QByteArray& data)
} }
} }
void FileInputGUI::resizeEvent(QResizeEvent* size)
{
adjustSize();
size->accept();
}
void FileInputGUI::handleInputMessages() void FileInputGUI::handleInputMessages()
{ {
Message* message; Message* message;

View File

@ -47,6 +47,9 @@ public:
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; } virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
virtual bool handleMessage(const Message& message); virtual bool handleMessage(const Message& message);
protected:
void resizeEvent(QResizeEvent* size);
private: private:
Ui::FileInputGUI* ui; Ui::FileInputGUI* ui;

View File

@ -11,7 +11,7 @@
</rect> </rect>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Maximum"> <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
@ -19,7 +19,13 @@
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>360</width> <width>360</width>
<height>0</height> <height>202</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>360</width>
<height>202</height>
</size> </size>
</property> </property>
<property name="font"> <property name="font">
@ -52,9 +58,6 @@
</property> </property>
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout_freq"> <layout class="QHBoxLayout" name="horizontalLayout_freq">
<property name="topMargin">
<number>4</number>
</property>
<item> <item>
<layout class="QVBoxLayout" name="deviceUILayout"> <layout class="QVBoxLayout" name="deviceUILayout">
<item> <item>

View File

@ -20,6 +20,7 @@
#include <QDebug> #include <QDebug>
#include <QMessageBox> #include <QMessageBox>
#include <QFileDialog> #include <QFileDialog>
#include <QResizeEvent>
#include <libhackrf/hackrf.h> #include <libhackrf/hackrf.h>
@ -49,6 +50,7 @@ HackRFInputGui::HackRFInputGui(DeviceUISet *deviceUISet, QWidget* parent) :
m_sampleSource = (HackRFInput*) m_deviceUISet->m_deviceAPI->getSampleSource(); m_sampleSource = (HackRFInput*) m_deviceUISet->m_deviceAPI->getSampleSource();
ui->setupUi(getContents()); ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
getContents()->setStyleSheet(QString(tr("#HackRFInputGui { border: 1px solid %1 }") getContents()->setStyleSheet(QString(tr("#HackRFInputGui { border: 1px solid %1 }")
.arg(palette().highlight().color().darker(115).name()))); .arg(palette().highlight().color().darker(115).name())));
m_helpURL = "plugins/samplesource/hackrfinput/readme.md"; m_helpURL = "plugins/samplesource/hackrfinput/readme.md";
@ -114,6 +116,12 @@ bool HackRFInputGui::deserialize(const QByteArray& data)
} }
} }
void HackRFInputGui::resizeEvent(QResizeEvent* size)
{
adjustSize();
size->accept();
}
bool HackRFInputGui::handleMessage(const Message& message) bool HackRFInputGui::handleMessage(const Message& message)
{ {
if (HackRFInput::MsgConfigureHackRF::match(message)) if (HackRFInput::MsgConfigureHackRF::match(message))

View File

@ -55,6 +55,9 @@ public:
bool deserialize(const QByteArray& data); bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; } virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
protected:
void resizeEvent(QResizeEvent* size);
private: private:
Ui::HackRFInputGui* ui; Ui::HackRFInputGui* ui;

View File

@ -7,11 +7,11 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>360</width> <width>360</width>
<height>272</height> <height>230</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum"> <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
@ -19,7 +19,13 @@
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>360</width> <width>360</width>
<height>0</height> <height>230</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>360</width>
<height>230</height>
</size> </size>
</property> </property>
<property name="font"> <property name="font">
@ -116,7 +122,7 @@
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>32</width> <width>32</width>
<height>50</height> <height>0</height>
</size> </size>
</property> </property>
<property name="font"> <property name="font">
@ -661,17 +667,17 @@
</layout> </layout>
</widget> </widget>
<customwidgets> <customwidgets>
<customwidget>
<class>ButtonSwitch</class>
<extends>QToolButton</extends>
<header>gui/buttonswitch.h</header>
</customwidget>
<customwidget> <customwidget>
<class>ValueDial</class> <class>ValueDial</class>
<extends>QWidget</extends> <extends>QWidget</extends>
<header>gui/valuedial.h</header> <header>gui/valuedial.h</header>
<container>1</container> <container>1</container>
</customwidget> </customwidget>
<customwidget>
<class>ButtonSwitch</class>
<extends>QToolButton</extends>
<header>gui/buttonswitch.h</header>
</customwidget>
<customwidget> <customwidget>
<class>TransverterButton</class> <class>TransverterButton</class>
<extends>QPushButton</extends> <extends>QPushButton</extends>

View File

@ -23,6 +23,7 @@
#include <QString> #include <QString>
#include <QMessageBox> #include <QMessageBox>
#include <QFileDialog> #include <QFileDialog>
#include <QResizeEvent>
#include "ui_kiwisdrgui.h" #include "ui_kiwisdrgui.h"
#include "plugin/pluginapi.h" #include "plugin/pluginapi.h"
@ -67,6 +68,7 @@ KiwiSDRGui::KiwiSDRGui(DeviceUISet *deviceUISet, QWidget* parent) :
m_statusColors.push_back("rgb(232, 85, 232)"); // Disconnected (magenta) m_statusColors.push_back("rgb(232, 85, 232)"); // Disconnected (magenta)
ui->setupUi(getContents()); ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
getContents()->setStyleSheet(QString(tr("#KiwiSDRGui { border: 1px solid %1 }") getContents()->setStyleSheet(QString(tr("#KiwiSDRGui { border: 1px solid %1 }")
.arg(palette().highlight().color().darker(115).name()))); .arg(palette().highlight().color().darker(115).name())));
m_helpURL = "plugins/samplesource/kiwisdr/readme.md"; m_helpURL = "plugins/samplesource/kiwisdr/readme.md";
@ -121,6 +123,12 @@ bool KiwiSDRGui::deserialize(const QByteArray& data)
} }
} }
void KiwiSDRGui::resizeEvent(QResizeEvent* size)
{
adjustSize();
size->accept();
}
void KiwiSDRGui::on_startStop_toggled(bool checked) void KiwiSDRGui::on_startStop_toggled(bool checked)
{ {
if (m_doApplySettings) if (m_doApplySettings)

View File

@ -47,6 +47,9 @@ public:
bool deserialize(const QByteArray& data); bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; } virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
protected:
void resizeEvent(QResizeEvent* size);
private: private:
Ui::KiwiSDRGui* ui; Ui::KiwiSDRGui* ui;

View File

@ -7,11 +7,11 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>360</width> <width>360</width>
<height>146</height> <height>106</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum"> <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
@ -19,7 +19,13 @@
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>360</width> <width>360</width>
<height>0</height> <height>106</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>360</width>
<height>106</height>
</size> </size>
</property> </property>
<property name="font"> <property name="font">
@ -52,9 +58,6 @@
</property> </property>
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout_freq"> <layout class="QHBoxLayout" name="horizontalLayout_freq">
<property name="topMargin">
<number>4</number>
</property>
<item> <item>
<layout class="QVBoxLayout" name="deviceUILayout"> <layout class="QVBoxLayout" name="deviceUILayout">
<item> <item>
@ -314,17 +317,17 @@
</layout> </layout>
</widget> </widget>
<customwidgets> <customwidgets>
<customwidget>
<class>ButtonSwitch</class>
<extends>QToolButton</extends>
<header>gui/buttonswitch.h</header>
</customwidget>
<customwidget> <customwidget>
<class>ValueDial</class> <class>ValueDial</class>
<extends>QWidget</extends> <extends>QWidget</extends>
<header>gui/valuedial.h</header> <header>gui/valuedial.h</header>
<container>1</container> <container>1</container>
</customwidget> </customwidget>
<customwidget>
<class>ButtonSwitch</class>
<extends>QToolButton</extends>
<header>gui/buttonswitch.h</header>
</customwidget>
</customwidgets> </customwidgets>
<resources> <resources>
<include location="../../../sdrgui/resources/res.qrc"/> <include location="../../../sdrgui/resources/res.qrc"/>

View File

@ -20,6 +20,7 @@
#include <QDebug> #include <QDebug>
#include <QMessageBox> #include <QMessageBox>
#include <QFileDialog> #include <QFileDialog>
#include <QResizeEvent>
#include <algorithm> #include <algorithm>
@ -49,6 +50,7 @@ LimeSDRInputGUI::LimeSDRInputGUI(DeviceUISet *deviceUISet, QWidget* parent) :
m_limeSDRInput = (LimeSDRInput*) m_deviceUISet->m_deviceAPI->getSampleSource(); m_limeSDRInput = (LimeSDRInput*) m_deviceUISet->m_deviceAPI->getSampleSource();
ui->setupUi(getContents()); ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
getContents()->setStyleSheet(QString(tr("#LimeSDRInputGUI { border: 1px solid %1 }") getContents()->setStyleSheet(QString(tr("#LimeSDRInputGUI { border: 1px solid %1 }")
.arg(palette().highlight().color().darker(115).name()))); .arg(palette().highlight().color().darker(115).name())));
m_helpURL = "plugins/samplesource/limesdrinput/readme.md"; m_helpURL = "plugins/samplesource/limesdrinput/readme.md";
@ -142,6 +144,12 @@ bool LimeSDRInputGUI::deserialize(const QByteArray& data)
} }
} }
void LimeSDRInputGUI::resizeEvent(QResizeEvent* size)
{
adjustSize();
size->accept();
}
bool LimeSDRInputGUI::handleMessage(const Message& message) bool LimeSDRInputGUI::handleMessage(const Message& message)
{ {
if (LimeSDRInput::MsgConfigureLimeSDR::match(message)) if (LimeSDRInput::MsgConfigureLimeSDR::match(message))

View File

@ -45,6 +45,9 @@ public:
bool deserialize(const QByteArray& data); bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; } virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
protected:
void resizeEvent(QResizeEvent* size);
private: private:
Ui::LimeSDRInputGUI* ui; Ui::LimeSDRInputGUI* ui;

View File

@ -6,8 +6,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>360</width> <width>370</width>
<height>266</height> <height>209</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">
@ -18,8 +18,14 @@
</property> </property>
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>360</width> <width>370</width>
<height>0</height> <height>209</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>370</width>
<height>209</height>
</size> </size>
</property> </property>
<property name="font"> <property name="font">
@ -1157,6 +1163,11 @@ QToolTip{background-color: white; color: black;}</string>
</layout> </layout>
</widget> </widget>
<customwidgets> <customwidgets>
<customwidget>
<class>ButtonSwitch</class>
<extends>QToolButton</extends>
<header>gui/buttonswitch.h</header>
</customwidget>
<customwidget> <customwidget>
<class>ValueDial</class> <class>ValueDial</class>
<extends>QWidget</extends> <extends>QWidget</extends>
@ -1164,21 +1175,16 @@ QToolTip{background-color: white; color: black;}</string>
<container>1</container> <container>1</container>
</customwidget> </customwidget>
<customwidget> <customwidget>
<class>ButtonSwitch</class> <class>ValueDialZ</class>
<extends>QToolButton</extends> <extends>QWidget</extends>
<header>gui/buttonswitch.h</header> <header>gui/valuedialz.h</header>
<container>1</container>
</customwidget> </customwidget>
<customwidget> <customwidget>
<class>TransverterButton</class> <class>TransverterButton</class>
<extends>QPushButton</extends> <extends>QPushButton</extends>
<header>gui/transverterbutton.h</header> <header>gui/transverterbutton.h</header>
</customwidget> </customwidget>
<customwidget>
<class>ValueDialZ</class>
<extends>QWidget</extends>
<header>gui/valuedialz.h</header>
<container>1</container>
</customwidget>
<customwidget> <customwidget>
<class>ExternalClockButton</class> <class>ExternalClockButton</class>
<extends>QToolButton</extends> <extends>QToolButton</extends>

View File

@ -29,6 +29,7 @@
#include <QNetworkReply> #include <QNetworkReply>
#include <QJsonParseError> #include <QJsonParseError>
#include <QJsonObject> #include <QJsonObject>
#include <QResizeEvent>
#include "ui_localinputgui.h" #include "ui_localinputgui.h"
#include "gui/colormapper.h" #include "gui/colormapper.h"
@ -75,6 +76,7 @@ LocalInputGui::LocalInputGui(DeviceUISet *deviceUISet, QWidget* parent) :
m_startingTimeStampms = 0; m_startingTimeStampms = 0;
ui->setupUi(getContents()); ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
getContents()->setStyleSheet(QString(tr("#LocalInputGui { border: 1px solid %1 }") getContents()->setStyleSheet(QString(tr("#LocalInputGui { border: 1px solid %1 }")
.arg(palette().highlight().color().darker(115).name()))); .arg(palette().highlight().color().darker(115).name())));
m_helpURL = "plugins/samplesource/localinput/readme.md"; m_helpURL = "plugins/samplesource/localinput/readme.md";
@ -143,6 +145,12 @@ bool LocalInputGui::deserialize(const QByteArray& data)
} }
} }
void LocalInputGui::resizeEvent(QResizeEvent* size)
{
adjustSize();
size->accept();
}
bool LocalInputGui::handleMessage(const Message& message) bool LocalInputGui::handleMessage(const Message& message)
{ {
if (LocalInput::MsgConfigureLocalInput::match(message)) if (LocalInput::MsgConfigureLocalInput::match(message))

View File

@ -47,6 +47,9 @@ public:
bool deserialize(const QByteArray& data); bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; } virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
protected:
void resizeEvent(QResizeEvent* size);
private: private:
Ui::LocalInputGui* ui; Ui::LocalInputGui* ui;

View File

@ -7,13 +7,25 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>360</width> <width>360</width>
<height>110</height> <height>80</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>360</width> <width>360</width>
<height>0</height> <height>80</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>360</width>
<height>110</height>
</size> </size>
</property> </property>
<property name="font"> <property name="font">
@ -43,15 +55,24 @@
</property> </property>
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout_freq"> <layout class="QHBoxLayout" name="horizontalLayout_freq">
<property name="topMargin">
<number>4</number>
</property>
<item> <item>
<layout class="QVBoxLayout" name="deviceUILayout"> <layout class="QVBoxLayout" name="deviceUILayout">
<item> <item>
<layout class="QHBoxLayout" name="deviceButtonsLayout"> <layout class="QHBoxLayout" name="deviceButtonsLayout">
<item> <item>
<widget class="ButtonSwitch" name="startStop"> <widget class="ButtonSwitch" name="startStop">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>26</width>
<height>16777215</height>
</size>
</property>
<property name="toolTip"> <property name="toolTip">
<string>start/stop acquisition</string> <string>start/stop acquisition</string>
</property> </property>

View File

@ -18,6 +18,7 @@
#include <QDebug> #include <QDebug>
#include <QMessageBox> #include <QMessageBox>
#include <QFileDialog> #include <QFileDialog>
#include <QResizeEvent>
#include "device/deviceapi.h" #include "device/deviceapi.h"
#include "device/deviceuiset.h" #include "device/deviceuiset.h"
@ -44,6 +45,7 @@ PerseusGui::PerseusGui(DeviceUISet *deviceUISet, QWidget* parent) :
m_sampleSource = (PerseusInput*) m_deviceUISet->m_deviceAPI->getSampleSource(); m_sampleSource = (PerseusInput*) m_deviceUISet->m_deviceAPI->getSampleSource();
ui->setupUi(getContents()); ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
getContents()->setStyleSheet(QString(tr("#PerseusGui { border: 1px solid %1 }") getContents()->setStyleSheet(QString(tr("#PerseusGui { border: 1px solid %1 }")
.arg(palette().highlight().color().darker(115).name()))); .arg(palette().highlight().color().darker(115).name())));
m_helpURL = "plugins/samplesource/perseus/readme.md"; m_helpURL = "plugins/samplesource/perseus/readme.md";
@ -102,6 +104,13 @@ bool PerseusGui::deserialize(const QByteArray& data)
} }
} }
void PerseusGui::resizeEvent(QResizeEvent* size)
{
adjustSize();
size->accept();
}
bool PerseusGui::handleMessage(const Message& message) bool PerseusGui::handleMessage(const Message& message)
{ {
// Returned messages to update the GUI (usually from web interface) // Returned messages to update the GUI (usually from web interface)

View File

@ -48,6 +48,9 @@ public:
uint32_t getDevSampleRate(unsigned int index); uint32_t getDevSampleRate(unsigned int index);
int getDevSampleRateIndex(uint32_t sampleRate); int getDevSampleRateIndex(uint32_t sampleRate);
protected:
void resizeEvent(QResizeEvent* size);
private: private:
Ui::PerseusGui* ui; Ui::PerseusGui* ui;

View File

@ -7,11 +7,11 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>360</width> <width>360</width>
<height>182</height> <height>136</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Maximum"> <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
@ -19,7 +19,13 @@
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>360</width> <width>360</width>
<height>0</height> <height>136</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>360</width>
<height>136</height>
</size> </size>
</property> </property>
<property name="font"> <property name="font">
@ -458,17 +464,17 @@
</layout> </layout>
</widget> </widget>
<customwidgets> <customwidgets>
<customwidget>
<class>ButtonSwitch</class>
<extends>QToolButton</extends>
<header>gui/buttonswitch.h</header>
</customwidget>
<customwidget> <customwidget>
<class>ValueDial</class> <class>ValueDial</class>
<extends>QWidget</extends> <extends>QWidget</extends>
<header>gui/valuedial.h</header> <header>gui/valuedial.h</header>
<container>1</container> <container>1</container>
</customwidget> </customwidget>
<customwidget>
<class>ButtonSwitch</class>
<extends>QToolButton</extends>
<header>gui/buttonswitch.h</header>
</customwidget>
<customwidget> <customwidget>
<class>TransverterButton</class> <class>TransverterButton</class>
<extends>QPushButton</extends> <extends>QPushButton</extends>

View File

@ -19,6 +19,7 @@
#include <QDebug> #include <QDebug>
#include <QMessageBox> #include <QMessageBox>
#include <QFileDialog> #include <QFileDialog>
#include <QResizeEvent>
#include "dsp/dspengine.h" #include "dsp/dspengine.h"
#include "dsp/dspcommands.h" #include "dsp/dspcommands.h"
@ -49,6 +50,7 @@ PlutoSDRInputGui::PlutoSDRInputGui(DeviceUISet *deviceUISet, QWidget* parent) :
m_sampleSource = (PlutoSDRInput*) m_deviceUISet->m_deviceAPI->getSampleSource(); m_sampleSource = (PlutoSDRInput*) m_deviceUISet->m_deviceAPI->getSampleSource();
ui->setupUi(getContents()); ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
getContents()->setStyleSheet(QString(tr("#PlutoSDRInputGUI { border: 1px solid %1 }") getContents()->setStyleSheet(QString(tr("#PlutoSDRInputGUI { border: 1px solid %1 }")
.arg(palette().highlight().color().darker(115).name()))); .arg(palette().highlight().color().darker(115).name())));
m_helpURL = "plugins/samplesource/plutosdrinput/readme.md"; m_helpURL = "plugins/samplesource/plutosdrinput/readme.md";
@ -122,6 +124,12 @@ bool PlutoSDRInputGui::deserialize(const QByteArray& data)
} }
} }
void PlutoSDRInputGui::resizeEvent(QResizeEvent* size)
{
adjustSize();
size->accept();
}
bool PlutoSDRInputGui::handleMessage(const Message& message) bool PlutoSDRInputGui::handleMessage(const Message& message)
{ {
if (PlutoSDRInput::MsgConfigurePlutoSDR::match(message)) if (PlutoSDRInput::MsgConfigurePlutoSDR::match(message))

View File

@ -48,6 +48,9 @@ public:
virtual bool deserialize(const QByteArray& data); virtual bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; } virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
protected:
void resizeEvent(QResizeEvent* size);
private: private:
Ui::PlutoSDRInputGUI* ui; Ui::PlutoSDRInputGUI* ui;
DeviceUISet* m_deviceUISet; DeviceUISet* m_deviceUISet;

View File

@ -7,11 +7,11 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>360</width> <width>360</width>
<height>291</height> <height>240</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum"> <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
@ -19,7 +19,13 @@
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>360</width> <width>360</width>
<height>0</height> <height>240</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>360</width>
<height>240</height>
</size> </size>
</property> </property>
<property name="font"> <property name="font">
@ -1010,17 +1016,17 @@
</layout> </layout>
</widget> </widget>
<customwidgets> <customwidgets>
<customwidget>
<class>ButtonSwitch</class>
<extends>QToolButton</extends>
<header>gui/buttonswitch.h</header>
</customwidget>
<customwidget> <customwidget>
<class>ValueDial</class> <class>ValueDial</class>
<extends>QWidget</extends> <extends>QWidget</extends>
<header>gui/valuedial.h</header> <header>gui/valuedial.h</header>
<container>1</container> <container>1</container>
</customwidget> </customwidget>
<customwidget>
<class>ButtonSwitch</class>
<extends>QToolButton</extends>
<header>gui/buttonswitch.h</header>
</customwidget>
<customwidget> <customwidget>
<class>TransverterButton</class> <class>TransverterButton</class>
<extends>QPushButton</extends> <extends>QPushButton</extends>

View File

@ -25,6 +25,7 @@
#include <QTime> #include <QTime>
#include <QDateTime> #include <QDateTime>
#include <QString> #include <QString>
#include <QResizeEvent>
#include "ui_remoteinputgui.h" #include "ui_remoteinputgui.h"
#include "gui/colormapper.h" #include "gui/colormapper.h"
@ -72,6 +73,7 @@ RemoteInputGui::RemoteInputGui(DeviceUISet *deviceUISet, QWidget* parent) :
m_startingTimeStampms = 0; m_startingTimeStampms = 0;
ui->setupUi(getContents()); ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
getContents()->setStyleSheet(QString(tr("#RemoteInputGui { border: 1px solid %1 }") getContents()->setStyleSheet(QString(tr("#RemoteInputGui { border: 1px solid %1 }")
.arg(palette().highlight().color().darker(115).name()))); .arg(palette().highlight().color().darker(115).name())));
m_helpURL = "plugins/samplesource/remoteinput/readme.md"; m_helpURL = "plugins/samplesource/remoteinput/readme.md";
@ -148,6 +150,12 @@ bool RemoteInputGui::deserialize(const QByteArray& data)
} }
} }
void RemoteInputGui::resizeEvent(QResizeEvent* size)
{
adjustSize();
size->accept();
}
bool RemoteInputGui::handleMessage(const Message& message) bool RemoteInputGui::handleMessage(const Message& message)
{ {
if (RemoteInput::MsgConfigureRemoteInput::match(message)) if (RemoteInput::MsgConfigureRemoteInput::match(message))

View File

@ -49,6 +49,9 @@ public:
bool deserialize(const QByteArray& data); bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; } virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
protected:
void resizeEvent(QResizeEvent* size);
private: private:
Ui::RemoteInputGui* ui; Ui::RemoteInputGui* ui;

View File

@ -7,13 +7,25 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>360</width> <width>360</width>
<height>400</height> <height>380</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>360</width> <width>360</width>
<height>0</height> <height>380</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>360</width>
<height>400</height>
</size> </size>
</property> </property>
<property name="font"> <property name="font">
@ -757,13 +769,6 @@
</property> </property>
</widget> </widget>
</item> </item>
<item>
<widget class="Line" name="line">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item> <item>
<layout class="QHBoxLayout" name="apiAddressLayout"> <layout class="QHBoxLayout" name="apiAddressLayout">
<item> <item>
@ -1040,6 +1045,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>
<layout class="QHBoxLayout" name="statusLayout"> <layout class="QHBoxLayout" name="statusLayout">
<item> <item>
@ -1065,17 +1077,17 @@
</layout> </layout>
</widget> </widget>
<customwidgets> <customwidgets>
<customwidget>
<class>ButtonSwitch</class>
<extends>QToolButton</extends>
<header>gui/buttonswitch.h</header>
</customwidget>
<customwidget> <customwidget>
<class>ValueDial</class> <class>ValueDial</class>
<extends>QWidget</extends> <extends>QWidget</extends>
<header>gui/valuedial.h</header> <header>gui/valuedial.h</header>
<container>1</container> <container>1</container>
</customwidget> </customwidget>
<customwidget>
<class>ButtonSwitch</class>
<extends>QToolButton</extends>
<header>gui/buttonswitch.h</header>
</customwidget>
</customwidgets> </customwidgets>
<resources> <resources>
<include location="../../../sdrgui/resources/res.qrc"/> <include location="../../../sdrgui/resources/res.qrc"/>

View File

@ -18,6 +18,7 @@
#include <QDebug> #include <QDebug>
#include <QMessageBox> #include <QMessageBox>
#include <QFileDialog> #include <QFileDialog>
#include <QResizeEvent>
#include "rtlsdrgui.h" #include "rtlsdrgui.h"
@ -46,7 +47,7 @@ RTLSDRGui::RTLSDRGui(DeviceUISet *deviceUISet, QWidget* parent) :
m_sampleSource = (RTLSDRInput*) m_deviceUISet->m_deviceAPI->getSampleSource(); m_sampleSource = (RTLSDRInput*) m_deviceUISet->m_deviceAPI->getSampleSource();
ui->setupUi(getContents()); ui->setupUi(getContents());
QString s(tr("")); setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
getContents()->setStyleSheet(QString(tr("#RTLSDRGui { border: 1px solid %1 }") getContents()->setStyleSheet(QString(tr("#RTLSDRGui { border: 1px solid %1 }")
.arg(palette().highlight().color().darker(115).name()))); .arg(palette().highlight().color().darker(115).name())));
m_helpURL = "plugins/samplesource/rtlsdr/readme.md"; m_helpURL = "plugins/samplesource/rtlsdr/readme.md";
@ -126,6 +127,12 @@ bool RTLSDRGui::deserialize(const QByteArray& data)
} }
} }
void RTLSDRGui::resizeEvent(QResizeEvent* size)
{
adjustSize();
size->accept();
}
bool RTLSDRGui::handleMessage(const Message& message) bool RTLSDRGui::handleMessage(const Message& message)
{ {
if (RTLSDRInput::MsgConfigureRTLSDR::match(message)) if (RTLSDRInput::MsgConfigureRTLSDR::match(message))

View File

@ -47,6 +47,9 @@ public:
bool deserialize(const QByteArray& data); bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; } virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
protected:
void resizeEvent(QResizeEvent* size);
private: private:
Ui::RTLSDRGui* ui; Ui::RTLSDRGui* ui;

View File

@ -7,11 +7,11 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>360</width> <width>360</width>
<height>229</height> <height>217</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum"> <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
@ -19,7 +19,13 @@
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>360</width> <width>360</width>
<height>0</height> <height>217</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>360</width>
<height>217</height>
</size> </size>
</property> </property>
<property name="font"> <property name="font">
@ -645,17 +651,17 @@
</layout> </layout>
</widget> </widget>
<customwidgets> <customwidgets>
<customwidget>
<class>ButtonSwitch</class>
<extends>QToolButton</extends>
<header>gui/buttonswitch.h</header>
</customwidget>
<customwidget> <customwidget>
<class>ValueDial</class> <class>ValueDial</class>
<extends>QWidget</extends> <extends>QWidget</extends>
<header>gui/valuedial.h</header> <header>gui/valuedial.h</header>
<container>1</container> <container>1</container>
</customwidget> </customwidget>
<customwidget>
<class>ButtonSwitch</class>
<extends>QToolButton</extends>
<header>gui/buttonswitch.h</header>
</customwidget>
<customwidget> <customwidget>
<class>TransverterButton</class> <class>TransverterButton</class>
<extends>QPushButton</extends> <extends>QPushButton</extends>

View File

@ -18,6 +18,7 @@
#include <QDebug> #include <QDebug>
#include <QMessageBox> #include <QMessageBox>
#include <QFileDialog> #include <QFileDialog>
#include <QResizeEvent>
#include "sdrplaygui.h" #include "sdrplaygui.h"
@ -43,6 +44,7 @@ SDRPlayGui::SDRPlayGui(DeviceUISet *deviceUISet, QWidget* parent) :
m_sampleSource = (SDRPlayInput*) m_deviceUISet->m_deviceAPI->getSampleSource(); m_sampleSource = (SDRPlayInput*) m_deviceUISet->m_deviceAPI->getSampleSource();
ui->setupUi(getContents()); ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
getContents()->setStyleSheet(QString(tr("#SDRPlayGui { border: 1px solid %1 }") getContents()->setStyleSheet(QString(tr("#SDRPlayGui { border: 1px solid %1 }")
.arg(palette().highlight().color().darker(115).name()))); .arg(palette().highlight().color().darker(115).name())));
m_helpURL = "plugins/samplesource/sdrplay/readme.md"; m_helpURL = "plugins/samplesource/sdrplay/readme.md";
@ -124,6 +126,12 @@ bool SDRPlayGui::deserialize(const QByteArray& data)
} }
} }
void SDRPlayGui::resizeEvent(QResizeEvent* size)
{
adjustSize();
size->accept();
}
bool SDRPlayGui::handleMessage(const Message& message) bool SDRPlayGui::handleMessage(const Message& message)
{ {
if (SDRPlayInput::MsgConfigureSDRPlay::match(message)) if (SDRPlayInput::MsgConfigureSDRPlay::match(message))

View File

@ -47,6 +47,9 @@ public:
virtual bool deserialize(const QByteArray& data); virtual bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; } virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
protected:
void resizeEvent(QResizeEvent* size);
private: private:
Ui::SDRPlayGui* ui; Ui::SDRPlayGui* ui;

View File

@ -7,11 +7,11 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>360</width> <width>360</width>
<height>257</height> <height>202</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Maximum"> <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
@ -19,7 +19,13 @@
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>360</width> <width>360</width>
<height>0</height> <height>202</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>360</width>
<height>202</height>
</size> </size>
</property> </property>
<property name="font"> <property name="font">
@ -642,27 +648,20 @@
</item> </item>
</layout> </layout>
</item> </item>
<item>
<widget class="Line" name="line_vga1">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
</layout> </layout>
</widget> </widget>
<customwidgets> <customwidgets>
<customwidget>
<class>ButtonSwitch</class>
<extends>QToolButton</extends>
<header>gui/buttonswitch.h</header>
</customwidget>
<customwidget> <customwidget>
<class>ValueDial</class> <class>ValueDial</class>
<extends>QWidget</extends> <extends>QWidget</extends>
<header>gui/valuedial.h</header> <header>gui/valuedial.h</header>
<container>1</container> <container>1</container>
</customwidget> </customwidget>
<customwidget>
<class>ButtonSwitch</class>
<extends>QToolButton</extends>
<header>gui/buttonswitch.h</header>
</customwidget>
</customwidgets> </customwidgets>
<resources> <resources>
<include location="../../../sdrgui/resources/res.qrc"/> <include location="../../../sdrgui/resources/res.qrc"/>

View File

@ -18,6 +18,7 @@
#include <QDebug> #include <QDebug>
#include <QMessageBox> #include <QMessageBox>
#include <QResizeEvent>
#include "sdrplayv3gui.h" #include "sdrplayv3gui.h"
#include "sdrplayv3input.h" #include "sdrplayv3input.h"
@ -43,6 +44,7 @@ SDRPlayV3Gui::SDRPlayV3Gui(DeviceUISet *deviceUISet, QWidget* parent) :
m_sdrPlayV3Input = (SDRPlayV3Input*) m_deviceUISet->m_deviceAPI->getSampleSource(); m_sdrPlayV3Input = (SDRPlayV3Input*) m_deviceUISet->m_deviceAPI->getSampleSource();
ui->setupUi(getContents()); ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
getContents()->setStyleSheet(QString(tr("#SDRPlayV3Gui { border: 1px solid %1 }") getContents()->setStyleSheet(QString(tr("#SDRPlayV3Gui { border: 1px solid %1 }")
.arg(palette().highlight().color().darker(115).name()))); .arg(palette().highlight().color().darker(115).name())));
m_helpURL = "plugins/samplesource/sdrplayv3/readme.md"; m_helpURL = "plugins/samplesource/sdrplayv3/readme.md";
@ -160,6 +162,12 @@ bool SDRPlayV3Gui::deserialize(const QByteArray& data)
} }
} }
void SDRPlayV3Gui::resizeEvent(QResizeEvent* size)
{
adjustSize();
size->accept();
}
bool SDRPlayV3Gui::handleMessage(const Message& message) bool SDRPlayV3Gui::handleMessage(const Message& message)
{ {
if (SDRPlayV3Input::MsgConfigureSDRPlayV3::match(message)) if (SDRPlayV3Input::MsgConfigureSDRPlayV3::match(message))

View File

@ -47,6 +47,9 @@ public:
virtual bool deserialize(const QByteArray& data); virtual bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; } virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
protected:
void resizeEvent(QResizeEvent* size);
private: private:
Ui::SDRPlayV3Gui* ui; Ui::SDRPlayV3Gui* ui;

View File

@ -6,20 +6,26 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>360</width> <width>410</width>
<height>303</height> <height>234</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Maximum"> <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<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>360</width> <width>410</width>
<height>0</height> <height>234</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>410</width>
<height>234</height>
</size> </size>
</property> </property>
<property name="font"> <property name="font">
@ -186,13 +192,6 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="0">
<widget class="QLabel" name="ppmLabel">
<property name="text">
<string>LO ppm</string>
</property>
</widget>
</item>
<item row="0" column="1"> <item row="0" column="1">
<widget class="QSlider" name="ppm"> <widget class="QSlider" name="ppm">
<property name="toolTip"> <property name="toolTip">
@ -212,10 +211,10 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="0"> <item row="0" column="0">
<widget class="Line" name="line_5"> <widget class="QLabel" name="ppmLabel">
<property name="orientation"> <property name="text">
<enum>Qt::Horizontal</enum> <string>LO ppm</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -768,17 +767,17 @@
</layout> </layout>
</widget> </widget>
<customwidgets> <customwidgets>
<customwidget>
<class>ButtonSwitch</class>
<extends>QToolButton</extends>
<header>gui/buttonswitch.h</header>
</customwidget>
<customwidget> <customwidget>
<class>ValueDial</class> <class>ValueDial</class>
<extends>QWidget</extends> <extends>QWidget</extends>
<header>gui/valuedial.h</header> <header>gui/valuedial.h</header>
<container>1</container> <container>1</container>
</customwidget> </customwidget>
<customwidget>
<class>ButtonSwitch</class>
<extends>QToolButton</extends>
<header>gui/buttonswitch.h</header>
</customwidget>
<customwidget> <customwidget>
<class>TransverterButton</class> <class>TransverterButton</class>
<extends>QPushButton</extends> <extends>QPushButton</extends>

View File

@ -22,6 +22,7 @@
#include <QString> #include <QString>
#include <QFileDialog> #include <QFileDialog>
#include <QMessageBox> #include <QMessageBox>
#include <QResizeEvent>
#include "ui_sigmffileinputgui.h" #include "ui_sigmffileinputgui.h"
#include "plugin/pluginapi.h" #include "plugin/pluginapi.h"
@ -62,6 +63,7 @@ SigMFFileInputGUI::SigMFFileInputGUI(DeviceUISet *deviceUISet, QWidget* parent)
{ {
setAttribute(Qt::WA_DeleteOnClose, true); setAttribute(Qt::WA_DeleteOnClose, true);
ui->setupUi(getContents()); ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Expanding);
getContents()->setStyleSheet(QString(tr("#SigMFFileInputGUI { border: 1px solid %1 }") getContents()->setStyleSheet(QString(tr("#SigMFFileInputGUI { border: 1px solid %1 }")
.arg(palette().highlight().color().darker(115).name()))); .arg(palette().highlight().color().darker(115).name())));
m_helpURL = "plugins/samplesource/sigmffileinput/readme.md"; m_helpURL = "plugins/samplesource/sigmffileinput/readme.md";
@ -129,6 +131,12 @@ bool SigMFFileInputGUI::deserialize(const QByteArray& data)
} }
} }
void SigMFFileInputGUI::resizeEvent(QResizeEvent* size)
{
resize(436, height());
size->accept();
}
void SigMFFileInputGUI::handleInputMessages() void SigMFFileInputGUI::handleInputMessages()
{ {
Message* message; Message* message;

View File

@ -47,6 +47,9 @@ public:
bool deserialize(const QByteArray& data); bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; } virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
protected:
void resizeEvent(QResizeEvent* size);
private: private:
Ui::SigMFFileInputGUI* ui; Ui::SigMFFileInputGUI* ui;

View File

@ -6,20 +6,26 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>360</width> <width>436</width>
<height>391</height> <height>436</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Maximum"> <sizepolicy hsizetype="Fixed" vsizetype="Expanding">
<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>360</width> <width>436</width>
<height>0</height> <height>436</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>436</width>
<height>16777215</height>
</size> </size>
</property> </property>
<property name="font"> <property name="font">

View File

@ -18,6 +18,7 @@
#include <QMessageBox> #include <QMessageBox>
#include <QCheckBox> #include <QCheckBox>
#include <QFileDialog> #include <QFileDialog>
#include <QResizeEvent>
#include "dsp/dspengine.h" #include "dsp/dspengine.h"
#include "dsp/dspcommands.h" #include "dsp/dspcommands.h"
@ -61,6 +62,7 @@ SoapySDRInputGui::SoapySDRInputGui(DeviceUISet *deviceUISet, QWidget* parent) :
setAttribute(Qt::WA_DeleteOnClose, true); setAttribute(Qt::WA_DeleteOnClose, true);
m_sampleSource = (SoapySDRInput*) m_deviceUISet->m_deviceAPI->getSampleSource(); m_sampleSource = (SoapySDRInput*) m_deviceUISet->m_deviceAPI->getSampleSource();
ui->setupUi(getContents()); ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Expanding);
getContents()->setStyleSheet(QString(tr("#SoapySDRInputGui { border: 1px solid %1 }") getContents()->setStyleSheet(QString(tr("#SoapySDRInputGui { border: 1px solid %1 }")
.arg(palette().highlight().color().darker(115).name()))); .arg(palette().highlight().color().darker(115).name())));
m_helpURL = "plugins/samplesource/soapysdrinput/readme.md"; m_helpURL = "plugins/samplesource/soapysdrinput/readme.md";
@ -447,6 +449,12 @@ bool SoapySDRInputGui::deserialize(const QByteArray& data)
} }
} }
void SoapySDRInputGui::resizeEvent(QResizeEvent* size)
{
resize(360, height());
size->accept();
}
bool SoapySDRInputGui::handleMessage(const Message& message) bool SoapySDRInputGui::handleMessage(const Message& message)
{ {
if (SoapySDRInput::MsgConfigureSoapySDRInput::match(message)) if (SoapySDRInput::MsgConfigureSoapySDRInput::match(message))

View File

@ -52,6 +52,9 @@ public:
virtual bool deserialize(const QByteArray& data); virtual bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; } virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
protected:
void resizeEvent(QResizeEvent* size);
private: private:
void createRangesControl( void createRangesControl(
ItemSettingGUI **settingGUI, ItemSettingGUI **settingGUI,

View File

@ -10,12 +10,24 @@
<height>238</height> <height>238</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>360</width> <width>360</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
<property name="maximumSize">
<size>
<width>360</width>
<height>16777215</height>
</size>
</property>
<property name="font"> <property name="font">
<font> <font>
<family>Liberation Sans</family> <family>Liberation Sans</family>
@ -363,6 +375,18 @@
</item> </item>
<item> <item>
<widget class="QScrollArea" name="scrollArea"> <widget class="QScrollArea" name="scrollArea">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>356</width>
<height>0</height>
</size>
</property>
<property name="verticalScrollBarPolicy"> <property name="verticalScrollBarPolicy">
<enum>Qt::ScrollBarAsNeeded</enum> <enum>Qt::ScrollBarAsNeeded</enum>
</property> </property>
@ -401,17 +425,17 @@
</layout> </layout>
</widget> </widget>
<customwidgets> <customwidgets>
<customwidget>
<class>ButtonSwitch</class>
<extends>QToolButton</extends>
<header>gui/buttonswitch.h</header>
</customwidget>
<customwidget> <customwidget>
<class>ValueDial</class> <class>ValueDial</class>
<extends>QWidget</extends> <extends>QWidget</extends>
<header>gui/valuedial.h</header> <header>gui/valuedial.h</header>
<container>1</container> <container>1</container>
</customwidget> </customwidget>
<customwidget>
<class>ButtonSwitch</class>
<extends>QToolButton</extends>
<header>gui/buttonswitch.h</header>
</customwidget>
<customwidget> <customwidget>
<class>TransverterButton</class> <class>TransverterButton</class>
<extends>QPushButton</extends> <extends>QPushButton</extends>

View File

@ -22,6 +22,7 @@
#include <QString> #include <QString>
#include <QMessageBox> #include <QMessageBox>
#include <QFileDialog> #include <QFileDialog>
#include <QResizeEvent>
#include "ui_testsourcegui.h" #include "ui_testsourcegui.h"
#include "plugin/pluginapi.h" #include "plugin/pluginapi.h"
@ -54,6 +55,7 @@ TestSourceGui::TestSourceGui(DeviceUISet *deviceUISet, QWidget* parent) :
m_sampleSource = m_deviceUISet->m_deviceAPI->getSampleSource(); m_sampleSource = m_deviceUISet->m_deviceAPI->getSampleSource();
ui->setupUi(getContents()); ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
getContents()->setStyleSheet(QString(tr("#TestSourceGui { border: 1px solid %1 }") getContents()->setStyleSheet(QString(tr("#TestSourceGui { border: 1px solid %1 }")
.arg(palette().highlight().color().darker(115).name()))); .arg(palette().highlight().color().darker(115).name())));
m_helpURL = "plugins/samplesource/testsource/readme.md"; m_helpURL = "plugins/samplesource/testsource/readme.md";
@ -113,6 +115,12 @@ bool TestSourceGui::deserialize(const QByteArray& data)
} }
} }
void TestSourceGui::resizeEvent(QResizeEvent* size)
{
adjustSize();
size->accept();
}
void TestSourceGui::on_startStop_toggled(bool checked) void TestSourceGui::on_startStop_toggled(bool checked)
{ {
if (m_doApplySettings) if (m_doApplySettings)

View File

@ -46,6 +46,9 @@ public:
bool deserialize(const QByteArray& data); bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; } virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
protected:
void resizeEvent(QResizeEvent* size);
private: private:
Ui::TestSourceGui* ui; Ui::TestSourceGui* ui;

View File

@ -6,20 +6,26 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>360</width> <width>381</width>
<height>337</height> <height>331</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum"> <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<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>360</width> <width>381</width>
<height>0</height> <height>331</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>381</width>
<height>331</height>
</size> </size>
</property> </property>
<property name="font"> <property name="font">
@ -272,6 +278,12 @@
</item> </item>
<item> <item>
<widget class="QComboBox" name="fcPos"> <widget class="QComboBox" name="fcPos">
<property name="minimumSize">
<size>
<width>55</width>
<height>0</height>
</size>
</property>
<property name="maximumSize"> <property name="maximumSize">
<size> <size>
<width>50</width> <width>50</width>
@ -695,17 +707,16 @@
</property> </property>
</widget> </widget>
</item> </item>
<item>
<widget class="Line" name="line_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item> <item>
<layout class="QGridLayout" name="amplitudeLayout"> <layout class="QGridLayout" name="amplitudeLayout">
<item row="1" column="0"> <item row="1" column="0">
<widget class="QLabel" name="amplitudeFineLabel"> <widget class="QLabel" name="amplitudeFineLabel">
<property name="minimumSize">
<size>
<width>0</width>
<height>22</height>
</size>
</property>
<property name="text"> <property name="text">
<string>Amp fine</string> <string>Amp fine</string>
</property> </property>
@ -719,6 +730,12 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize">
<size>
<width>0</width>
<height>22</height>
</size>
</property>
<property name="text"> <property name="text">
<string>Amp coarse</string> <string>Amp coarse</string>
</property> </property>
@ -817,6 +834,12 @@
</item> </item>
<item row="2" column="0"> <item row="2" column="0">
<widget class="QLabel" name="qBiasLabel"> <widget class="QLabel" name="qBiasLabel">
<property name="minimumSize">
<size>
<width>0</width>
<height>22</height>
</size>
</property>
<property name="text"> <property name="text">
<string>Q bias</string> <string>Q bias</string>
</property> </property>
@ -838,6 +861,12 @@
</item> </item>
<item row="1" column="0"> <item row="1" column="0">
<widget class="QLabel" name="iBiasLabel"> <widget class="QLabel" name="iBiasLabel">
<property name="minimumSize">
<size>
<width>0</width>
<height>22</height>
</size>
</property>
<property name="text"> <property name="text">
<string>I bias</string> <string>I bias</string>
</property> </property>
@ -882,6 +911,12 @@
</item> </item>
<item row="0" column="0"> <item row="0" column="0">
<widget class="QLabel" name="dcBiasLabel"> <widget class="QLabel" name="dcBiasLabel">
<property name="minimumSize">
<size>
<width>0</width>
<height>22</height>
</size>
</property>
<property name="text"> <property name="text">
<string>DC bias</string> <string>DC bias</string>
</property> </property>
@ -926,6 +961,12 @@
</item> </item>
<item row="3" column="0"> <item row="3" column="0">
<widget class="QLabel" name="phaseImbalanceLabel"> <widget class="QLabel" name="phaseImbalanceLabel">
<property name="minimumSize">
<size>
<width>0</width>
<height>22</height>
</size>
</property>
<property name="text"> <property name="text">
<string>Phase</string> <string>Phase</string>
</property> </property>
@ -979,17 +1020,17 @@
</layout> </layout>
</widget> </widget>
<customwidgets> <customwidgets>
<customwidget>
<class>ButtonSwitch</class>
<extends>QToolButton</extends>
<header>gui/buttonswitch.h</header>
</customwidget>
<customwidget> <customwidget>
<class>ValueDial</class> <class>ValueDial</class>
<extends>QWidget</extends> <extends>QWidget</extends>
<header>gui/valuedial.h</header> <header>gui/valuedial.h</header>
<container>1</container> <container>1</container>
</customwidget> </customwidget>
<customwidget>
<class>ButtonSwitch</class>
<extends>QToolButton</extends>
<header>gui/buttonswitch.h</header>
</customwidget>
<customwidget> <customwidget>
<class>ValueDialZ</class> <class>ValueDialZ</class>
<extends>QWidget</extends> <extends>QWidget</extends>

View File

@ -21,6 +21,7 @@
#include <QDebug> #include <QDebug>
#include <QMessageBox> #include <QMessageBox>
#include <QFileDialog> #include <QFileDialog>
#include <QResizeEvent>
#include <algorithm> #include <algorithm>
@ -50,6 +51,7 @@ USRPInputGUI::USRPInputGUI(DeviceUISet *deviceUISet, QWidget* parent) :
m_usrpInput = (USRPInput*) m_deviceUISet->m_deviceAPI->getSampleSource(); m_usrpInput = (USRPInput*) m_deviceUISet->m_deviceAPI->getSampleSource();
ui->setupUi(getContents()); ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
getContents()->setStyleSheet(QString(tr("#USRPInputGUI { border: 1px solid %1 }") getContents()->setStyleSheet(QString(tr("#USRPInputGUI { border: 1px solid %1 }")
.arg(palette().highlight().color().darker(115).name()))); .arg(palette().highlight().color().darker(115).name())));
m_helpURL = "plugins/samplesource/usrpinput/readme.md"; m_helpURL = "plugins/samplesource/usrpinput/readme.md";
@ -152,6 +154,12 @@ bool USRPInputGUI::deserialize(const QByteArray& data)
} }
} }
void USRPInputGUI::resizeEvent(QResizeEvent* size)
{
adjustSize();
size->accept();
}
bool USRPInputGUI::handleMessage(const Message& message) bool USRPInputGUI::handleMessage(const Message& message)
{ {
if (USRPInput::MsgConfigureUSRP::match(message)) if (USRPInput::MsgConfigureUSRP::match(message))

View File

@ -51,6 +51,9 @@ public:
bool deserialize(const QByteArray& data); bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; } virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
protected:
void resizeEvent(QResizeEvent* size);
private: private:
Ui::USRPInputGUI* ui; Ui::USRPInputGUI* ui;

View File

@ -7,11 +7,11 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>360</width> <width>360</width>
<height>221</height> <height>174</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum"> <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
@ -19,7 +19,13 @@
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>360</width> <width>360</width>
<height>0</height> <height>174</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>360</width>
<height>174</height>
</size> </size>
</property> </property>
<property name="font"> <property name="font">
@ -774,6 +780,11 @@
</layout> </layout>
</widget> </widget>
<customwidgets> <customwidgets>
<customwidget>
<class>ButtonSwitch</class>
<extends>QToolButton</extends>
<header>gui/buttonswitch.h</header>
</customwidget>
<customwidget> <customwidget>
<class>ValueDial</class> <class>ValueDial</class>
<extends>QWidget</extends> <extends>QWidget</extends>
@ -781,21 +792,16 @@
<container>1</container> <container>1</container>
</customwidget> </customwidget>
<customwidget> <customwidget>
<class>ButtonSwitch</class> <class>ValueDialZ</class>
<extends>QToolButton</extends> <extends>QWidget</extends>
<header>gui/buttonswitch.h</header> <header>gui/valuedialz.h</header>
<container>1</container>
</customwidget> </customwidget>
<customwidget> <customwidget>
<class>TransverterButton</class> <class>TransverterButton</class>
<extends>QPushButton</extends> <extends>QPushButton</extends>
<header>gui/transverterbutton.h</header> <header>gui/transverterbutton.h</header>
</customwidget> </customwidget>
<customwidget>
<class>ValueDialZ</class>
<extends>QWidget</extends>
<header>gui/valuedialz.h</header>
<container>1</container>
</customwidget>
</customwidgets> </customwidgets>
<resources> <resources>
<include location="../../../sdrgui/resources/res.qrc"/> <include location="../../../sdrgui/resources/res.qrc"/>

View File

@ -21,6 +21,7 @@
#include <QDebug> #include <QDebug>
#include <QMessageBox> #include <QMessageBox>
#include <QFileDialog> #include <QFileDialog>
#include <QResizeEvent>
#include <algorithm> #include <algorithm>
@ -50,6 +51,7 @@ XTRXInputGUI::XTRXInputGUI(DeviceUISet *deviceUISet, QWidget* parent) :
m_XTRXInput = (XTRXInput*) m_deviceUISet->m_deviceAPI->getSampleSource(); m_XTRXInput = (XTRXInput*) m_deviceUISet->m_deviceAPI->getSampleSource();
ui->setupUi(getContents()); ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
getContents()->setStyleSheet(QString(tr("#XTRXInputGUI { border: 1px solid %1 }") getContents()->setStyleSheet(QString(tr("#XTRXInputGUI { border: 1px solid %1 }")
.arg(palette().highlight().color().darker(115).name()))); .arg(palette().highlight().color().darker(115).name())));
m_helpURL = "plugins/samplesource/xtrxinput/readme.md"; m_helpURL = "plugins/samplesource/xtrxinput/readme.md";
@ -122,6 +124,12 @@ bool XTRXInputGUI::deserialize(const QByteArray& data)
} }
} }
void XTRXInputGUI::resizeEvent(QResizeEvent* size)
{
adjustSize();
size->accept();
}
bool XTRXInputGUI::handleMessage(const Message& message) bool XTRXInputGUI::handleMessage(const Message& message)
{ {

View File

@ -46,6 +46,9 @@ public:
bool deserialize(const QByteArray& data); bool deserialize(const QByteArray& data);
virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; } virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; }
protected:
void resizeEvent(QResizeEvent* size);
private: private:
Ui::XTRXInputGUI* ui; Ui::XTRXInputGUI* ui;

View File

@ -6,20 +6,26 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>360</width> <width>370</width>
<height>264</height> <height>207</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum"> <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<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>360</width> <width>370</width>
<height>0</height> <height>207</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>370</width>
<height>207</height>
</size> </size>
</property> </property>
<property name="font"> <property name="font">
@ -1072,17 +1078,17 @@ QToolTip{background-color: white; color: black;}</string>
</layout> </layout>
</widget> </widget>
<customwidgets> <customwidgets>
<customwidget>
<class>ButtonSwitch</class>
<extends>QToolButton</extends>
<header>gui/buttonswitch.h</header>
</customwidget>
<customwidget> <customwidget>
<class>ValueDial</class> <class>ValueDial</class>
<extends>QWidget</extends> <extends>QWidget</extends>
<header>gui/valuedial.h</header> <header>gui/valuedial.h</header>
<container>1</container> <container>1</container>
</customwidget> </customwidget>
<customwidget>
<class>ButtonSwitch</class>
<extends>QToolButton</extends>
<header>gui/buttonswitch.h</header>
</customwidget>
<customwidget> <customwidget>
<class>ValueDialZ</class> <class>ValueDialZ</class>
<extends>QWidget</extends> <extends>QWidget</extends>