diff --git a/plugins/feature/skymap/readme.md b/plugins/feature/skymap/readme.md index c567afe08..b1f16d390 100644 --- a/plugins/feature/skymap/readme.md +++ b/plugins/feature/skymap/readme.md @@ -7,7 +7,7 @@ Multiple Sky Maps are supported, including the [World Wide Telescope](https://ww The Rotator Controller and Star Tracker plugins can track the position viewed in the Sky Map. The Sky Map can also be set to track coordinates from the Star Tracker, Satellite Tracker, Rotator Controller or Map. -![Sky Map feature WWT](../../../doc/img/SkyMap_WWT.png) +![Sky Map feature WWT](../../../doc/img/SkyMap_wwt.png) With the ESASky map, a host of astronomical data is available from JWST, Hubble, Gaia, Herschel and others, including images, spectra and publications: diff --git a/plugins/feature/skymap/skymapgui.cpp b/plugins/feature/skymap/skymapgui.cpp index ff771e91c..6e251338a 100644 --- a/plugins/feature/skymap/skymapgui.cpp +++ b/plugins/feature/skymap/skymapgui.cpp @@ -106,6 +106,7 @@ bool SkyMapGUI::handleMessage(const Message& message) else if (SkyMap::MsgSetDateTime::match(message)) { SkyMap::MsgSetDateTime& msgSetDateTime = (SkyMap::MsgSetDateTime&) message; + setDateTime(msgSetDateTime.getDateTime()); return true; } else if (MainCore::MsgTargetAzimuthElevation::match(message)) @@ -292,6 +293,8 @@ void SkyMapGUI::blockApplySettings(bool block) void SkyMapGUI::on_map_currentIndexChanged(int index) { + (void) index; + m_settings.m_map = ui->map->currentText(); applySetting("map"); @@ -458,7 +461,7 @@ void SkyMapGUI::applySettings(const QStringList& settingsKeys, bool force) { if (m_doApplySettings) { - SkyMap::MsgConfigureSkyMap* message = SkyMap::MsgConfigureSkyMap::create(m_settings, m_settingsKeys, force); + SkyMap::MsgConfigureSkyMap* message = SkyMap::MsgConfigureSkyMap::create(m_settings, settingsKeys, force); m_skymap->getInputMessageQueue()->push(message); QObject *oldSource = m_source; @@ -482,8 +485,6 @@ void SkyMapGUI::applySettings(const QStringList& settingsKeys, bool force) MainCore::instance()->getSettings().getAltitude()); } } - - m_settingsKeys.clear(); } void SkyMapGUI::applyAllSettings() @@ -1045,21 +1046,33 @@ void SkyMapGUI::updateSourceList() void SkyMapGUI::handleFeatureAdded(int featureSetIndex, Feature *feature) { + (void) featureSetIndex; + (void) feature; + updateSourceList(); } void SkyMapGUI::handleFeatureRemoved(int featureSetIndex, Feature *oldFeature) { + (void) featureSetIndex; + (void) oldFeature; + updateSourceList(); } void SkyMapGUI::handleChannelAdded(int deviceSetIndex, ChannelAPI *channel) { + (void) deviceSetIndex; + (void) channel; + updateSourceList(); } void SkyMapGUI::handleChannelRemoved(int deviceSetIndex, ChannelAPI *channel) { + (void) deviceSetIndex; + (void) channel; + updateSourceList(); } diff --git a/plugins/feature/skymap/skymapgui.h b/plugins/feature/skymap/skymapgui.h index ba7b6b090..7fd65fa02 100644 --- a/plugins/feature/skymap/skymapgui.h +++ b/plugins/feature/skymap/skymapgui.h @@ -72,7 +72,6 @@ private: PluginAPI* m_pluginAPI; FeatureUISet* m_featureUISet; SkyMapSettings m_settings; - QList m_settingsKeys; RollupState m_rollupState; bool m_doApplySettings; QList m_availableChannelOrFeatures; diff --git a/plugins/feature/skymap/webview.cpp b/plugins/feature/skymap/webview.cpp index f6c04c857..7d424cc34 100644 --- a/plugins/feature/skymap/webview.cpp +++ b/plugins/feature/skymap/webview.cpp @@ -28,6 +28,7 @@ WebView::WebView(QWidget *parent) : QWebEngineView *WebView::createWindow(QWebEnginePage::WebWindowType type) { + (void) type; QWebEngineView *view = new QWebEngineView(); connect(view, &QWebEngineView::titleChanged, this, &WebView::on_titleChanged); diff --git a/sdrbase/maincore.cpp b/sdrbase/maincore.cpp index bec2ece84..668173767 100644 --- a/sdrbase/maincore.cpp +++ b/sdrbase/maincore.cpp @@ -439,7 +439,6 @@ void MainCore::updateWakeLock() QList MainCore::getAvailableChannels(const QStringList& uris) { QList list; - std::vector& deviceSets = MainCore::instance()->getDeviceSets(); for (const auto deviceSet : m_deviceSets) { diff --git a/sdrgui/gui/int64validator.cpp b/sdrgui/gui/int64validator.cpp index 09d2863dc..92ee6dddb 100644 --- a/sdrgui/gui/int64validator.cpp +++ b/sdrgui/gui/int64validator.cpp @@ -19,6 +19,8 @@ QValidator::State Int64Validator::validate(QString& input, int &pos) const { + (void) pos; + if (input == "") { return QValidator::Acceptable; }