Salome HOME
size of image is limited by 7000 pixels
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_ChannelDlg.cxx
index cc08804e04e012bf7fa6d40af3cb82a358166664..9c8513ca679971b0e924683193717b8bd9dd6ccc 100644 (file)
@@ -25,6 +25,7 @@
 #include <QLabel>
 #include <QLayout>
 #include <QLineEdit>
+#include <QtxDoubleSpinBox.h>
 
 HYDROGUI_ChannelDlg::HYDROGUI_ChannelDlg( HYDROGUI_Module* theModule, const QString& theTitle )
 : HYDROGUI_InputPanel( theModule, theTitle )
@@ -51,6 +52,11 @@ HYDROGUI_ChannelDlg::HYDROGUI_ChannelDlg( HYDROGUI_Module* theModule, const QStr
   myProfiles = new QComboBox( aParamGroup );
   myProfiles->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) );
 
+  myEquiDistance = new QtxDoubleSpinBox( aParamGroup );
+  myEquiDistance->setRange( 0.01, 9999 );
+  myEquiDistance->setValue( 1.0 );
+  myEquiDistance->setSingleStep( 1.0 );
+
   QGridLayout* aParamsLayout = new QGridLayout( aParamGroup );
   aParamsLayout->setMargin( 5 );
   aParamsLayout->setSpacing( 5 );
@@ -58,6 +64,8 @@ HYDROGUI_ChannelDlg::HYDROGUI_ChannelDlg( HYDROGUI_Module* theModule, const QStr
   aParamsLayout->addWidget( myGuideLines, 0, 1 );
   aParamsLayout->addWidget( new QLabel( tr( "CHANNEL_PROFILE" ), aParamGroup ), 1, 0 );
   aParamsLayout->addWidget( myProfiles, 1, 1 );
+  aParamsLayout->addWidget( new QLabel( tr( "EQUI_DISTANCE" ), aParamGroup ), 2, 0 );
+  aParamsLayout->addWidget( myEquiDistance, 2, 1 );
 
   // Common
   addWidget( myObjectNameGroup );
@@ -161,3 +169,13 @@ void HYDROGUI_ChannelDlg::onChannelDefChanged()
 
   emit CreatePreview();
 }
+
+double HYDROGUI_ChannelDlg::getEquiDistance() const
+{
+  return myEquiDistance->value();
+}
+
+void HYDROGUI_ChannelDlg::setEquiDistance( double theValue )
+{
+  myEquiDistance->setValue( theValue );
+}