2020-10-27 12:22:10 -04:00
|
|
|
///////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Copyright (C) 2020 Jon Beniston, M7RCE //
|
|
|
|
// Copyright (C) 2020 Edouard Griffiths, F4EXB //
|
|
|
|
// //
|
|
|
|
// This program is free software; you can redistribute it and/or modify //
|
|
|
|
// it under the terms of the GNU General Public License as published by //
|
|
|
|
// the Free Software Foundation as version 3 of the License, or //
|
|
|
|
// (at your option) any later version. //
|
|
|
|
// //
|
|
|
|
// This program is distributed in the hope that it will be useful, //
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
|
|
|
|
// GNU General Public License V3 for more details. //
|
|
|
|
// //
|
|
|
|
// You should have received a copy of the GNU General Public License //
|
|
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include <QColor>
|
|
|
|
|
|
|
|
#include "util/simpleserializer.h"
|
|
|
|
#include "settings/serializable.h"
|
|
|
|
|
|
|
|
#include "gs232controllersettings.h"
|
|
|
|
|
2021-01-13 14:44:53 -05:00
|
|
|
const QStringList GS232ControllerSettings::m_pipeTypes = {
|
|
|
|
QStringLiteral("ADSBDemod"),
|
2021-01-22 09:54:22 -05:00
|
|
|
QStringLiteral("Map"),
|
2021-02-26 15:27:35 -05:00
|
|
|
QStringLiteral("StarTracker"),
|
|
|
|
QStringLiteral("SatelliteTracker")
|
2021-01-13 14:44:53 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
const QStringList GS232ControllerSettings::m_pipeURIs = {
|
|
|
|
QStringLiteral("sdrangel.channel.adsbdemod"),
|
2021-01-22 09:54:22 -05:00
|
|
|
QStringLiteral("sdrangel.feature.map"),
|
2021-02-26 15:27:35 -05:00
|
|
|
QStringLiteral("sdrangel.feature.startracker"),
|
|
|
|
QStringLiteral("sdrangel.feature.satellitetracker")
|
2021-01-13 14:44:53 -05:00
|
|
|
};
|
2020-10-27 12:22:10 -04:00
|
|
|
|
2022-01-08 23:27:12 -05:00
|
|
|
GS232ControllerSettings::GS232ControllerSettings() :
|
|
|
|
m_rollupState(nullptr)
|
2020-10-27 12:22:10 -04:00
|
|
|
{
|
|
|
|
resetToDefaults();
|
|
|
|
}
|
|
|
|
|
|
|
|
void GS232ControllerSettings::resetToDefaults()
|
|
|
|
{
|
2021-05-30 07:38:07 -04:00
|
|
|
m_azimuth = 0.0f;
|
|
|
|
m_elevation = 0.0f;
|
2020-10-27 12:22:10 -04:00
|
|
|
m_serialPort = "";
|
|
|
|
m_baudRate = 9600;
|
2023-04-03 11:47:13 -04:00
|
|
|
m_host = "127.0.0.1";
|
|
|
|
m_port = 4533;
|
2020-10-27 12:22:10 -04:00
|
|
|
m_track = false;
|
2021-10-03 17:15:15 -04:00
|
|
|
m_source = "";
|
2023-07-27 09:57:57 -04:00
|
|
|
m_azimuthOffset = 0.0f;
|
|
|
|
m_elevationOffset = 0.0f;
|
2021-02-26 15:27:35 -05:00
|
|
|
m_azimuthMin = 0;
|
|
|
|
m_azimuthMax = 450;
|
|
|
|
m_elevationMin = 0;
|
|
|
|
m_elevationMax = 180;
|
2021-11-23 07:13:24 -05:00
|
|
|
m_tolerance = 1.0f;
|
2021-05-30 07:38:07 -04:00
|
|
|
m_protocol = GS232;
|
2021-11-23 07:13:24 -05:00
|
|
|
m_connection = SERIAL;
|
2023-04-03 11:47:13 -04:00
|
|
|
m_precision = 0;
|
|
|
|
m_coordinates = AZ_EL;
|
2023-04-23 14:52:02 -04:00
|
|
|
m_inputController = "None";
|
|
|
|
m_inputSensitivity = 0.25;
|
2023-04-03 11:47:13 -04:00
|
|
|
m_dfmTrackOn = false;
|
|
|
|
m_dfmLubePumpsOn = false;
|
|
|
|
m_dfmBrakesOn = false;
|
|
|
|
m_dfmDrivesOn = false;
|
|
|
|
m_title = "Rotator Controller";
|
|
|
|
m_rgbColor = QColor(225, 25, 99).rgb();
|
|
|
|
m_useReverseAPI = false;
|
|
|
|
m_reverseAPIAddress = "127.0.0.1";
|
|
|
|
m_reverseAPIPort = 8888;
|
|
|
|
m_reverseAPIFeatureSetIndex = 0;
|
|
|
|
m_reverseAPIFeatureIndex = 0;
|
2022-04-05 10:26:57 -04:00
|
|
|
m_workspaceIndex = 0;
|
2020-10-27 12:22:10 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
QByteArray GS232ControllerSettings::serialize() const
|
|
|
|
{
|
|
|
|
SimpleSerializer s(1);
|
|
|
|
|
2021-05-30 07:38:07 -04:00
|
|
|
s.writeFloat(1, m_azimuth);
|
|
|
|
s.writeFloat(2, m_elevation);
|
2020-10-27 12:22:10 -04:00
|
|
|
s.writeString(3, m_serialPort);
|
|
|
|
s.writeS32(4, m_baudRate);
|
|
|
|
s.writeBool(5, m_track);
|
2021-10-03 17:15:15 -04:00
|
|
|
s.writeString(6, m_source);
|
2020-10-27 12:22:10 -04:00
|
|
|
s.writeString(8, m_title);
|
|
|
|
s.writeU32(9, m_rgbColor);
|
|
|
|
s.writeBool(10, m_useReverseAPI);
|
|
|
|
s.writeString(11, m_reverseAPIAddress);
|
|
|
|
s.writeU32(12, m_reverseAPIPort);
|
|
|
|
s.writeU32(13, m_reverseAPIFeatureSetIndex);
|
|
|
|
s.writeU32(14, m_reverseAPIFeatureIndex);
|
2023-07-27 09:57:57 -04:00
|
|
|
s.writeFloat(15, m_azimuthOffset);
|
|
|
|
s.writeFloat(16, m_elevationOffset);
|
2021-02-26 15:27:35 -05:00
|
|
|
s.writeS32(17, m_azimuthMin);
|
|
|
|
s.writeS32(18, m_azimuthMax);
|
|
|
|
s.writeS32(19, m_elevationMin);
|
|
|
|
s.writeS32(20, m_elevationMax);
|
2021-10-05 09:03:31 -04:00
|
|
|
s.writeFloat(21, m_tolerance);
|
2021-05-30 07:38:07 -04:00
|
|
|
s.writeS32(22, (int)m_protocol);
|
2021-11-23 07:13:24 -05:00
|
|
|
s.writeS32(23, (int)m_connection);
|
|
|
|
s.writeString(24, m_host);
|
|
|
|
s.writeS32(25, m_port);
|
2022-01-08 23:27:12 -05:00
|
|
|
|
|
|
|
if (m_rollupState) {
|
|
|
|
s.writeBlob(26, m_rollupState->serialize());
|
|
|
|
}
|
2020-10-27 12:22:10 -04:00
|
|
|
|
2022-04-05 10:26:57 -04:00
|
|
|
s.writeS32(27, m_workspaceIndex);
|
|
|
|
s.writeBlob(28, m_geometryBytes);
|
2023-04-03 11:47:13 -04:00
|
|
|
s.writeS32(29, m_precision);
|
|
|
|
s.writeS32(30, (int)m_coordinates);
|
|
|
|
s.writeBool(31, m_dfmTrackOn);
|
|
|
|
s.writeBool(32, m_dfmLubePumpsOn);
|
|
|
|
s.writeBool(33, m_dfmBrakesOn);
|
|
|
|
s.writeBool(34, m_dfmDrivesOn);
|
2023-04-23 14:52:02 -04:00
|
|
|
s.writeString(35, m_inputController);
|
|
|
|
s.writeFloat(36, m_inputSensitivity);
|
2022-04-05 10:26:57 -04:00
|
|
|
|
2020-10-27 12:22:10 -04:00
|
|
|
return s.final();
|
|
|
|
}
|
|
|
|
|
|
|
|
bool GS232ControllerSettings::deserialize(const QByteArray& data)
|
|
|
|
{
|
|
|
|
SimpleDeserializer d(data);
|
|
|
|
|
|
|
|
if (!d.isValid())
|
|
|
|
{
|
|
|
|
resetToDefaults();
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (d.getVersion() == 1)
|
|
|
|
{
|
|
|
|
QByteArray bytetmp;
|
|
|
|
uint32_t utmp;
|
|
|
|
QString strtmp;
|
|
|
|
|
2021-05-30 07:38:07 -04:00
|
|
|
d.readFloat(1, &m_azimuth, 0);
|
|
|
|
d.readFloat(2, &m_elevation, 0);
|
2020-10-27 12:22:10 -04:00
|
|
|
d.readString(3, &m_serialPort, "");
|
|
|
|
d.readS32(4, &m_baudRate, 9600);
|
|
|
|
d.readBool(5, &m_track, false);
|
2021-10-03 17:15:15 -04:00
|
|
|
d.readString(6, &m_source, "");
|
2021-11-23 07:13:24 -05:00
|
|
|
d.readString(8, &m_title, "Rotator Controller");
|
2020-10-27 12:22:10 -04:00
|
|
|
d.readU32(9, &m_rgbColor, QColor(225, 25, 99).rgb());
|
|
|
|
d.readBool(10, &m_useReverseAPI, false);
|
|
|
|
d.readString(11, &m_reverseAPIAddress, "127.0.0.1");
|
|
|
|
d.readU32(12, &utmp, 0);
|
|
|
|
|
|
|
|
if ((utmp > 1023) && (utmp < 65535)) {
|
|
|
|
m_reverseAPIPort = utmp;
|
|
|
|
} else {
|
|
|
|
m_reverseAPIPort = 8888;
|
|
|
|
}
|
|
|
|
|
|
|
|
d.readU32(13, &utmp, 0);
|
|
|
|
m_reverseAPIFeatureSetIndex = utmp > 99 ? 99 : utmp;
|
|
|
|
d.readU32(14, &utmp, 0);
|
|
|
|
m_reverseAPIFeatureIndex = utmp > 99 ? 99 : utmp;
|
2023-07-27 09:57:57 -04:00
|
|
|
d.readFloat(15, &m_azimuthOffset, 0.0f);
|
|
|
|
d.readFloat(16, &m_elevationOffset, 0.0f);
|
2021-02-26 15:27:35 -05:00
|
|
|
d.readS32(17, &m_azimuthMin, 0);
|
|
|
|
d.readS32(18, &m_azimuthMax, 450);
|
|
|
|
d.readS32(19, &m_elevationMin, 0);
|
|
|
|
d.readS32(20, &m_elevationMax, 180);
|
2021-11-23 07:13:24 -05:00
|
|
|
d.readFloat(21, &m_tolerance, 1.0f);
|
2021-05-30 07:38:07 -04:00
|
|
|
d.readS32(22, (int*)&m_protocol, GS232);
|
2021-11-23 07:13:24 -05:00
|
|
|
d.readS32(23, (int*)&m_connection, SERIAL);
|
|
|
|
d.readString(24, &m_host, "127.0.0.1");
|
|
|
|
d.readS32(25, &m_port, 4533);
|
2022-01-08 23:27:12 -05:00
|
|
|
|
|
|
|
if (m_rollupState)
|
|
|
|
{
|
|
|
|
d.readBlob(26, &bytetmp);
|
|
|
|
m_rollupState->deserialize(bytetmp);
|
|
|
|
}
|
2020-10-27 12:22:10 -04:00
|
|
|
|
2022-04-05 10:26:57 -04:00
|
|
|
d.readS32(27, &m_workspaceIndex, 0);
|
|
|
|
d.readBlob(28, &m_geometryBytes);
|
2023-04-03 11:47:13 -04:00
|
|
|
d.readS32(29, &m_precision, 0);
|
|
|
|
d.readS32(30, (int *)&m_coordinates, (int)AZ_EL);
|
|
|
|
d.readBool(31, &m_dfmTrackOn);
|
|
|
|
d.readBool(32, &m_dfmLubePumpsOn);
|
|
|
|
d.readBool(33, &m_dfmBrakesOn);
|
|
|
|
d.readBool(34, &m_dfmDrivesOn);
|
2023-04-23 14:52:02 -04:00
|
|
|
d.readString(35, &m_inputController, "None");
|
|
|
|
d.readFloat(36, &m_inputSensitivity, 0.25);
|
2022-04-05 10:26:57 -04:00
|
|
|
|
2020-10-27 12:22:10 -04:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
resetToDefaults();
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
2021-10-05 09:03:31 -04:00
|
|
|
|
|
|
|
void GS232ControllerSettings::calcTargetAzEl(float& targetAz, float& targetEl) const
|
|
|
|
{
|
|
|
|
// Apply offset then clamp
|
|
|
|
|
|
|
|
targetAz = m_azimuth;
|
|
|
|
targetAz += m_azimuthOffset;
|
|
|
|
targetAz = std::max(targetAz, (float)m_azimuthMin);
|
|
|
|
targetAz = std::min(targetAz, (float)m_azimuthMax);
|
|
|
|
|
|
|
|
targetEl = m_elevation;
|
|
|
|
targetEl += m_elevationOffset;
|
|
|
|
targetEl = std::max(targetEl, (float)m_elevationMin);
|
|
|
|
targetEl = std::min(targetEl, (float)m_elevationMax);
|
|
|
|
}
|
2022-11-24 10:40:36 -05:00
|
|
|
|
|
|
|
void GS232ControllerSettings::applySettings(const QStringList& settingsKeys, const GS232ControllerSettings& settings)
|
|
|
|
{
|
|
|
|
if (settingsKeys.contains("azimuth")) {
|
|
|
|
m_azimuth = settings.m_azimuth;
|
|
|
|
}
|
|
|
|
if (settingsKeys.contains("elevation")) {
|
|
|
|
m_elevation = settings.m_elevation;
|
|
|
|
}
|
|
|
|
if (settingsKeys.contains("serialPort")) {
|
|
|
|
m_serialPort = settings.m_serialPort;
|
|
|
|
}
|
|
|
|
if (settingsKeys.contains("baudRate")) {
|
|
|
|
m_baudRate = settings.m_baudRate;
|
|
|
|
}
|
2023-04-03 11:47:13 -04:00
|
|
|
if (settingsKeys.contains("host")) {
|
|
|
|
m_host = settings.m_host;
|
|
|
|
}
|
|
|
|
if (settingsKeys.contains("port")) {
|
|
|
|
m_port = settings.m_port;
|
|
|
|
}
|
2023-03-30 06:15:16 -04:00
|
|
|
if (settingsKeys.contains("track")) {
|
|
|
|
m_track = settings.m_track;
|
|
|
|
}
|
2022-11-24 10:40:36 -05:00
|
|
|
if (settingsKeys.contains("source")) {
|
|
|
|
m_source = settings.m_source;
|
|
|
|
}
|
|
|
|
if (settingsKeys.contains("azimuthOffset")) {
|
|
|
|
m_azimuthOffset = settings.m_azimuthOffset;
|
|
|
|
}
|
|
|
|
if (settingsKeys.contains("elevationOffset")) {
|
|
|
|
m_elevationOffset = settings.m_elevationOffset;
|
|
|
|
}
|
|
|
|
if (settingsKeys.contains("azimuthMin")) {
|
|
|
|
m_azimuthMin = settings.m_azimuthMin;
|
|
|
|
}
|
|
|
|
if (settingsKeys.contains("azimuthMax")) {
|
|
|
|
m_azimuthMax = settings.m_azimuthMax;
|
|
|
|
}
|
|
|
|
if (settingsKeys.contains("elevationMin")) {
|
|
|
|
m_elevationMin = settings.m_elevationMin;
|
|
|
|
}
|
|
|
|
if (settingsKeys.contains("elevationMax")) {
|
|
|
|
m_elevationMax = settings.m_elevationMax;
|
|
|
|
}
|
|
|
|
if (settingsKeys.contains("tolerance")) {
|
|
|
|
m_tolerance = settings.m_tolerance;
|
|
|
|
}
|
|
|
|
if (settingsKeys.contains("protocol")) {
|
|
|
|
m_protocol = settings.m_protocol;
|
|
|
|
}
|
|
|
|
if (settingsKeys.contains("connection")) {
|
|
|
|
m_connection = settings.m_connection;
|
|
|
|
}
|
2023-04-03 11:47:13 -04:00
|
|
|
if (settingsKeys.contains("precision")) {
|
|
|
|
m_precision = settings.m_precision;
|
2022-11-24 10:40:36 -05:00
|
|
|
}
|
2023-04-03 11:47:13 -04:00
|
|
|
if (settingsKeys.contains("coordinates")) {
|
|
|
|
m_coordinates = settings.m_coordinates;
|
|
|
|
}
|
2023-04-23 14:52:02 -04:00
|
|
|
if (settingsKeys.contains("inputController")) {
|
|
|
|
m_inputController = settings.m_inputController;
|
|
|
|
}
|
|
|
|
if (settingsKeys.contains("inputSensitivity")) {
|
|
|
|
m_inputSensitivity = settings.m_inputSensitivity;
|
|
|
|
}
|
2023-04-03 11:47:13 -04:00
|
|
|
if (settingsKeys.contains("dfmTrackOn")) {
|
|
|
|
m_dfmTrackOn = settings.m_dfmTrackOn;
|
|
|
|
}
|
|
|
|
if (settingsKeys.contains("dfmLubePumpsOn")) {
|
|
|
|
m_dfmLubePumpsOn = settings.m_dfmLubePumpsOn;
|
|
|
|
}
|
|
|
|
if (settingsKeys.contains("dfmBrakesOn")) {
|
|
|
|
m_dfmBrakesOn = settings.m_dfmBrakesOn;
|
|
|
|
}
|
|
|
|
if (settingsKeys.contains("dfmDrivesOn")) {
|
|
|
|
m_dfmDrivesOn = settings.m_dfmDrivesOn;
|
|
|
|
}
|
|
|
|
if (settingsKeys.contains("title")) {
|
|
|
|
m_title = settings.m_title;
|
|
|
|
}
|
|
|
|
if (settingsKeys.contains("rgbColor")) {
|
|
|
|
m_rgbColor = settings.m_rgbColor;
|
|
|
|
}
|
|
|
|
if (settingsKeys.contains("useReverseAPI")) {
|
|
|
|
m_useReverseAPI = settings.m_useReverseAPI;
|
|
|
|
}
|
|
|
|
if (settingsKeys.contains("reverseAPIAddress")) {
|
|
|
|
m_reverseAPIAddress = settings.m_reverseAPIAddress;
|
|
|
|
}
|
|
|
|
if (settingsKeys.contains("reverseAPIPort")) {
|
|
|
|
m_reverseAPIPort = settings.m_reverseAPIPort;
|
|
|
|
}
|
|
|
|
if (settingsKeys.contains("reverseAPIFeatureSetIndex")) {
|
|
|
|
m_reverseAPIFeatureSetIndex = settings.m_reverseAPIFeatureSetIndex;
|
|
|
|
}
|
|
|
|
if (settingsKeys.contains("reverseAPIFeatureIndex")) {
|
|
|
|
m_reverseAPIFeatureIndex = settings.m_reverseAPIFeatureIndex;
|
2022-11-24 10:40:36 -05:00
|
|
|
}
|
|
|
|
if (settingsKeys.contains("workspaceIndex")) {
|
|
|
|
m_workspaceIndex = settings.m_workspaceIndex;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
QString GS232ControllerSettings::getDebugString(const QStringList& settingsKeys, bool force) const
|
|
|
|
{
|
|
|
|
std::ostringstream ostr;
|
|
|
|
|
|
|
|
if (settingsKeys.contains("azimuth") || force) {
|
|
|
|
ostr << " m_azimuth: " << m_azimuth;
|
|
|
|
}
|
|
|
|
if (settingsKeys.contains("elevation") || force) {
|
|
|
|
ostr << " m_elevation: " << m_elevation;
|
|
|
|
}
|
|
|
|
if (settingsKeys.contains("serialPort") || force) {
|
|
|
|
ostr << " m_serialPort: " << m_serialPort.toStdString();
|
|
|
|
}
|
|
|
|
if (settingsKeys.contains("baudRate") || force) {
|
|
|
|
ostr << " m_baudRate: " << m_baudRate;
|
|
|
|
}
|
2023-04-03 11:47:13 -04:00
|
|
|
if (settingsKeys.contains("host") || force) {
|
|
|
|
ostr << " m_host: " << m_host.toStdString();
|
|
|
|
}
|
|
|
|
if (settingsKeys.contains("port") || force) {
|
|
|
|
ostr << " m_port: " << m_port;
|
|
|
|
}
|
2022-11-24 10:40:36 -05:00
|
|
|
if (settingsKeys.contains("track") || force) {
|
|
|
|
ostr << " m_track: " << m_track;
|
|
|
|
}
|
|
|
|
if (settingsKeys.contains("source") || force) {
|
|
|
|
ostr << " m_source: " << m_source.toStdString();
|
|
|
|
}
|
|
|
|
if (settingsKeys.contains("azimuthOffset") || force) {
|
|
|
|
ostr << " m_azimuthOffset: " << m_azimuthOffset;
|
|
|
|
}
|
|
|
|
if (settingsKeys.contains("elevationOffset") || force) {
|
|
|
|
ostr << " m_elevationOffset: " << m_elevationOffset;
|
|
|
|
}
|
|
|
|
if (settingsKeys.contains("azimuthMin") || force) {
|
|
|
|
ostr << " m_azimuthMin: " << m_azimuthMin;
|
|
|
|
}
|
|
|
|
if (settingsKeys.contains("azimuthMax") || force) {
|
|
|
|
ostr << " m_azimuthMax: " << m_azimuthMax;
|
|
|
|
}
|
|
|
|
if (settingsKeys.contains("elevationMin") || force) {
|
|
|
|
ostr << " m_elevationMin: " << m_elevationMin;
|
|
|
|
}
|
|
|
|
if (settingsKeys.contains("elevationMax") || force) {
|
|
|
|
ostr << " m_elevationMax: " << m_elevationMax;
|
|
|
|
}
|
|
|
|
if (settingsKeys.contains("tolerance") || force) {
|
|
|
|
ostr << " m_tolerance: " << m_tolerance;
|
|
|
|
}
|
|
|
|
if (settingsKeys.contains("protocol") || force) {
|
|
|
|
ostr << " m_protocol: " << m_protocol;
|
|
|
|
}
|
|
|
|
if (settingsKeys.contains("connection") || force) {
|
|
|
|
ostr << " m_connection: " << m_connection;
|
|
|
|
}
|
2023-04-03 11:47:13 -04:00
|
|
|
if (settingsKeys.contains("precision") || force) {
|
|
|
|
ostr << " m_precision: " << m_precision;
|
2022-11-24 10:40:36 -05:00
|
|
|
}
|
2023-04-03 11:47:13 -04:00
|
|
|
if (settingsKeys.contains("coordinates") || force) {
|
|
|
|
ostr << " m_coordinates: " << m_precision;
|
|
|
|
}
|
2023-04-23 14:52:02 -04:00
|
|
|
if (settingsKeys.contains("inputController") || force) {
|
|
|
|
ostr << " m_inputController: " << m_inputController.toStdString();
|
|
|
|
}
|
|
|
|
if (settingsKeys.contains("inputSensitivity") || force) {
|
|
|
|
ostr << " m_inputSensitivity: " << m_inputSensitivity;
|
|
|
|
}
|
2023-04-03 11:47:13 -04:00
|
|
|
if (settingsKeys.contains("title") || force) {
|
|
|
|
ostr << " m_title: " << m_title.toStdString();
|
|
|
|
}
|
|
|
|
if (settingsKeys.contains("rgbColor") || force) {
|
|
|
|
ostr << " m_rgbColor: " << m_rgbColor;
|
|
|
|
}
|
|
|
|
if (settingsKeys.contains("useReverseAPI") || force) {
|
|
|
|
ostr << " m_useReverseAPI: " << m_useReverseAPI;
|
|
|
|
}
|
|
|
|
if (settingsKeys.contains("azimuth") || force) {
|
|
|
|
ostr << " m_reverseAPIAddress: " << m_reverseAPIAddress.toStdString();
|
|
|
|
}
|
|
|
|
if (settingsKeys.contains("reverseAPIPort") || force) {
|
|
|
|
ostr << " m_reverseAPIPort: " << m_reverseAPIPort;
|
|
|
|
}
|
|
|
|
if (settingsKeys.contains("reverseAPIFeatureSetIndex") || force) {
|
|
|
|
ostr << " m_reverseAPIFeatureSetIndex: " << m_reverseAPIFeatureSetIndex;
|
|
|
|
}
|
|
|
|
if (settingsKeys.contains("reverseAPIFeatureIndex") || force) {
|
|
|
|
ostr << " m_reverseAPIFeatureIndex: " << m_reverseAPIFeatureIndex;
|
2022-11-24 10:40:36 -05:00
|
|
|
}
|
|
|
|
if (settingsKeys.contains("workspaceIndex") || force) {
|
|
|
|
ostr << " m_workspaceIndex: " << m_workspaceIndex;
|
|
|
|
}
|
|
|
|
|
|
|
|
return QString(ostr.str().c_str());
|
|
|
|
}
|