FFTOptions::FFTOptions(QWidget *parent)
    : QWidget(parent) {
  setupUi(this);

  connect(_interleavedAverage, SIGNAL(clicked()), this, SLOT(clickedInterleaved()));
  connect(_apodize, SIGNAL(clicked()), this, SLOT(clickedApodize()));
  connect(_apodizeFunction, SIGNAL(currentIndexChanged(int)), this, SLOT(changedApodizeFxn()));
  connect(_apodize, SIGNAL(clicked()), this, SLOT(changedApodizeFxn()));

  connect(_apodizeFunction, SIGNAL(currentIndexChanged(int)), this, SIGNAL(modified()));
  connect(_output, SIGNAL(currentIndexChanged(int)), this, SIGNAL(modified()));
  connect(_apodize, SIGNAL(clicked()), this, SIGNAL(modified()));
  connect(_removeMean, SIGNAL(clicked()), this, SIGNAL(modified()));
  connect(_interleavedAverage, SIGNAL(clicked()), this, SIGNAL(modified()));
  connect(_interpolateOverHoles, SIGNAL(clicked()), this, SIGNAL(modified()));
  connect(_sampleRate, SIGNAL(textChanged(const QString&)), this, SIGNAL(modified()));
  connect(_vectorUnits, SIGNAL(textChanged(const QString&)), this, SIGNAL(modified()));
  connect(_rateUnits, SIGNAL(textChanged(const QString&)), this, SIGNAL(modified()));
  connect(_sigma, SIGNAL(valueChanged(double)), this, SIGNAL(modified()));
  connect(_FFTLength, SIGNAL(valueChanged(int)), this, SIGNAL(modified()));


  _sigmaLabel->setProperty("si","S&igma:");
  _apodize->setProperty("si","Apodi&ze");
  textLabel2->setProperty("si","Fun&ction:");
  _removeMean->setProperty("si","Remo&ve mean");
  TextLabel1_9->setProperty("si","FFT &length: 2^");
  _interleavedAverage->setProperty("si","Interleave&d average");
  _interpolateOverHoles->setProperty("si","Interpolate over &holes");
  TextLabel1_9_2->setProperty("si","Sa&mple rate:");
  TextLabel1_9_3->setProperty("si","Vector units:");
  TextLabel1_9_2_2->setProperty("si","Rate units:");
  textLabel1_2->setProperty("si","Ou&tput:");
}
Beispiel #2
0
KstFFTOptions::KstFFTOptions(QWidget *parent)
    : QWidget(parent) {
  setupUi(this);

  connect(Interleaved, SIGNAL(clicked()), this, SLOT(clickedInterleaved()));

  connect(Apodize, SIGNAL(clicked()), this, SLOT(clickedApodize()));

  connect(ApodizeFxn, SIGNAL(activated(int)), this, SLOT(changedApodizeFxn()));

  connect(Apodize, SIGNAL(clicked()), this, SLOT(changedApodizeFxn()));
}
Beispiel #3
0
void KstFFTOptions::update() {
  KST::objectDefaults.sync();

  FFTLen->setValue(KST::objectDefaults.fftLen());
  SampRate->setText(QString::number(KST::objectDefaults.psdFreq()));
  VectorUnits->setText(KST::objectDefaults.vUnits());
  RateUnits->setText(KST::objectDefaults.rUnits());
  Apodize->setChecked(KST::objectDefaults.apodize());
  RemoveMean->setChecked(KST::objectDefaults.removeMean());
  Interleaved->setChecked(KST::objectDefaults.psdAverage());
  ApodizeFxn->setCurrentIndex(KST::objectDefaults.apodizeFxn());
  Output->setCurrentIndex(KST::objectDefaults.output());
  InterpolateHoles->setChecked(KST::objectDefaults.interpolateHoles());

  clickedInterleaved();
  clickedApodize();
  changedApodizeFxn();
}
FFTOptions::FFTOptions(QWidget *parent)
    : QWidget(parent) {
  setupUi(this);

  connect(_interleavedAverage, SIGNAL(clicked()), this, SLOT(clickedInterleaved()));
  connect(_apodize, SIGNAL(clicked()), this, SLOT(clickedApodize()));
  connect(_apodizeFunction, SIGNAL(activated(int)), this, SLOT(changedApodizeFxn()));
  connect(_apodize, SIGNAL(clicked()), this, SLOT(changedApodizeFxn()));

  connect(_apodizeFunction, SIGNAL(currentIndexChanged(int)), this, SIGNAL(modified()));
  connect(_output, SIGNAL(currentIndexChanged(int)), this, SIGNAL(modified()));
  connect(_apodize, SIGNAL(clicked()), this, SIGNAL(modified()));
  connect(_removeMean, SIGNAL(clicked()), this, SIGNAL(modified()));
  connect(_interleavedAverage, SIGNAL(clicked()), this, SIGNAL(modified()));
  connect(_interpolateOverHoles, SIGNAL(clicked()), this, SIGNAL(modified()));
  connect(_sampleRate, SIGNAL(textChanged(const QString&)), this, SIGNAL(modified()));
  connect(_vectorUnits, SIGNAL(textChanged(const QString&)), this, SIGNAL(modified()));
  connect(_rateUnits, SIGNAL(textChanged(const QString&)), this, SIGNAL(modified()));
  connect(_sigma, SIGNAL(valueChanged(double)), this, SIGNAL(modified()));
  connect(_FFTLength, SIGNAL(valueChanged(int)), this, SIGNAL(modified()));
}
Beispiel #5
0
void KstFFTOptions::synch() {
  clickedInterleaved();
  clickedApodize();
}