Salome HOME
lot 10 - warnings for DTM - untested
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_ChannelDlg.cxx
index 0b55e800b7800adf611506b20b8121127277274f..d2c66807160120a18b793d532e8503823118ab7a 100644 (file)
@@ -25,6 +25,7 @@
 #include <QLabel>
 #include <QLayout>
 #include <QLineEdit>
+#include <QCheckBox>
 #include <QtxDoubleSpinBox.h>
 
 HYDROGUI_ChannelDlg::HYDROGUI_ChannelDlg( HYDROGUI_Module* theModule, const QString& theTitle )
@@ -53,10 +54,13 @@ HYDROGUI_ChannelDlg::HYDROGUI_ChannelDlg( HYDROGUI_Module* theModule, const QStr
   myProfiles->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) );
 
   myEquiDistance = new QtxDoubleSpinBox( aParamGroup );
-  myEquiDistance->setRange( 0.01, 100 );
+  myEquiDistance->setRange( 0.01, 9999 );
   myEquiDistance->setValue( 1.0 );
   myEquiDistance->setSingleStep( 1.0 );
 
+  myInvertDirection = new QCheckBox(aParamGroup);
+  myInvertDirection->setChecked(false);
+
   QGridLayout* aParamsLayout = new QGridLayout( aParamGroup );
   aParamsLayout->setMargin( 5 );
   aParamsLayout->setSpacing( 5 );
@@ -66,6 +70,8 @@ HYDROGUI_ChannelDlg::HYDROGUI_ChannelDlg( HYDROGUI_Module* theModule, const QStr
   aParamsLayout->addWidget( myProfiles, 1, 1 );
   aParamsLayout->addWidget( new QLabel( tr( "EQUI_DISTANCE" ), aParamGroup ), 2, 0 );
   aParamsLayout->addWidget( myEquiDistance, 2, 1 );
+  aParamsLayout->addWidget( new QLabel( tr( "INVERT_DIRECTION" ), aParamGroup ), 3, 0 );
+  aParamsLayout->addWidget( myInvertDirection, 3, 1 );
 
   // Common
   addWidget( myObjectNameGroup );
@@ -179,3 +185,14 @@ void HYDROGUI_ChannelDlg::setEquiDistance( double theValue )
 {
   myEquiDistance->setValue( theValue );
 }
+
+bool HYDROGUI_ChannelDlg::getInvertDirection() const
+{
+  return myInvertDirection->isChecked();
+}
+
+void HYDROGUI_ChannelDlg::setInvertDirection( bool isChecked )
+{
+  myInvertDirection->setChecked(isChecked);
+}
+