forked from qt-creator/qt-creator
Utils: Rename the new Storage to Store
Apparently that's what the young people on the web use for such a thing. Change-Id: I75d5396ff3cb3c26efd6008b5f2261354c4f7896 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io> Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -161,7 +161,7 @@ add_qtc_library(Utils
|
|||||||
sortfiltermodel.h
|
sortfiltermodel.h
|
||||||
span.h
|
span.h
|
||||||
statuslabel.cpp statuslabel.h
|
statuslabel.cpp statuslabel.h
|
||||||
storage.cpp storage.h
|
store.cpp store.h
|
||||||
stringtable.cpp stringtable.h
|
stringtable.cpp stringtable.h
|
||||||
stringutils.cpp stringutils.h
|
stringutils.cpp stringutils.h
|
||||||
styleanimator.cpp styleanimator.h
|
styleanimator.cpp styleanimator.h
|
||||||
|
@@ -583,7 +583,7 @@ void BaseAspect::saveToMap(QVariantMap &data, const QVariant &value,
|
|||||||
/*!
|
/*!
|
||||||
Retrieves the internal value of this BaseAspect from the QVariantMap \a map.
|
Retrieves the internal value of this BaseAspect from the QVariantMap \a map.
|
||||||
*/
|
*/
|
||||||
void BaseAspect::fromMap(const Storage &map)
|
void BaseAspect::fromMap(const Store &map)
|
||||||
{
|
{
|
||||||
if (settingsKey().isEmpty())
|
if (settingsKey().isEmpty())
|
||||||
return;
|
return;
|
||||||
@@ -594,7 +594,7 @@ void BaseAspect::fromMap(const Storage &map)
|
|||||||
/*!
|
/*!
|
||||||
Stores the internal value of this BaseAspect into the QVariantMap \a map.
|
Stores the internal value of this BaseAspect into the QVariantMap \a map.
|
||||||
*/
|
*/
|
||||||
void BaseAspect::toMap(Storage &map) const
|
void BaseAspect::toMap(Store &map) const
|
||||||
{
|
{
|
||||||
if (settingsKey().isEmpty())
|
if (settingsKey().isEmpty())
|
||||||
return;
|
return;
|
||||||
@@ -692,13 +692,13 @@ public:
|
|||||||
class CheckableAspectImplementation
|
class CheckableAspectImplementation
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
void fromMap(const Storage &map)
|
void fromMap(const Store &map)
|
||||||
{
|
{
|
||||||
if (m_checked)
|
if (m_checked)
|
||||||
m_checked->fromMap(map);
|
m_checked->fromMap(map);
|
||||||
}
|
}
|
||||||
|
|
||||||
void toMap(Storage &map)
|
void toMap(Store &map)
|
||||||
{
|
{
|
||||||
if (m_checked)
|
if (m_checked)
|
||||||
m_checked->toMap(map);
|
m_checked->toMap(map);
|
||||||
@@ -921,7 +921,7 @@ void StringAspect::setValueAcceptor(StringAspect::ValueAcceptor &&acceptor)
|
|||||||
/*!
|
/*!
|
||||||
\reimp
|
\reimp
|
||||||
*/
|
*/
|
||||||
void StringAspect::fromMap(const Storage &map)
|
void StringAspect::fromMap(const Store &map)
|
||||||
{
|
{
|
||||||
if (!settingsKey().isEmpty())
|
if (!settingsKey().isEmpty())
|
||||||
setValue(map.value(settingsKey(), defaultValue()).toString(), BeQuiet);
|
setValue(map.value(settingsKey(), defaultValue()).toString(), BeQuiet);
|
||||||
@@ -931,7 +931,7 @@ void StringAspect::fromMap(const Storage &map)
|
|||||||
/*!
|
/*!
|
||||||
\reimp
|
\reimp
|
||||||
*/
|
*/
|
||||||
void StringAspect::toMap(Storage &map) const
|
void StringAspect::toMap(Store &map) const
|
||||||
{
|
{
|
||||||
saveToMap(map, value(), defaultValue(), settingsKey());
|
saveToMap(map, value(), defaultValue(), settingsKey());
|
||||||
d->m_checkerImpl.toMap(map);
|
d->m_checkerImpl.toMap(map);
|
||||||
@@ -1440,7 +1440,7 @@ void FilePathAspect::addToLayout(Layouting::LayoutItem &parent)
|
|||||||
/*!
|
/*!
|
||||||
\reimp
|
\reimp
|
||||||
*/
|
*/
|
||||||
void FilePathAspect::fromMap(const Storage &map)
|
void FilePathAspect::fromMap(const Store &map)
|
||||||
{
|
{
|
||||||
if (!settingsKey().isEmpty())
|
if (!settingsKey().isEmpty())
|
||||||
setValue(map.value(settingsKey(), defaultValue()).toString(), BeQuiet);
|
setValue(map.value(settingsKey(), defaultValue()).toString(), BeQuiet);
|
||||||
@@ -1450,7 +1450,7 @@ void FilePathAspect::fromMap(const Storage &map)
|
|||||||
/*!
|
/*!
|
||||||
\reimp
|
\reimp
|
||||||
*/
|
*/
|
||||||
void FilePathAspect::toMap(Storage &map) const
|
void FilePathAspect::toMap(Store &map) const
|
||||||
{
|
{
|
||||||
saveToMap(map, value(), defaultValue(), settingsKey());
|
saveToMap(map, value(), defaultValue(), settingsKey());
|
||||||
d->m_checkerImpl.toMap(map);
|
d->m_checkerImpl.toMap(map);
|
||||||
@@ -2514,7 +2514,7 @@ const QList<BaseAspect *> &AspectContainer::aspects() const
|
|||||||
return d->m_items;
|
return d->m_items;
|
||||||
}
|
}
|
||||||
|
|
||||||
void AspectContainer::fromMap(const Storage &map)
|
void AspectContainer::fromMap(const Store &map)
|
||||||
{
|
{
|
||||||
for (BaseAspect *aspect : std::as_const(d->m_items))
|
for (BaseAspect *aspect : std::as_const(d->m_items))
|
||||||
aspect->fromMap(map);
|
aspect->fromMap(map);
|
||||||
@@ -2523,7 +2523,7 @@ void AspectContainer::fromMap(const Storage &map)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void AspectContainer::toMap(Storage &map) const
|
void AspectContainer::toMap(Store &map) const
|
||||||
{
|
{
|
||||||
for (BaseAspect *aspect : std::as_const(d->m_items))
|
for (BaseAspect *aspect : std::as_const(d->m_items))
|
||||||
aspect->toMap(map);
|
aspect->toMap(map);
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
#include "infolabel.h"
|
#include "infolabel.h"
|
||||||
#include "macroexpander.h"
|
#include "macroexpander.h"
|
||||||
#include "pathchooser.h"
|
#include "pathchooser.h"
|
||||||
#include "storage.h"
|
#include "store.h"
|
||||||
|
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
@@ -101,9 +101,9 @@ public:
|
|||||||
|
|
||||||
AspectContainer *container() const;
|
AspectContainer *container() const;
|
||||||
|
|
||||||
virtual void fromMap(const Utils::Storage &map);
|
virtual void fromMap(const Store &map);
|
||||||
virtual void toMap(Utils::Storage &map) const;
|
virtual void toMap(Store &map) const;
|
||||||
virtual void toActiveMap(Utils::Storage &map) const { toMap(map); }
|
virtual void toActiveMap(Store &map) const { toMap(map); }
|
||||||
|
|
||||||
virtual void addToLayout(Layouting::LayoutItem &parent);
|
virtual void addToLayout(Layouting::LayoutItem &parent);
|
||||||
|
|
||||||
@@ -558,8 +558,8 @@ public:
|
|||||||
};
|
};
|
||||||
void setDisplayStyle(DisplayStyle style);
|
void setDisplayStyle(DisplayStyle style);
|
||||||
|
|
||||||
void fromMap(const Utils::Storage &map) override;
|
void fromMap(const Utils::Store &map) override;
|
||||||
void toMap(Utils::Storage &map) const override;
|
void toMap(Utils::Store &map) const override;
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void validChanged(bool validState);
|
void validChanged(bool validState);
|
||||||
@@ -627,8 +627,8 @@ public:
|
|||||||
|
|
||||||
void addToLayout(Layouting::LayoutItem &parent) override;
|
void addToLayout(Layouting::LayoutItem &parent) override;
|
||||||
|
|
||||||
void fromMap(const Utils::Storage &map) override;
|
void fromMap(const Utils::Store &map) override;
|
||||||
void toMap(Utils::Storage &map) const override;
|
void toMap(Utils::Store &map) const override;
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void validChanged(bool validState);
|
void validChanged(bool validState);
|
||||||
@@ -832,8 +832,8 @@ public:
|
|||||||
void registerAspect(BaseAspect *aspect, bool takeOwnership = false);
|
void registerAspect(BaseAspect *aspect, bool takeOwnership = false);
|
||||||
void registerAspects(const AspectContainer &aspects);
|
void registerAspects(const AspectContainer &aspects);
|
||||||
|
|
||||||
void fromMap(const Utils::Storage &map) override;
|
void fromMap(const Utils::Store &map) override;
|
||||||
void toMap(Utils::Storage &map) const override;
|
void toMap(Utils::Store &map) const override;
|
||||||
|
|
||||||
void readSettings() override;
|
void readSettings() override;
|
||||||
void writeSettings() const override;
|
void writeSettings() const override;
|
||||||
|
@@ -35,13 +35,13 @@ bool DisplayName::usesDefaultValue() const
|
|||||||
return m_value.isEmpty();
|
return m_value.isEmpty();
|
||||||
}
|
}
|
||||||
|
|
||||||
void DisplayName::toMap(Storage &map, const QString &key) const
|
void DisplayName::toMap(Store &map, const QString &key) const
|
||||||
{
|
{
|
||||||
if (m_forceSerialization || !usesDefaultValue())
|
if (m_forceSerialization || !usesDefaultValue())
|
||||||
map.insert(key, m_value);
|
map.insert(key, m_value);
|
||||||
}
|
}
|
||||||
|
|
||||||
void DisplayName::fromMap(const Storage &map, const QString &key)
|
void DisplayName::fromMap(const Store &map, const QString &key)
|
||||||
{
|
{
|
||||||
m_value = map.value(key).toString();
|
m_value = map.value(key).toString();
|
||||||
}
|
}
|
||||||
|
@@ -4,7 +4,8 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "utils_global.h"
|
#include "utils_global.h"
|
||||||
#include "storage.h"
|
|
||||||
|
#include "store.h"
|
||||||
|
|
||||||
namespace Utils {
|
namespace Utils {
|
||||||
|
|
||||||
@@ -22,8 +23,8 @@ public:
|
|||||||
bool usesDefaultValue() const;
|
bool usesDefaultValue() const;
|
||||||
void forceSerialization() { m_forceSerialization = true; }
|
void forceSerialization() { m_forceSerialization = true; }
|
||||||
|
|
||||||
void toMap(Utils::Storage &map, const Key &key) const;
|
void toMap(Store &map, const Key &key) const;
|
||||||
void fromMap(const Utils::Storage &map, const Key &key);
|
void fromMap(const Store &map, const Key &key);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QString m_value;
|
QString m_value;
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
// Copyright (C) 2017 The Qt Company Ltd.
|
// Copyright (C) 2017 The Qt Company Ltd.
|
||||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
#include "storage.h"
|
#include "store.h"
|
||||||
|
|
||||||
|
|
||||||
namespace Utils {
|
namespace Utils {
|
@@ -9,6 +9,6 @@ namespace Utils {
|
|||||||
|
|
||||||
using Key = QString;
|
using Key = QString;
|
||||||
using Data = QVariant;
|
using Data = QVariant;
|
||||||
using Storage = QMap<Key, Data>;
|
using Store = QMap<Key, Data>;
|
||||||
|
|
||||||
} // Utils
|
} // Utils
|
@@ -293,8 +293,8 @@ Project {
|
|||||||
"../3rdparty/span/span.hpp",
|
"../3rdparty/span/span.hpp",
|
||||||
"statuslabel.cpp",
|
"statuslabel.cpp",
|
||||||
"statuslabel.h",
|
"statuslabel.h",
|
||||||
"storage.cpp",
|
"store.cpp",
|
||||||
"storage.h",
|
"store.h",
|
||||||
"stringtable.cpp",
|
"stringtable.cpp",
|
||||||
"stringtable.h",
|
"stringtable.h",
|
||||||
"stringutils.cpp",
|
"stringutils.cpp",
|
||||||
|
@@ -879,7 +879,7 @@ void AndroidBuildApkStep::updateBuildToolsVersionInJsonFile()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void AndroidBuildApkStep::fromMap(const Storage &map)
|
void AndroidBuildApkStep::fromMap(const Store &map)
|
||||||
{
|
{
|
||||||
m_keystorePath = FilePath::fromSettings(map.value(KeystoreLocationKey));
|
m_keystorePath = FilePath::fromSettings(map.value(KeystoreLocationKey));
|
||||||
m_signPackage = false; // don't restore this
|
m_signPackage = false; // don't restore this
|
||||||
@@ -893,7 +893,7 @@ void AndroidBuildApkStep::fromMap(const Storage &map)
|
|||||||
ProjectExplorer::BuildStep::fromMap(map);
|
ProjectExplorer::BuildStep::fromMap(map);
|
||||||
}
|
}
|
||||||
|
|
||||||
void AndroidBuildApkStep::toMap(Storage &map) const
|
void AndroidBuildApkStep::toMap(Store &map) const
|
||||||
{
|
{
|
||||||
ProjectExplorer::AbstractProcessStep::toMap(map);
|
ProjectExplorer::AbstractProcessStep::toMap(map);
|
||||||
map.insert(KeystoreLocationKey, m_keystorePath.toSettings());
|
map.insert(KeystoreLocationKey, m_keystorePath.toSettings());
|
||||||
|
@@ -23,8 +23,8 @@ class AndroidBuildApkStep : public ProjectExplorer::AbstractProcessStep
|
|||||||
public:
|
public:
|
||||||
AndroidBuildApkStep(ProjectExplorer::BuildStepList *bc, Utils::Id id);
|
AndroidBuildApkStep(ProjectExplorer::BuildStepList *bc, Utils::Id id);
|
||||||
|
|
||||||
void fromMap(const Utils::Storage &map) override;
|
void fromMap(const Utils::Store &map) override;
|
||||||
void toMap(Utils::Storage &map) const override;
|
void toMap(Utils::Store &map) const override;
|
||||||
|
|
||||||
// signing
|
// signing
|
||||||
Utils::FilePath keystorePath() const;
|
Utils::FilePath keystorePath() const;
|
||||||
|
@@ -214,7 +214,7 @@ void AndroidDevice::addActionsIfNotFound()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void AndroidDevice::fromMap(const Storage &map)
|
void AndroidDevice::fromMap(const Store &map)
|
||||||
{
|
{
|
||||||
IDevice::fromMap(map);
|
IDevice::fromMap(map);
|
||||||
initAvdSettings();
|
initAvdSettings();
|
||||||
|
@@ -55,7 +55,7 @@ public:
|
|||||||
QString openGLStatus() const;
|
QString openGLStatus() const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void fromMap(const Utils::Storage &map) final;
|
void fromMap(const Utils::Store &map) final;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void addActionsIfNotFound();
|
void addActionsIfNotFound();
|
||||||
|
@@ -32,13 +32,13 @@ public:
|
|||||||
: StringAspect(container)
|
: StringAspect(container)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
void fromMap(const Storage &map) final
|
void fromMap(const Store &map) final
|
||||||
{
|
{
|
||||||
// Pre Qt Creator 5.0 hack: Reads QStringList as QString
|
// Pre Qt Creator 5.0 hack: Reads QStringList as QString
|
||||||
setValue(map.value(settingsKey()).toStringList().join('\n'));
|
setValue(map.value(settingsKey()).toStringList().join('\n'));
|
||||||
}
|
}
|
||||||
|
|
||||||
void toMap(Storage &map) const final
|
void toMap(Store &map) const final
|
||||||
{
|
{
|
||||||
// Pre Qt Creator 5.0 hack: Writes QString as QStringList
|
// Pre Qt Creator 5.0 hack: Writes QString as QStringList
|
||||||
map.insert(settingsKey(), value().split('\n'));
|
map.insert(settingsKey(), value().split('\n'));
|
||||||
|
@@ -101,7 +101,7 @@ void AndroidToolChain::addToEnvironment(Environment &env) const
|
|||||||
env.set(QLatin1String("ANDROID_SDK_ROOT"), config.sdkLocation().toUserOutput());
|
env.set(QLatin1String("ANDROID_SDK_ROOT"), config.sdkLocation().toUserOutput());
|
||||||
}
|
}
|
||||||
|
|
||||||
void AndroidToolChain::fromMap(const Storage &data)
|
void AndroidToolChain::fromMap(const Store &data)
|
||||||
{
|
{
|
||||||
ClangToolChain::fromMap(data);
|
ClangToolChain::fromMap(data);
|
||||||
if (hasError())
|
if (hasError())
|
||||||
|
@@ -22,7 +22,7 @@ public:
|
|||||||
|
|
||||||
QStringList suggestedMkspecList() const override;
|
QStringList suggestedMkspecList() const override;
|
||||||
Utils::FilePath makeCommand(const Utils::Environment &environment) const override;
|
Utils::FilePath makeCommand(const Utils::Environment &environment) const override;
|
||||||
void fromMap(const Utils::Storage &data) override;
|
void fromMap(const Utils::Store &data) override;
|
||||||
|
|
||||||
void setNdkLocation(const Utils::FilePath &ndkLocation);
|
void setNdkLocation(const Utils::FilePath &ndkLocation);
|
||||||
Utils::FilePath ndkLocation() const;
|
Utils::FilePath ndkLocation() const;
|
||||||
|
@@ -143,7 +143,7 @@ QVariantMap JLSSettings::toMap() const
|
|||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
void JLSSettings::fromMap(const Storage &map)
|
void JLSSettings::fromMap(const Store &map)
|
||||||
{
|
{
|
||||||
StdIOSettings::fromMap(map);
|
StdIOSettings::fromMap(map);
|
||||||
m_languageServer = FilePath::fromSettings(map[languageServerKey]);
|
m_languageServer = FilePath::fromSettings(map[languageServerKey]);
|
||||||
|
@@ -16,8 +16,8 @@ public:
|
|||||||
bool applyFromSettingsWidget(QWidget *widget) final;
|
bool applyFromSettingsWidget(QWidget *widget) final;
|
||||||
QWidget *createSettingsWidget(QWidget *parent) const final;
|
QWidget *createSettingsWidget(QWidget *parent) const final;
|
||||||
bool isValid() const final;
|
bool isValid() const final;
|
||||||
Utils::Storage toMap() const final;
|
Utils::Store toMap() const final;
|
||||||
void fromMap(const Utils::Storage &map) final;
|
void fromMap(const Utils::Store &map) final;
|
||||||
LanguageClient::BaseSettings *copy() const final;
|
LanguageClient::BaseSettings *copy() const final;
|
||||||
LanguageClient::Client *createClient(LanguageClient::BaseClientInterface *interface) const final;
|
LanguageClient::Client *createClient(LanguageClient::BaseClientInterface *interface) const final;
|
||||||
LanguageClient::BaseClientInterface *createInterface(
|
LanguageClient::BaseClientInterface *createInterface(
|
||||||
|
@@ -63,7 +63,7 @@ void BareMetalDevice::unregisterDebugServerProvider(IDebugServerProvider *provid
|
|||||||
m_debugServerProviderId.clear();
|
m_debugServerProviderId.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
void BareMetalDevice::fromMap(const Storage &map)
|
void BareMetalDevice::fromMap(const Store &map)
|
||||||
{
|
{
|
||||||
IDevice::fromMap(map);
|
IDevice::fromMap(map);
|
||||||
QString providerId = map.value(debugServerProviderIdKeyC).toString();
|
QString providerId = map.value(debugServerProviderIdKeyC).toString();
|
||||||
|
@@ -31,8 +31,8 @@ public:
|
|||||||
void unregisterDebugServerProvider(IDebugServerProvider *provider);
|
void unregisterDebugServerProvider(IDebugServerProvider *provider);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void fromMap(const Utils::Storage &map) final;
|
void fromMap(const Utils::Store &map) final;
|
||||||
Utils::Storage toMap() const final;
|
Utils::Store toMap() const final;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
BareMetalDevice();
|
BareMetalDevice();
|
||||||
|
@@ -74,8 +74,8 @@ private:
|
|||||||
class EBlinkGdbServerProvider final : public GdbServerProvider
|
class EBlinkGdbServerProvider final : public GdbServerProvider
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
void toMap(Storage &data) const final;
|
void toMap(Store &data) const final;
|
||||||
void fromMap(const Storage &data) final;
|
void fromMap(const Store &data) final;
|
||||||
|
|
||||||
bool operator==(const IDebugServerProvider &other) const final;
|
bool operator==(const IDebugServerProvider &other) const final;
|
||||||
|
|
||||||
@@ -215,7 +215,7 @@ bool EBlinkGdbServerProvider::isValid() const
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void EBlinkGdbServerProvider::toMap(Storage &data) const
|
void EBlinkGdbServerProvider::toMap(Store &data) const
|
||||||
{
|
{
|
||||||
GdbServerProvider::toMap(data);
|
GdbServerProvider::toMap(data);
|
||||||
data.insert(executableFileKeyC, m_executableFile.toSettings());
|
data.insert(executableFileKeyC, m_executableFile.toSettings());
|
||||||
@@ -231,7 +231,7 @@ void EBlinkGdbServerProvider::toMap(Storage &data) const
|
|||||||
data.insert(gdbNotUseCacheC, m_gdbNotUseCache);
|
data.insert(gdbNotUseCacheC, m_gdbNotUseCache);
|
||||||
}
|
}
|
||||||
|
|
||||||
void EBlinkGdbServerProvider::fromMap(const Storage &data)
|
void EBlinkGdbServerProvider::fromMap(const Store &data)
|
||||||
{
|
{
|
||||||
GdbServerProvider::fromMap(data);
|
GdbServerProvider::fromMap(data);
|
||||||
m_executableFile = FilePath::fromSettings(data.value(executableFileKeyC));
|
m_executableFile = FilePath::fromSettings(data.value(executableFileKeyC));
|
||||||
|
@@ -120,7 +120,7 @@ bool GdbServerProvider::operator==(const IDebugServerProvider &other) const
|
|||||||
&& m_useExtendedRemote == p->m_useExtendedRemote;
|
&& m_useExtendedRemote == p->m_useExtendedRemote;
|
||||||
}
|
}
|
||||||
|
|
||||||
void GdbServerProvider::toMap(Storage &data) const
|
void GdbServerProvider::toMap(Store &data) const
|
||||||
{
|
{
|
||||||
IDebugServerProvider::toMap(data);
|
IDebugServerProvider::toMap(data);
|
||||||
data.insert(startupModeKeyC, m_startupMode);
|
data.insert(startupModeKeyC, m_startupMode);
|
||||||
@@ -179,7 +179,7 @@ RunWorker *GdbServerProvider::targetRunner(RunControl *runControl) const
|
|||||||
return new GdbServerProviderRunner(runControl, command());
|
return new GdbServerProviderRunner(runControl, command());
|
||||||
}
|
}
|
||||||
|
|
||||||
void GdbServerProvider::fromMap(const Storage &data)
|
void GdbServerProvider::fromMap(const Store &data)
|
||||||
{
|
{
|
||||||
IDebugServerProvider::fromMap(data);
|
IDebugServerProvider::fromMap(data);
|
||||||
m_startupMode = static_cast<StartupMode>(data.value(startupModeKeyC).toInt());
|
m_startupMode = static_cast<StartupMode>(data.value(startupModeKeyC).toInt());
|
||||||
|
@@ -33,7 +33,7 @@ public:
|
|||||||
|
|
||||||
bool operator==(const IDebugServerProvider &other) const override;
|
bool operator==(const IDebugServerProvider &other) const override;
|
||||||
|
|
||||||
void toMap(Utils::Storage &data) const override;
|
void toMap(Utils::Store &data) const override;
|
||||||
|
|
||||||
virtual Utils::CommandLine command() const;
|
virtual Utils::CommandLine command() const;
|
||||||
|
|
||||||
@@ -55,7 +55,7 @@ protected:
|
|||||||
void setResetCommands(const QString &);
|
void setResetCommands(const QString &);
|
||||||
void setUseExtendedRemote(bool);
|
void setUseExtendedRemote(bool);
|
||||||
|
|
||||||
void fromMap(const Utils::Storage &data) override;
|
void fromMap(const Utils::Store &data) override;
|
||||||
|
|
||||||
StartupMode m_startupMode = StartupOnNetwork;
|
StartupMode m_startupMode = StartupOnNetwork;
|
||||||
Utils::FilePath m_peripheralDescriptionFile;
|
Utils::FilePath m_peripheralDescriptionFile;
|
||||||
|
@@ -81,8 +81,8 @@ private:
|
|||||||
class JLinkGdbServerProvider final : public GdbServerProvider
|
class JLinkGdbServerProvider final : public GdbServerProvider
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
void toMap(Storage &data) const final;
|
void toMap(Store &data) const final;
|
||||||
void fromMap(const Storage &data) final;
|
void fromMap(const Store &data) final;
|
||||||
|
|
||||||
bool operator==(const IDebugServerProvider &other) const final;
|
bool operator==(const IDebugServerProvider &other) const final;
|
||||||
|
|
||||||
@@ -194,7 +194,7 @@ bool JLinkGdbServerProvider::isValid() const
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void JLinkGdbServerProvider::toMap(Storage &data) const
|
void JLinkGdbServerProvider::toMap(Store &data) const
|
||||||
{
|
{
|
||||||
GdbServerProvider::toMap(data);
|
GdbServerProvider::toMap(data);
|
||||||
data.insert(executableFileKeyC, m_executableFile.toSettings());
|
data.insert(executableFileKeyC, m_executableFile.toSettings());
|
||||||
@@ -206,7 +206,7 @@ void JLinkGdbServerProvider::toMap(Storage &data) const
|
|||||||
data.insert(additionalArgumentsKeyC, m_additionalArguments);
|
data.insert(additionalArgumentsKeyC, m_additionalArguments);
|
||||||
}
|
}
|
||||||
|
|
||||||
void JLinkGdbServerProvider::fromMap(const Storage &data)
|
void JLinkGdbServerProvider::fromMap(const Store &data)
|
||||||
{
|
{
|
||||||
GdbServerProvider::fromMap(data);
|
GdbServerProvider::fromMap(data);
|
||||||
m_executableFile = FilePath::fromSettings(data.value(executableFileKeyC));
|
m_executableFile = FilePath::fromSettings(data.value(executableFileKeyC));
|
||||||
|
@@ -57,8 +57,8 @@ private:
|
|||||||
class OpenOcdGdbServerProvider final : public GdbServerProvider
|
class OpenOcdGdbServerProvider final : public GdbServerProvider
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
void toMap(Storage &data) const final;
|
void toMap(Store &data) const final;
|
||||||
void fromMap(const Storage &data) final;
|
void fromMap(const Store &data) final;
|
||||||
|
|
||||||
bool operator==(const IDebugServerProvider &other) const final;
|
bool operator==(const IDebugServerProvider &other) const final;
|
||||||
|
|
||||||
@@ -180,7 +180,7 @@ bool OpenOcdGdbServerProvider::isValid() const
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void OpenOcdGdbServerProvider::toMap(Storage &data) const
|
void OpenOcdGdbServerProvider::toMap(Store &data) const
|
||||||
{
|
{
|
||||||
GdbServerProvider::toMap(data);
|
GdbServerProvider::toMap(data);
|
||||||
data.insert(executableFileKeyC, m_executableFile.toSettings());
|
data.insert(executableFileKeyC, m_executableFile.toSettings());
|
||||||
@@ -189,7 +189,7 @@ void OpenOcdGdbServerProvider::toMap(Storage &data) const
|
|||||||
data.insert(additionalArgumentsKeyC, m_additionalArguments);
|
data.insert(additionalArgumentsKeyC, m_additionalArguments);
|
||||||
}
|
}
|
||||||
|
|
||||||
void OpenOcdGdbServerProvider::fromMap(const Storage &data)
|
void OpenOcdGdbServerProvider::fromMap(const Store &data)
|
||||||
{
|
{
|
||||||
GdbServerProvider::fromMap(data);
|
GdbServerProvider::fromMap(data);
|
||||||
m_executableFile = FilePath::fromSettings(data.value(executableFileKeyC));
|
m_executableFile = FilePath::fromSettings(data.value(executableFileKeyC));
|
||||||
|
@@ -67,8 +67,8 @@ private:
|
|||||||
class StLinkUtilGdbServerProvider final : public GdbServerProvider
|
class StLinkUtilGdbServerProvider final : public GdbServerProvider
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
void toMap(Storage &data) const final;
|
void toMap(Store &data) const final;
|
||||||
void fromMap(const Storage &data) final;
|
void fromMap(const Store &data) final;
|
||||||
|
|
||||||
bool operator==(const IDebugServerProvider &other) const final;
|
bool operator==(const IDebugServerProvider &other) const final;
|
||||||
|
|
||||||
@@ -177,7 +177,7 @@ bool StLinkUtilGdbServerProvider::isValid() const
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void StLinkUtilGdbServerProvider::toMap(Storage &data) const
|
void StLinkUtilGdbServerProvider::toMap(Store &data) const
|
||||||
{
|
{
|
||||||
GdbServerProvider::toMap(data);
|
GdbServerProvider::toMap(data);
|
||||||
data.insert(executableFileKeyC, m_executableFile.toSettings());
|
data.insert(executableFileKeyC, m_executableFile.toSettings());
|
||||||
@@ -188,7 +188,7 @@ void StLinkUtilGdbServerProvider::toMap(Storage &data) const
|
|||||||
data.insert(connectUnderResetKeyC, m_connectUnderReset);
|
data.insert(connectUnderResetKeyC, m_connectUnderReset);
|
||||||
}
|
}
|
||||||
|
|
||||||
void StLinkUtilGdbServerProvider::fromMap(const Storage &data)
|
void StLinkUtilGdbServerProvider::fromMap(const Store &data)
|
||||||
{
|
{
|
||||||
GdbServerProvider::fromMap(data);
|
GdbServerProvider::fromMap(data);
|
||||||
m_executableFile = FilePath::fromSettings(data.value(executableFileKeyC));
|
m_executableFile = FilePath::fromSettings(data.value(executableFileKeyC));
|
||||||
|
@@ -46,7 +46,7 @@ public:
|
|||||||
Speed speed = Speed::Speed_1MHz;
|
Speed speed = Speed::Speed_1MHz;
|
||||||
|
|
||||||
QVariantMap toMap() const;
|
QVariantMap toMap() const;
|
||||||
bool fromMap(const Storage &data);
|
bool fromMap(const Store &data);
|
||||||
bool operator==(const JLinkUvscAdapterOptions &other) const;
|
bool operator==(const JLinkUvscAdapterOptions &other) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -130,7 +130,7 @@ QVariantMap JLinkUvscAdapterOptions::toMap() const
|
|||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool JLinkUvscAdapterOptions::fromMap(const Storage &data)
|
bool JLinkUvscAdapterOptions::fromMap(const Store &data)
|
||||||
{
|
{
|
||||||
port = static_cast<Port>(data.value(adapterPortKeyC, SWD).toInt());
|
port = static_cast<Port>(data.value(adapterPortKeyC, SWD).toInt());
|
||||||
speed = static_cast<Speed>(data.value(adapterSpeedKeyC, Speed_1MHz).toInt());
|
speed = static_cast<Speed>(data.value(adapterSpeedKeyC, Speed_1MHz).toInt());
|
||||||
@@ -147,8 +147,8 @@ bool JLinkUvscAdapterOptions::operator==(const JLinkUvscAdapterOptions &other) c
|
|||||||
class JLinkUvscServerProvider final : public UvscServerProvider
|
class JLinkUvscServerProvider final : public UvscServerProvider
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
void toMap(Storage &data) const final;
|
void toMap(Store &data) const final;
|
||||||
void fromMap(const Storage &data) final;
|
void fromMap(const Store &data) final;
|
||||||
|
|
||||||
bool operator==(const IDebugServerProvider &other) const final;
|
bool operator==(const IDebugServerProvider &other) const final;
|
||||||
Utils::FilePath optionsFilePath(Debugger::DebuggerRunTool *runTool,
|
Utils::FilePath optionsFilePath(Debugger::DebuggerRunTool *runTool,
|
||||||
@@ -240,13 +240,13 @@ JLinkUvscServerProvider::JLinkUvscServerProvider()
|
|||||||
setSupportedDrivers({"Segger\\JL2CM3.dll"});
|
setSupportedDrivers({"Segger\\JL2CM3.dll"});
|
||||||
}
|
}
|
||||||
|
|
||||||
void JLinkUvscServerProvider::toMap(Storage &data) const
|
void JLinkUvscServerProvider::toMap(Store &data) const
|
||||||
{
|
{
|
||||||
UvscServerProvider::toMap(data);
|
UvscServerProvider::toMap(data);
|
||||||
data.insert(adapterOptionsKeyC, m_adapterOpts.toMap());
|
data.insert(adapterOptionsKeyC, m_adapterOpts.toMap());
|
||||||
}
|
}
|
||||||
|
|
||||||
void JLinkUvscServerProvider::fromMap(const Storage &data)
|
void JLinkUvscServerProvider::fromMap(const Store &data)
|
||||||
{
|
{
|
||||||
UvscServerProvider::fromMap(data);
|
UvscServerProvider::fromMap(data);
|
||||||
m_adapterOpts.fromMap(data.value(adapterOptionsKeyC).toMap());
|
m_adapterOpts.fromMap(data.value(adapterOptionsKeyC).toMap());
|
||||||
|
@@ -63,13 +63,13 @@ SimulatorUvscServerProvider::SimulatorUvscServerProvider()
|
|||||||
setDriverSelection(defaultSimulatorDriverSelection());
|
setDriverSelection(defaultSimulatorDriverSelection());
|
||||||
}
|
}
|
||||||
|
|
||||||
void SimulatorUvscServerProvider::toMap(Storage &data) const
|
void SimulatorUvscServerProvider::toMap(Store &data) const
|
||||||
{
|
{
|
||||||
UvscServerProvider::toMap(data);
|
UvscServerProvider::toMap(data);
|
||||||
data.insert(limitSpeedKeyC, m_limitSpeed);
|
data.insert(limitSpeedKeyC, m_limitSpeed);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SimulatorUvscServerProvider::fromMap(const Storage &data)
|
void SimulatorUvscServerProvider::fromMap(const Store &data)
|
||||||
{
|
{
|
||||||
UvscServerProvider::fromMap(data);
|
UvscServerProvider::fromMap(data);
|
||||||
m_limitSpeed = data.value(limitSpeedKeyC).toBool();
|
m_limitSpeed = data.value(limitSpeedKeyC).toBool();
|
||||||
|
@@ -16,8 +16,8 @@ namespace BareMetal::Internal {
|
|||||||
class SimulatorUvscServerProvider final : public UvscServerProvider
|
class SimulatorUvscServerProvider final : public UvscServerProvider
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
void toMap(Utils::Storage &data) const final;
|
void toMap(Utils::Store &data) const final;
|
||||||
void fromMap(const Utils::Storage &data) final;
|
void fromMap(const Utils::Store &data) final;
|
||||||
|
|
||||||
bool operator==(const IDebugServerProvider &other) const final;
|
bool operator==(const IDebugServerProvider &other) const final;
|
||||||
bool isSimulator() const final { return true; }
|
bool isSimulator() const final { return true; }
|
||||||
|
@@ -51,7 +51,7 @@ public:
|
|||||||
Speed speed = Speed::Speed_4MHz;
|
Speed speed = Speed::Speed_4MHz;
|
||||||
|
|
||||||
QVariantMap toMap() const;
|
QVariantMap toMap() const;
|
||||||
bool fromMap(const Storage &data);
|
bool fromMap(const Store &data);
|
||||||
bool operator==(const StLinkUvscAdapterOptions &other) const;
|
bool operator==(const StLinkUvscAdapterOptions &other) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -86,8 +86,8 @@ static QString buildDllRegistryName(const DeviceSelection &device,
|
|||||||
class StLinkUvscServerProvider final : public UvscServerProvider
|
class StLinkUvscServerProvider final : public UvscServerProvider
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
void toMap(Storage &data) const final;
|
void toMap(Store &data) const final;
|
||||||
void fromMap(const Storage &data) final;
|
void fromMap(const Store &data) final;
|
||||||
|
|
||||||
bool operator==(const IDebugServerProvider &other) const final;
|
bool operator==(const IDebugServerProvider &other) const final;
|
||||||
Utils::FilePath optionsFilePath(Debugger::DebuggerRunTool *runTool,
|
Utils::FilePath optionsFilePath(Debugger::DebuggerRunTool *runTool,
|
||||||
@@ -134,7 +134,7 @@ QVariantMap StLinkUvscAdapterOptions::toMap() const
|
|||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool StLinkUvscAdapterOptions::fromMap(const Storage &data)
|
bool StLinkUvscAdapterOptions::fromMap(const Store &data)
|
||||||
{
|
{
|
||||||
port = static_cast<Port>(data.value(adapterPortKeyC, SWD).toInt());
|
port = static_cast<Port>(data.value(adapterPortKeyC, SWD).toInt());
|
||||||
speed = static_cast<Speed>(data.value(adapterSpeedKeyC, Speed_4MHz).toInt());
|
speed = static_cast<Speed>(data.value(adapterSpeedKeyC, Speed_4MHz).toInt());
|
||||||
@@ -200,13 +200,13 @@ StLinkUvscServerProvider::StLinkUvscServerProvider()
|
|||||||
setSupportedDrivers({"STLink\\ST-LINKIII-KEIL_SWO.dll"});
|
setSupportedDrivers({"STLink\\ST-LINKIII-KEIL_SWO.dll"});
|
||||||
}
|
}
|
||||||
|
|
||||||
void StLinkUvscServerProvider::toMap(Storage &data) const
|
void StLinkUvscServerProvider::toMap(Store &data) const
|
||||||
{
|
{
|
||||||
UvscServerProvider::toMap(data);
|
UvscServerProvider::toMap(data);
|
||||||
data.insert(adapterOptionsKeyC, m_adapterOpts.toMap());
|
data.insert(adapterOptionsKeyC, m_adapterOpts.toMap());
|
||||||
}
|
}
|
||||||
|
|
||||||
void StLinkUvscServerProvider::fromMap(const Storage &data)
|
void StLinkUvscServerProvider::fromMap(const Store &data)
|
||||||
{
|
{
|
||||||
UvscServerProvider::fromMap(data);
|
UvscServerProvider::fromMap(data);
|
||||||
m_adapterOpts.fromMap(data.value(adapterOptionsKeyC).toMap());
|
m_adapterOpts.fromMap(data.value(adapterOptionsKeyC).toMap());
|
||||||
|
@@ -147,7 +147,7 @@ FilePath UvscServerProvider::buildOptionsFilePath(DebuggerRunTool *runTool) cons
|
|||||||
return path;
|
return path;
|
||||||
}
|
}
|
||||||
|
|
||||||
void UvscServerProvider::toMap(Storage &data) const
|
void UvscServerProvider::toMap(Store &data) const
|
||||||
{
|
{
|
||||||
IDebugServerProvider::toMap(data);
|
IDebugServerProvider::toMap(data);
|
||||||
data.insert(toolsIniKeyC, m_toolsIniFile.toSettings());
|
data.insert(toolsIniKeyC, m_toolsIniFile.toSettings());
|
||||||
@@ -219,7 +219,7 @@ ProjectExplorer::RunWorker *UvscServerProvider::targetRunner(RunControl *runCont
|
|||||||
return new UvscServerProviderRunner(runControl, r);
|
return new UvscServerProviderRunner(runControl, r);
|
||||||
}
|
}
|
||||||
|
|
||||||
void UvscServerProvider::fromMap(const Storage &data)
|
void UvscServerProvider::fromMap(const Store &data)
|
||||||
{
|
{
|
||||||
IDebugServerProvider::fromMap(data);
|
IDebugServerProvider::fromMap(data);
|
||||||
m_toolsIniFile = FilePath::fromSettings(data.value(toolsIniKeyC));
|
m_toolsIniFile = FilePath::fromSettings(data.value(toolsIniKeyC));
|
||||||
|
@@ -48,7 +48,7 @@ public:
|
|||||||
|
|
||||||
bool operator==(const IDebugServerProvider &other) const override;
|
bool operator==(const IDebugServerProvider &other) const override;
|
||||||
|
|
||||||
void toMap(Utils::Storage &map) const override;
|
void toMap(Utils::Store &map) const override;
|
||||||
|
|
||||||
bool aboutToRun(Debugger::DebuggerRunTool *runTool, QString &errorMessage) const final;
|
bool aboutToRun(Debugger::DebuggerRunTool *runTool, QString &errorMessage) const final;
|
||||||
ProjectExplorer::RunWorker *targetRunner(ProjectExplorer::RunControl *runControl) const final;
|
ProjectExplorer::RunWorker *targetRunner(ProjectExplorer::RunControl *runControl) const final;
|
||||||
@@ -69,7 +69,7 @@ protected:
|
|||||||
Utils::FilePath buildProjectFilePath(Debugger::DebuggerRunTool *runTool) const;
|
Utils::FilePath buildProjectFilePath(Debugger::DebuggerRunTool *runTool) const;
|
||||||
Utils::FilePath buildOptionsFilePath(Debugger::DebuggerRunTool *runTool) const;
|
Utils::FilePath buildOptionsFilePath(Debugger::DebuggerRunTool *runTool) const;
|
||||||
|
|
||||||
void fromMap(const Utils::Storage &data) override;
|
void fromMap(const Utils::Store &data) override;
|
||||||
|
|
||||||
// uVision specific stuff.
|
// uVision specific stuff.
|
||||||
virtual Utils::FilePath projectFilePath(Debugger::DebuggerRunTool *runTool,
|
virtual Utils::FilePath projectFilePath(Debugger::DebuggerRunTool *runTool,
|
||||||
|
@@ -102,7 +102,7 @@ QVariantMap DeviceSelection::toMap() const
|
|||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DeviceSelection::fromMap(const Storage &map)
|
void DeviceSelection::fromMap(const Store &map)
|
||||||
{
|
{
|
||||||
// Software package.
|
// Software package.
|
||||||
package.desc = map.value(packageDescrKeyC).toString();
|
package.desc = map.value(packageDescrKeyC).toString();
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
#include <utils/basetreeview.h>
|
#include <utils/basetreeview.h>
|
||||||
#include <utils/treemodel.h>
|
#include <utils/treemodel.h>
|
||||||
#include <utils/storage.h>
|
#include <utils/store.h>
|
||||||
|
|
||||||
QT_BEGIN_NAMESPACE
|
QT_BEGIN_NAMESPACE
|
||||||
class QComboBox;
|
class QComboBox;
|
||||||
@@ -72,8 +72,8 @@ public:
|
|||||||
Algorithms algorithms;
|
Algorithms algorithms;
|
||||||
int algorithmIndex = 0;
|
int algorithmIndex = 0;
|
||||||
|
|
||||||
Utils::Storage toMap() const;
|
Utils::Store toMap() const;
|
||||||
void fromMap(const Utils::Storage &map);
|
void fromMap(const Utils::Store &map);
|
||||||
bool operator==(const DeviceSelection &other) const;
|
bool operator==(const DeviceSelection &other) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -33,7 +33,7 @@ QVariantMap DriverSelection::toMap() const
|
|||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DriverSelection::fromMap(const Storage &map)
|
void DriverSelection::fromMap(const Store &map)
|
||||||
{
|
{
|
||||||
index = map.value(driverIndexKeyC).toInt();
|
index = map.value(driverIndexKeyC).toInt();
|
||||||
cpuDllIndex = map.value(driverCpuDllIndexKeyC).toInt();
|
cpuDllIndex = map.value(driverCpuDllIndexKeyC).toInt();
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
#include <utils/basetreeview.h>
|
#include <utils/basetreeview.h>
|
||||||
#include <utils/treemodel.h>
|
#include <utils/treemodel.h>
|
||||||
#include <utils/storage.h>
|
#include <utils/store.h>
|
||||||
|
|
||||||
QT_BEGIN_NAMESPACE
|
QT_BEGIN_NAMESPACE
|
||||||
class QComboBox;
|
class QComboBox;
|
||||||
@@ -24,8 +24,8 @@ public:
|
|||||||
int index = 0;
|
int index = 0;
|
||||||
int cpuDllIndex = 0;
|
int cpuDllIndex = 0;
|
||||||
|
|
||||||
Utils::Storage toMap() const;
|
Utils::Store toMap() const;
|
||||||
void fromMap(const Utils::Storage &map);
|
void fromMap(const Utils::Store &map);
|
||||||
|
|
||||||
bool operator==(const DriverSelection &other) const;
|
bool operator==(const DriverSelection &other) const;
|
||||||
};
|
};
|
||||||
|
@@ -138,7 +138,7 @@ IDebugServerProviderConfigWidget *IDebugServerProvider::configurationWidget() co
|
|||||||
return m_configurationWidgetCreator();
|
return m_configurationWidgetCreator();
|
||||||
}
|
}
|
||||||
|
|
||||||
void IDebugServerProvider::toMap(Storage &data) const
|
void IDebugServerProvider::toMap(Store &data) const
|
||||||
{
|
{
|
||||||
data.insert(idKeyC, m_id);
|
data.insert(idKeyC, m_id);
|
||||||
data.insert(displayNameKeyC, m_displayName);
|
data.insert(displayNameKeyC, m_displayName);
|
||||||
@@ -167,7 +167,7 @@ void IDebugServerProvider::resetId()
|
|||||||
m_id = createId(m_id);
|
m_id = createId(m_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
void IDebugServerProvider::fromMap(const Storage &data)
|
void IDebugServerProvider::fromMap(const Store &data)
|
||||||
{
|
{
|
||||||
m_id = data.value(idKeyC).toString();
|
m_id = data.value(idKeyC).toString();
|
||||||
m_displayName = data.value(displayNameKeyC).toString();
|
m_displayName = data.value(displayNameKeyC).toString();
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
#include <projectexplorer/abi.h>
|
#include <projectexplorer/abi.h>
|
||||||
|
|
||||||
#include <utils/filepath.h>
|
#include <utils/filepath.h>
|
||||||
#include <utils/storage.h>
|
#include <utils/store.h>
|
||||||
|
|
||||||
#include <QSet>
|
#include <QSet>
|
||||||
#include <QUrl>
|
#include <QUrl>
|
||||||
@@ -67,8 +67,8 @@ public:
|
|||||||
void setConfigurationWidgetCreator
|
void setConfigurationWidgetCreator
|
||||||
(const std::function<IDebugServerProviderConfigWidget *()> &configurationWidgetCreator);
|
(const std::function<IDebugServerProviderConfigWidget *()> &configurationWidgetCreator);
|
||||||
|
|
||||||
virtual void toMap(Utils::Storage &data) const;
|
virtual void toMap(Utils::Store &data) const;
|
||||||
virtual void fromMap(const Utils::Storage &data);
|
virtual void fromMap(const Utils::Store &data);
|
||||||
|
|
||||||
virtual bool aboutToRun(Debugger::DebuggerRunTool *runTool,
|
virtual bool aboutToRun(Debugger::DebuggerRunTool *runTool,
|
||||||
QString &errorMessage) const = 0;
|
QString &errorMessage) const = 0;
|
||||||
|
@@ -137,7 +137,7 @@ QString QdbDevice::serialNumber() const
|
|||||||
return m_serialNumber;
|
return m_serialNumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
void QdbDevice::fromMap(const Storage &map)
|
void QdbDevice::fromMap(const Store &map)
|
||||||
{
|
{
|
||||||
ProjectExplorer::IDevice::fromMap(map);
|
ProjectExplorer::IDevice::fromMap(map);
|
||||||
setSerialNumber(map.value("Qdb.SerialNumber").toString());
|
setSerialNumber(map.value("Qdb.SerialNumber").toString());
|
||||||
|
@@ -26,8 +26,8 @@ public:
|
|||||||
void setupDefaultNetworkSettings(const QString &host);
|
void setupDefaultNetworkSettings(const QString &host);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void fromMap(const Utils::Storage &map) final;
|
void fromMap(const Utils::Store &map) final;
|
||||||
Utils::Storage toMap() const final;
|
Utils::Store toMap() const final;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QdbDevice();
|
QdbDevice();
|
||||||
|
@@ -41,7 +41,7 @@ RunSettings::RunSettings()
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void RunSettings::fromMap(const Storage &map, const QString &prefix)
|
void RunSettings::fromMap(const Store &map, const QString &prefix)
|
||||||
{
|
{
|
||||||
m_diagnosticConfigId = Id::fromSetting(map.value(prefix + diagnosticConfigIdKey));
|
m_diagnosticConfigId = Id::fromSetting(map.value(prefix + diagnosticConfigIdKey));
|
||||||
m_parallelJobs = map.value(prefix + parallelJobsKey).toInt();
|
m_parallelJobs = map.value(prefix + parallelJobsKey).toInt();
|
||||||
@@ -50,7 +50,7 @@ void RunSettings::fromMap(const Storage &map, const QString &prefix)
|
|||||||
m_analyzeOpenFiles = map.value(prefix + analyzeOpenFilesKey).toBool();
|
m_analyzeOpenFiles = map.value(prefix + analyzeOpenFilesKey).toBool();
|
||||||
}
|
}
|
||||||
|
|
||||||
void RunSettings::toMap(Storage &map, const QString &prefix) const
|
void RunSettings::toMap(Store &map, const QString &prefix) const
|
||||||
{
|
{
|
||||||
map.insert(prefix + diagnosticConfigIdKey, m_diagnosticConfigId.toSetting());
|
map.insert(prefix + diagnosticConfigIdKey, m_diagnosticConfigId.toSetting());
|
||||||
map.insert(prefix + parallelJobsKey, m_parallelJobs);
|
map.insert(prefix + parallelJobsKey, m_parallelJobs);
|
||||||
|
@@ -26,8 +26,8 @@ class RunSettings
|
|||||||
public:
|
public:
|
||||||
RunSettings();
|
RunSettings();
|
||||||
|
|
||||||
void fromMap(const Utils::Storage &map, const QString &prefix = QString());
|
void fromMap(const Utils::Store &map, const QString &prefix = QString());
|
||||||
void toMap(Utils::Storage &map, const QString &prefix = QString()) const;
|
void toMap(Utils::Store &map, const QString &prefix = QString()) const;
|
||||||
|
|
||||||
Utils::Id diagnosticConfigId() const;
|
Utils::Id diagnosticConfigId() const;
|
||||||
void setDiagnosticConfigId(const Utils::Id &id) { m_diagnosticConfigId = id; }
|
void setDiagnosticConfigId(const Utils::Id &id) { m_diagnosticConfigId = id; }
|
||||||
|
@@ -2139,14 +2139,14 @@ void InitialCMakeArgumentsAspect::setCMakeConfiguration(const CMakeConfig &confi
|
|||||||
ci.isInitial = true;
|
ci.isInitial = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void InitialCMakeArgumentsAspect::fromMap(const Storage &map)
|
void InitialCMakeArgumentsAspect::fromMap(const Store &map)
|
||||||
{
|
{
|
||||||
const QString value = map.value(settingsKey(), defaultValue()).toString();
|
const QString value = map.value(settingsKey(), defaultValue()).toString();
|
||||||
QStringList additionalArguments;
|
QStringList additionalArguments;
|
||||||
setAllValues(value, additionalArguments);
|
setAllValues(value, additionalArguments);
|
||||||
}
|
}
|
||||||
|
|
||||||
void InitialCMakeArgumentsAspect::toMap(Storage &map) const
|
void InitialCMakeArgumentsAspect::toMap(Store &map) const
|
||||||
{
|
{
|
||||||
saveToMap(map, allValues().join('\n'), defaultValue(), settingsKey());
|
saveToMap(map, allValues().join('\n'), defaultValue(), settingsKey());
|
||||||
}
|
}
|
||||||
@@ -2231,7 +2231,7 @@ ConfigureEnvironmentAspect::ConfigureEnvironmentAspect(AspectContainer *containe
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
void ConfigureEnvironmentAspect::fromMap(const Storage &map)
|
void ConfigureEnvironmentAspect::fromMap(const Store &map)
|
||||||
{
|
{
|
||||||
// Match the key values from Qt Creator 9.0.0/1 to the ones from EnvironmentAspect
|
// Match the key values from Qt Creator 9.0.0/1 to the ones from EnvironmentAspect
|
||||||
const bool cleanSystemEnvironment = map.value(QLatin1String(CLEAR_SYSTEM_ENVIRONMENT_KEY))
|
const bool cleanSystemEnvironment = map.value(QLatin1String(CLEAR_SYSTEM_ENVIRONMENT_KEY))
|
||||||
@@ -2249,7 +2249,7 @@ void ConfigureEnvironmentAspect::fromMap(const Storage &map)
|
|||||||
ProjectExplorer::EnvironmentAspect::fromMap(tmpMap);
|
ProjectExplorer::EnvironmentAspect::fromMap(tmpMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ConfigureEnvironmentAspect::toMap(Storage &map) const
|
void ConfigureEnvironmentAspect::toMap(Store &map) const
|
||||||
{
|
{
|
||||||
QVariantMap tmpMap;
|
QVariantMap tmpMap;
|
||||||
ProjectExplorer::EnvironmentAspect::toMap(tmpMap);
|
ProjectExplorer::EnvironmentAspect::toMap(tmpMap);
|
||||||
|
@@ -31,8 +31,8 @@ public:
|
|||||||
void setAllValues(const QString &values, QStringList &additionalArguments);
|
void setAllValues(const QString &values, QStringList &additionalArguments);
|
||||||
void setCMakeConfiguration(const CMakeConfig &config);
|
void setCMakeConfiguration(const CMakeConfig &config);
|
||||||
|
|
||||||
void fromMap(const Utils::Storage &map) final;
|
void fromMap(const Utils::Store &map) final;
|
||||||
void toMap(Utils::Storage &map) const final;
|
void toMap(Utils::Store &map) const final;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
CMakeConfig m_cmakeConfiguration;
|
CMakeConfig m_cmakeConfiguration;
|
||||||
@@ -44,8 +44,8 @@ public:
|
|||||||
ConfigureEnvironmentAspect(Utils::AspectContainer *container,
|
ConfigureEnvironmentAspect(Utils::AspectContainer *container,
|
||||||
ProjectExplorer::BuildConfiguration *buildConfig);
|
ProjectExplorer::BuildConfiguration *buildConfig);
|
||||||
|
|
||||||
void fromMap(const Utils::Storage &map);
|
void fromMap(const Utils::Store &map);
|
||||||
void toMap(Utils::Storage &map) const;
|
void toMap(Utils::Store &map) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace Internal
|
||||||
|
@@ -273,7 +273,7 @@ CMakeBuildStep::CMakeBuildStep(BuildStepList *bsl, Id id) :
|
|||||||
this, &CMakeBuildStep::updateBuildTargetsModel);
|
this, &CMakeBuildStep::updateBuildTargetsModel);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CMakeBuildStep::toMap(Utils::Storage &map) const
|
void CMakeBuildStep::toMap(Utils::Store &map) const
|
||||||
{
|
{
|
||||||
CMakeAbstractProcessStep::toMap(map);
|
CMakeAbstractProcessStep::toMap(map);
|
||||||
map.insert(BUILD_TARGETS_KEY, m_buildTargets);
|
map.insert(BUILD_TARGETS_KEY, m_buildTargets);
|
||||||
@@ -282,7 +282,7 @@ void CMakeBuildStep::toMap(Utils::Storage &map) const
|
|||||||
map.insert(QLatin1String(BUILD_PRESET_KEY), m_buildPreset);
|
map.insert(QLatin1String(BUILD_PRESET_KEY), m_buildPreset);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CMakeBuildStep::fromMap(const Utils::Storage &map)
|
void CMakeBuildStep::fromMap(const Utils::Store &map)
|
||||||
{
|
{
|
||||||
setBuildTargets(map.value(BUILD_TARGETS_KEY).toStringList());
|
setBuildTargets(map.value(BUILD_TARGETS_KEY).toStringList());
|
||||||
|
|
||||||
|
@@ -44,7 +44,7 @@ public:
|
|||||||
bool buildsBuildTarget(const QString &target) const;
|
bool buildsBuildTarget(const QString &target) const;
|
||||||
void setBuildsBuildTarget(const QString &target, bool on);
|
void setBuildsBuildTarget(const QString &target, bool on);
|
||||||
|
|
||||||
void toMap(Utils::Storage &map) const override;
|
void toMap(Utils::Store &map) const override;
|
||||||
|
|
||||||
QString cleanTarget() const;
|
QString cleanTarget() const;
|
||||||
QString allTarget() const ;
|
QString allTarget() const ;
|
||||||
@@ -83,7 +83,7 @@ signals:
|
|||||||
private:
|
private:
|
||||||
Utils::CommandLine cmakeCommand() const;
|
Utils::CommandLine cmakeCommand() const;
|
||||||
|
|
||||||
void fromMap(const Utils::Storage &map) override;
|
void fromMap(const Utils::Store &map) override;
|
||||||
|
|
||||||
bool init() override;
|
bool init() override;
|
||||||
void setupOutputFormatter(Utils::OutputFormatter *formatter) override;
|
void setupOutputFormatter(Utils::OutputFormatter *formatter) override;
|
||||||
|
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
#include <utils/filepath.h>
|
#include <utils/filepath.h>
|
||||||
#include <utils/id.h>
|
#include <utils/id.h>
|
||||||
#include <utils/storage.h>
|
#include <utils/store.h>
|
||||||
|
|
||||||
#include <optional>
|
#include <optional>
|
||||||
|
|
||||||
@@ -60,7 +60,7 @@ public:
|
|||||||
bool isValid() const;
|
bool isValid() const;
|
||||||
|
|
||||||
Utils::Id id() const { return m_id; }
|
Utils::Id id() const { return m_id; }
|
||||||
Utils::Storage toMap () const;
|
Utils::Store toMap () const;
|
||||||
|
|
||||||
void setAutorun(bool autoRun) { m_isAutoRun = autoRun; }
|
void setAutorun(bool autoRun) { m_isAutoRun = autoRun; }
|
||||||
|
|
||||||
|
@@ -558,7 +558,7 @@ QVariantMap ClangdSettings::Data::toMap() const
|
|||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ClangdSettings::Data::fromMap(const Storage &map)
|
void ClangdSettings::Data::fromMap(const Store &map)
|
||||||
{
|
{
|
||||||
useClangd = map.value(useClangdKey(), true).toBool();
|
useClangd = map.value(useClangdKey(), true).toBool();
|
||||||
executableFilePath = FilePath::fromString(map.value(clangdPathKey()).toString());
|
executableFilePath = FilePath::fromString(map.value(clangdPathKey()).toString());
|
||||||
|
@@ -9,7 +9,7 @@
|
|||||||
#include <utils/clangutils.h>
|
#include <utils/clangutils.h>
|
||||||
#include <utils/filepath.h>
|
#include <utils/filepath.h>
|
||||||
#include <utils/id.h>
|
#include <utils/id.h>
|
||||||
#include <utils/storage.h>
|
#include <utils/store.h>
|
||||||
|
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
@@ -94,8 +94,8 @@ public:
|
|||||||
class CPPEDITOR_EXPORT Data
|
class CPPEDITOR_EXPORT Data
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Utils::Storage toMap() const;
|
Utils::Store toMap() const;
|
||||||
void fromMap(const Utils::Storage &map);
|
void fromMap(const Utils::Store &map);
|
||||||
|
|
||||||
friend bool operator==(const Data &s1, const Data &s2)
|
friend bool operator==(const Data &s1, const Data &s2)
|
||||||
{
|
{
|
||||||
|
@@ -80,7 +80,7 @@ QVariantMap CppCodeStylePreferences::toMap() const
|
|||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CppCodeStylePreferences::fromMap(const Storage &map)
|
void CppCodeStylePreferences::fromMap(const Store &map)
|
||||||
{
|
{
|
||||||
ICodeStylePreferences::fromMap(map);
|
ICodeStylePreferences::fromMap(map);
|
||||||
if (!currentDelegate())
|
if (!currentDelegate())
|
||||||
|
@@ -25,8 +25,8 @@ public:
|
|||||||
// tracks parent hierarchy until currentParentSettings is null
|
// tracks parent hierarchy until currentParentSettings is null
|
||||||
CppCodeStyleSettings currentCodeStyleSettings() const;
|
CppCodeStyleSettings currentCodeStyleSettings() const;
|
||||||
|
|
||||||
Utils::Storage toMap() const override;
|
Utils::Store toMap() const override;
|
||||||
void fromMap(const Utils::Storage &map) override;
|
void fromMap(const Utils::Store &map) override;
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void setCodeStyleSettings(const CppCodeStyleSettings &data);
|
void setCodeStyleSettings(const CppCodeStyleSettings &data);
|
||||||
|
@@ -75,7 +75,7 @@ QVariantMap CppCodeStyleSettings::toMap() const
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
void CppCodeStyleSettings::fromMap(const Storage &map)
|
void CppCodeStyleSettings::fromMap(const Store &map)
|
||||||
{
|
{
|
||||||
indentBlockBraces = map.value(indentBlockBracesKey, indentBlockBraces).toBool();
|
indentBlockBraces = map.value(indentBlockBracesKey, indentBlockBraces).toBool();
|
||||||
indentBlockBody = map.value(indentBlockBodyKey, indentBlockBody).toBool();
|
indentBlockBody = map.value(indentBlockBodyKey, indentBlockBody).toBool();
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
#include "cppeditor_global.h"
|
#include "cppeditor_global.h"
|
||||||
|
|
||||||
#include <utils/storage.h>
|
#include <utils/store.h>
|
||||||
|
|
||||||
namespace CPlusPlus { class Overview; }
|
namespace CPlusPlus { class Overview; }
|
||||||
namespace TextEditor { class TabSettings; }
|
namespace TextEditor { class TabSettings; }
|
||||||
@@ -64,8 +64,8 @@ public:
|
|||||||
bool forceFormatting = false;
|
bool forceFormatting = false;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
Utils::Storage toMap() const;
|
Utils::Store toMap() const;
|
||||||
void fromMap(const Utils::Storage &map);
|
void fromMap(const Utils::Store &map);
|
||||||
|
|
||||||
bool equals(const CppCodeStyleSettings &rhs) const;
|
bool equals(const CppCodeStyleSettings &rhs) const;
|
||||||
bool operator==(const CppCodeStyleSettings &s) const { return equals(s); }
|
bool operator==(const CppCodeStyleSettings &s) const { return equals(s); }
|
||||||
|
@@ -22,8 +22,8 @@ public:
|
|||||||
explicit SourcePathMapAspect(Utils::AspectContainer *container);
|
explicit SourcePathMapAspect(Utils::AspectContainer *container);
|
||||||
~SourcePathMapAspect() override;
|
~SourcePathMapAspect() override;
|
||||||
|
|
||||||
void fromMap(const Utils::Storage &map) override;
|
void fromMap(const Utils::Store &map) override;
|
||||||
void toMap(Utils::Storage &map) const override;
|
void toMap(Utils::Store &map) const override;
|
||||||
|
|
||||||
void addToLayout(Layouting::LayoutItem &parent) override;
|
void addToLayout(Layouting::LayoutItem &parent) override;
|
||||||
|
|
||||||
|
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
#include <utils/filepath.h>
|
#include <utils/filepath.h>
|
||||||
#include <utils/environment.h>
|
#include <utils/environment.h>
|
||||||
#include <utils/storage.h>
|
#include <utils/store.h>
|
||||||
|
|
||||||
#include <QDateTime>
|
#include <QDateTime>
|
||||||
|
|
||||||
@@ -37,7 +37,7 @@ public:
|
|||||||
bool isValid() const;
|
bool isValid() const;
|
||||||
QString engineTypeName() const;
|
QString engineTypeName() const;
|
||||||
|
|
||||||
Utils::Storage toMap() const;
|
Utils::Store toMap() const;
|
||||||
|
|
||||||
QVariant id() const { return m_id; }
|
QVariant id() const { return m_id; }
|
||||||
|
|
||||||
|
@@ -211,7 +211,7 @@ int DebuggerRunConfigurationAspect::portsUsedByDebugger() const
|
|||||||
return ports;
|
return ports;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DebuggerRunConfigurationAspect::toMap(Storage &map) const
|
void DebuggerRunConfigurationAspect::toMap(Store &map) const
|
||||||
{
|
{
|
||||||
m_cppAspect->toMap(map);
|
m_cppAspect->toMap(map);
|
||||||
m_qmlAspect->toMap(map);
|
m_qmlAspect->toMap(map);
|
||||||
@@ -223,7 +223,7 @@ void DebuggerRunConfigurationAspect::toMap(Storage &map) const
|
|||||||
map.insert("RunConfiguration.UseQmlDebuggerAuto", m_qmlAspect->value() == TriState::Default);
|
map.insert("RunConfiguration.UseQmlDebuggerAuto", m_qmlAspect->value() == TriState::Default);
|
||||||
}
|
}
|
||||||
|
|
||||||
void DebuggerRunConfigurationAspect::fromMap(const Storage &map)
|
void DebuggerRunConfigurationAspect::fromMap(const Store &map)
|
||||||
{
|
{
|
||||||
m_cppAspect->fromMap(map);
|
m_cppAspect->fromMap(map);
|
||||||
m_qmlAspect->fromMap(map);
|
m_qmlAspect->fromMap(map);
|
||||||
|
@@ -17,8 +17,8 @@ public:
|
|||||||
DebuggerRunConfigurationAspect(ProjectExplorer::Target *target);
|
DebuggerRunConfigurationAspect(ProjectExplorer::Target *target);
|
||||||
~DebuggerRunConfigurationAspect();
|
~DebuggerRunConfigurationAspect();
|
||||||
|
|
||||||
void fromMap(const Utils::Storage &map) override;
|
void fromMap(const Utils::Store &map) override;
|
||||||
void toMap(Utils::Storage &map) const override;
|
void toMap(Utils::Store &map) const override;
|
||||||
|
|
||||||
bool useCppDebugger() const;
|
bool useCppDebugger() const;
|
||||||
bool useQmlDebugger() const;
|
bool useQmlDebugger() const;
|
||||||
|
@@ -452,12 +452,12 @@ SourcePathMapAspect::~SourcePathMapAspect()
|
|||||||
delete d;
|
delete d;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SourcePathMapAspect::fromMap(const Storage &)
|
void SourcePathMapAspect::fromMap(const Store &)
|
||||||
{
|
{
|
||||||
QTC_CHECK(false); // This is only used via read/writeSettings
|
QTC_CHECK(false); // This is only used via read/writeSettings
|
||||||
}
|
}
|
||||||
|
|
||||||
void SourcePathMapAspect::toMap(Storage &) const
|
void SourcePathMapAspect::toMap(Store &) const
|
||||||
{
|
{
|
||||||
QTC_CHECK(false);
|
QTC_CHECK(false);
|
||||||
}
|
}
|
||||||
|
@@ -778,7 +778,7 @@ const char DockerDeviceKeepEntryPoint[] = "DockerDeviceKeepEntryPoint";
|
|||||||
const char DockerDeviceEnableLldbFlags[] = "DockerDeviceEnableLldbFlags";
|
const char DockerDeviceEnableLldbFlags[] = "DockerDeviceEnableLldbFlags";
|
||||||
const char DockerDeviceClangDExecutable[] = "DockerDeviceClangDExecutable";
|
const char DockerDeviceClangDExecutable[] = "DockerDeviceClangDExecutable";
|
||||||
|
|
||||||
void DockerDevice::fromMap(const Storage &map)
|
void DockerDevice::fromMap(const Store &map)
|
||||||
{
|
{
|
||||||
ProjectExplorer::IDevice::fromMap(map);
|
ProjectExplorer::IDevice::fromMap(map);
|
||||||
DockerDeviceData data;
|
DockerDeviceData data;
|
||||||
|
@@ -99,8 +99,8 @@ public:
|
|||||||
std::optional<Utils::FilePath> clangdExecutable() const override;
|
std::optional<Utils::FilePath> clangdExecutable() const override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void fromMap(const Utils::Storage &map) final;
|
void fromMap(const Utils::Store &map) final;
|
||||||
Utils::Storage toMap() const final;
|
Utils::Store toMap() const final;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void aboutToBeRemoved() const final;
|
void aboutToBeRemoved() const final;
|
||||||
|
@@ -619,7 +619,7 @@ void GenericBuildSystem::removeFiles(const FilePaths &filesToRemove)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Project::RestoreResult GenericProject::fromMap(const Storage &map, QString *errorMessage)
|
Project::RestoreResult GenericProject::fromMap(const Store &map, QString *errorMessage)
|
||||||
{
|
{
|
||||||
const RestoreResult result = Project::fromMap(map, errorMessage);
|
const RestoreResult result = Project::fromMap(map, errorMessage);
|
||||||
if (result != RestoreResult::Ok)
|
if (result != RestoreResult::Ok)
|
||||||
|
@@ -19,7 +19,7 @@ public:
|
|||||||
void removeFilesTriggered(const Utils::FilePaths &filesToRemove);
|
void removeFilesTriggered(const Utils::FilePaths &filesToRemove);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
RestoreResult fromMap(const Utils::Storage &map, QString *errorMessage) final;
|
RestoreResult fromMap(const Utils::Store &map, QString *errorMessage) final;
|
||||||
ProjectExplorer::DeploymentKnowledge deploymentKnowledge() const final;
|
ProjectExplorer::DeploymentKnowledge deploymentKnowledge() const final;
|
||||||
void configureAsExampleProject(ProjectExplorer::Kit *kit) override;
|
void configureAsExampleProject(ProjectExplorer::Kit *kit) override;
|
||||||
};
|
};
|
||||||
|
@@ -17,7 +17,7 @@ QString CommandBuilder::displayName() const
|
|||||||
return Tr::tr("Custom Command");
|
return Tr::tr("Custom Command");
|
||||||
}
|
}
|
||||||
|
|
||||||
void CommandBuilder::fromMap(const Storage &map)
|
void CommandBuilder::fromMap(const Store &map)
|
||||||
{
|
{
|
||||||
m_command = FilePath::fromSettings(map.value(QString(CUSTOMCOMMANDBUILDER_COMMAND).arg(id())));
|
m_command = FilePath::fromSettings(map.value(QString(CUSTOMCOMMANDBUILDER_COMMAND).arg(id())));
|
||||||
m_args = map.value(QString(CUSTOMCOMMANDBUILDER_ARGS).arg(id())).toString();
|
m_args = map.value(QString(CUSTOMCOMMANDBUILDER_ARGS).arg(id())).toString();
|
||||||
|
@@ -20,7 +20,7 @@ public:
|
|||||||
virtual QString id() const { return "CustomCommandBuilder"; }
|
virtual QString id() const { return "CustomCommandBuilder"; }
|
||||||
virtual QString displayName() const;
|
virtual QString displayName() const;
|
||||||
|
|
||||||
virtual void fromMap(const Utils::Storage &map);
|
virtual void fromMap(const Utils::Store &map);
|
||||||
virtual void toMap(QVariantMap *map) const;
|
virtual void toMap(QVariantMap *map) const;
|
||||||
|
|
||||||
virtual Utils::FilePath defaultCommand() const { return {}; }
|
virtual Utils::FilePath defaultCommand() const { return {}; }
|
||||||
|
@@ -159,7 +159,7 @@ void CommandBuilderAspect::addToLayout(Layouting::LayoutItem &parent)
|
|||||||
updateGui();
|
updateGui();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CommandBuilderAspect::fromMap(const Storage &map)
|
void CommandBuilderAspect::fromMap(const Store &map)
|
||||||
{
|
{
|
||||||
d->m_loadedFromMap = true;
|
d->m_loadedFromMap = true;
|
||||||
|
|
||||||
@@ -171,7 +171,7 @@ void CommandBuilderAspect::fromMap(const Storage &map)
|
|||||||
updateGui();
|
updateGui();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CommandBuilderAspect::toMap(Storage &map) const
|
void CommandBuilderAspect::toMap(Store &map) const
|
||||||
{
|
{
|
||||||
map[IncrediBuild::Constants::INCREDIBUILD_BUILDSTEP_TYPE]
|
map[IncrediBuild::Constants::INCREDIBUILD_BUILDSTEP_TYPE]
|
||||||
= QVariant(IncrediBuild::Constants::BUILDCONSOLE_BUILDSTEP_ID);
|
= QVariant(IncrediBuild::Constants::BUILDCONSOLE_BUILDSTEP_ID);
|
||||||
|
@@ -24,8 +24,8 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
void addToLayout(Layouting::LayoutItem &parent) final;
|
void addToLayout(Layouting::LayoutItem &parent) final;
|
||||||
void fromMap(const Utils::Storage &map) final;
|
void fromMap(const Utils::Store &map) final;
|
||||||
void toMap(Utils::Storage &map) const final;
|
void toMap(Utils::Store &map) const final;
|
||||||
|
|
||||||
void updateGui();
|
void updateGui();
|
||||||
|
|
||||||
|
@@ -376,7 +376,7 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
QList<NamedWidget *> createSubConfigWidgets() override;
|
QList<NamedWidget *> createSubConfigWidgets() override;
|
||||||
void fromMap(const Storage &map) override;
|
void fromMap(const Store &map) override;
|
||||||
|
|
||||||
void updateQmakeCommand();
|
void updateQmakeCommand();
|
||||||
|
|
||||||
@@ -414,7 +414,7 @@ QList<NamedWidget *> IosQmakeBuildConfiguration::createSubConfigWidgets()
|
|||||||
return subConfigWidgets;
|
return subConfigWidgets;
|
||||||
}
|
}
|
||||||
|
|
||||||
void IosQmakeBuildConfiguration::fromMap(const Storage &map)
|
void IosQmakeBuildConfiguration::fromMap(const Store &map)
|
||||||
{
|
{
|
||||||
QmakeBuildConfiguration::fromMap(map);
|
QmakeBuildConfiguration::fromMap(map);
|
||||||
if (!hasError())
|
if (!hasError())
|
||||||
|
@@ -56,8 +56,8 @@ private:
|
|||||||
|
|
||||||
bool init() final;
|
bool init() final;
|
||||||
void setupOutputFormatter(Utils::OutputFormatter *formatter) final;
|
void setupOutputFormatter(Utils::OutputFormatter *formatter) final;
|
||||||
void fromMap(const Storage &map) final;
|
void fromMap(const Store &map) final;
|
||||||
void toMap(Storage &map) const final;
|
void toMap(Store &map) const final;
|
||||||
|
|
||||||
QStringList m_baseBuildArguments;
|
QStringList m_baseBuildArguments;
|
||||||
QStringList m_extraArguments;
|
QStringList m_extraArguments;
|
||||||
@@ -166,7 +166,7 @@ void IosBuildStep::setupOutputFormatter(OutputFormatter *formatter)
|
|||||||
AbstractProcessStep::setupOutputFormatter(formatter);
|
AbstractProcessStep::setupOutputFormatter(formatter);
|
||||||
}
|
}
|
||||||
|
|
||||||
void IosBuildStep::toMap(Storage &map) const
|
void IosBuildStep::toMap(Store &map) const
|
||||||
{
|
{
|
||||||
AbstractProcessStep::toMap(map);
|
AbstractProcessStep::toMap(map);
|
||||||
|
|
||||||
@@ -177,7 +177,7 @@ void IosBuildStep::toMap(Storage &map) const
|
|||||||
map.insert(CLEAN_KEY, stepList()->id() == ProjectExplorer::Constants::BUILDSTEPS_CLEAN);
|
map.insert(CLEAN_KEY, stepList()->id() == ProjectExplorer::Constants::BUILDSTEPS_CLEAN);
|
||||||
}
|
}
|
||||||
|
|
||||||
void IosBuildStep::fromMap(const Storage &map)
|
void IosBuildStep::fromMap(const Store &map)
|
||||||
{
|
{
|
||||||
QVariant bArgs = map.value(BUILD_ARGUMENTS_KEY);
|
QVariant bArgs = map.value(BUILD_ARGUMENTS_KEY);
|
||||||
m_baseBuildArguments = bArgs.toStringList();
|
m_baseBuildArguments = bArgs.toStringList();
|
||||||
|
@@ -126,7 +126,7 @@ IDeviceWidget *IosDevice::createWidget()
|
|||||||
return new IosDeviceInfoWidget(sharedFromThis());
|
return new IosDeviceInfoWidget(sharedFromThis());
|
||||||
}
|
}
|
||||||
|
|
||||||
void IosDevice::fromMap(const Storage &map)
|
void IosDevice::fromMap(const Store &map)
|
||||||
{
|
{
|
||||||
IDevice::fromMap(map);
|
IDevice::fromMap(map);
|
||||||
|
|
||||||
|
@@ -40,8 +40,8 @@ public:
|
|||||||
static QString name();
|
static QString name();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void fromMap(const Utils::Storage &map) final;
|
void fromMap(const Utils::Store &map) final;
|
||||||
Utils::Storage toMap() const final;
|
Utils::Store toMap() const final;
|
||||||
|
|
||||||
friend class IosDeviceFactory;
|
friend class IosDeviceFactory;
|
||||||
friend class Ios::Internal::IosDeviceManager;
|
friend class Ios::Internal::IosDeviceManager;
|
||||||
|
@@ -59,8 +59,8 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
void setupOutputFormatter(OutputFormatter *formatter) override;
|
void setupOutputFormatter(OutputFormatter *formatter) override;
|
||||||
void toMap(Storage &map) const override;
|
void toMap(Store &map) const override;
|
||||||
void fromMap(const Storage &map) override;
|
void fromMap(const Store &map) override;
|
||||||
|
|
||||||
QStringList defaultCleanCmdList() const;
|
QStringList defaultCleanCmdList() const;
|
||||||
QStringList defaultCmdList() const;
|
QStringList defaultCmdList() const;
|
||||||
@@ -83,7 +83,7 @@ IosDsymBuildStep::IosDsymBuildStep(BuildStepList *parent, Id id) :
|
|||||||
setIgnoreReturnValue(m_clean);
|
setIgnoreReturnValue(m_clean);
|
||||||
}
|
}
|
||||||
|
|
||||||
void IosDsymBuildStep::toMap(Storage &map) const
|
void IosDsymBuildStep::toMap(Store &map) const
|
||||||
{
|
{
|
||||||
AbstractProcessStep::toMap(map);
|
AbstractProcessStep::toMap(map);
|
||||||
|
|
||||||
@@ -95,7 +95,7 @@ void IosDsymBuildStep::toMap(Storage &map) const
|
|||||||
map.insert(id().withSuffix(COMMAND_PARTIAL_KEY).toString(), command().toSettings());
|
map.insert(id().withSuffix(COMMAND_PARTIAL_KEY).toString(), command().toSettings());
|
||||||
}
|
}
|
||||||
|
|
||||||
void IosDsymBuildStep::fromMap(const Storage &map)
|
void IosDsymBuildStep::fromMap(const Store &map)
|
||||||
{
|
{
|
||||||
QVariant bArgs = map.value(id().withSuffix(ARGUMENTS_PARTIAL_KEY).toString());
|
QVariant bArgs = map.value(id().withSuffix(ARGUMENTS_PARTIAL_KEY).toString());
|
||||||
m_arguments = bArgs.toStringList();
|
m_arguments = bArgs.toStringList();
|
||||||
|
@@ -206,7 +206,7 @@ FilePath IosRunConfiguration::localExecutable() const
|
|||||||
return bundleDirectory().pathAppended(applicationName());
|
return bundleDirectory().pathAppended(applicationName());
|
||||||
}
|
}
|
||||||
|
|
||||||
void IosDeviceTypeAspect::fromMap(const Storage &map)
|
void IosDeviceTypeAspect::fromMap(const Store &map)
|
||||||
{
|
{
|
||||||
bool deviceTypeIsInt;
|
bool deviceTypeIsInt;
|
||||||
map.value(deviceTypeKey).toInt(&deviceTypeIsInt);
|
map.value(deviceTypeKey).toInt(&deviceTypeIsInt);
|
||||||
@@ -216,7 +216,7 @@ void IosDeviceTypeAspect::fromMap(const Storage &map)
|
|||||||
m_runConfiguration->update();
|
m_runConfiguration->update();
|
||||||
}
|
}
|
||||||
|
|
||||||
void IosDeviceTypeAspect::toMap(Storage &map) const
|
void IosDeviceTypeAspect::toMap(Store &map) const
|
||||||
{
|
{
|
||||||
map.insert(deviceTypeKey, deviceType().toMap());
|
map.insert(deviceTypeKey, deviceType().toMap());
|
||||||
}
|
}
|
||||||
|
@@ -27,8 +27,8 @@ public:
|
|||||||
explicit IosDeviceTypeAspect(Utils::AspectContainer *container,
|
explicit IosDeviceTypeAspect(Utils::AspectContainer *container,
|
||||||
IosRunConfiguration *runConfiguration);
|
IosRunConfiguration *runConfiguration);
|
||||||
|
|
||||||
void fromMap(const Utils::Storage &map) override;
|
void fromMap(const Utils::Store &map) override;
|
||||||
void toMap(Utils::Storage &map) const override;
|
void toMap(Utils::Store &map) const override;
|
||||||
void addToLayout(Layouting::LayoutItem &parent) override;
|
void addToLayout(Layouting::LayoutItem &parent) override;
|
||||||
|
|
||||||
IosDeviceType deviceType() const;
|
IosDeviceType deviceType() const;
|
||||||
|
@@ -73,7 +73,7 @@ IosDeviceType::IosDeviceType(IosDeviceType::Type type, const QString &identifier
|
|||||||
type(type), identifier(identifier), displayName(displayName)
|
type(type), identifier(identifier), displayName(displayName)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
bool IosDeviceType::fromMap(const Storage &map)
|
bool IosDeviceType::fromMap(const Store &map)
|
||||||
{
|
{
|
||||||
bool validType;
|
bool validType;
|
||||||
displayName = map.value(iosDeviceTypeDisplayNameKey, QVariant()).toString();
|
displayName = map.value(iosDeviceTypeDisplayNameKey, QVariant()).toString();
|
||||||
|
@@ -25,8 +25,8 @@ public:
|
|||||||
IosDeviceType(Type type = IosDevice, const QString &identifier = QString(),
|
IosDeviceType(Type type = IosDevice, const QString &identifier = QString(),
|
||||||
const QString &displayName = QString());
|
const QString &displayName = QString());
|
||||||
|
|
||||||
bool fromMap(const Utils::Storage &map);
|
bool fromMap(const Utils::Store &map);
|
||||||
Utils::Storage toMap() const;
|
Utils::Store toMap() const;
|
||||||
|
|
||||||
bool operator ==(const IosDeviceType &o) const;
|
bool operator ==(const IosDeviceType &o) const;
|
||||||
bool operator !=(const IosDeviceType &o) const { return !(*this == o); }
|
bool operator !=(const IosDeviceType &o) const { return !(*this == o); }
|
||||||
|
@@ -578,7 +578,7 @@ QVariantMap BaseSettings::toMap() const
|
|||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
void BaseSettings::fromMap(const Storage &map)
|
void BaseSettings::fromMap(const Store &map)
|
||||||
{
|
{
|
||||||
m_name = map[nameKey].toString();
|
m_name = map[nameKey].toString();
|
||||||
m_id = map.value(idKey, QUuid::createUuid().toString()).toString();
|
m_id = map.value(idKey, QUuid::createUuid().toString()).toString();
|
||||||
@@ -722,7 +722,7 @@ QVariantMap StdIOSettings::toMap() const
|
|||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
void StdIOSettings::fromMap(const Storage &map)
|
void StdIOSettings::fromMap(const Store &map)
|
||||||
{
|
{
|
||||||
BaseSettings::fromMap(map);
|
BaseSettings::fromMap(map);
|
||||||
m_executable = Utils::FilePath::fromSettings(map[executableKey]);
|
m_executable = Utils::FilePath::fromSettings(map[executableKey]);
|
||||||
|
@@ -79,8 +79,8 @@ public:
|
|||||||
virtual bool isValid() const;
|
virtual bool isValid() const;
|
||||||
Client *createClient() const;
|
Client *createClient() const;
|
||||||
Client *createClient(ProjectExplorer::Project *project) const;
|
Client *createClient(ProjectExplorer::Project *project) const;
|
||||||
virtual Utils::Storage toMap() const;
|
virtual Utils::Store toMap() const;
|
||||||
virtual void fromMap(const Utils::Storage &map);
|
virtual void fromMap(const Utils::Store &map);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual BaseClientInterface *createInterface(ProjectExplorer::Project *) const;
|
virtual BaseClientInterface *createInterface(ProjectExplorer::Project *) const;
|
||||||
@@ -108,8 +108,8 @@ public:
|
|||||||
QWidget *createSettingsWidget(QWidget *parent = nullptr) const override;
|
QWidget *createSettingsWidget(QWidget *parent = nullptr) const override;
|
||||||
BaseSettings *copy() const override { return new StdIOSettings(*this); }
|
BaseSettings *copy() const override { return new StdIOSettings(*this); }
|
||||||
bool isValid() const override;
|
bool isValid() const override;
|
||||||
Utils::Storage toMap() const override;
|
Utils::Store toMap() const override;
|
||||||
void fromMap(const Utils::Storage &map) override;
|
void fromMap(const Utils::Store &map) override;
|
||||||
QString arguments() const;
|
QString arguments() const;
|
||||||
Utils::CommandLine command() const;
|
Utils::CommandLine command() const;
|
||||||
|
|
||||||
|
@@ -137,14 +137,14 @@ void MesonBuildConfiguration::setParameters(const QString ¶ms)
|
|||||||
emit parametersChanged();
|
emit parametersChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MesonBuildConfiguration::toMap(Storage &map) const
|
void MesonBuildConfiguration::toMap(Store &map) const
|
||||||
{
|
{
|
||||||
ProjectExplorer::BuildConfiguration::toMap(map);
|
ProjectExplorer::BuildConfiguration::toMap(map);
|
||||||
map[Constants::BuildConfiguration::BUILD_TYPE_KEY] = mesonBuildTypeName(m_buildType);
|
map[Constants::BuildConfiguration::BUILD_TYPE_KEY] = mesonBuildTypeName(m_buildType);
|
||||||
map[Constants::BuildConfiguration::PARAMETERS_KEY] = m_parameters;
|
map[Constants::BuildConfiguration::PARAMETERS_KEY] = m_parameters;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MesonBuildConfiguration::fromMap(const Storage &map)
|
void MesonBuildConfiguration::fromMap(const Store &map)
|
||||||
{
|
{
|
||||||
ProjectExplorer::BuildConfiguration::fromMap(map);
|
ProjectExplorer::BuildConfiguration::fromMap(map);
|
||||||
m_buildSystem = new MesonBuildSystem{this};
|
m_buildSystem = new MesonBuildSystem{this};
|
||||||
|
@@ -30,8 +30,8 @@ signals:
|
|||||||
void parametersChanged();
|
void parametersChanged();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void toMap(Utils::Storage &map) const override;
|
void toMap(Utils::Store &map) const override;
|
||||||
void fromMap(const Utils::Storage &map) override;
|
void fromMap(const Utils::Store &map) override;
|
||||||
|
|
||||||
MesonBuildType m_buildType;
|
MesonBuildType m_buildType;
|
||||||
ProjectExplorer::NamedWidget *createConfigWidget() final;
|
ProjectExplorer::NamedWidget *createConfigWidget() final;
|
||||||
|
@@ -199,14 +199,14 @@ void NinjaBuildStep::setCommandArgs(const QString &args)
|
|||||||
m_commandArgs = args.trimmed();
|
m_commandArgs = args.trimmed();
|
||||||
}
|
}
|
||||||
|
|
||||||
void NinjaBuildStep::toMap(Storage &map) const
|
void NinjaBuildStep::toMap(Store &map) const
|
||||||
{
|
{
|
||||||
AbstractProcessStep::toMap(map);
|
AbstractProcessStep::toMap(map);
|
||||||
map.insert(TARGETS_KEY, m_targetName);
|
map.insert(TARGETS_KEY, m_targetName);
|
||||||
map.insert(TOOL_ARGUMENTS_KEY, m_commandArgs);
|
map.insert(TOOL_ARGUMENTS_KEY, m_commandArgs);
|
||||||
}
|
}
|
||||||
|
|
||||||
void NinjaBuildStep::fromMap(const Storage &map)
|
void NinjaBuildStep::fromMap(const Store &map)
|
||||||
{
|
{
|
||||||
m_targetName = map.value(TARGETS_KEY).toString();
|
m_targetName = map.value(TARGETS_KEY).toString();
|
||||||
m_commandArgs = map.value(TOOL_ARGUMENTS_KEY).toString();
|
m_commandArgs = map.value(TOOL_ARGUMENTS_KEY).toString();
|
||||||
|
@@ -26,8 +26,8 @@ public:
|
|||||||
Q_SIGNAL void targetListChanged();
|
Q_SIGNAL void targetListChanged();
|
||||||
Q_SIGNAL void commandChanged();
|
Q_SIGNAL void commandChanged();
|
||||||
|
|
||||||
void toMap(Utils::Storage &map) const override;
|
void toMap(Utils::Store &map) const override;
|
||||||
void fromMap(const Utils::Storage &map) override;
|
void fromMap(const Utils::Store &map) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void update(bool parsingSuccessful);
|
void update(bool parsingSuccessful);
|
||||||
|
@@ -37,13 +37,13 @@ BuildConfiguration::BuildType NimbleBuildConfiguration::buildType() const
|
|||||||
return m_buildType;
|
return m_buildType;
|
||||||
}
|
}
|
||||||
|
|
||||||
void NimbleBuildConfiguration::fromMap(const Storage &map)
|
void NimbleBuildConfiguration::fromMap(const Store &map)
|
||||||
{
|
{
|
||||||
m_buildType = static_cast<BuildType>(map[Constants::C_NIMBLEBUILDCONFIGURATION_BUILDTYPE].toInt());
|
m_buildType = static_cast<BuildType>(map[Constants::C_NIMBLEBUILDCONFIGURATION_BUILDTYPE].toInt());
|
||||||
BuildConfiguration::fromMap(map);
|
BuildConfiguration::fromMap(map);
|
||||||
}
|
}
|
||||||
|
|
||||||
void NimbleBuildConfiguration::toMap(Storage &map) const
|
void NimbleBuildConfiguration::toMap(Store &map) const
|
||||||
{
|
{
|
||||||
BuildConfiguration::toMap(map);
|
BuildConfiguration::toMap(map);
|
||||||
map[Constants::C_NIMBLEBUILDCONFIGURATION_BUILDTYPE] = buildType();
|
map[Constants::C_NIMBLEBUILDCONFIGURATION_BUILDTYPE] = buildType();
|
||||||
|
@@ -18,8 +18,8 @@ class NimbleBuildConfiguration : public ProjectExplorer::BuildConfiguration
|
|||||||
|
|
||||||
BuildType buildType() const override;
|
BuildType buildType() const override;
|
||||||
|
|
||||||
void fromMap(const Utils::Storage &map) override;
|
void fromMap(const Utils::Store &map) override;
|
||||||
void toMap(Utils::Storage &map) const override;
|
void toMap(Utils::Store &map) const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void setBuildType(BuildType buildType);
|
void setBuildType(BuildType buildType);
|
||||||
|
@@ -27,13 +27,13 @@ NimbleProject::NimbleProject(const Utils::FilePath &fileName)
|
|||||||
setBuildSystemCreator([] (Target *t) { return new NimbleBuildSystem(t); });
|
setBuildSystemCreator([] (Target *t) { return new NimbleBuildSystem(t); });
|
||||||
}
|
}
|
||||||
|
|
||||||
void NimbleProject::toMap(Storage &map) const
|
void NimbleProject::toMap(Store &map) const
|
||||||
{
|
{
|
||||||
Project::toMap(map);
|
Project::toMap(map);
|
||||||
map[Constants::C_NIMPROJECT_EXCLUDEDFILES] = m_excludedFiles;
|
map[Constants::C_NIMPROJECT_EXCLUDEDFILES] = m_excludedFiles;
|
||||||
}
|
}
|
||||||
|
|
||||||
Project::RestoreResult NimbleProject::fromMap(const Storage &map, QString *errorMessage)
|
Project::RestoreResult NimbleProject::fromMap(const Store &map, QString *errorMessage)
|
||||||
{
|
{
|
||||||
auto result = Project::fromMap(map, errorMessage);
|
auto result = Project::fromMap(map, errorMessage);
|
||||||
m_excludedFiles = map.value(Constants::C_NIMPROJECT_EXCLUDEDFILES).toStringList();
|
m_excludedFiles = map.value(Constants::C_NIMPROJECT_EXCLUDEDFILES).toStringList();
|
||||||
|
@@ -16,14 +16,14 @@ public:
|
|||||||
NimbleProject(const Utils::FilePath &filename);
|
NimbleProject(const Utils::FilePath &filename);
|
||||||
|
|
||||||
// Keep for compatibility with Qt Creator 4.10
|
// Keep for compatibility with Qt Creator 4.10
|
||||||
void toMap(Utils::Storage &map) const final;
|
void toMap(Utils::Store &map) const final;
|
||||||
|
|
||||||
QStringList excludedFiles() const;
|
QStringList excludedFiles() const;
|
||||||
void setExcludedFiles(const QStringList &excludedFiles);
|
void setExcludedFiles(const QStringList &excludedFiles);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// Keep for compatibility with Qt Creator 4.10
|
// Keep for compatibility with Qt Creator 4.10
|
||||||
RestoreResult fromMap(const Utils::Storage &map, QString *errorMessage) final;
|
RestoreResult fromMap(const Utils::Store &map, QString *errorMessage) final;
|
||||||
|
|
||||||
QStringList m_excludedFiles;
|
QStringList m_excludedFiles;
|
||||||
};
|
};
|
||||||
|
@@ -121,7 +121,7 @@ QWidget *NimCompilerBuildStep::createConfigWidget()
|
|||||||
return widget;
|
return widget;
|
||||||
}
|
}
|
||||||
|
|
||||||
void NimCompilerBuildStep::fromMap(const Storage &map)
|
void NimCompilerBuildStep::fromMap(const Store &map)
|
||||||
{
|
{
|
||||||
AbstractProcessStep::fromMap(map);
|
AbstractProcessStep::fromMap(map);
|
||||||
m_userCompilerOptions = map[Constants::C_NIMCOMPILERBUILDSTEP_USERCOMPILEROPTIONS].toString().split('|');
|
m_userCompilerOptions = map[Constants::C_NIMCOMPILERBUILDSTEP_USERCOMPILEROPTIONS].toString().split('|');
|
||||||
@@ -129,7 +129,7 @@ void NimCompilerBuildStep::fromMap(const Storage &map)
|
|||||||
m_targetNimFile = FilePath::fromString(map[Constants::C_NIMCOMPILERBUILDSTEP_TARGETNIMFILE].toString());
|
m_targetNimFile = FilePath::fromString(map[Constants::C_NIMCOMPILERBUILDSTEP_TARGETNIMFILE].toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
void NimCompilerBuildStep::toMap(Storage &map) const
|
void NimCompilerBuildStep::toMap(Store &map) const
|
||||||
{
|
{
|
||||||
AbstractProcessStep::toMap(map);
|
AbstractProcessStep::toMap(map);
|
||||||
map[Constants::C_NIMCOMPILERBUILDSTEP_USERCOMPILEROPTIONS] = m_userCompilerOptions.join('|');
|
map[Constants::C_NIMCOMPILERBUILDSTEP_USERCOMPILEROPTIONS] = m_userCompilerOptions.join('|');
|
||||||
|
@@ -26,8 +26,8 @@ private:
|
|||||||
void setupOutputFormatter(Utils::OutputFormatter *formatter) override;
|
void setupOutputFormatter(Utils::OutputFormatter *formatter) override;
|
||||||
QWidget *createConfigWidget() override;
|
QWidget *createConfigWidget() override;
|
||||||
|
|
||||||
void fromMap(const Utils::Storage &map) override;
|
void fromMap(const Utils::Store &map) override;
|
||||||
void toMap(Utils::Storage &map) const override;
|
void toMap(Utils::Store &map) const override;
|
||||||
|
|
||||||
void updateTargetNimFile();
|
void updateTargetNimFile();
|
||||||
Utils::CommandLine commandLine();
|
Utils::CommandLine commandLine();
|
||||||
|
@@ -27,14 +27,14 @@ public:
|
|||||||
Tasks projectIssues(const Kit *k) const final;
|
Tasks projectIssues(const Kit *k) const final;
|
||||||
|
|
||||||
// Keep for compatibility with Qt Creator 4.10
|
// Keep for compatibility with Qt Creator 4.10
|
||||||
void toMap(Storage &map) const final;
|
void toMap(Store &map) const final;
|
||||||
|
|
||||||
QStringList excludedFiles() const;
|
QStringList excludedFiles() const;
|
||||||
void setExcludedFiles(const QStringList &excludedFiles);
|
void setExcludedFiles(const QStringList &excludedFiles);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// Keep for compatibility with Qt Creator 4.10
|
// Keep for compatibility with Qt Creator 4.10
|
||||||
RestoreResult fromMap(const Storage &map, QString *errorMessage) final;
|
RestoreResult fromMap(const Store &map, QString *errorMessage) final;
|
||||||
|
|
||||||
QStringList m_excludedFiles;
|
QStringList m_excludedFiles;
|
||||||
};
|
};
|
||||||
@@ -63,13 +63,13 @@ Tasks NimProject::projectIssues(const Kit *k) const
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
void NimProject::toMap(Storage &map) const
|
void NimProject::toMap(Store &map) const
|
||||||
{
|
{
|
||||||
Project::toMap(map);
|
Project::toMap(map);
|
||||||
map[Constants::C_NIMPROJECT_EXCLUDEDFILES] = m_excludedFiles;
|
map[Constants::C_NIMPROJECT_EXCLUDEDFILES] = m_excludedFiles;
|
||||||
}
|
}
|
||||||
|
|
||||||
Project::RestoreResult NimProject::fromMap(const Storage &map, QString *errorMessage)
|
Project::RestoreResult NimProject::fromMap(const Store &map, QString *errorMessage)
|
||||||
{
|
{
|
||||||
auto result = Project::fromMap(map, errorMessage);
|
auto result = Project::fromMap(map, errorMessage);
|
||||||
m_excludedFiles = map.value(Constants::C_NIMPROJECT_EXCLUDEDFILES).toStringList();
|
m_excludedFiles = map.value(Constants::C_NIMPROJECT_EXCLUDEDFILES).toStringList();
|
||||||
|
@@ -89,7 +89,7 @@ QString NimToolChain::compilerVersion() const
|
|||||||
std::get<2>(m_version));
|
std::get<2>(m_version));
|
||||||
}
|
}
|
||||||
|
|
||||||
void NimToolChain::fromMap(const Storage &data)
|
void NimToolChain::fromMap(const Store &data)
|
||||||
{
|
{
|
||||||
ToolChain::fromMap(data);
|
ToolChain::fromMap(data);
|
||||||
if (hasError())
|
if (hasError())
|
||||||
|
@@ -26,7 +26,7 @@ public:
|
|||||||
QList<Utils::OutputLineParser *> createOutputParsers() const final;
|
QList<Utils::OutputLineParser *> createOutputParsers() const final;
|
||||||
std::unique_ptr<ProjectExplorer::ToolChainConfigWidget> createConfigurationWidget() final;
|
std::unique_ptr<ProjectExplorer::ToolChainConfigWidget> createConfigurationWidget() final;
|
||||||
|
|
||||||
void fromMap(const Utils::Storage &data) final;
|
void fromMap(const Utils::Store &data) final;
|
||||||
|
|
||||||
static bool parseVersion(const Utils::FilePath &path, std::tuple<int, int, int> &version);
|
static bool parseVersion(const Utils::FilePath &path, std::tuple<int, int, int> &version);
|
||||||
|
|
||||||
|
@@ -87,7 +87,7 @@ void BuildDirectoryAspect::setProblem(const QString &description)
|
|||||||
updateProblemLabel();
|
updateProblemLabel();
|
||||||
}
|
}
|
||||||
|
|
||||||
void BuildDirectoryAspect::toMap(Storage &map) const
|
void BuildDirectoryAspect::toMap(Store &map) const
|
||||||
{
|
{
|
||||||
FilePathAspect::toMap(map);
|
FilePathAspect::toMap(map);
|
||||||
if (!d->sourceDir.isEmpty()) {
|
if (!d->sourceDir.isEmpty()) {
|
||||||
@@ -96,7 +96,7 @@ void BuildDirectoryAspect::toMap(Storage &map) const
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void BuildDirectoryAspect::fromMap(const Storage &map)
|
void BuildDirectoryAspect::fromMap(const Store &map)
|
||||||
{
|
{
|
||||||
FilePathAspect::fromMap(map);
|
FilePathAspect::fromMap(map);
|
||||||
if (!d->sourceDir.isEmpty()) {
|
if (!d->sourceDir.isEmpty()) {
|
||||||
|
@@ -28,8 +28,8 @@ public:
|
|||||||
static Utils::FilePath fixupDir(const Utils::FilePath &dir);
|
static Utils::FilePath fixupDir(const Utils::FilePath &dir);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void toMap(Utils::Storage &map) const override;
|
void toMap(Utils::Store &map) const override;
|
||||||
void fromMap(const Utils::Storage &map) override;
|
void fromMap(const Utils::Store &map) override;
|
||||||
|
|
||||||
void updateProblemLabel();
|
void updateProblemLabel();
|
||||||
|
|
||||||
|
@@ -372,7 +372,7 @@ void BuildConfiguration::appendInitialCleanStep(Utils::Id id)
|
|||||||
d->m_initialCleanSteps.append(id);
|
d->m_initialCleanSteps.append(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
void BuildConfiguration::toMap(Storage &map) const
|
void BuildConfiguration::toMap(Store &map) const
|
||||||
{
|
{
|
||||||
ProjectConfiguration::toMap(map);
|
ProjectConfiguration::toMap(map);
|
||||||
|
|
||||||
@@ -388,7 +388,7 @@ void BuildConfiguration::toMap(Storage &map) const
|
|||||||
map.insert(CUSTOM_PARSERS_KEY, transform(d->m_customParsers,&Utils::Id::toSetting));
|
map.insert(CUSTOM_PARSERS_KEY, transform(d->m_customParsers,&Utils::Id::toSetting));
|
||||||
}
|
}
|
||||||
|
|
||||||
void BuildConfiguration::fromMap(const Storage &map)
|
void BuildConfiguration::fromMap(const Store &map)
|
||||||
{
|
{
|
||||||
d->m_clearSystemEnvironment = map.value(QLatin1String(Constants::CLEAR_SYSTEM_ENVIRONMENT_KEY))
|
d->m_clearSystemEnvironment = map.value(QLatin1String(Constants::CLEAR_SYSTEM_ENVIRONMENT_KEY))
|
||||||
.toBool();
|
.toBool();
|
||||||
|
@@ -68,8 +68,8 @@ public:
|
|||||||
void appendInitialBuildStep(Utils::Id id);
|
void appendInitialBuildStep(Utils::Id id);
|
||||||
void appendInitialCleanStep(Utils::Id id);
|
void appendInitialCleanStep(Utils::Id id);
|
||||||
|
|
||||||
void fromMap(const Utils::Storage &map) override;
|
void fromMap(const Utils::Store &map) override;
|
||||||
void toMap(Utils::Storage &map) const override;
|
void toMap(Utils::Store &map) const override;
|
||||||
|
|
||||||
bool isEnabled() const;
|
bool isEnabled() const;
|
||||||
QString disabledReason() const;
|
QString disabledReason() const;
|
||||||
@@ -149,7 +149,7 @@ public:
|
|||||||
|
|
||||||
BuildConfiguration *create(Target *parent, const BuildInfo &info) const;
|
BuildConfiguration *create(Target *parent, const BuildInfo &info) const;
|
||||||
|
|
||||||
static BuildConfiguration *restore(Target *parent, const Utils::Storage &map);
|
static BuildConfiguration *restore(Target *parent, const Utils::Store &map);
|
||||||
static BuildConfiguration *clone(Target *parent, const BuildConfiguration *source);
|
static BuildConfiguration *clone(Target *parent, const BuildConfiguration *source);
|
||||||
|
|
||||||
static BuildConfigurationFactory *find(const Kit *k, const Utils::FilePath &projectPath);
|
static BuildConfigurationFactory *find(const Kit *k, const Utils::FilePath &projectPath);
|
||||||
|
@@ -126,13 +126,13 @@ QWidget *BuildStep::createConfigWidget()
|
|||||||
return widget;
|
return widget;
|
||||||
}
|
}
|
||||||
|
|
||||||
void BuildStep::fromMap(const Storage &map)
|
void BuildStep::fromMap(const Store &map)
|
||||||
{
|
{
|
||||||
m_enabled = map.value(buildStepEnabledKey, true).toBool();
|
m_enabled = map.value(buildStepEnabledKey, true).toBool();
|
||||||
ProjectConfiguration::fromMap(map);
|
ProjectConfiguration::fromMap(map);
|
||||||
}
|
}
|
||||||
|
|
||||||
void BuildStep::toMap(Storage &map) const
|
void BuildStep::toMap(Store &map) const
|
||||||
{
|
{
|
||||||
ProjectConfiguration::toMap(map);
|
ProjectConfiguration::toMap(map);
|
||||||
map.insert(buildStepEnabledKey, m_enabled);
|
map.insert(buildStepEnabledKey, m_enabled);
|
||||||
@@ -397,7 +397,7 @@ BuildStep *BuildStepFactory::create(BuildStepList *parent)
|
|||||||
return step;
|
return step;
|
||||||
}
|
}
|
||||||
|
|
||||||
BuildStep *BuildStepFactory::restore(BuildStepList *parent, const Storage &map)
|
BuildStep *BuildStepFactory::restore(BuildStepList *parent, const Store &map)
|
||||||
{
|
{
|
||||||
BuildStep *bs = create(parent);
|
BuildStep *bs = create(parent);
|
||||||
if (!bs)
|
if (!bs)
|
||||||
|
@@ -40,8 +40,8 @@ protected:
|
|||||||
public:
|
public:
|
||||||
virtual bool init() = 0;
|
virtual bool init() = 0;
|
||||||
|
|
||||||
void fromMap(const Utils::Storage &map) override;
|
void fromMap(const Utils::Store &map) override;
|
||||||
void toMap(Utils::Storage &map) const override;
|
void toMap(Utils::Store &map) const override;
|
||||||
|
|
||||||
bool enabled() const;
|
bool enabled() const;
|
||||||
void setEnabled(bool b);
|
void setEnabled(bool b);
|
||||||
@@ -137,7 +137,7 @@ public:
|
|||||||
BuildStep::Flags stepFlags() const;
|
BuildStep::Flags stepFlags() const;
|
||||||
Utils::Id stepId() const;
|
Utils::Id stepId() const;
|
||||||
BuildStep *create(BuildStepList *parent);
|
BuildStep *create(BuildStepList *parent);
|
||||||
BuildStep *restore(BuildStepList *parent, const Utils::Storage &map);
|
BuildStep *restore(BuildStepList *parent, const Utils::Store &map);
|
||||||
|
|
||||||
bool canHandle(BuildStepList *bsl) const;
|
bool canHandle(BuildStepList *bsl) const;
|
||||||
|
|
||||||
|
@@ -43,9 +43,9 @@ Target *BuildStepList::target() const
|
|||||||
return m_projectConfiguration->target();
|
return m_projectConfiguration->target();
|
||||||
}
|
}
|
||||||
|
|
||||||
Storage BuildStepList::toMap() const
|
Store BuildStepList::toMap() const
|
||||||
{
|
{
|
||||||
Storage map;
|
Store map;
|
||||||
|
|
||||||
{
|
{
|
||||||
// Only written for compatibility reasons within the 4.11 cycle
|
// Only written for compatibility reasons within the 4.11 cycle
|
||||||
@@ -60,7 +60,7 @@ Storage BuildStepList::toMap() const
|
|||||||
// Save build steps
|
// Save build steps
|
||||||
map.insert(QString::fromLatin1(STEPS_COUNT_KEY), m_steps.count());
|
map.insert(QString::fromLatin1(STEPS_COUNT_KEY), m_steps.count());
|
||||||
for (int i = 0; i < m_steps.count(); ++i) {
|
for (int i = 0; i < m_steps.count(); ++i) {
|
||||||
Storage data;
|
Store data;
|
||||||
m_steps.at(i)->toMap(data);
|
m_steps.at(i)->toMap(data);
|
||||||
map.insert(QString::fromLatin1(STEPS_PREFIX) + QString::number(i), data);
|
map.insert(QString::fromLatin1(STEPS_PREFIX) + QString::number(i), data);
|
||||||
}
|
}
|
||||||
@@ -103,7 +103,7 @@ QString BuildStepList::displayName() const
|
|||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
bool BuildStepList::fromMap(const Storage &map)
|
bool BuildStepList::fromMap(const Store &map)
|
||||||
{
|
{
|
||||||
clear();
|
clear();
|
||||||
|
|
||||||
@@ -111,7 +111,7 @@ bool BuildStepList::fromMap(const Storage &map)
|
|||||||
|
|
||||||
int maxSteps = map.value(QString::fromLatin1(STEPS_COUNT_KEY), 0).toInt();
|
int maxSteps = map.value(QString::fromLatin1(STEPS_COUNT_KEY), 0).toInt();
|
||||||
for (int i = 0; i < maxSteps; ++i) {
|
for (int i = 0; i < maxSteps; ++i) {
|
||||||
Storage bsData(map.value(QString::fromLatin1(STEPS_PREFIX) + QString::number(i)).toMap());
|
Store bsData(map.value(QString::fromLatin1(STEPS_PREFIX) + QString::number(i)).toMap());
|
||||||
if (bsData.isEmpty()) {
|
if (bsData.isEmpty()) {
|
||||||
qWarning() << "No step data found for" << i << "(continuing).";
|
qWarning() << "No step data found for" << i << "(continuing).";
|
||||||
continue;
|
continue;
|
||||||
|
@@ -6,7 +6,7 @@
|
|||||||
#include "projectexplorer_export.h"
|
#include "projectexplorer_export.h"
|
||||||
|
|
||||||
#include <utils/id.h>
|
#include <utils/id.h>
|
||||||
#include <utils/storage.h>
|
#include <utils/store.h>
|
||||||
|
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
|
|
||||||
@@ -60,8 +60,8 @@ public:
|
|||||||
ProjectConfiguration *projectConfiguration() const { return m_projectConfiguration; }
|
ProjectConfiguration *projectConfiguration() const { return m_projectConfiguration; }
|
||||||
Target *target() const;
|
Target *target() const;
|
||||||
|
|
||||||
Utils::Storage toMap() const;
|
Utils::Store toMap() const;
|
||||||
bool fromMap(const Utils::Storage &map);
|
bool fromMap(const Utils::Store &map);
|
||||||
|
|
||||||
Utils::Id id() const { return m_id; }
|
Utils::Id id() const { return m_id; }
|
||||||
QString displayName() const;
|
QString displayName() const;
|
||||||
|
@@ -103,7 +103,7 @@ QVariantMap CustomParserExpression::toMap() const
|
|||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CustomParserExpression::fromMap(const Storage &map)
|
void CustomParserExpression::fromMap(const Store &map)
|
||||||
{
|
{
|
||||||
setPattern(map.value(patternKey).toString());
|
setPattern(map.value(patternKey).toString());
|
||||||
setMessageCap(map.value(messageCapKey).toInt());
|
setMessageCap(map.value(messageCapKey).toInt());
|
||||||
@@ -149,7 +149,7 @@ QVariantMap CustomParserSettings::toMap() const
|
|||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CustomParserSettings::fromMap(const Storage &map)
|
void CustomParserSettings::fromMap(const Store &map)
|
||||||
{
|
{
|
||||||
id = Utils::Id::fromSetting(map.value(idKey));
|
id = Utils::Id::fromSetting(map.value(idKey));
|
||||||
displayName = map.value(nameKey).toString();
|
displayName = map.value(nameKey).toString();
|
||||||
@@ -173,12 +173,12 @@ CustomParsersAspect::CustomParsersAspect(Target *target)
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
void CustomParsersAspect::fromMap(const Storage &map)
|
void CustomParsersAspect::fromMap(const Store &map)
|
||||||
{
|
{
|
||||||
m_parsers = transform(map.value(settingsKey()).toList(), &Utils::Id::fromSetting);
|
m_parsers = transform(map.value(settingsKey()).toList(), &Utils::Id::fromSetting);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CustomParsersAspect::toMap(Storage &map) const
|
void CustomParsersAspect::toMap(Store &map) const
|
||||||
{
|
{
|
||||||
map.insert(settingsKey(), transform(m_parsers, &Utils::Id::toSetting));
|
map.insert(settingsKey(), transform(m_parsers, &Utils::Id::toSetting));
|
||||||
}
|
}
|
||||||
|
@@ -44,8 +44,8 @@ public:
|
|||||||
int messageCap() const;
|
int messageCap() const;
|
||||||
void setMessageCap(int messageCap);
|
void setMessageCap(int messageCap);
|
||||||
|
|
||||||
Utils::Storage toMap() const;
|
Utils::Store toMap() const;
|
||||||
void fromMap(const Utils::Storage &map);
|
void fromMap(const Utils::Store &map);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QRegularExpression m_regExp;
|
QRegularExpression m_regExp;
|
||||||
@@ -62,8 +62,8 @@ public:
|
|||||||
bool operator ==(const CustomParserSettings &other) const;
|
bool operator ==(const CustomParserSettings &other) const;
|
||||||
bool operator !=(const CustomParserSettings &other) const { return !operator==(other); }
|
bool operator !=(const CustomParserSettings &other) const { return !operator==(other); }
|
||||||
|
|
||||||
Utils::Storage toMap() const;
|
Utils::Store toMap() const;
|
||||||
void fromMap(const Utils::Storage &map);
|
void fromMap(const Utils::Store &map);
|
||||||
|
|
||||||
Utils::Id id;
|
Utils::Id id;
|
||||||
QString displayName;
|
QString displayName;
|
||||||
@@ -86,8 +86,8 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void fromMap(const Utils::Storage &map) override;
|
void fromMap(const Utils::Store &map) override;
|
||||||
void toMap(Utils::Storage &map) const override;
|
void toMap(Utils::Store &map) const override;
|
||||||
|
|
||||||
QList<Utils::Id> m_parsers;
|
QList<Utils::Id> m_parsers;
|
||||||
};
|
};
|
||||||
|
@@ -77,8 +77,8 @@ public:
|
|||||||
QStringList headerPathsList() const;
|
QStringList headerPathsList() const;
|
||||||
void setHeaderPaths(const QStringList &list);
|
void setHeaderPaths(const QStringList &list);
|
||||||
|
|
||||||
void toMap(Storage &data) const override;
|
void toMap(Store &data) const override;
|
||||||
void fromMap(const Storage &data) override;
|
void fromMap(const Store &data) override;
|
||||||
|
|
||||||
std::unique_ptr<ToolChainConfigWidget> createConfigurationWidget() override;
|
std::unique_ptr<ToolChainConfigWidget> createConfigurationWidget() override;
|
||||||
|
|
||||||
@@ -271,7 +271,7 @@ QString CustomToolChain::mkspecs() const
|
|||||||
return m_mkspecs.join(',');
|
return m_mkspecs.join(',');
|
||||||
}
|
}
|
||||||
|
|
||||||
void CustomToolChain::toMap(Storage &data) const
|
void CustomToolChain::toMap(Store &data) const
|
||||||
{
|
{
|
||||||
ToolChain::toMap(data);
|
ToolChain::toMap(data);
|
||||||
data.insert(QLatin1String(makeCommandKeyC), m_makeCommand.toString());
|
data.insert(QLatin1String(makeCommandKeyC), m_makeCommand.toString());
|
||||||
@@ -283,7 +283,7 @@ void CustomToolChain::toMap(Storage &data) const
|
|||||||
data.insert(QLatin1String(outputParserKeyC), m_outputParserId.toSetting());
|
data.insert(QLatin1String(outputParserKeyC), m_outputParserId.toSetting());
|
||||||
}
|
}
|
||||||
|
|
||||||
void CustomToolChain::fromMap(const Storage &data)
|
void CustomToolChain::fromMap(const Store &data)
|
||||||
{
|
{
|
||||||
ToolChain::fromMap(data);
|
ToolChain::fromMap(data);
|
||||||
if (hasError())
|
if (hasError())
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user