Adds latest migration results
This commit is contained in:
829 files changed
+35074
-70886
No files matched your search
+19
-2
@@ -12,6 +12,7 @@
|
||||
#include <QJsonObject>
|
||||
#include <QtCore/QVector>
|
||||
#include <ProjectDataManagement/pdm_dtc_impl.h>
|
||||
#include <NGLLogger/INGLLogger.h>
|
||||
|
||||
//-------------------------------------------------------------------------------------------------------------
|
||||
namespace ProjectDataManagement
|
||||
@@ -53,7 +54,7 @@ class DtcImplCustom final : public Interface::DtcImpl
|
||||
|
||||
// custom procs, body must be implemented by user
|
||||
// Might need a "baseChargesForGearClass" later on...
|
||||
QVector<ProjectDataManagement::ChargeType> chargesForGearClass(GearClass gearClass) override;
|
||||
QVector<ProjectDataManagement::ChargeTypeData> chargesForGearClass(GearClass gearClass) override;
|
||||
QVector<ProjectDataManagement::IgniterType> ignitersForChargeType(int chargeTypeId) override;
|
||||
QVector<ProjectDataManagement::ChargeTypeIgniterTypeIgniterFunction> igniterFunctionsForChargeTypeIgniterType(int chargeTypeId, int igniterTypeId) override;
|
||||
QVector<ProjectDataManagement::LoadType> loadsForChargeType(int chargeTypeId) override;
|
||||
@@ -152,6 +153,10 @@ class DtcImplCustom final : public Interface::DtcImpl
|
||||
QString trRadioGroupName(int radioGroupId) override;
|
||||
QString trVulnerabilityKindName(int vulnerabilityKindId, VulnerabilityClass vulnerabilityClassId) override;
|
||||
QString trSanitationMaterialName(int sanitationMaterialId) override;
|
||||
QString trSanitationProcedureName(int sanitationProcedureId) override;
|
||||
QString trSanitationInjuryKindName(int sanitationInjuryKindId) override;
|
||||
QString trSanitationInjuryPlace1Name(int sanitationInjuryPlace1Id) override;
|
||||
QString trSanitationInjuryPlace2Name(int sanitationInjuryPlace2Id) override;
|
||||
|
||||
QStringList chargeNames(std::vector<int> &chargeIds) override;
|
||||
int getAvailableChargeTypeId(int chargeTypeId /*, bool *bOk = nullptr*/) override;
|
||||
@@ -247,6 +252,7 @@ class DtcImplCustom final : public Interface::DtcImpl
|
||||
|
||||
ChargeTypeIgniterTypeIgniterFunctionProps chargeTypeIgniterTypeIgniterFunctionProps(int chargeTypeId, int igniterTypeId, int igniterFunctionId);
|
||||
DtcImplCustom::ChargeTypeLoadTypeProps chargeTypeLoadTypeProps(int chargeTypeId, int loadTypeId);
|
||||
ChargeTypeIgniterTypeIgniterFunction chargeTypeIgniterTypeIgniterFunction(int id) const;
|
||||
|
||||
QString suffix(int chargeTypeId, bool omitBaseSuffix = false);
|
||||
static QString offsetName(UleisClassOffset o);
|
||||
@@ -260,19 +266,30 @@ class DtcImplCustom final : public Interface::DtcImpl
|
||||
void setProps(ChargeTypeIgniterTypeIgniterFunctionProps &props, QJsonObject obj);
|
||||
void setProps(ChargeTypeLoadTypeProps &props, QJsonObject obj);
|
||||
|
||||
QJsonObject propertiesToJson(const std::string &properties);
|
||||
QJsonObject propertiesToJson(const QJsonObject &properties);
|
||||
void mergeProperties(QHash<int, ChargeTypeIgniterTypeIgniterFunctionProps>::iterator &it,
|
||||
const QJsonObject &ifProps,
|
||||
const QJsonObject &ctProps,
|
||||
const QJsonObject &ctitifProps,
|
||||
const QJsonObject &itProps);
|
||||
|
||||
// enable* methods
|
||||
void enableIgniterType(bool enable) override;
|
||||
void enableChargeTypeIgniterTypeIgniterFunction(bool enable) override;
|
||||
void enableIgniterFunction(bool enable) override;
|
||||
void enableLoadType(bool enable) override;
|
||||
void enableChargeTypeLoadType(bool enable) override;
|
||||
void enableTargetType(bool enable) override;
|
||||
|
||||
private:
|
||||
QHash<int, ChargeTypeIgniterTypeIgniterFunctionProps> m_ctItIfProps;
|
||||
QHash<int, ChargeTypeLoadTypeProps> m_ctLtProps;
|
||||
QHash<int, GearTypeProps> m_gtProps;
|
||||
QHash<int, GearTypeChargeTypeProps> m_gtctProps;
|
||||
QString indirectString(bool isIndirect) const;
|
||||
|
||||
// Logger member
|
||||
NGL::INGLLogger &m_logger;
|
||||
};
|
||||
} // namespace Interface
|
||||
} // namespace ProjectDataManagement
|
||||
Reference in new issue
Block a user