#include <SamplingParameterWidget.h>
List of all members.
Constructor & Destructor Documentation
References parametersChanged(), sampleCountChanged(), and TRACE.
: QWidget(parent)
{
TRACE;
setupUi(this);
_inversed=false;
_admissibleMin=-1e99;
_admissibleMax=1e99;
connect(fromValue, SIGNAL(valueChanged(const QString&)), this, SIGNAL(parametersChanged()));
connect(toValue, SIGNAL(valueChanged(const QString&)), this, SIGNAL(parametersChanged()));
connect(sampCount, SIGNAL(valueChanged(int)), this, SIGNAL(sampleCountChanged()));
connect(sampCount, SIGNAL(valueChanged(int)), this, SIGNAL(parametersChanged()));
}
Member Function Documentation
References TRACE.
{
TRACE;
if(min<max) {
_admissibleMin=min;
_admissibleMax=max;
} else {
_admissibleMin=max;
_admissibleMax=min;
}
fromValue->setMinimum(_admissibleMin);
toValue->setMinimum(_admissibleMin);
fromValue->setMaximum(_admissibleMax);
toValue->setMaximum(_admissibleMax);
if(stepType) {
if(_admissibleMax<0.0) {
stepType->setCurrentIndex(1);
stepType->setEnabled(false);
} else {
stepType->setEnabled(true);
}
if(stepType->currentIndex()==0 && _admissibleMin<0.0) {
fromValue->setMinimum(pow( 10, -fromValue->decimals()) );
toValue->setMinimum(pow( 10, -fromValue->decimals()) );
}
}
}
Take the inverse of current values
References inversed(), and TRACE.
{
TRACE;
if(inversed!=_inversed) {
if(inverseValues) {
double min=fromValue->value();
double max=toValue->value();
fromValue->setValue(1.0/max);
toValue->setValue(1.0/min);
}
_inversed=inversed;
}
}
References TRACE.
{
TRACE;
fromValue->setDecimals(digit);
toValue->setDecimals(digit);
}
References TRACE.
{
TRACE;
delete stepTypeLabel;
stepTypeLabel=0;
delete stepType;
stepType=0;
delete sampCountLabel;
sampCountLabel=0;
delete sampCount;
sampCount=0;
}
References TRACE.
{
TRACE;
fromValue->setSingleStep(s);
toValue->setSingleStep(s);
}
{fromValue->setSuffix(u); toValue->setSuffix(u);}
The documentation for this class was generated from the following files: