#include <QLabel>
#include <QLayout>
#include <QLineEdit>
+#include <QCheckBox>
+#include <QtxDoubleSpinBox.h>
HYDROGUI_ChannelDlg::HYDROGUI_ChannelDlg( HYDROGUI_Module* theModule, const QString& theTitle )
: HYDROGUI_InputPanel( theModule, theTitle )
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 );
+
+ myInvertDirection = new QCheckBox(aParamGroup);
+ myInvertDirection->setChecked(false);
+
QGridLayout* aParamsLayout = new QGridLayout( aParamGroup );
aParamsLayout->setMargin( 5 );
aParamsLayout->setSpacing( 5 );
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 );
+ aParamsLayout->addWidget( new QLabel( tr( "INVERT_DIRECTION" ), aParamGroup ), 3, 0 );
+ aParamsLayout->addWidget( myInvertDirection, 3, 1 );
// Common
addWidget( myObjectNameGroup );
emit CreatePreview();
}
+
+double HYDROGUI_ChannelDlg::getEquiDistance() const
+{
+ return myEquiDistance->value();
+}
+
+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);
+}
+