X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FHYDROGUI%2FHYDROGUI_StricklerTableOp.cxx;h=d47540a2879479bc315565c7dc6e9fcb7b0f2e93;hb=a4f3b004326025e1760d4f5e922c6b79a9a451ca;hp=31435e65069e112797f6704a74dc2ba5e2b6907b;hpb=e744ba34fd38d6744d11b54cd15b6f86350695b2;p=modules%2Fhydro.git diff --git a/src/HYDROGUI/HYDROGUI_StricklerTableOp.cxx b/src/HYDROGUI/HYDROGUI_StricklerTableOp.cxx index 31435e65..d47540a2 100644 --- a/src/HYDROGUI/HYDROGUI_StricklerTableOp.cxx +++ b/src/HYDROGUI/HYDROGUI_StricklerTableOp.cxx @@ -23,7 +23,7 @@ #include "HYDROGUI_Module.h" #include "HYDROGUI_OCCDisplayer.h" #include "HYDROGUI_Operations.h" -#include "HYDROGUI_Tool.h" +#include "HYDROGUI_Tool2.h" #include "HYDROGUI_UpdateFlags.h" #include @@ -60,14 +60,7 @@ void HYDROGUI_StricklerTableOp::startOperation() { // Edit selected Strickler table aPanel->setTableName( myObject->GetName() ); - - // Get Strickler table data from the data model - HYDROGUI_StricklerTableDlg::StricklerCoefficientList aData; - QStringList aTypes = myObject->GetTypes(); - for ( QStringList::iterator it = aTypes.begin(); it != aTypes.end(); ++it ) - aData.append( HYDROGUI_StricklerTableDlg::StricklerCoefficient( *it, myObject->Get( *it, 0 ) ) ); - - aPanel->setData( aData ); + aPanel->setGuiData( myObject ); } } else if ( isExport() ) @@ -161,13 +154,7 @@ bool HYDROGUI_StricklerTableOp::processApply( int& theUpdateFlags, QString& theE if( isEdit() ) { // Get data from input panel's table and save it into data model object - aStricklerTableObj->Clear(); - HYDROGUI_StricklerTableDlg::StricklerCoefficientList aData = aPanel->getData(); - for ( HYDROGUI_StricklerTableDlg::StricklerCoefficientList::iterator it = aData.begin(); it != aData.end(); ++it ) - { - const HYDROGUI_StricklerTableDlg::StricklerCoefficient& anInfo = *it; - aStricklerTableObj->Set( anInfo.myType, anInfo.myCoefficient ); - } + aPanel->getGuiData( aStricklerTableObj ); } else {