1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-02 14:04:46 -04:00

Feature plugins: use specialized FeatureGUI superclass. Handle GUI lifecycle in DeviceUISet

This commit is contained in:
f4exb
2020-10-03 23:55:24 +02:00
parent 1a9f67b55c
commit 4ab683fa7d
15 changed files with 128 additions and 29 deletions
@@ -57,14 +57,14 @@ void RigCtlServerPlugin::initPlugin(PluginAPI* pluginAPI)
}
#ifdef SERVER_MODE
PluginInstanceGUI* RigCtlServerPlugin::createFeatureGUI(FeatureUISet *featureUISet, Feature *feature) const
FeatureGUI* RigCtlServerPlugin::createFeatureGUI(FeatureUISet *featureUISet, Feature *feature) const
{
(void) featureUISet;
(void) feature;
return nullptr;
}
#else
PluginInstanceGUI* RigCtlServerPlugin::createFeatureGUI(FeatureUISet *featureUISet, Feature *feature) const
FeatureGUI* RigCtlServerPlugin::createFeatureGUI(FeatureUISet *featureUISet, Feature *feature) const
{
return RigCtlServerGUI::create(m_pluginAPI, featureUISet, feature);
}