updateButton->setEnabled( !theIsCompute );
}
+bool DependencyTree_View::updateObjectName( const std::string &theEntry )
+{
+ bool res = false;
+ for( initSelected(); moreSelected(); nextSelected() ) {
+ if( DependencyTree_Object* aDepObject = dynamic_cast<DependencyTree_Object*>( selectedObject() ) ) {
+ aDepObject->updateName();
+ res = true;
+ }
+ }
+ return res;
+}
+
DependencyTree_ComputeDlg_QThread::DependencyTree_ComputeDlg_QThread( DependencyTree_View* theView )
{
myView = theView;
GEOM::GEOM_Object_var anObj = GEOM::GEOM_Object::_narrow(GeometryGUI::ClientSObjectToObject(obj));
if (!CORBA::is_nil(anObj)) {
anObj->SetName( name.toLatin1().data() ); // Rename the corresponding GEOM_Object
+ // rename the given object in the dependency tree
+ if ( SUIT_ViewManager *svm = app->getViewManager( GraphicsView_Viewer::Type(), false ) )
+ if ( DependencyTree_ViewModel* viewModel = dynamic_cast<DependencyTree_ViewModel*>( svm->getViewModel() ) )
+ if ( DependencyTree_View* view = dynamic_cast<DependencyTree_View*>( viewModel->getActiveViewPort() ) )
+ view->updateObjectName( anObj->GetEntry() );
}
result = true;
}