-// Copyright (C) 2011-2013 CEA/DEN, EDF R&D
+// Copyright (C) 2011-2016 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
RBPipe->setDisabled(true);
if ( _Type == 2 ) { RBSphere->setDisabled(true); }
else { RBSphere->setVisible(0);
- RBPipe->setText(QApplication::translate("CreateZone", "Disk with hole", 0, QApplication::UnicodeUTF8));
- RBCylinder->setText(QApplication::translate("CreateZone", "Disk", 0, QApplication::UnicodeUTF8));
+ RBPipe->setText(QApplication::translate("CreateZone", "Disk with hole", 0));
+ RBCylinder->setText(QApplication::translate("CreateZone", "Disk", 0));
SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr() ;
QPixmap pix = resMgr->loadPixmap( "HOMARD", "boxdxy.png" ) ;
QIcon IS=QIcon(pix) ;
if ( _Zincr > 0) { SpinBox_Zcentre->setSingleStep(_Zincr); }
else { SpinBox_Zcentre->setSingleStep(1);}
- SpinBox_Rayon->setMinimum(0.);
SpinBox_Rayon->setValue(_ZoneRayon);
}
// ------------------------------------------------------------------------
RBPipe->setDisabled(true);
if ( _Type == 5 ) { RBSphere->setDisabled(true); }
else { RBSphere->setVisible(0);
- RBPipe->setText(QApplication::translate("CreateZone", "Disk with hole", 0, QApplication::UnicodeUTF8));
- RBCylinder->setText(QApplication::translate("CreateZone", "Disk", 0, QApplication::UnicodeUTF8));
- TLXbase->setText(QApplication::translate("CreateZone", "X centre", 0, QApplication::UnicodeUTF8));
- TLYbase->setText(QApplication::translate("CreateZone", "Y centre", 0, QApplication::UnicodeUTF8));
- TLZbase->setText(QApplication::translate("CreateZone", "Z centre", 0, QApplication::UnicodeUTF8));
+ RBPipe->setText(QApplication::translate("CreateZone", "Disk with hole", 0));
+ RBCylinder->setText(QApplication::translate("CreateZone", "Disk", 0));
+ TLXbase->setText(QApplication::translate("CreateZone", "X centre", 0));
+ TLYbase->setText(QApplication::translate("CreateZone", "Y centre", 0));
+ TLZbase->setText(QApplication::translate("CreateZone", "Z centre", 0));
SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr() ;
QPixmap pix = resMgr->loadPixmap( "HOMARD", "disk.png" ) ;
QIcon IS=QIcon(pix) ;
if ( _Zincr > 0) { SpinBox_Zbase->setSingleStep(_Zincr); }
else { SpinBox_Zbase->setSingleStep(1) ;}
- SpinBox_Radius->setMinimum(0.);
SpinBox_Radius->setValue(_ZoneRayon);
if ( _Type == 5 )
RBCylinder->setDisabled(true);
if ( _Type == 7 ) { RBSphere->setDisabled(true); }
else { RBSphere->setVisible(0);
- RBPipe->setText(QApplication::translate("CreateZone", "Disk with hole", 0, QApplication::UnicodeUTF8));
- RBCylinder->setText(QApplication::translate("CreateZone", "Disk", 0, QApplication::UnicodeUTF8));
- TLXbase_p->setText(QApplication::translate("CreateZone", "X centre", 0, QApplication::UnicodeUTF8));
- TLYbase_p->setText(QApplication::translate("CreateZone", "Y centre", 0, QApplication::UnicodeUTF8));
- TLZbase_p->setText(QApplication::translate("CreateZone", "Z centre", 0, QApplication::UnicodeUTF8));
+ RBPipe->setText(QApplication::translate("CreateZone", "Disk with hole", 0));
+ RBCylinder->setText(QApplication::translate("CreateZone", "Disk", 0));
+ TLXbase_p->setText(QApplication::translate("CreateZone", "X centre", 0));
+ TLYbase_p->setText(QApplication::translate("CreateZone", "Y centre", 0));
+ TLZbase_p->setText(QApplication::translate("CreateZone", "Z centre", 0));
SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr() ;
QPixmap pix = resMgr->loadPixmap( "HOMARD", "diskwithhole.png" ) ;
QIcon IS=QIcon(pix) ;
if ( _Zincr > 0) { SpinBox_Zbase_p->setSingleStep(_Zincr); }
else { SpinBox_Zbase_p->setSingleStep(1) ;}
- SpinBox_Radius_int->setMinimum(0.);
SpinBox_Radius_int->setValue(_ZoneRayonInt);
- SpinBox_Radius_ext->setMinimum(0.);
SpinBox_Radius_ext->setValue(_ZoneRayon);
if ( _Type == 7 )