From 40bd691a4594be45123ef1cd019354bdcda6262a Mon Sep 17 00:00:00 2001 From: f4exb Date: Wed, 9 Sep 2020 01:28:19 +0200 Subject: [PATCH] RigCtrl plugin: removed QtWidgets dependencies from where they should not be --- plugins/misc/rigctrl/readme.md | 2 +- plugins/misc/rigctrl/rigctrlplugin.cpp | 9 +++++---- plugins/misc/rigctrl/rigctrlplugin.h | 1 + sdrbase/plugin/plugininterface.h | 3 ++- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/plugins/misc/rigctrl/readme.md b/plugins/misc/rigctrl/readme.md index a8f578205..8d3d99f50 100644 --- a/plugins/misc/rigctrl/readme.md +++ b/plugins/misc/rigctrl/readme.md @@ -2,7 +2,7 @@

Introduction

-The rigctrl plugin allows SDRangel to be controlled via ![Hamlib](http://hamlib.sourceforge.net/manuals/hamlib.html)'s rigctrld protocol. This allows other software that implements the rigctrld protocol, such at the satelite tracking software GPredict, to control SDRangel, to adjust for doppler or to automatically switch between different satellite frequencies and modes. +The rigctrl plugin allows SDRangel to be controlled via [Hamlib](http://hamlib.sourceforge.net/manuals/hamlib.html)'s rigctrld protocol. This allows other software that implements the rigctrld protocol, such at the satelite tracking software GPredict, to control SDRangel, to adjust for doppler or to automatically switch between different satellite frequencies and modes.

Interface

diff --git a/plugins/misc/rigctrl/rigctrlplugin.cpp b/plugins/misc/rigctrl/rigctrlplugin.cpp index 8f669981c..31aa56c71 100644 --- a/plugins/misc/rigctrl/rigctrlplugin.cpp +++ b/plugins/misc/rigctrl/rigctrlplugin.cpp @@ -17,10 +17,6 @@ #include #include -#include -#include -#include -#include #include "plugin/pluginapi.h" #include "util/simpleserializer.h" @@ -28,6 +24,10 @@ #include "rigctrl.h" #ifdef SERVER_MODE #else +#include +#include +#include +#include #include "rigctrlgui.h" #endif #include "rigctrlplugin.h" @@ -65,6 +65,7 @@ bool RigCtrlPlugin::createTopLevelGUI( QMainWindow* mainWindow ) { + (void) mainWindow; return true; } diff --git a/plugins/misc/rigctrl/rigctrlplugin.h b/plugins/misc/rigctrl/rigctrlplugin.h index bfe4237b3..c8bac3c81 100644 --- a/plugins/misc/rigctrl/rigctrlplugin.h +++ b/plugins/misc/rigctrl/rigctrlplugin.h @@ -23,6 +23,7 @@ #include "rigctrl.h" class PluginAPI; +class QMainWindow; #define RIGCTRL_DEVICE_TYPE_ID "sdrangel.misc.rigctrl" diff --git a/sdrbase/plugin/plugininterface.h b/sdrbase/plugin/plugininterface.h index 243e421f1..793b27ce5 100644 --- a/sdrbase/plugin/plugininterface.h +++ b/sdrbase/plugin/plugininterface.h @@ -3,10 +3,11 @@ #include #include -#include #include "export.h" +class QMainWindow; + struct SDRBASE_API PluginDescriptor { const QString hardwareId; // general plugin description