Skip to content

Commit

Permalink
Use DialogPositioner for AudioSelectDialog so it opens on screen.
Browse files Browse the repository at this point in the history
  • Loading branch information
srcejon committed Nov 9, 2023
1 parent d6f5c81 commit 6e55c03
Show file tree
Hide file tree
Showing 23 changed files with 26 additions and 3 deletions.
1 change: 1 addition & 0 deletions plugins/channelrx/demodam/amdemodgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,7 @@ void AMDemodGUI::audioSelect(const QPoint& p)
qDebug("AMDemodGUI::audioSelect");
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName);
audioSelect.move(p);
new DialogPositioner(&audioSelect, false);
audioSelect.exec();

if (audioSelect.m_selected)
Expand Down
1 change: 1 addition & 0 deletions plugins/channelrx/demodbfm/bfmdemodgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,7 @@ void BFMDemodGUI::audioSelect(const QPoint& p)
qDebug("BFMDemodGUI::audioSelect");
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName);
audioSelect.move(p);
new DialogPositioner(&audioSelect, false);
audioSelect.exec();

if (audioSelect.m_selected)
Expand Down
1 change: 1 addition & 0 deletions plugins/channelrx/demoddab/dabdemodgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,7 @@ void DABDemodGUI::audioSelect(const QPoint& p)
{
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName);
audioSelect.move(p);
new DialogPositioner(&audioSelect, false);
audioSelect.exec();

if (audioSelect.m_selected)
Expand Down
1 change: 1 addition & 0 deletions plugins/channelrx/demoddatv/datvdemodgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,7 @@ void DATVDemodGUI::audioSelect(const QPoint& p)
qDebug("DATVDemodGUI::audioSelect");
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName);
audioSelect.move(p);
new DialogPositioner(&audioSelect, false);
audioSelect.exec();

if (audioSelect.m_selected)
Expand Down
1 change: 1 addition & 0 deletions plugins/channelrx/demoddsd/dsddemodgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,7 @@ void DSDDemodGUI::audioSelect(const QPoint& p)
qDebug("DSDDemodGUI::audioSelect");
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName);
audioSelect.move(p);
new DialogPositioner(&audioSelect, false);
audioSelect.exec();

if (audioSelect.m_selected)
Expand Down
1 change: 1 addition & 0 deletions plugins/channelrx/demodfreedv/freedvdemodgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,7 @@ void FreeDVDemodGUI::audioSelect(const QPoint& p)
qDebug("FreeDVDemodGUI::audioSelect");
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName);
audioSelect.move(p);
new DialogPositioner(&audioSelect, false);
audioSelect.exec();

if (audioSelect.m_selected)
Expand Down
1 change: 0 additions & 1 deletion plugins/channelrx/demodft8/ft8demodgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#include "gui/basicchannelsettingsdialog.h"
#include "gui/devicestreamselectiondialog.h"
#include "gui/crightclickenabler.h"
#include "gui/audioselectdialog.h"
#include "gui/dialpopup.h"
#include "gui/dialogpositioner.h"
#include "util/db.h"
Expand Down
1 change: 1 addition & 0 deletions plugins/channelrx/demodils/ilsdemodgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1278,6 +1278,7 @@ void ILSDemodGUI::audioSelect(const QPoint& p)
qDebug("ILSDemodGUI::audioSelect");
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName);
audioSelect.move(p);
new DialogPositioner(&audioSelect, false);
audioSelect.exec();

if (audioSelect.m_selected)
Expand Down
1 change: 1 addition & 0 deletions plugins/channelrx/demodm17/m17demodgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,7 @@ void M17DemodGUI::audioSelect(const QPoint& p)
{
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName);
audioSelect.move(p);
new DialogPositioner(&audioSelect, false);
audioSelect.exec();

if (audioSelect.m_selected)
Expand Down
1 change: 1 addition & 0 deletions plugins/channelrx/demodnfm/nfmdemodgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,7 @@ void NFMDemodGUI::audioSelect(const QPoint& p)
qDebug("NFMDemodGUI::audioSelect");
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName);
audioSelect.move(p);
new DialogPositioner(&audioSelect, false);
audioSelect.exec();

if (audioSelect.m_selected)
Expand Down
1 change: 1 addition & 0 deletions plugins/channelrx/demodssb/ssbdemodgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,7 @@ void SSBDemodGUI::audioSelect(const QPoint& p)
{
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName);
audioSelect.move(p);
new DialogPositioner(&audioSelect, false);
audioSelect.exec();

if (audioSelect.m_selected)
Expand Down
1 change: 1 addition & 0 deletions plugins/channelrx/demodvor/vordemodgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,7 @@ void VORDemodGUI::audioSelect(const QPoint& p)
qDebug("VORDemodGUI::audioSelect");
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName);
audioSelect.move(p);
new DialogPositioner(&audioSelect, false);
audioSelect.exec();

if (audioSelect.m_selected)
Expand Down
1 change: 1 addition & 0 deletions plugins/channelrx/demodvormc/vordemodmcgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1368,6 +1368,7 @@ void VORDemodMCGUI::audioSelect(const QPoint& p)
qDebug("VORDemodMCGUI::audioSelect");
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName);
audioSelect.move(p);
new DialogPositioner(&audioSelect, false);
audioSelect.exec();

if (audioSelect.m_selected)
Expand Down
1 change: 1 addition & 0 deletions plugins/channelrx/demodwfm/wfmdemodgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ void WFMDemodGUI::audioSelect(const QPoint& p)
qDebug("WFMDemodGUI::audioSelect");
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName);
audioSelect.move(p);
new DialogPositioner(&audioSelect, false);
audioSelect.exec();

if (audioSelect.m_selected)
Expand Down
1 change: 0 additions & 1 deletion plugins/channelrx/freqtracker/freqtrackergui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
#include "gui/devicestreamselectiondialog.h"
#include "dsp/dspengine.h"
#include "gui/crightclickenabler.h"
#include "gui/audioselectdialog.h"
#include "gui/dialpopup.h"
#include "gui/dialogpositioner.h"
#include "maincore.h"
Expand Down
2 changes: 1 addition & 1 deletion plugins/channeltx/modam/ammodgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ void AMModGUI::audioSelect(const QPoint& p)
qDebug("AMModGUI::audioSelect");
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName, true); // true for input
audioSelect.move(p);

new DialogPositioner(&audioSelect, false);
audioSelect.exec();

if (audioSelect.m_selected)
Expand Down
1 change: 1 addition & 0 deletions plugins/channeltx/modfreedv/freedvmodgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,7 @@ void FreeDVModGUI::audioSelect(const QPoint& p)
qDebug("FreeDVModGUI::audioSelect");
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName, true); // true for input
audioSelect.move(p);
new DialogPositioner(&audioSelect, false);
audioSelect.exec();

if (audioSelect.m_selected)
Expand Down
2 changes: 2 additions & 0 deletions plugins/channeltx/modm17/m17modgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -717,6 +717,7 @@ void M17ModGUI::audioSelect(const QPoint& p)
qDebug("M17ModGUI::audioSelect");
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName, true); // true for input
audioSelect.move(p);
new DialogPositioner(&audioSelect, false);
audioSelect.exec();

if (audioSelect.m_selected)
Expand All @@ -731,6 +732,7 @@ void M17ModGUI::audioFeedbackSelect(const QPoint& p)
qDebug("M17ModGUI::audioFeedbackSelect");
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName, false); // false for output
audioSelect.move(p);
new DialogPositioner(&audioSelect, false);
audioSelect.exec();

if (audioSelect.m_selected)
Expand Down
2 changes: 2 additions & 0 deletions plugins/channeltx/modnfm/nfmmodgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,7 @@ void NFMModGUI::audioSelect(const QPoint& p)
qDebug("NFMModGUI::audioSelect");
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName, true); // true for input
audioSelect.move(p);
new DialogPositioner(&audioSelect, false);
audioSelect.exec();

if (audioSelect.m_selected)
Expand All @@ -637,6 +638,7 @@ void NFMModGUI::audioFeedbackSelect(const QPoint& p)
qDebug("NFMModGUI::audioFeedbackSelect");
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName, false); // false for output
audioSelect.move(p);
new DialogPositioner(&audioSelect, false);
audioSelect.exec();

if (audioSelect.m_selected)
Expand Down
2 changes: 2 additions & 0 deletions plugins/channeltx/modssb/ssbmodgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -770,6 +770,7 @@ void SSBModGUI::audioSelect(const QPoint& p)
qDebug("SSBModGUI::audioSelect");
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName, true); // true for input
audioSelect.move(p);
new DialogPositioner(&audioSelect, false);
audioSelect.exec();

if (audioSelect.m_selected)
Expand All @@ -784,6 +785,7 @@ void SSBModGUI::audioFeedbackSelect(const QPoint& p)
qDebug("SSBModGUI::audioFeedbackSelect");
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName, false); // false for output
audioSelect.move(p);
new DialogPositioner(&audioSelect, false);
audioSelect.exec();

if (audioSelect.m_selected)
Expand Down
2 changes: 2 additions & 0 deletions plugins/channeltx/modwfm/wfmmodgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@ void WFMModGUI::audioSelect(const QPoint& p)
qDebug("WFMModGUI::audioSelect");
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName, true); // true for input
audioSelect.move(p);
new DialogPositioner(&audioSelect, false);
audioSelect.exec();

if (audioSelect.m_selected)
Expand All @@ -532,6 +533,7 @@ void WFMModGUI::audioFeedbackSelect(const QPoint& p)
qDebug("WFMModGUI::audioFeedbackSelect");
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName, false); // false for output
audioSelect.move(p);
new DialogPositioner(&audioSelect, false);
audioSelect.exec();

if (audioSelect.m_selected)
Expand Down
2 changes: 2 additions & 0 deletions plugins/samplemimo/audiocatsiso/audiocatsisogui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ void AudioCATSISOGUI::on_transverter_clicked()
void AudioCATSISOGUI::on_rxDeviceSelect_clicked()
{
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_txDeviceName, true, this);
new DialogPositioner(&audioSelect, false);
audioSelect.exec();

if (audioSelect.m_selected)
Expand All @@ -338,6 +339,7 @@ void AudioCATSISOGUI::on_rxDeviceSelect_clicked()
void AudioCATSISOGUI::on_txDeviceSelect_clicked()
{
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_txDeviceName, false, this);
new DialogPositioner(&audioSelect, false);
audioSelect.exec();

if (audioSelect.m_selected)
Expand Down
1 change: 1 addition & 0 deletions plugins/samplesink/audiooutput/audiooutputgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ void AudioOutputGui::displaySettings()
void AudioOutputGui::on_deviceSelect_clicked()
{
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_deviceName, false, this);
new DialogPositioner(&audioSelect, false);
audioSelect.exec();

if (audioSelect.m_selected)
Expand Down

0 comments on commit 6e55c03

Please sign in to comment.