2022-01-02 20:44:39 +00:00
|
|
|
#include "ProjectSettings.hpp"
|
|
|
|
|
|
2022-01-22 16:10:55 +00:00
|
|
|
#include <QJsonArray>
|
|
|
|
|
|
2022-12-19 14:04:34 +00:00
|
|
|
#include "src/Helpers/EnumToStringMappings.hpp"
|
|
|
|
|
#include "src/Logger/Logger.hpp"
|
|
|
|
|
#include "src/Exceptions/Exception.hpp"
|
|
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
|
|
|
|
|
ProjectSettings::ProjectSettings(const QJsonObject& jsonObject) {
|
2023-05-10 19:53:39 +01:00
|
|
|
#ifndef EXCLUDE_INSIGHT
|
2023-08-13 15:47:51 +01:00
|
|
|
if (jsonObject.contains("insight")) {
|
|
|
|
|
this->insightSettings = InsightProjectSettings(jsonObject.find("insight")->toObject());
|
2022-02-05 15:32:08 +00:00
|
|
|
}
|
2023-08-13 15:47:51 +01:00
|
|
|
#endif
|
|
|
|
|
}
|
2022-01-02 20:44:39 +00:00
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
QJsonObject ProjectSettings::toJson() const {
|
|
|
|
|
auto projectSettingsObj = QJsonObject();
|
2022-01-02 20:44:39 +00:00
|
|
|
|
2023-05-10 19:53:39 +01:00
|
|
|
#ifndef EXCLUDE_INSIGHT
|
2023-08-13 15:47:51 +01:00
|
|
|
projectSettingsObj.insert("insight", this->insightSettings.toJson());
|
2023-05-10 19:53:39 +01:00
|
|
|
#endif
|
2022-02-05 15:32:08 +00:00
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
return projectSettingsObj;
|
|
|
|
|
}
|
2022-01-22 16:10:55 +00:00
|
|
|
|
2023-05-10 19:53:39 +01:00
|
|
|
#ifndef EXCLUDE_INSIGHT
|
2023-08-13 15:47:51 +01:00
|
|
|
InsightProjectSettings::InsightProjectSettings(const QJsonObject& jsonObject) {
|
|
|
|
|
if (jsonObject.contains("mainWindowSize")) {
|
|
|
|
|
const auto mainWindowSizeObj = jsonObject.find("mainWindowSize")->toObject();
|
|
|
|
|
|
|
|
|
|
if (mainWindowSizeObj.contains("width") && mainWindowSizeObj.contains("height")) {
|
|
|
|
|
this->mainWindowSize = QSize(
|
|
|
|
|
mainWindowSizeObj.find("width")->toInt(),
|
|
|
|
|
mainWindowSizeObj.find("height")->toInt()
|
2022-02-06 20:28:46 +00:00
|
|
|
);
|
|
|
|
|
}
|
2023-08-13 15:47:51 +01:00
|
|
|
}
|
2022-02-06 20:28:46 +00:00
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
if (jsonObject.contains("leftPanelState")) {
|
|
|
|
|
this->leftPanelState = this->panelStateFromJson(
|
|
|
|
|
jsonObject.find("leftPanelState")->toObject()
|
|
|
|
|
);
|
|
|
|
|
}
|
2023-05-03 23:13:22 +01:00
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
if (jsonObject.contains("bottomPanelState")) {
|
|
|
|
|
this->bottomPanelState = this->panelStateFromJson(
|
|
|
|
|
jsonObject.find("bottomPanelState")->toObject()
|
|
|
|
|
);
|
|
|
|
|
}
|
2022-01-22 16:10:55 +00:00
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
if (jsonObject.contains("registersPaneState")) {
|
|
|
|
|
this->registersPaneState = this->paneStateFromJson(
|
|
|
|
|
jsonObject.find("registersPaneState")->toObject()
|
|
|
|
|
);
|
|
|
|
|
}
|
2022-01-22 16:10:55 +00:00
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
if (jsonObject.contains("ramInspectionPaneState")) {
|
|
|
|
|
this->ramInspectionPaneState = this->paneStateFromJson(
|
|
|
|
|
jsonObject.find("ramInspectionPaneState")->toObject()
|
|
|
|
|
);
|
|
|
|
|
}
|
2022-01-22 16:10:55 +00:00
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
if (jsonObject.contains("eepromInspectionPaneState")) {
|
|
|
|
|
this->eepromInspectionPaneState = this->paneStateFromJson(
|
|
|
|
|
jsonObject.find("eepromInspectionPaneState")->toObject()
|
|
|
|
|
);
|
2022-01-22 16:10:55 +00:00
|
|
|
}
|
|
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
if (jsonObject.contains("flashInspectionPaneState")) {
|
|
|
|
|
this->flashInspectionPaneState = this->paneStateFromJson(
|
|
|
|
|
jsonObject.find("flashInspectionPaneState")->toObject()
|
|
|
|
|
);
|
|
|
|
|
}
|
2022-01-22 16:10:55 +00:00
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
if (jsonObject.contains("memoryInspectionPaneSettings")) {
|
|
|
|
|
const auto settingsMappingObj = jsonObject.find("memoryInspectionPaneSettings")->toObject();
|
2022-01-22 16:10:55 +00:00
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
for (auto settingsIt = settingsMappingObj.begin(); settingsIt != settingsMappingObj.end(); settingsIt++) {
|
|
|
|
|
const auto settingsObj = settingsIt.value().toObject();
|
|
|
|
|
const auto memoryTypeName = settingsIt.key();
|
2022-02-05 15:32:08 +00:00
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
if (!EnumToStringMappings::targetMemoryTypes.contains(memoryTypeName)) {
|
2022-01-22 16:10:55 +00:00
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
this->memoryInspectionPaneSettingsByMemoryType.insert(std::pair(
|
|
|
|
|
EnumToStringMappings::targetMemoryTypes.at(memoryTypeName),
|
|
|
|
|
this->memoryInspectionPaneSettingsFromJson(settingsObj)
|
|
|
|
|
));
|
2022-02-06 20:28:46 +00:00
|
|
|
}
|
2023-08-13 15:47:51 +01:00
|
|
|
}
|
|
|
|
|
}
|
2022-02-05 15:32:08 +00:00
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
QJsonObject InsightProjectSettings::toJson() const {
|
|
|
|
|
auto insightObj = QJsonObject();
|
2022-02-06 20:28:46 +00:00
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
if (this->mainWindowSize.has_value()) {
|
|
|
|
|
insightObj.insert("mainWindowSize", QJsonObject({
|
|
|
|
|
{"width", this->mainWindowSize->width()},
|
|
|
|
|
{"height", this->mainWindowSize->height()},
|
|
|
|
|
}));
|
|
|
|
|
}
|
2022-02-05 15:32:08 +00:00
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
auto memoryInspectionPaneSettingsObj = QJsonObject();
|
2022-02-06 20:28:46 +00:00
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
for (const auto& [memoryType, inspectionPaneSettings] : this->memoryInspectionPaneSettingsByMemoryType) {
|
|
|
|
|
if (!EnumToStringMappings::targetMemoryTypes.contains(memoryType)) {
|
|
|
|
|
// This is just a precaution - all known memory types should be in the mapping.
|
|
|
|
|
continue;
|
2022-02-06 20:28:46 +00:00
|
|
|
}
|
|
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
memoryInspectionPaneSettingsObj.insert(
|
|
|
|
|
EnumToStringMappings::targetMemoryTypes.at(memoryType),
|
|
|
|
|
this->memoryInspectionPaneSettingsToJson(inspectionPaneSettings)
|
|
|
|
|
);
|
|
|
|
|
}
|
2022-02-06 20:28:46 +00:00
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
insightObj.insert("memoryInspectionPaneSettings", memoryInspectionPaneSettingsObj);
|
2022-02-06 20:28:46 +00:00
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
if (this->leftPanelState.has_value()) {
|
|
|
|
|
insightObj.insert(
|
|
|
|
|
"leftPanelState",
|
|
|
|
|
this->panelStateToJson(this->leftPanelState.value())
|
|
|
|
|
);
|
|
|
|
|
}
|
2023-05-03 23:13:22 +01:00
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
if (this->bottomPanelState.has_value()) {
|
|
|
|
|
insightObj.insert(
|
|
|
|
|
"bottomPanelState",
|
|
|
|
|
this->panelStateToJson(this->bottomPanelState.value())
|
|
|
|
|
);
|
2022-02-06 20:28:46 +00:00
|
|
|
}
|
|
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
if (this->registersPaneState.has_value()) {
|
|
|
|
|
insightObj.insert(
|
|
|
|
|
"registersPaneState",
|
|
|
|
|
this->paneStateToJson(this->registersPaneState.value())
|
|
|
|
|
);
|
|
|
|
|
}
|
2022-12-19 14:04:34 +00:00
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
if (this->ramInspectionPaneState.has_value()) {
|
|
|
|
|
insightObj.insert(
|
|
|
|
|
"ramInspectionPaneState",
|
|
|
|
|
this->paneStateToJson(this->ramInspectionPaneState.value())
|
|
|
|
|
);
|
|
|
|
|
}
|
2022-02-06 20:28:46 +00:00
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
if (this->eepromInspectionPaneState.has_value()) {
|
|
|
|
|
insightObj.insert(
|
|
|
|
|
"eepromInspectionPaneState",
|
|
|
|
|
this->paneStateToJson(this->eepromInspectionPaneState.value())
|
|
|
|
|
);
|
|
|
|
|
}
|
2022-07-21 21:16:34 +01:00
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
if (this->flashInspectionPaneState.has_value()) {
|
|
|
|
|
insightObj.insert(
|
|
|
|
|
"flashInspectionPaneState",
|
|
|
|
|
this->paneStateToJson(this->flashInspectionPaneState.value())
|
|
|
|
|
);
|
|
|
|
|
}
|
2022-07-21 21:16:34 +01:00
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
return insightObj;
|
|
|
|
|
}
|
2022-02-06 20:28:46 +00:00
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
Widgets::TargetMemoryInspectionPaneSettings InsightProjectSettings::memoryInspectionPaneSettingsFromJson(
|
|
|
|
|
const QJsonObject& jsonObject
|
|
|
|
|
) const {
|
|
|
|
|
using Exceptions::Exception;
|
2022-02-06 20:28:46 +00:00
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
auto inspectionPaneSettings = Widgets::TargetMemoryInspectionPaneSettings();
|
2022-02-06 20:28:46 +00:00
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
if (jsonObject.contains("refreshOnTargetStop")) {
|
|
|
|
|
inspectionPaneSettings.refreshOnTargetStop = jsonObject.value("refreshOnTargetStop").toBool();
|
|
|
|
|
}
|
2022-02-06 20:28:46 +00:00
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
if (jsonObject.contains("refreshOnActivation")) {
|
|
|
|
|
inspectionPaneSettings.refreshOnActivation = jsonObject.value("refreshOnActivation").toBool();
|
|
|
|
|
}
|
2022-02-05 15:32:08 +00:00
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
if (jsonObject.contains("hexViewerSettings")) {
|
|
|
|
|
auto& hexViewerSettings = inspectionPaneSettings.hexViewerWidgetSettings;
|
|
|
|
|
const auto hexViewerSettingsObj = jsonObject.find("hexViewerSettings")->toObject();
|
2022-09-11 01:48:42 +01:00
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
if (hexViewerSettingsObj.contains("groupStackMemory")) {
|
|
|
|
|
hexViewerSettings.groupStackMemory =
|
|
|
|
|
hexViewerSettingsObj.value("groupStackMemory").toBool();
|
2022-02-06 20:28:46 +00:00
|
|
|
}
|
|
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
if (hexViewerSettingsObj.contains("highlightFocusedMemory")) {
|
|
|
|
|
hexViewerSettings.highlightFocusedMemory =
|
|
|
|
|
hexViewerSettingsObj.value("highlightFocusedMemory").toBool();
|
2022-02-06 20:28:46 +00:00
|
|
|
}
|
|
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
if (hexViewerSettingsObj.contains("highlightHoveredRowAndCol")) {
|
|
|
|
|
hexViewerSettings.highlightHoveredRowAndCol =
|
|
|
|
|
hexViewerSettingsObj.value("highlightHoveredRowAndCol").toBool();
|
2022-02-06 20:28:46 +00:00
|
|
|
}
|
2022-02-05 15:32:08 +00:00
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
if (hexViewerSettingsObj.contains("displayAsciiValues")) {
|
|
|
|
|
hexViewerSettings.displayAsciiValues =
|
|
|
|
|
hexViewerSettingsObj.value("displayAsciiValues").toBool();
|
|
|
|
|
}
|
2022-02-06 20:28:46 +00:00
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
if (hexViewerSettingsObj.contains("displayAnnotations")) {
|
|
|
|
|
hexViewerSettings.displayAnnotations =
|
|
|
|
|
hexViewerSettingsObj.value("displayAnnotations").toBool();
|
|
|
|
|
}
|
2022-07-19 22:31:36 +01:00
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
if (hexViewerSettingsObj.contains("addressLabelType")) {
|
|
|
|
|
hexViewerSettings.addressLabelType = InsightProjectSettings::addressTypesByName.valueAt(
|
|
|
|
|
hexViewerSettingsObj.value("addressLabelType").toString()
|
|
|
|
|
).value_or(hexViewerSettings.addressLabelType);
|
|
|
|
|
}
|
|
|
|
|
}
|
2022-07-19 22:31:36 +01:00
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
if (jsonObject.contains("focusedRegions")) {
|
|
|
|
|
for (const auto& regionValue : jsonObject.find("focusedRegions")->toArray()) {
|
|
|
|
|
try {
|
|
|
|
|
inspectionPaneSettings.focusedMemoryRegions.emplace_back(regionValue.toObject());
|
2022-07-19 22:31:36 +01:00
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
} catch (Exception exception) {
|
|
|
|
|
Logger::warning(
|
|
|
|
|
"Failed to parse focused memory region from project settings file - "
|
|
|
|
|
+ exception.getMessage() + " - region will be ignored."
|
2022-07-19 22:31:36 +01:00
|
|
|
);
|
|
|
|
|
}
|
2023-08-13 15:47:51 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (jsonObject.contains("excludedRegions")) {
|
|
|
|
|
for (const auto& regionValue : jsonObject.find("excludedRegions")->toArray()) {
|
|
|
|
|
try {
|
|
|
|
|
inspectionPaneSettings.excludedMemoryRegions.emplace_back(regionValue.toObject());
|
2022-07-19 22:31:36 +01:00
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
} catch (Exception exception) {
|
|
|
|
|
Logger::warning(
|
|
|
|
|
"Failed to parse excluded memory region from project settings file - "
|
|
|
|
|
+ exception.getMessage() + " - region will be ignored."
|
2022-07-19 22:31:36 +01:00
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
2022-02-06 20:28:46 +00:00
|
|
|
}
|
|
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
return inspectionPaneSettings;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Widgets::PanelState InsightProjectSettings::panelStateFromJson(const QJsonObject& jsonObject) const {
|
|
|
|
|
return Widgets::PanelState(
|
|
|
|
|
(jsonObject.contains("size") ? static_cast<int>(jsonObject.value("size").toInteger()) : 0),
|
|
|
|
|
(jsonObject.contains("open") ? jsonObject.value("open").toBool() : false)
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Widgets::PaneState InsightProjectSettings::paneStateFromJson(const QJsonObject& jsonObject) const {
|
|
|
|
|
auto detachedWindowState = std::optional<Widgets::DetachedWindowState>(std::nullopt);
|
|
|
|
|
|
|
|
|
|
if (jsonObject.contains("detachedWindowState")) {
|
|
|
|
|
detachedWindowState = Widgets::DetachedWindowState();
|
|
|
|
|
|
|
|
|
|
const auto detachedWindowStateObject = jsonObject.value("detachedWindowState").toObject();
|
2022-02-06 20:28:46 +00:00
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
if (detachedWindowStateObject.contains("size")) {
|
|
|
|
|
const auto sizeObject = detachedWindowStateObject.value("size").toObject();
|
|
|
|
|
detachedWindowState->size = QSize(
|
|
|
|
|
sizeObject.value("width").toInt(0),
|
|
|
|
|
sizeObject.value("height").toInt(0)
|
|
|
|
|
);
|
2022-01-22 16:10:55 +00:00
|
|
|
}
|
|
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
if (detachedWindowStateObject.contains("position")) {
|
|
|
|
|
const auto positionObject = detachedWindowStateObject.value("position").toObject();
|
|
|
|
|
detachedWindowState->position = QPoint(
|
|
|
|
|
positionObject.value("x").toInt(0),
|
|
|
|
|
positionObject.value("y").toInt(0)
|
|
|
|
|
);
|
2022-02-06 20:28:46 +00:00
|
|
|
}
|
2023-08-13 15:47:51 +01:00
|
|
|
}
|
2022-02-06 20:28:46 +00:00
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
return Widgets::PaneState(
|
|
|
|
|
(jsonObject.contains("activated") ? jsonObject.value("activated").toBool() : false),
|
|
|
|
|
(jsonObject.contains("attached") ? jsonObject.value("attached").toBool() : true),
|
|
|
|
|
detachedWindowState
|
|
|
|
|
);
|
|
|
|
|
}
|
2022-02-06 20:28:46 +00:00
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
QJsonObject InsightProjectSettings::memoryInspectionPaneSettingsToJson(
|
|
|
|
|
const Widgets::TargetMemoryInspectionPaneSettings& inspectionPaneSettings
|
|
|
|
|
) const {
|
|
|
|
|
const auto& addressTypesByName = InsightProjectSettings::addressTypesByName;
|
|
|
|
|
|
|
|
|
|
auto settingsObj = QJsonObject({
|
|
|
|
|
{"refreshOnTargetStop", inspectionPaneSettings.refreshOnTargetStop},
|
|
|
|
|
{"refreshOnActivation", inspectionPaneSettings.refreshOnActivation},
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const auto& hexViewerSettings = inspectionPaneSettings.hexViewerWidgetSettings;
|
|
|
|
|
settingsObj.insert("hexViewerSettings", QJsonObject({
|
|
|
|
|
{"groupStackMemory", hexViewerSettings.groupStackMemory},
|
|
|
|
|
{"highlightFocusedMemory", hexViewerSettings.highlightFocusedMemory},
|
|
|
|
|
{"highlightHoveredRowAndCol", hexViewerSettings.highlightHoveredRowAndCol},
|
|
|
|
|
{"displayAsciiValues", hexViewerSettings.displayAsciiValues},
|
|
|
|
|
{"displayAnnotations", hexViewerSettings.displayAnnotations},
|
|
|
|
|
{"addressLabelType", addressTypesByName.valueAt(hexViewerSettings.addressLabelType).value()},
|
|
|
|
|
}));
|
|
|
|
|
|
|
|
|
|
auto focusedRegions = QJsonArray();
|
|
|
|
|
for (const auto& focusedRegion : inspectionPaneSettings.focusedMemoryRegions) {
|
|
|
|
|
focusedRegions.push_back(focusedRegion.toJson());
|
2022-02-06 20:28:46 +00:00
|
|
|
}
|
|
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
auto excludedRegions = QJsonArray();
|
|
|
|
|
for (const auto& excludedRegion : inspectionPaneSettings.excludedMemoryRegions) {
|
|
|
|
|
excludedRegions.push_back(excludedRegion.toJson());
|
2022-02-06 20:28:46 +00:00
|
|
|
}
|
|
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
settingsObj.insert("focusedRegions", focusedRegions);
|
|
|
|
|
settingsObj.insert("excludedRegions", excludedRegions);
|
|
|
|
|
|
|
|
|
|
return settingsObj;
|
|
|
|
|
}
|
2022-07-19 22:31:36 +01:00
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
QJsonObject InsightProjectSettings::panelStateToJson(const Widgets::PanelState& panelState) const {
|
|
|
|
|
return QJsonObject({
|
|
|
|
|
{"size", panelState.size},
|
|
|
|
|
{"open", panelState.open},
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
QJsonObject InsightProjectSettings::paneStateToJson(const Widgets::PaneState& paneState) const {
|
|
|
|
|
auto json = QJsonObject({
|
|
|
|
|
{"activated", paneState.activated},
|
|
|
|
|
{"attached", paneState.attached},
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
if (paneState.detachedWindowState.has_value()) {
|
|
|
|
|
json.insert("detachedWindowState", QJsonObject({
|
|
|
|
|
{
|
|
|
|
|
"size",
|
|
|
|
|
QJsonObject({
|
|
|
|
|
{"width", paneState.detachedWindowState->size.width()},
|
|
|
|
|
{"height", paneState.detachedWindowState->size.height()},
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"position",
|
|
|
|
|
QJsonObject({
|
|
|
|
|
{"x", paneState.detachedWindowState->position.x()},
|
|
|
|
|
{"y", paneState.detachedWindowState->position.y()},
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}));
|
2022-01-22 16:10:55 +00:00
|
|
|
}
|
2023-08-13 15:47:51 +01:00
|
|
|
|
|
|
|
|
return json;
|
2022-01-02 20:44:39 +00:00
|
|
|
}
|
2023-08-13 15:47:51 +01:00
|
|
|
#endif
|