1 // Copyright (C) 2007-2011 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.
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>
37 BasicGUI_ParamCurveWidget::BasicGUI_ParamCurveWidget(QWidget* parent):
40 QGridLayout* l = new QGridLayout( this );
44 QGroupBox* groupBox = new QGroupBox( tr("GEOM_PCURVE_TITLE"), this );
46 QGridLayout* gridLayout = new QGridLayout( groupBox );
47 gridLayout->setSpacing( 6 );
48 gridLayout->setMargin( 11 );
51 QLabel* textLabel1 = new QLabel( tr("GEOM_PCURVE_X"), groupBox );
52 myXExpr = new QLineEdit( groupBox );
55 QLabel* textLabel2 = new QLabel(tr("GEOM_PCURVE_Y"), groupBox);
56 myYExpr = new QLineEdit( groupBox );
59 QLabel* textLabel3 = new QLabel( tr("GEOM_PCURVE_Z"), groupBox );
60 myZExpr = new QLineEdit( groupBox );
63 QLabel* textLabel4 = new QLabel( tr("GEOM_PCURVE_MIN"), groupBox );
64 myPMin = new SalomeApp_DoubleSpinBox( groupBox );
67 QLabel* textLabel5 = new QLabel( tr("GEOM_PCURVE_MAX"), groupBox );
68 myPMax = new SalomeApp_DoubleSpinBox( groupBox );
71 QLabel* textLabel6 = new QLabel( tr("GEOM_PCURVE_STEP"), groupBox );
72 myPStep = new SalomeApp_DoubleSpinBox( groupBox );
75 gridLayout->addWidget(textLabel1, 0, 0, 1, 1);
76 gridLayout->addWidget(myXExpr, 0, 1, 1, 1);
78 gridLayout->addWidget(textLabel2, 1, 0, 1, 1);
79 gridLayout->addWidget(myYExpr, 1, 1, 1, 1);
81 gridLayout->addWidget(textLabel3, 2, 0, 1, 1);
82 gridLayout->addWidget(myZExpr, 2, 1, 1, 1);
84 gridLayout->addWidget(textLabel4, 3, 0, 1, 1);
85 gridLayout->addWidget(myPMin, 3, 1, 1, 1);
87 gridLayout->addWidget(textLabel5, 4, 0, 1, 1);
88 gridLayout->addWidget(myPMax, 4, 1, 1, 1);
90 gridLayout->addWidget(textLabel6, 5, 0, 1, 1);
91 gridLayout->addWidget(myPStep, 5, 1, 1, 1);
93 l->addWidget(groupBox, 0, 0, 1, 1);
97 BasicGUI_ParamCurveWidget::~BasicGUI_ParamCurveWidget(){