1 // Copyright (C) 2007-2020 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License, or (at your option) any later version.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 // GEOM GEOMGUI : GUI for Geometry component
24 // File : BasicGUI_ParamCurveWidget.h
25 // Author : Roman NIKOLAEV (roman.nikolaev@opencascade.com)
27 #include "BasicGUI_ParamCurveWidget.h"
31 #include <QGridLayout>
34 #include <SalomeApp_DoubleSpinBox.h>
35 #include <SalomeApp_IntSpinBox.h>
38 BasicGUI_ParamCurveWidget::BasicGUI_ParamCurveWidget(QWidget* parent):
41 QGridLayout* l = new QGridLayout( this );
45 QGroupBox* groupBox = new QGroupBox( tr("GEOM_PCURVE_TITLE"), this );
47 QGridLayout* gridLayout = new QGridLayout( groupBox );
48 gridLayout->setSpacing( 6 );
49 gridLayout->setMargin( 11 );
52 QLabel* textLabel1 = new QLabel( tr("GEOM_PCURVE_X"), groupBox );
53 myXExpr = new QLineEdit( groupBox );
56 QLabel* textLabel2 = new QLabel(tr("GEOM_PCURVE_Y"), groupBox);
57 myYExpr = new QLineEdit( groupBox );
60 QLabel* textLabel3 = new QLabel( tr("GEOM_PCURVE_Z"), groupBox );
61 myZExpr = new QLineEdit( groupBox );
64 QLabel* textLabel4 = new QLabel( tr("GEOM_PCURVE_MIN"), groupBox );
65 myPMin = new SalomeApp_DoubleSpinBox( groupBox );
68 QLabel* textLabel5 = new QLabel( tr("GEOM_PCURVE_MAX"), groupBox );
69 myPMax = new SalomeApp_DoubleSpinBox( groupBox );
72 QLabel* textLabel6 = new QLabel( tr("GEOM_PCURVE_NBSTEP"), groupBox );
73 myPStep = new SalomeApp_IntSpinBox( groupBox );
76 gridLayout->addWidget(textLabel1, 0, 0, 1, 1);
77 gridLayout->addWidget(myXExpr, 0, 1, 1, 1);
79 gridLayout->addWidget(textLabel2, 1, 0, 1, 1);
80 gridLayout->addWidget(myYExpr, 1, 1, 1, 1);
82 gridLayout->addWidget(textLabel3, 2, 0, 1, 1);
83 gridLayout->addWidget(myZExpr, 2, 1, 1, 1);
85 gridLayout->addWidget(textLabel4, 3, 0, 1, 1);
86 gridLayout->addWidget(myPMin, 3, 1, 1, 1);
88 gridLayout->addWidget(textLabel5, 4, 0, 1, 1);
89 gridLayout->addWidget(myPMax, 4, 1, 1, 1);
91 gridLayout->addWidget(textLabel6, 5, 0, 1, 1);
92 gridLayout->addWidget(myPStep, 5, 1, 1, 1);
94 l->addWidget(groupBox, 0, 0, 1, 1);
98 BasicGUI_ParamCurveWidget::~BasicGUI_ParamCurveWidget(){