mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-03-15 20:51:27 +05:00
Dump Python extension
This commit is contained in:
parent
5998f517ba
commit
5cde5a8e17
@ -425,12 +425,16 @@ GEOM::GEOM_IOperations_ptr PrimitiveGUI_BoxDlg::createOperation()
|
|||||||
// function : isValid
|
// function : isValid
|
||||||
// purpose :
|
// purpose :
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
bool PrimitiveGUI_BoxDlg::isValid (QString&)
|
bool PrimitiveGUI_BoxDlg::isValid (QString& msg)
|
||||||
{
|
{
|
||||||
return getConstructorId() == 0 ? !(myPoint1->_is_nil() || myPoint2->_is_nil()) :
|
bool ok = true;
|
||||||
GroupDimensions->SpinBox_DX->isValid() &&
|
if( getConstructorId() == 1 )
|
||||||
GroupDimensions->SpinBox_DY->isValid() &&
|
{
|
||||||
GroupDimensions->SpinBox_DZ->isValid();
|
ok = GroupDimensions->SpinBox_DX->isValid( msg, !IsPreview() ) && ok;
|
||||||
|
ok = GroupDimensions->SpinBox_DY->isValid( msg, !IsPreview() ) && ok;
|
||||||
|
ok = GroupDimensions->SpinBox_DZ->isValid( msg, !IsPreview() ) && ok;
|
||||||
|
}
|
||||||
|
return getConstructorId() == 0 ? !(myPoint1->_is_nil() || myPoint2->_is_nil()) : ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
|
Loading…
x
Reference in New Issue
Block a user