mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-15 21:01:45 -05:00
UDP sink plugin: implemented new rollup menu behavior
This commit is contained in:
parent
0c0bf2e094
commit
e2ce645c74
@ -227,6 +227,7 @@ UDPSinkGUI::UDPSinkGUI(PluginAPI* pluginAPI, DeviceSinkAPI *deviceAPI, QWidget*
|
|||||||
m_tickCount(0),
|
m_tickCount(0),
|
||||||
m_channelMarker(this),
|
m_channelMarker(this),
|
||||||
m_basicSettingsShown(false),
|
m_basicSettingsShown(false),
|
||||||
|
m_bcsw(0),
|
||||||
m_doApplySettings(true)
|
m_doApplySettings(true)
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
@ -278,6 +279,7 @@ UDPSinkGUI::UDPSinkGUI(PluginAPI* pluginAPI, DeviceSinkAPI *deviceAPI, QWidget*
|
|||||||
|
|
||||||
UDPSinkGUI::~UDPSinkGUI()
|
UDPSinkGUI::~UDPSinkGUI()
|
||||||
{
|
{
|
||||||
|
if (m_bcsw) delete m_bcsw;
|
||||||
m_deviceAPI->removeChannelInstance(this);
|
m_deviceAPI->removeChannelInstance(this);
|
||||||
m_deviceAPI->removeThreadedSource(m_threadedChannelizer);
|
m_deviceAPI->removeThreadedSource(m_threadedChannelizer);
|
||||||
delete m_threadedChannelizer;
|
delete m_threadedChannelizer;
|
||||||
@ -546,8 +548,15 @@ void UDPSinkGUI::onMenuDoubleClicked()
|
|||||||
if (!m_basicSettingsShown)
|
if (!m_basicSettingsShown)
|
||||||
{
|
{
|
||||||
m_basicSettingsShown = true;
|
m_basicSettingsShown = true;
|
||||||
BasicChannelSettingsWidget* bcsw = new BasicChannelSettingsWidget(&m_channelMarker, this);
|
m_bcsw = new BasicChannelSettingsWidget(&m_channelMarker, this);
|
||||||
bcsw->show();
|
m_bcsw->show();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
m_basicSettingsShown = false;
|
||||||
|
m_bcsw->hide();
|
||||||
|
delete m_bcsw;
|
||||||
|
m_bcsw = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,6 +31,7 @@ class ThreadedBasebandSampleSource;
|
|||||||
class UpChannelizer;
|
class UpChannelizer;
|
||||||
class UDPSink;
|
class UDPSink;
|
||||||
class SpectrumVis;
|
class SpectrumVis;
|
||||||
|
class BasicChannelSettingsWidget;
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
class UDPSinkGUI;
|
class UDPSinkGUI;
|
||||||
@ -96,6 +97,7 @@ private:
|
|||||||
QString m_udpAddress;
|
QString m_udpAddress;
|
||||||
int m_udpPort;
|
int m_udpPort;
|
||||||
bool m_basicSettingsShown;
|
bool m_basicSettingsShown;
|
||||||
|
BasicChannelSettingsWidget *m_bcsw;
|
||||||
bool m_doApplySettings;
|
bool m_doApplySettings;
|
||||||
|
|
||||||
explicit UDPSinkGUI(PluginAPI* pluginAPI, DeviceSinkAPI *deviceAPI, QWidget* parent = NULL);
|
explicit UDPSinkGUI(PluginAPI* pluginAPI, DeviceSinkAPI *deviceAPI, QWidget* parent = NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user