#include "nmGridRowUtils.h" // ================================================================ // 构造与析构 // ================================================================ nmGridRowUtils::nmGridRowUtils(bool bSimple, QWidget* parent) : iGridRowUtils(bSimple, parent) { } nmGridRowUtils::~nmGridRowUtils() { } // ================================================================ // 初始化与构建 // ================================================================ void nmGridRowUtils::initUI() { // 当前直接转发至基类,后续可在此添加NM模块特有的初始化逻辑 iGridRowUtils::initUI(); } bool nmGridRowUtils::buildRowUtils(QStringList listParas, bool bDnMode, QWidget* pWxDlg) { // 当前直接转发至基类,后续可在此拦截参数列表或做前置/后置处理 return iGridRowUtils::buildRowUtils(listParas, bDnMode, pWxDlg); } // ================================================================ // 参数读写 // ================================================================ bool nmGridRowUtils::setParaValue(QString sPara, QVariant o) { return iGridRowUtils::setParaValue(sPara, o); } bool nmGridRowUtils::getParaValue(QString sPara, QVariant& o) { return iGridRowUtils::getParaValue(sPara, o); } bool nmGridRowUtils::getAllParaValues(QMap& map, bool bOnlyFitted, bool bClearMap) { return iGridRowUtils::getAllParaValues(map, bOnlyFitted, bClearMap); } bool nmGridRowUtils::getAllParaUnits(QMap& map, bool bOnlyFitted, bool bClearMap) { return iGridRowUtils::getAllParaUnits(map, bOnlyFitted, bClearMap); } // ================================================================ // 参数项查找 // ================================================================ iGridRowItem* nmGridRowUtils::getItemByPara(QString sPara) { return iGridRowUtils::getItemByPara(sPara); } QVariant nmGridRowUtils::getItemValueByPara(QString sPara) { return iGridRowUtils::getItemValueByPara(sPara); } // ================================================================ // 参数来源标识 // ================================================================ void nmGridRowUtils::setParaSrcTag(QString s) { // 基类已有实现,直接转发 iGridRowUtils::setParaSrcTag(s); } // ================================================================ // 序列化 // ================================================================ void nmGridRowUtils::onSerialize(ZxSerializer* ser) { iGridRowUtils::onSerialize(ser); } void nmGridRowUtils::onDeserialize(ZxSerializer* ser) { iGridRowUtils::onDeserialize(ser); } // ================================================================ // 结果组织 // ================================================================ bool nmGridRowUtils::organizeResults(QVector& vec, QString sType, bool bMultiPhase) { return iGridRowUtils::organizeResults(vec, sType, bMultiPhase); } // ================================================================ // 内部构建(protected) // ================================================================ bool nmGridRowUtils::_buildRowUtils(QStringList listParas, iGridRowItem* pItemParent, bool bDnMode, bool bProperOrder) { return iGridRowUtils::_buildRowUtils(listParas, pItemParent, bDnMode, bProperOrder); } bool nmGridRowUtils::createAndAddItem(iGridRowItem* pParent, iParameter* p, QString sPara) { return iGridRowUtils::createAndAddItem(pParent, p, sPara); } void nmGridRowUtils::connectSignalsOf(iGridRowItem* p) { iGridRowUtils::connectSignalsOf(p); } void nmGridRowUtils::bindItems() { iGridRowUtils::bindItems(); } // ================================================================ // 槽函数 // ================================================================ void nmGridRowUtils::slotValuePrevChanged(QVariant& o1, QVariant& o2) { iGridRowUtils::slotValuePrevChanged(o1, o2); } void nmGridRowUtils::slotGetValueOf(QString sPara, QVariant& o, bool& bOk) { iGridRowUtils::slotGetValueOf(sPara, o, bOk); }