mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-23 10:05:46 -05:00
Use DialogPositioner for AudioSelectDialog so it opens on screen.
This commit is contained in:
parent
d6f5c81856
commit
6e55c030b6
@ -611,6 +611,7 @@ void AMDemodGUI::audioSelect(const QPoint& p)
|
|||||||
qDebug("AMDemodGUI::audioSelect");
|
qDebug("AMDemodGUI::audioSelect");
|
||||||
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName);
|
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName);
|
||||||
audioSelect.move(p);
|
audioSelect.move(p);
|
||||||
|
new DialogPositioner(&audioSelect, false);
|
||||||
audioSelect.exec();
|
audioSelect.exec();
|
||||||
|
|
||||||
if (audioSelect.m_selected)
|
if (audioSelect.m_selected)
|
||||||
|
@ -532,6 +532,7 @@ void BFMDemodGUI::audioSelect(const QPoint& p)
|
|||||||
qDebug("BFMDemodGUI::audioSelect");
|
qDebug("BFMDemodGUI::audioSelect");
|
||||||
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName);
|
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName);
|
||||||
audioSelect.move(p);
|
audioSelect.move(p);
|
||||||
|
new DialogPositioner(&audioSelect, false);
|
||||||
audioSelect.exec();
|
audioSelect.exec();
|
||||||
|
|
||||||
if (audioSelect.m_selected)
|
if (audioSelect.m_selected)
|
||||||
|
@ -701,6 +701,7 @@ void DABDemodGUI::audioSelect(const QPoint& p)
|
|||||||
{
|
{
|
||||||
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName);
|
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName);
|
||||||
audioSelect.move(p);
|
audioSelect.move(p);
|
||||||
|
new DialogPositioner(&audioSelect, false);
|
||||||
audioSelect.exec();
|
audioSelect.exec();
|
||||||
|
|
||||||
if (audioSelect.m_selected)
|
if (audioSelect.m_selected)
|
||||||
|
@ -515,6 +515,7 @@ void DATVDemodGUI::audioSelect(const QPoint& p)
|
|||||||
qDebug("DATVDemodGUI::audioSelect");
|
qDebug("DATVDemodGUI::audioSelect");
|
||||||
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName);
|
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName);
|
||||||
audioSelect.move(p);
|
audioSelect.move(p);
|
||||||
|
new DialogPositioner(&audioSelect, false);
|
||||||
audioSelect.exec();
|
audioSelect.exec();
|
||||||
|
|
||||||
if (audioSelect.m_selected)
|
if (audioSelect.m_selected)
|
||||||
|
@ -607,6 +607,7 @@ void DSDDemodGUI::audioSelect(const QPoint& p)
|
|||||||
qDebug("DSDDemodGUI::audioSelect");
|
qDebug("DSDDemodGUI::audioSelect");
|
||||||
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName);
|
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName);
|
||||||
audioSelect.move(p);
|
audioSelect.move(p);
|
||||||
|
new DialogPositioner(&audioSelect, false);
|
||||||
audioSelect.exec();
|
audioSelect.exec();
|
||||||
|
|
||||||
if (audioSelect.m_selected)
|
if (audioSelect.m_selected)
|
||||||
|
@ -441,6 +441,7 @@ void FreeDVDemodGUI::audioSelect(const QPoint& p)
|
|||||||
qDebug("FreeDVDemodGUI::audioSelect");
|
qDebug("FreeDVDemodGUI::audioSelect");
|
||||||
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName);
|
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName);
|
||||||
audioSelect.move(p);
|
audioSelect.move(p);
|
||||||
|
new DialogPositioner(&audioSelect, false);
|
||||||
audioSelect.exec();
|
audioSelect.exec();
|
||||||
|
|
||||||
if (audioSelect.m_selected)
|
if (audioSelect.m_selected)
|
||||||
|
@ -27,7 +27,6 @@
|
|||||||
#include "gui/basicchannelsettingsdialog.h"
|
#include "gui/basicchannelsettingsdialog.h"
|
||||||
#include "gui/devicestreamselectiondialog.h"
|
#include "gui/devicestreamselectiondialog.h"
|
||||||
#include "gui/crightclickenabler.h"
|
#include "gui/crightclickenabler.h"
|
||||||
#include "gui/audioselectdialog.h"
|
|
||||||
#include "gui/dialpopup.h"
|
#include "gui/dialpopup.h"
|
||||||
#include "gui/dialogpositioner.h"
|
#include "gui/dialogpositioner.h"
|
||||||
#include "util/db.h"
|
#include "util/db.h"
|
||||||
|
@ -1278,6 +1278,7 @@ void ILSDemodGUI::audioSelect(const QPoint& p)
|
|||||||
qDebug("ILSDemodGUI::audioSelect");
|
qDebug("ILSDemodGUI::audioSelect");
|
||||||
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName);
|
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName);
|
||||||
audioSelect.move(p);
|
audioSelect.move(p);
|
||||||
|
new DialogPositioner(&audioSelect, false);
|
||||||
audioSelect.exec();
|
audioSelect.exec();
|
||||||
|
|
||||||
if (audioSelect.m_selected)
|
if (audioSelect.m_selected)
|
||||||
|
@ -644,6 +644,7 @@ void M17DemodGUI::audioSelect(const QPoint& p)
|
|||||||
{
|
{
|
||||||
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName);
|
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName);
|
||||||
audioSelect.move(p);
|
audioSelect.move(p);
|
||||||
|
new DialogPositioner(&audioSelect, false);
|
||||||
audioSelect.exec();
|
audioSelect.exec();
|
||||||
|
|
||||||
if (audioSelect.m_selected)
|
if (audioSelect.m_selected)
|
||||||
|
@ -584,6 +584,7 @@ void NFMDemodGUI::audioSelect(const QPoint& p)
|
|||||||
qDebug("NFMDemodGUI::audioSelect");
|
qDebug("NFMDemodGUI::audioSelect");
|
||||||
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName);
|
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName);
|
||||||
audioSelect.move(p);
|
audioSelect.move(p);
|
||||||
|
new DialogPositioner(&audioSelect, false);
|
||||||
audioSelect.exec();
|
audioSelect.exec();
|
||||||
|
|
||||||
if (audioSelect.m_selected)
|
if (audioSelect.m_selected)
|
||||||
|
@ -718,6 +718,7 @@ void SSBDemodGUI::audioSelect(const QPoint& p)
|
|||||||
{
|
{
|
||||||
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName);
|
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName);
|
||||||
audioSelect.move(p);
|
audioSelect.move(p);
|
||||||
|
new DialogPositioner(&audioSelect, false);
|
||||||
audioSelect.exec();
|
audioSelect.exec();
|
||||||
|
|
||||||
if (audioSelect.m_selected)
|
if (audioSelect.m_selected)
|
||||||
|
@ -417,6 +417,7 @@ void VORDemodGUI::audioSelect(const QPoint& p)
|
|||||||
qDebug("VORDemodGUI::audioSelect");
|
qDebug("VORDemodGUI::audioSelect");
|
||||||
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName);
|
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName);
|
||||||
audioSelect.move(p);
|
audioSelect.move(p);
|
||||||
|
new DialogPositioner(&audioSelect, false);
|
||||||
audioSelect.exec();
|
audioSelect.exec();
|
||||||
|
|
||||||
if (audioSelect.m_selected)
|
if (audioSelect.m_selected)
|
||||||
|
@ -1368,6 +1368,7 @@ void VORDemodMCGUI::audioSelect(const QPoint& p)
|
|||||||
qDebug("VORDemodMCGUI::audioSelect");
|
qDebug("VORDemodMCGUI::audioSelect");
|
||||||
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName);
|
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName);
|
||||||
audioSelect.move(p);
|
audioSelect.move(p);
|
||||||
|
new DialogPositioner(&audioSelect, false);
|
||||||
audioSelect.exec();
|
audioSelect.exec();
|
||||||
|
|
||||||
if (audioSelect.m_selected)
|
if (audioSelect.m_selected)
|
||||||
|
@ -336,6 +336,7 @@ void WFMDemodGUI::audioSelect(const QPoint& p)
|
|||||||
qDebug("WFMDemodGUI::audioSelect");
|
qDebug("WFMDemodGUI::audioSelect");
|
||||||
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName);
|
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName);
|
||||||
audioSelect.move(p);
|
audioSelect.move(p);
|
||||||
|
new DialogPositioner(&audioSelect, false);
|
||||||
audioSelect.exec();
|
audioSelect.exec();
|
||||||
|
|
||||||
if (audioSelect.m_selected)
|
if (audioSelect.m_selected)
|
||||||
|
@ -32,7 +32,6 @@
|
|||||||
#include "gui/devicestreamselectiondialog.h"
|
#include "gui/devicestreamselectiondialog.h"
|
||||||
#include "dsp/dspengine.h"
|
#include "dsp/dspengine.h"
|
||||||
#include "gui/crightclickenabler.h"
|
#include "gui/crightclickenabler.h"
|
||||||
#include "gui/audioselectdialog.h"
|
|
||||||
#include "gui/dialpopup.h"
|
#include "gui/dialpopup.h"
|
||||||
#include "gui/dialogpositioner.h"
|
#include "gui/dialogpositioner.h"
|
||||||
#include "maincore.h"
|
#include "maincore.h"
|
||||||
|
@ -503,7 +503,7 @@ void AMModGUI::audioSelect(const QPoint& p)
|
|||||||
qDebug("AMModGUI::audioSelect");
|
qDebug("AMModGUI::audioSelect");
|
||||||
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName, true); // true for input
|
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName, true); // true for input
|
||||||
audioSelect.move(p);
|
audioSelect.move(p);
|
||||||
|
new DialogPositioner(&audioSelect, false);
|
||||||
audioSelect.exec();
|
audioSelect.exec();
|
||||||
|
|
||||||
if (audioSelect.m_selected)
|
if (audioSelect.m_selected)
|
||||||
|
@ -550,6 +550,7 @@ void FreeDVModGUI::audioSelect(const QPoint& p)
|
|||||||
qDebug("FreeDVModGUI::audioSelect");
|
qDebug("FreeDVModGUI::audioSelect");
|
||||||
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName, true); // true for input
|
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName, true); // true for input
|
||||||
audioSelect.move(p);
|
audioSelect.move(p);
|
||||||
|
new DialogPositioner(&audioSelect, false);
|
||||||
audioSelect.exec();
|
audioSelect.exec();
|
||||||
|
|
||||||
if (audioSelect.m_selected)
|
if (audioSelect.m_selected)
|
||||||
|
@ -717,6 +717,7 @@ void M17ModGUI::audioSelect(const QPoint& p)
|
|||||||
qDebug("M17ModGUI::audioSelect");
|
qDebug("M17ModGUI::audioSelect");
|
||||||
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName, true); // true for input
|
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName, true); // true for input
|
||||||
audioSelect.move(p);
|
audioSelect.move(p);
|
||||||
|
new DialogPositioner(&audioSelect, false);
|
||||||
audioSelect.exec();
|
audioSelect.exec();
|
||||||
|
|
||||||
if (audioSelect.m_selected)
|
if (audioSelect.m_selected)
|
||||||
@ -731,6 +732,7 @@ void M17ModGUI::audioFeedbackSelect(const QPoint& p)
|
|||||||
qDebug("M17ModGUI::audioFeedbackSelect");
|
qDebug("M17ModGUI::audioFeedbackSelect");
|
||||||
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName, false); // false for output
|
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName, false); // false for output
|
||||||
audioSelect.move(p);
|
audioSelect.move(p);
|
||||||
|
new DialogPositioner(&audioSelect, false);
|
||||||
audioSelect.exec();
|
audioSelect.exec();
|
||||||
|
|
||||||
if (audioSelect.m_selected)
|
if (audioSelect.m_selected)
|
||||||
|
@ -623,6 +623,7 @@ void NFMModGUI::audioSelect(const QPoint& p)
|
|||||||
qDebug("NFMModGUI::audioSelect");
|
qDebug("NFMModGUI::audioSelect");
|
||||||
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName, true); // true for input
|
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName, true); // true for input
|
||||||
audioSelect.move(p);
|
audioSelect.move(p);
|
||||||
|
new DialogPositioner(&audioSelect, false);
|
||||||
audioSelect.exec();
|
audioSelect.exec();
|
||||||
|
|
||||||
if (audioSelect.m_selected)
|
if (audioSelect.m_selected)
|
||||||
@ -637,6 +638,7 @@ void NFMModGUI::audioFeedbackSelect(const QPoint& p)
|
|||||||
qDebug("NFMModGUI::audioFeedbackSelect");
|
qDebug("NFMModGUI::audioFeedbackSelect");
|
||||||
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName, false); // false for output
|
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName, false); // false for output
|
||||||
audioSelect.move(p);
|
audioSelect.move(p);
|
||||||
|
new DialogPositioner(&audioSelect, false);
|
||||||
audioSelect.exec();
|
audioSelect.exec();
|
||||||
|
|
||||||
if (audioSelect.m_selected)
|
if (audioSelect.m_selected)
|
||||||
|
@ -770,6 +770,7 @@ void SSBModGUI::audioSelect(const QPoint& p)
|
|||||||
qDebug("SSBModGUI::audioSelect");
|
qDebug("SSBModGUI::audioSelect");
|
||||||
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName, true); // true for input
|
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName, true); // true for input
|
||||||
audioSelect.move(p);
|
audioSelect.move(p);
|
||||||
|
new DialogPositioner(&audioSelect, false);
|
||||||
audioSelect.exec();
|
audioSelect.exec();
|
||||||
|
|
||||||
if (audioSelect.m_selected)
|
if (audioSelect.m_selected)
|
||||||
@ -784,6 +785,7 @@ void SSBModGUI::audioFeedbackSelect(const QPoint& p)
|
|||||||
qDebug("SSBModGUI::audioFeedbackSelect");
|
qDebug("SSBModGUI::audioFeedbackSelect");
|
||||||
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName, false); // false for output
|
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName, false); // false for output
|
||||||
audioSelect.move(p);
|
audioSelect.move(p);
|
||||||
|
new DialogPositioner(&audioSelect, false);
|
||||||
audioSelect.exec();
|
audioSelect.exec();
|
||||||
|
|
||||||
if (audioSelect.m_selected)
|
if (audioSelect.m_selected)
|
||||||
|
@ -518,6 +518,7 @@ void WFMModGUI::audioSelect(const QPoint& p)
|
|||||||
qDebug("WFMModGUI::audioSelect");
|
qDebug("WFMModGUI::audioSelect");
|
||||||
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName, true); // true for input
|
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName, true); // true for input
|
||||||
audioSelect.move(p);
|
audioSelect.move(p);
|
||||||
|
new DialogPositioner(&audioSelect, false);
|
||||||
audioSelect.exec();
|
audioSelect.exec();
|
||||||
|
|
||||||
if (audioSelect.m_selected)
|
if (audioSelect.m_selected)
|
||||||
@ -532,6 +533,7 @@ void WFMModGUI::audioFeedbackSelect(const QPoint& p)
|
|||||||
qDebug("WFMModGUI::audioFeedbackSelect");
|
qDebug("WFMModGUI::audioFeedbackSelect");
|
||||||
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName, false); // false for output
|
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName, false); // false for output
|
||||||
audioSelect.move(p);
|
audioSelect.move(p);
|
||||||
|
new DialogPositioner(&audioSelect, false);
|
||||||
audioSelect.exec();
|
audioSelect.exec();
|
||||||
|
|
||||||
if (audioSelect.m_selected)
|
if (audioSelect.m_selected)
|
||||||
|
@ -324,6 +324,7 @@ void AudioCATSISOGUI::on_transverter_clicked()
|
|||||||
void AudioCATSISOGUI::on_rxDeviceSelect_clicked()
|
void AudioCATSISOGUI::on_rxDeviceSelect_clicked()
|
||||||
{
|
{
|
||||||
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_txDeviceName, true, this);
|
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_txDeviceName, true, this);
|
||||||
|
new DialogPositioner(&audioSelect, false);
|
||||||
audioSelect.exec();
|
audioSelect.exec();
|
||||||
|
|
||||||
if (audioSelect.m_selected)
|
if (audioSelect.m_selected)
|
||||||
@ -338,6 +339,7 @@ void AudioCATSISOGUI::on_rxDeviceSelect_clicked()
|
|||||||
void AudioCATSISOGUI::on_txDeviceSelect_clicked()
|
void AudioCATSISOGUI::on_txDeviceSelect_clicked()
|
||||||
{
|
{
|
||||||
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_txDeviceName, false, this);
|
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_txDeviceName, false, this);
|
||||||
|
new DialogPositioner(&audioSelect, false);
|
||||||
audioSelect.exec();
|
audioSelect.exec();
|
||||||
|
|
||||||
if (audioSelect.m_selected)
|
if (audioSelect.m_selected)
|
||||||
|
@ -183,6 +183,7 @@ void AudioOutputGui::displaySettings()
|
|||||||
void AudioOutputGui::on_deviceSelect_clicked()
|
void AudioOutputGui::on_deviceSelect_clicked()
|
||||||
{
|
{
|
||||||
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_deviceName, false, this);
|
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_deviceName, false, this);
|
||||||
|
new DialogPositioner(&audioSelect, false);
|
||||||
audioSelect.exec();
|
audioSelect.exec();
|
||||||
|
|
||||||
if (audioSelect.m_selected)
|
if (audioSelect.m_selected)
|
||||||
|
Loading…
Reference in New Issue
Block a user