- QString msg;
- bool ok = true;
- ok = XSpin->isValid( msg, true ) && ok;
- ok = YSpin->isValid( msg, true ) && ok;
- ok = ZSpin->isValid( msg, true ) && ok;
-
- if( !ok ) {
- QString str( tr( "SMESH_INCORRECT_INPUT" ) );
- if ( !msg.isEmpty() )
- str += "\n" + msg;
- SUIT_MessageBox::critical( this, tr( "SMESH_ERROR" ), str );
- return false;
- }
- return true;
+ return checkParameters( true, 3, XSpin, YSpin, ZSpin );