Caf:PdmUiTree: Rewrote rebuildUiSubTree to become updateUiSubTree

Now the UI state is preserved when refreshing the tree, making it suitable
to use this method more extensively. This paves the way to make changes to the Pdm data structure without considering the ui at all, until a  call to updateUiSubTree gets the ui gracefully into sync.
p4#: 21599
This commit is contained in:
Jacob Støren
2013-05-13 12:00:52 +02:00
parent 06d32ae97e
commit cad25bcd59
9 changed files with 125 additions and 77 deletions

View File

@@ -548,7 +548,7 @@ void RiaSocketServer::readPropertyDataFromOctave()
inputProperty->fileName = "";
inputRes->m_inputPropertyCollection->inputProperties.push_back(inputProperty);
RimUiTreeModelPdm* treeModel = RiuMainWindow::instance()->uiPdmModel();
treeModel->rebuildUiSubTree(inputRes->m_inputPropertyCollection());
treeModel->updateUiSubTree(inputRes->m_inputPropertyCollection());
}
inputProperty->resolvedState = RimInputProperty::RESOLVED_NOT_SAVED;
}