mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-24 15:26:48 -06:00
(#354) Called updateConnectedEditors everywhere updateUiSubTree is called
This commit is contained in:
parent
3d47e5795b
commit
235e024533
@ -668,10 +668,10 @@ bool RiaApplication::openEclipseCase(const QString& caseName, const QString& cas
|
|||||||
RimUiTreeModelPdm* uiModel = RiuMainWindow::instance()->uiPdmModel();
|
RimUiTreeModelPdm* uiModel = RiuMainWindow::instance()->uiPdmModel();
|
||||||
|
|
||||||
uiModel->updateUiSubTree(analysisModels);
|
uiModel->updateUiSubTree(analysisModels);
|
||||||
|
analysisModels->updateConnectedEditors();
|
||||||
|
|
||||||
RiuMainWindow::instance()->setCurrentObjectInTreeView(riv->cellResult());
|
RiuMainWindow::instance()->setCurrentObjectInTreeView(riv->cellResult());
|
||||||
|
|
||||||
analysisModels->updateConnectedEditors();
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -706,6 +706,7 @@ bool RiaApplication::openInputEclipseCaseFromFileNames(const QStringList& fileNa
|
|||||||
|
|
||||||
RimUiTreeModelPdm* uiModel = RiuMainWindow::instance()->uiPdmModel();
|
RimUiTreeModelPdm* uiModel = RiuMainWindow::instance()->uiPdmModel();
|
||||||
uiModel->updateUiSubTree(analysisModels);
|
uiModel->updateUiSubTree(analysisModels);
|
||||||
|
analysisModels->updateConnectedEditors();
|
||||||
|
|
||||||
RiuMainWindow::instance()->setCurrentObjectInTreeView(riv->cellResult());
|
RiuMainWindow::instance()->setCurrentObjectInTreeView(riv->cellResult());
|
||||||
|
|
||||||
@ -753,6 +754,7 @@ bool RiaApplication::openOdbCaseFromFile(const QString& fileName)
|
|||||||
RimUiTreeModelPdm* uiModel = RiuMainWindow::instance()->uiPdmModel();
|
RimUiTreeModelPdm* uiModel = RiuMainWindow::instance()->uiPdmModel();
|
||||||
|
|
||||||
uiModel->updateUiSubTree(m_project);
|
uiModel->updateUiSubTree(m_project);
|
||||||
|
m_project->updateConnectedEditors();
|
||||||
|
|
||||||
RiuMainWindow::instance()->setCurrentObjectInTreeView(riv->cellResult());
|
RiuMainWindow::instance()->setCurrentObjectInTreeView(riv->cellResult());
|
||||||
|
|
||||||
@ -1327,6 +1329,7 @@ void RiaApplication::applyPreferences()
|
|||||||
this->project()->setScriptDirectories(m_preferences->scriptDirectories());
|
this->project()->setScriptDirectories(m_preferences->scriptDirectories());
|
||||||
RimUiTreeModelPdm* treeModel = RiuMainWindow::instance()->uiPdmModel();
|
RimUiTreeModelPdm* treeModel = RiuMainWindow::instance()->uiPdmModel();
|
||||||
if (treeModel) treeModel->updateUiSubTree(this->project()->scriptCollection());
|
if (treeModel) treeModel->updateUiSubTree(this->project()->scriptCollection());
|
||||||
|
this->project()->scriptCollection()->updateConnectedEditors();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -1783,6 +1786,7 @@ bool RiaApplication::addEclipseCases(const QStringList& fileNames)
|
|||||||
RimUiTreeModelPdm* uiModel = RiuMainWindow::instance()->uiPdmModel();
|
RimUiTreeModelPdm* uiModel = RiuMainWindow::instance()->uiPdmModel();
|
||||||
|
|
||||||
uiModel->updateUiSubTree( m_project->activeOilField()->analysisModels());
|
uiModel->updateUiSubTree( m_project->activeOilField()->analysisModels());
|
||||||
|
m_project->activeOilField()->analysisModels()->updateConnectedEditors();
|
||||||
|
|
||||||
if (gridCaseGroup->statisticsCaseCollection()->reservoirs.size() > 0)
|
if (gridCaseGroup->statisticsCaseCollection()->reservoirs.size() > 0)
|
||||||
{
|
{
|
||||||
|
@ -495,6 +495,7 @@ void RimEclipseStatisticsCase::setWellResultsAndUpdateViews(const cvf::Collectio
|
|||||||
reservoirView->updateDisplayModelForWellResults();
|
reservoirView->updateDisplayModelForWellResults();
|
||||||
|
|
||||||
treeModel->updateUiSubTree(reservoirView->wellCollection());
|
treeModel->updateUiSubTree(reservoirView->wellCollection());
|
||||||
|
reservoirView->wellCollection()->updateConnectedEditors();
|
||||||
|
|
||||||
progInfo.incrementProgress();
|
progInfo.incrementProgress();
|
||||||
}
|
}
|
||||||
|
@ -94,6 +94,7 @@ bool RimUiTreeModelPdm::deletePropertyFilter(const QModelIndex& itemIndex)
|
|||||||
delete propertyFilter;
|
delete propertyFilter;
|
||||||
|
|
||||||
// updateUiSubTree(propertyFilterCollection); // To be enabled
|
// updateUiSubTree(propertyFilterCollection); // To be enabled
|
||||||
|
propertyFilterCollection->updateConnectedEditors();
|
||||||
|
|
||||||
if (wasFilterActive)
|
if (wasFilterActive)
|
||||||
{
|
{
|
||||||
@ -136,6 +137,7 @@ bool RimUiTreeModelPdm::deleteGeoMechPropertyFilter(const QModelIndex& itemIndex
|
|||||||
delete propertyFilter;
|
delete propertyFilter;
|
||||||
|
|
||||||
// updateUiSubTree(propertyFilterCollection); // To be enabled
|
// updateUiSubTree(propertyFilterCollection); // To be enabled
|
||||||
|
propertyFilterCollection->updateConnectedEditors();
|
||||||
|
|
||||||
if (wasFilterActive)
|
if (wasFilterActive)
|
||||||
{
|
{
|
||||||
@ -178,6 +180,7 @@ bool RimUiTreeModelPdm::deleteRangeFilter(const QModelIndex& itemIndex)
|
|||||||
delete rangeFilter;
|
delete rangeFilter;
|
||||||
|
|
||||||
// updateUiSubTree(rangeFilterCollection); // To be enabled
|
// updateUiSubTree(rangeFilterCollection); // To be enabled
|
||||||
|
rangeFilterCollection->updateConnectedEditors();
|
||||||
|
|
||||||
if (wasFilterActive)
|
if (wasFilterActive)
|
||||||
{
|
{
|
||||||
@ -214,6 +217,7 @@ void RimUiTreeModelPdm::deleteReservoirViews(const std::vector<caf::PdmUiItem*>&
|
|||||||
for (std::set<RimCase*>::iterator it = ownerCases.begin(); it != ownerCases.end(); ++it)
|
for (std::set<RimCase*>::iterator it = ownerCases.begin(); it != ownerCases.end(); ++it)
|
||||||
{
|
{
|
||||||
updateUiSubTree(*it);
|
updateUiSubTree(*it);
|
||||||
|
(*it)->updateConnectedEditors();
|
||||||
}
|
}
|
||||||
|
|
||||||
clearClipboard();
|
clearClipboard();
|
||||||
@ -241,6 +245,7 @@ void RimUiTreeModelPdm::deleteGeoMechCases(const std::vector<caf::PdmUiItem*>& t
|
|||||||
for (std::set<caf::PdmObjectHandle*>::iterator it = allParents.begin(); it != allParents.end(); ++it)
|
for (std::set<caf::PdmObjectHandle*>::iterator it = allParents.begin(); it != allParents.end(); ++it)
|
||||||
{
|
{
|
||||||
updateUiSubTree(*it);
|
updateUiSubTree(*it);
|
||||||
|
(*it)->capability<caf::PdmUiObjectHandle>()->updateConnectedEditors();
|
||||||
}
|
}
|
||||||
|
|
||||||
clearClipboard();
|
clearClipboard();
|
||||||
@ -478,8 +483,8 @@ RimView* RimUiTreeModelPdm::addReservoirView(const std::vector<caf::PdmUiItem*>&
|
|||||||
|
|
||||||
insertedView->loadDataAndUpdate();
|
insertedView->loadDataAndUpdate();
|
||||||
|
|
||||||
if (eclipseCase ) this->updateUiSubTree(eclipseCase);
|
if (eclipseCase ){ this->updateUiSubTree(eclipseCase); eclipseCase->updateConnectedEditors();}
|
||||||
if (geomCase ) this->updateUiSubTree(geomCase);
|
if (geomCase ) { this->updateUiSubTree(geomCase); geomCase->updateConnectedEditors();}
|
||||||
|
|
||||||
return insertedView;
|
return insertedView;
|
||||||
}
|
}
|
||||||
@ -519,6 +524,7 @@ void RimUiTreeModelPdm::slotRefreshScriptTree(QString path)
|
|||||||
{
|
{
|
||||||
changedSColl->readContentFromDisc();
|
changedSColl->readContentFromDisc();
|
||||||
this->updateUiSubTree(changedSColl);
|
this->updateUiSubTree(changedSColl);
|
||||||
|
changedSColl->updateConnectedEditors();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -542,6 +548,7 @@ void RimUiTreeModelPdm::addInputProperty(const QModelIndex& itemIndex, const QSt
|
|||||||
}
|
}
|
||||||
|
|
||||||
this->updateUiSubTree(inputPropertyCollection);
|
this->updateUiSubTree(inputPropertyCollection);
|
||||||
|
inputPropertyCollection->updateConnectedEditors();
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
@ -647,6 +654,7 @@ RimIdenticalGridCaseGroup* RimUiTreeModelPdm::addCaseGroup(QModelIndex& inserted
|
|||||||
analysisModels->caseGroups().push_back(createdObject);
|
analysisModels->caseGroups().push_back(createdObject);
|
||||||
|
|
||||||
this->updateUiSubTree(analysisModels);
|
this->updateUiSubTree(analysisModels);
|
||||||
|
analysisModels->updateConnectedEditors();
|
||||||
insertedModelIndex = getModelIndexFromPdmObject(createdObject);
|
insertedModelIndex = getModelIndexFromPdmObject(createdObject);
|
||||||
|
|
||||||
return createdObject;
|
return createdObject;
|
||||||
@ -835,6 +843,7 @@ void RimUiTreeModelPdm::addObjects(const QModelIndex& itemIndex, const caf::PdmO
|
|||||||
rimReservoirView->loadDataAndUpdate();
|
rimReservoirView->loadDataAndUpdate();
|
||||||
|
|
||||||
this->updateUiSubTree(geomCase);
|
this->updateUiSubTree(geomCase);
|
||||||
|
geomCase->updateConnectedEditors();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -644,6 +644,7 @@ public:
|
|||||||
inputRes->m_inputPropertyCollection->inputProperties.push_back(inputProperty);
|
inputRes->m_inputPropertyCollection->inputProperties.push_back(inputProperty);
|
||||||
RimUiTreeModelPdm* treeModel = RiuMainWindow::instance()->uiPdmModel();
|
RimUiTreeModelPdm* treeModel = RiuMainWindow::instance()->uiPdmModel();
|
||||||
treeModel->updateUiSubTree(inputRes->m_inputPropertyCollection());
|
treeModel->updateUiSubTree(inputRes->m_inputPropertyCollection());
|
||||||
|
inputRes->m_inputPropertyCollection()->updateConnectedEditors();
|
||||||
}
|
}
|
||||||
inputProperty->resolvedState = RimEclipseInputProperty::RESOLVED_NOT_SAVED;
|
inputProperty->resolvedState = RimEclipseInputProperty::RESOLVED_NOT_SAVED;
|
||||||
}
|
}
|
||||||
@ -1009,6 +1010,7 @@ public:
|
|||||||
inputRes->m_inputPropertyCollection->inputProperties.push_back(inputProperty);
|
inputRes->m_inputPropertyCollection->inputProperties.push_back(inputProperty);
|
||||||
RimUiTreeModelPdm* treeModel = RiuMainWindow::instance()->uiPdmModel();
|
RimUiTreeModelPdm* treeModel = RiuMainWindow::instance()->uiPdmModel();
|
||||||
treeModel->updateUiSubTree(inputRes->m_inputPropertyCollection());
|
treeModel->updateUiSubTree(inputRes->m_inputPropertyCollection());
|
||||||
|
inputRes->m_inputPropertyCollection()->updateConnectedEditors();
|
||||||
}
|
}
|
||||||
inputProperty->resolvedState = RimEclipseInputProperty::RESOLVED_NOT_SAVED;
|
inputProperty->resolvedState = RimEclipseInputProperty::RESOLVED_NOT_SAVED;
|
||||||
}
|
}
|
||||||
|
@ -1954,6 +1954,8 @@ void RiuMainWindow::setCurrentObjectInTreeView(caf::PdmObject* object)
|
|||||||
m_OBSOLETE_treeView->setCurrentIndex(mi);
|
m_OBSOLETE_treeView->setCurrentIndex(mi);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Todo: m_projectTreeView->setCurrentItemInTreeView(object);
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user