KJS::Value KstBindPowerSpectrum::vUnits(KJS::ExecState *exec) const { Q_UNUSED(exec) KstPSDPtr d = makePSD(_d); if (d) { KstReadLocker rl(d); return KJS::String(d->vUnits()); } return KJS::String(); }
void KstPsdDialog::fillFieldsForEdit() { KstPSDPtr pp; pp = kst_cast<KstPSD>(_dp); if (pp) { pp->readLock(); _tagName->setText(pp->tagName()); _w->_vector->setSelection(pp->vTag()); // set sample rate, Units, FFT len, and vector units _w->_kstFFTOptions->FFTLen->setValue(pp->len()); _w->_kstFFTOptions->SampRate->setText(QString::number(pp->freq())); _w->_kstFFTOptions->VectorUnits->setText(pp->vUnits()); _w->_kstFFTOptions->RateUnits->setText(pp->rUnits()); _w->_kstFFTOptions->Apodize->setChecked(pp->apodize()); _w->_kstFFTOptions->ApodizeFxn->setCurrentIndex(pp->apodizeFxn()); _w->_kstFFTOptions->Sigma->setValue(pp->gaussianSigma()); _w->_kstFFTOptions->RemoveMean->setChecked(pp->removeMean()); _w->_kstFFTOptions->Interleaved->setChecked(pp->average()); _w->_kstFFTOptions->Output->setCurrentIndex(pp->output()); _w->_kstFFTOptions->InterpolateHoles->setChecked(pp->interpolateHoles()); _w->_kstFFTOptions->synch(); pp->unlock(); _w->_curveAppearance->hide(); _w->_curvePlacement->hide(); _legendText->hide(); _legendLabel->hide(); adjustSize(); resize(minimumSizeHint()); setFixedHeight(height()); } }