X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSUPERVGUI%2FSUPERVGUI_Main.cxx;h=0b858393313d41daee986941dc092f606351501a;hb=7b4fe5b1be96cdc01644a1239b1590b484bc4766;hp=494dd7e5cf2e080693f1a7078f659e7cefec166f;hpb=2198e610227938d53dd7affe469df6cb1d25d76b;p=modules%2Fsuperv.git diff --git a/src/SUPERVGUI/SUPERVGUI_Main.cxx b/src/SUPERVGUI/SUPERVGUI_Main.cxx index 494dd7e..0b85839 100644 --- a/src/SUPERVGUI/SUPERVGUI_Main.cxx +++ b/src/SUPERVGUI/SUPERVGUI_Main.cxx @@ -1069,10 +1069,18 @@ bool SUPERVGUI_Main::putDataStudy( SUPERV_Port p, const char* inout ) { } } else { // FNode is NULL -> bad - MESSAGE( "FNode is NULL. Not good at all. Aborting command." ); - aBuilder->AbortCommand(); - isIn = false; - return false; + MESSAGE( "FNode is NULL." ); + if ( SUPERV::INode::_narrow( p->Node() ) ) { // mkr : IPAL10175 + _PTR(SObject) anIORSO ( aStudy->FindObjectIOR( p->ToString() ) ); + if ( anIORSO ) + aBuilder->Addreference(aSO, anIORSO); + } + else { + MESSAGE( "FNode and INode are NULL. Not good at all. Aborting command." ); + aBuilder->AbortCommand(); + isIn = false; + return false; + } } } else { @@ -1293,6 +1301,20 @@ bool SUPERVGUI_Main::ReadyToModify() { return true; } +void SUPERVGUI_Main::resizeView( QResizeEvent* theEvent ) +{ + if ( (myCurrentView == CANVAS || myCurrentView == CONTROLFLOW) && getCanvas() ) + if ( getCanvas()->width() < theEvent->size().width() + || + getCanvas()->height() < theEvent->size().height() ) + getCanvas()->resize( theEvent->size().width(), theEvent->size().height() ); + if ( myCurrentView == CANVASTABLE && getCanvasArray() ) + if ( getCanvasArray()->width() < theEvent->size().width() + || + getCanvasArray()->height() < theEvent->size().height() ) + getCanvasArray()->resize( theEvent->size().width(), theEvent->size().height() ); +} + /******************************* SUPERVGUI_Thread class ****************************************/ SUPERVGUI_Thread::SUPERVGUI_Thread() :QThread()