1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-02-03 09:44:01 -05:00

RigCtrl plugin: removed QtWidgets dependencies from where they should not be

This commit is contained in:
f4exb 2020-09-09 01:28:19 +02:00
parent 029c49b0b7
commit 40bd691a45
4 changed files with 9 additions and 6 deletions

View File

@ -2,7 +2,7 @@
<h2>Introduction</h2> <h2>Introduction</h2>
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.
<h2>Interface</h2> <h2>Interface</h2>

View File

@ -17,10 +17,6 @@
#include <QtPlugin> #include <QtPlugin>
#include <QtDebug> #include <QtDebug>
#include <QtWidgets/QAction>
#include <QtWidgets/QMainWindow>
#include <QtWidgets/QMenu>
#include <QtWidgets/QMenuBar>
#include "plugin/pluginapi.h" #include "plugin/pluginapi.h"
#include "util/simpleserializer.h" #include "util/simpleserializer.h"
@ -28,6 +24,10 @@
#include "rigctrl.h" #include "rigctrl.h"
#ifdef SERVER_MODE #ifdef SERVER_MODE
#else #else
#include <QtWidgets/QAction>
#include <QtWidgets/QMainWindow>
#include <QtWidgets/QMenu>
#include <QtWidgets/QMenuBar>
#include "rigctrlgui.h" #include "rigctrlgui.h"
#endif #endif
#include "rigctrlplugin.h" #include "rigctrlplugin.h"
@ -65,6 +65,7 @@ bool RigCtrlPlugin::createTopLevelGUI(
QMainWindow* mainWindow QMainWindow* mainWindow
) )
{ {
(void) mainWindow;
return true; return true;
} }

View File

@ -23,6 +23,7 @@
#include "rigctrl.h" #include "rigctrl.h"
class PluginAPI; class PluginAPI;
class QMainWindow;
#define RIGCTRL_DEVICE_TYPE_ID "sdrangel.misc.rigctrl" #define RIGCTRL_DEVICE_TYPE_ID "sdrangel.misc.rigctrl"

View File

@ -3,10 +3,11 @@
#include <QtPlugin> #include <QtPlugin>
#include <QString> #include <QString>
#include <QtWidgets/QMainWindow>
#include "export.h" #include "export.h"
class QMainWindow;
struct SDRBASE_API PluginDescriptor { struct SDRBASE_API PluginDescriptor {
const QString hardwareId; const QString hardwareId;
// general plugin description // general plugin description