|
|
|
@ -193,7 +193,6 @@ nmWxParaPropertyPebi::nmWxParaPropertyPebi(QWidget* parent) :
|
|
|
|
m_pMainLayout = nullptr;
|
|
|
|
m_pMainLayout = nullptr;
|
|
|
|
m_listParas.clear();
|
|
|
|
m_listParas.clear();
|
|
|
|
m_pGridItemUtils = nullptr;
|
|
|
|
m_pGridItemUtils = nullptr;
|
|
|
|
m_pHelpBox = nullptr;
|
|
|
|
|
|
|
|
m_pDataManager = nullptr;
|
|
|
|
m_pDataManager = nullptr;
|
|
|
|
|
|
|
|
|
|
|
|
setWindowTitle(tr("Numerical para property"));
|
|
|
|
setWindowTitle(tr("Numerical para property"));
|
|
|
|
@ -240,11 +239,6 @@ void nmWxParaPropertyPebi::initUI()
|
|
|
|
pLayoutBk->setMargin(0);
|
|
|
|
pLayoutBk->setMargin(0);
|
|
|
|
pLayoutBk->addWidget(pArea);
|
|
|
|
pLayoutBk->addWidget(pArea);
|
|
|
|
|
|
|
|
|
|
|
|
if (nullptr != m_pHelpBox)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
pLayoutBk->addWidget(m_pHelpBox);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setLayout(pLayoutBk);
|
|
|
|
setLayout(pLayoutBk);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -277,8 +271,6 @@ void nmWxParaPropertyPebi::refreshUIs(QStringList& listParas, bool bReserveOlds
|
|
|
|
Q_ASSERT(nullptr != m_pGridItemUtils);
|
|
|
|
Q_ASSERT(nullptr != m_pGridItemUtils);
|
|
|
|
m_pGridItemUtils->setParent(this);
|
|
|
|
m_pGridItemUtils->setParent(this);
|
|
|
|
m_pGridItemUtils->setParaSrcTag(s_Nm_Serie);
|
|
|
|
m_pGridItemUtils->setParaSrcTag(s_Nm_Serie);
|
|
|
|
connect(m_pGridItemUtils, SIGNAL(sigHelpMsg(QString&)),
|
|
|
|
|
|
|
|
this, SLOT(slotHelpMsg(QString&)));
|
|
|
|
|
|
|
|
m_pMainLayout->addWidget(m_pGridItemUtils);
|
|
|
|
m_pMainLayout->addWidget(m_pGridItemUtils);
|
|
|
|
m_pGridItemUtils->setWellNames(mapObjectNames);
|
|
|
|
m_pGridItemUtils->setWellNames(mapObjectNames);
|
|
|
|
m_pGridItemUtils->buildRowUtils(listParas, false, this);
|
|
|
|
m_pGridItemUtils->buildRowUtils(listParas, false, this);
|
|
|
|
@ -661,10 +653,6 @@ void nmWxParaPropertyPebi::rebuildResultParas()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
m_pGridItemUtils->setItemsReadonly(true);
|
|
|
|
m_pGridItemUtils->setItemsReadonly(true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (m_pHelpBox != nullptr)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
m_pHelpBox->hide();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool nmWxParaPropertyPebi::getParaValue(QString sPara, QVariant& o)
|
|
|
|
bool nmWxParaPropertyPebi::getParaValue(QString sPara, QVariant& o)
|
|
|
|
@ -748,16 +736,6 @@ void nmWxParaPropertyPebi::onDeserialize(ZxSerializer* ser)
|
|
|
|
m_bUnableSP = false;
|
|
|
|
m_bUnableSP = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// help msg
|
|
|
|
|
|
|
|
void nmWxParaPropertyPebi::slotHelpMsg(QString& s)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (nullptr == m_pHelpBox)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
m_pHelpBox->setHtml(s);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void nmWxParaPropertyPebi::paintEvent(QPaintEvent* e)
|
|
|
|
void nmWxParaPropertyPebi::paintEvent(QPaintEvent* e)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
iDlgBase::paintEvent(e);
|
|
|
|
iDlgBase::paintEvent(e);
|
|
|
|
|