X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_DeflectionDialog.cpp;h=b8fc3895579be90ec31da20e369ac2e4e0bca534;hb=77ce6d35ac8d2f0fdaecb4f23e0870bf74e36103;hp=11f93ff8d2c1803cd52ab3025ccca2c2d7c56989;hpb=42d8ecf39798c037945ca4bb9073d8dc31c53008;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_DeflectionDialog.cpp b/src/XGUI/XGUI_DeflectionDialog.cpp old mode 100755 new mode 100644 index 11f93ff8d..b8fc38955 --- a/src/XGUI/XGUI_DeflectionDialog.cpp +++ b/src/XGUI/XGUI_DeflectionDialog.cpp @@ -1,14 +1,27 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D - -// File: XGUI_DeflectionDialog.cpp -// Created: 27 Jul 2016 -// Author: Natalia ERMOLAEVA +// Copyright (C) 2014-2024 CEA, EDF +// +// 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, 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 +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +// #include #include -#include +#include #include #include @@ -17,21 +30,22 @@ #include XGUI_DeflectionDialog::XGUI_DeflectionDialog(QWidget* theParent) - : QDialog(theParent) + : QDialog(theParent, Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowTitleHint) { - setWindowTitle("Deflection"); + setWindowTitle(tr("Deflection")); QGridLayout* aLay = new QGridLayout(this); - myDeflection = new QDoubleSpinBox(this); + myDeflection = new ModuleBase_DoubleSpinBox(this); + myDeflection->setDecimals(12); myDeflection->setRange(0, 1); - aLay->addWidget(new QLabel("Deviation", this), 0, 0); - aLay->addWidget(myDeflection, 0, 1); + myDeflection->setSingleStep(0.001); + aLay->addWidget(myDeflection, 0, 0); QDialogButtonBox* aButtons = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, Qt::Horizontal, this); connect(aButtons, SIGNAL(accepted()), this, SLOT(accept())); connect(aButtons, SIGNAL(rejected()), this, SLOT(reject())); - aLay->addWidget(aButtons, 1, 0, 1, 2); + aLay->addWidget(aButtons, 1, 0); } void XGUI_DeflectionDialog::setDeflection(const double& theValue)