1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-22 08:04:49 -05:00

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 <QMessageBox>
#include <QFileDialog>
#include <QResizeEvent>
#include <libairspy/airspy.h>
@ -47,6 +48,7 @@ AirspyGui::AirspyGui(DeviceUISet *deviceUISet, QWidget* parent) :
m_sampleSource = (AirspyInput*) m_deviceUISet->m_deviceAPI->getSampleSource();
ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
getContents()->setStyleSheet(QString(tr("#AirspyGui { border: 1px solid %1 }")
.arg(palette().highlight().color().darker(115).name())));
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)
{
if (AirspyInput::MsgConfigureAirspy::match(message))

View File

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

View File

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

View File

@ -18,6 +18,7 @@
#include <QDebug>
#include <QMessageBox>
#include <QFileDialog>
#include <QResizeEvent>
#include <libairspyhf/airspyhf.h>
@ -46,6 +47,7 @@ AirspyHFGui::AirspyHFGui(DeviceUISet *deviceUISet, QWidget* parent) :
m_sampleSource = (AirspyHFInput*) m_deviceUISet->m_deviceAPI->getSampleSource();
ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
getContents()->setStyleSheet(QString(tr("#AirspyHFGui { border: 1px solid %1 }")
.arg(palette().highlight().color().darker(115).name())));
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)
{
if (AirspyHFInput::MsgConfigureAirspyHF::match(message))

View File

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

View File

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

View File

@ -18,6 +18,7 @@
#include <QMessageBox>
#include <QFileDialog>
#include <QResizeEvent>
#include "ui_audioinputgui.h"
#include "gui/colormapper.h"
@ -43,6 +44,7 @@ AudioInputGui::AudioInputGui(DeviceUISet *deviceUISet, QWidget* parent) :
m_sampleSource = (AudioInput*) m_deviceUISet->m_deviceAPI->getSampleSource();
ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
getContents()->setStyleSheet(QString(tr("#AudioInputGui { border: 1px solid %1 }")
.arg(palette().highlight().color().darker(115).name())));
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)
{
if (AudioInput::MsgConfigureAudioInput::match(message))

View File

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

View File

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

View File

@ -18,6 +18,7 @@
#include <QDebug>
#include <QMessageBox>
#include <QFileDialog>
#include <QResizeEvent>
#include <libbladeRF.h>
@ -48,6 +49,7 @@ Bladerf1InputGui::Bladerf1InputGui(DeviceUISet *deviceUISet, QWidget* parent) :
m_sampleSource = (Bladerf1Input*) m_deviceUISet->m_deviceAPI->getSampleSource();
ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
getContents()->setStyleSheet(QString(tr("#Bladerf1InputGui { border: 1px solid %1 }")
.arg(palette().highlight().color().darker(115).name())));
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)
{
if (Bladerf1Input::MsgConfigureBladerf1::match(message))

View File

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

View File

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

View File

@ -18,6 +18,7 @@
#include <QDebug>
#include <QMessageBox>
#include <QFileDialog>
#include <QResizeEvent>
#include <libbladeRF.h>
@ -51,6 +52,7 @@ BladeRF2InputGui::BladeRF2InputGui(DeviceUISet *deviceUISet, QWidget* parent) :
uint64_t f_min, f_max;
ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
getContents()->setStyleSheet(QString(tr("#Bladerf2InputGui { border: 1px solid %1 }")
.arg(palette().highlight().color().darker(115).name())));
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()
{
// values in kHz

View File

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

View File

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

View File

@ -17,6 +17,7 @@
#include <QMessageBox>
#include <QFileDialog>
#include <QResizeEvent>
#include "ui_fcdprogui.h"
#include "gui/colormapper.h"
@ -44,6 +45,7 @@ FCDProGui::FCDProGui(DeviceUISet *deviceUISet, QWidget* parent) :
m_sampleSource = (FCDProInput*) m_deviceUISet->m_deviceAPI->getSampleSource();
ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
getContents()->setStyleSheet(QString(tr("#FCDProGui { border: 1px solid %1 }")
.arg(palette().highlight().color().darker(115).name())));
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)
{
if (FCDProInput::MsgConfigureFCDPro::match(message))

View File

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

View File

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

View File

@ -18,6 +18,7 @@
#include <QDebug>
#include <QMessageBox>
#include <QFileDialog>
#include <QResizeEvent>
#include "ui_fcdproplusgui.h"
#include "gui/colormapper.h"
@ -45,6 +46,7 @@ FCDProPlusGui::FCDProPlusGui(DeviceUISet *deviceUISet, QWidget* parent) :
m_sampleSource = (FCDProPlusInput*) m_deviceUISet->m_deviceAPI->getSampleSource();
ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
getContents()->setStyleSheet(QString(tr("#FCDProPlusGui { border: 1px solid %1 }")
.arg(palette().highlight().color().darker(115).name())));
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)
{
if (FCDProPlusInput::MsgConfigureFCDProPlus::match(message))

View File

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

View File

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

View File

@ -22,6 +22,7 @@
#include <QString>
#include <QFileDialog>
#include <QMessageBox>
#include <QResizeEvent>
#include "ui_fileinputgui.h"
#include "plugin/pluginapi.h"
@ -56,6 +57,7 @@ FileInputGUI::FileInputGUI(DeviceUISet *deviceUISet, QWidget* parent) :
{
setAttribute(Qt::WA_DeleteOnClose, true);
ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
getContents()->setStyleSheet(QString(tr("#FileInputGUI { border: 1px solid %1 }")
.arg(palette().highlight().color().darker(115).name())));
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()
{
Message* message;

View File

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

View File

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

View File

@ -20,6 +20,7 @@
#include <QDebug>
#include <QMessageBox>
#include <QFileDialog>
#include <QResizeEvent>
#include <libhackrf/hackrf.h>
@ -49,6 +50,7 @@ HackRFInputGui::HackRFInputGui(DeviceUISet *deviceUISet, QWidget* parent) :
m_sampleSource = (HackRFInput*) m_deviceUISet->m_deviceAPI->getSampleSource();
ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
getContents()->setStyleSheet(QString(tr("#HackRFInputGui { border: 1px solid %1 }")
.arg(palette().highlight().color().darker(115).name())));
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)
{
if (HackRFInput::MsgConfigureHackRF::match(message))

View File

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

View File

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

View File

@ -23,6 +23,7 @@
#include <QString>
#include <QMessageBox>
#include <QFileDialog>
#include <QResizeEvent>
#include "ui_kiwisdrgui.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)
ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
getContents()->setStyleSheet(QString(tr("#KiwiSDRGui { border: 1px solid %1 }")
.arg(palette().highlight().color().darker(115).name())));
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)
{
if (m_doApplySettings)

View File

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

View File

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

View File

@ -20,6 +20,7 @@
#include <QDebug>
#include <QMessageBox>
#include <QFileDialog>
#include <QResizeEvent>
#include <algorithm>
@ -49,6 +50,7 @@ LimeSDRInputGUI::LimeSDRInputGUI(DeviceUISet *deviceUISet, QWidget* parent) :
m_limeSDRInput = (LimeSDRInput*) m_deviceUISet->m_deviceAPI->getSampleSource();
ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
getContents()->setStyleSheet(QString(tr("#LimeSDRInputGUI { border: 1px solid %1 }")
.arg(palette().highlight().color().darker(115).name())));
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)
{
if (LimeSDRInput::MsgConfigureLimeSDR::match(message))

View File

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

View File

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

View File

@ -29,6 +29,7 @@
#include <QNetworkReply>
#include <QJsonParseError>
#include <QJsonObject>
#include <QResizeEvent>
#include "ui_localinputgui.h"
#include "gui/colormapper.h"
@ -75,6 +76,7 @@ LocalInputGui::LocalInputGui(DeviceUISet *deviceUISet, QWidget* parent) :
m_startingTimeStampms = 0;
ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
getContents()->setStyleSheet(QString(tr("#LocalInputGui { border: 1px solid %1 }")
.arg(palette().highlight().color().darker(115).name())));
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)
{
if (LocalInput::MsgConfigureLocalInput::match(message))

View File

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

View File

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

View File

@ -18,6 +18,7 @@
#include <QDebug>
#include <QMessageBox>
#include <QFileDialog>
#include <QResizeEvent>
#include "device/deviceapi.h"
#include "device/deviceuiset.h"
@ -44,6 +45,7 @@ PerseusGui::PerseusGui(DeviceUISet *deviceUISet, QWidget* parent) :
m_sampleSource = (PerseusInput*) m_deviceUISet->m_deviceAPI->getSampleSource();
ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
getContents()->setStyleSheet(QString(tr("#PerseusGui { border: 1px solid %1 }")
.arg(palette().highlight().color().darker(115).name())));
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)
{
// Returned messages to update the GUI (usually from web interface)

View File

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

View File

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

View File

@ -19,6 +19,7 @@
#include <QDebug>
#include <QMessageBox>
#include <QFileDialog>
#include <QResizeEvent>
#include "dsp/dspengine.h"
#include "dsp/dspcommands.h"
@ -49,6 +50,7 @@ PlutoSDRInputGui::PlutoSDRInputGui(DeviceUISet *deviceUISet, QWidget* parent) :
m_sampleSource = (PlutoSDRInput*) m_deviceUISet->m_deviceAPI->getSampleSource();
ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
getContents()->setStyleSheet(QString(tr("#PlutoSDRInputGUI { border: 1px solid %1 }")
.arg(palette().highlight().color().darker(115).name())));
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)
{
if (PlutoSDRInput::MsgConfigurePlutoSDR::match(message))

View File

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

View File

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

View File

@ -25,6 +25,7 @@
#include <QTime>
#include <QDateTime>
#include <QString>
#include <QResizeEvent>
#include "ui_remoteinputgui.h"
#include "gui/colormapper.h"
@ -72,6 +73,7 @@ RemoteInputGui::RemoteInputGui(DeviceUISet *deviceUISet, QWidget* parent) :
m_startingTimeStampms = 0;
ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
getContents()->setStyleSheet(QString(tr("#RemoteInputGui { border: 1px solid %1 }")
.arg(palette().highlight().color().darker(115).name())));
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)
{
if (RemoteInput::MsgConfigureRemoteInput::match(message))

View File

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

View File

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

View File

@ -18,6 +18,7 @@
#include <QDebug>
#include <QMessageBox>
#include <QFileDialog>
#include <QResizeEvent>
#include "rtlsdrgui.h"
@ -46,7 +47,7 @@ RTLSDRGui::RTLSDRGui(DeviceUISet *deviceUISet, QWidget* parent) :
m_sampleSource = (RTLSDRInput*) m_deviceUISet->m_deviceAPI->getSampleSource();
ui->setupUi(getContents());
QString s(tr(""));
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
getContents()->setStyleSheet(QString(tr("#RTLSDRGui { border: 1px solid %1 }")
.arg(palette().highlight().color().darker(115).name())));
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)
{
if (RTLSDRInput::MsgConfigureRTLSDR::match(message))

View File

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

View File

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

View File

@ -18,6 +18,7 @@
#include <QDebug>
#include <QMessageBox>
#include <QFileDialog>
#include <QResizeEvent>
#include "sdrplaygui.h"
@ -43,6 +44,7 @@ SDRPlayGui::SDRPlayGui(DeviceUISet *deviceUISet, QWidget* parent) :
m_sampleSource = (SDRPlayInput*) m_deviceUISet->m_deviceAPI->getSampleSource();
ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
getContents()->setStyleSheet(QString(tr("#SDRPlayGui { border: 1px solid %1 }")
.arg(palette().highlight().color().darker(115).name())));
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)
{
if (SDRPlayInput::MsgConfigureSDRPlay::match(message))

View File

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

View File

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

View File

@ -18,6 +18,7 @@
#include <QDebug>
#include <QMessageBox>
#include <QResizeEvent>
#include "sdrplayv3gui.h"
#include "sdrplayv3input.h"
@ -43,6 +44,7 @@ SDRPlayV3Gui::SDRPlayV3Gui(DeviceUISet *deviceUISet, QWidget* parent) :
m_sdrPlayV3Input = (SDRPlayV3Input*) m_deviceUISet->m_deviceAPI->getSampleSource();
ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
getContents()->setStyleSheet(QString(tr("#SDRPlayV3Gui { border: 1px solid %1 }")
.arg(palette().highlight().color().darker(115).name())));
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)
{
if (SDRPlayV3Input::MsgConfigureSDRPlayV3::match(message))

View File

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

View File

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

View File

@ -22,6 +22,7 @@
#include <QString>
#include <QFileDialog>
#include <QMessageBox>
#include <QResizeEvent>
#include "ui_sigmffileinputgui.h"
#include "plugin/pluginapi.h"
@ -62,6 +63,7 @@ SigMFFileInputGUI::SigMFFileInputGUI(DeviceUISet *deviceUISet, QWidget* parent)
{
setAttribute(Qt::WA_DeleteOnClose, true);
ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Expanding);
getContents()->setStyleSheet(QString(tr("#SigMFFileInputGUI { border: 1px solid %1 }")
.arg(palette().highlight().color().darker(115).name())));
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()
{
Message* message;

View File

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

View File

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

View File

@ -18,6 +18,7 @@
#include <QMessageBox>
#include <QCheckBox>
#include <QFileDialog>
#include <QResizeEvent>
#include "dsp/dspengine.h"
#include "dsp/dspcommands.h"
@ -61,6 +62,7 @@ SoapySDRInputGui::SoapySDRInputGui(DeviceUISet *deviceUISet, QWidget* parent) :
setAttribute(Qt::WA_DeleteOnClose, true);
m_sampleSource = (SoapySDRInput*) m_deviceUISet->m_deviceAPI->getSampleSource();
ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Expanding);
getContents()->setStyleSheet(QString(tr("#SoapySDRInputGui { border: 1px solid %1 }")
.arg(palette().highlight().color().darker(115).name())));
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)
{
if (SoapySDRInput::MsgConfigureSoapySDRInput::match(message))

View File

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

View File

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

View File

@ -22,6 +22,7 @@
#include <QString>
#include <QMessageBox>
#include <QFileDialog>
#include <QResizeEvent>
#include "ui_testsourcegui.h"
#include "plugin/pluginapi.h"
@ -54,6 +55,7 @@ TestSourceGui::TestSourceGui(DeviceUISet *deviceUISet, QWidget* parent) :
m_sampleSource = m_deviceUISet->m_deviceAPI->getSampleSource();
ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
getContents()->setStyleSheet(QString(tr("#TestSourceGui { border: 1px solid %1 }")
.arg(palette().highlight().color().darker(115).name())));
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)
{
if (m_doApplySettings)

View File

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

View File

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

View File

@ -21,6 +21,7 @@
#include <QDebug>
#include <QMessageBox>
#include <QFileDialog>
#include <QResizeEvent>
#include <algorithm>
@ -50,6 +51,7 @@ USRPInputGUI::USRPInputGUI(DeviceUISet *deviceUISet, QWidget* parent) :
m_usrpInput = (USRPInput*) m_deviceUISet->m_deviceAPI->getSampleSource();
ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
getContents()->setStyleSheet(QString(tr("#USRPInputGUI { border: 1px solid %1 }")
.arg(palette().highlight().color().darker(115).name())));
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)
{
if (USRPInput::MsgConfigureUSRP::match(message))

View File

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

View File

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

View File

@ -21,6 +21,7 @@
#include <QDebug>
#include <QMessageBox>
#include <QFileDialog>
#include <QResizeEvent>
#include <algorithm>
@ -50,6 +51,7 @@ XTRXInputGUI::XTRXInputGUI(DeviceUISet *deviceUISet, QWidget* parent) :
m_XTRXInput = (XTRXInput*) m_deviceUISet->m_deviceAPI->getSampleSource();
ui->setupUi(getContents());
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
getContents()->setStyleSheet(QString(tr("#XTRXInputGUI { border: 1px solid %1 }")
.arg(palette().highlight().color().darker(115).name())));
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)
{

View File

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

View File

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