#include <ToolSPACd.h>
Public Slots | |
| void | on_freqScroll_valueChanged (int) |
| void | on_outputFileBrowse_clicked () |
Signals | |
| void | updateSubPool () |
Public Member Functions | |
| bool | checkOutputFile () |
| void | getParameters (SPACParameters ¶m) |
| void | setRunning (bool r) |
| ToolSPACd (QWidget *parent=0, Qt::WFlags fl=0) | |
| ~ToolSPACd () | |
| ToolSPACd::ToolSPACd | ( | QWidget * | parent = 0, |
| Qt::WFlags | fl = 0 |
||
| ) |
References QGpCoreTools::tr(), and TRACE.
: QWidget(parent, fl)
{
TRACE;
setupUi(this);
timeLimits->removeUseFirstOnly();
winParam->removeFilterOption();
winParam->setLength(WindowingParameters::FrequencyDependent, 50.0);
freqSamp->setUnit(tr(" Hz"));
freqSamp->setPrecision(2);
freqSamp->setSingleStep(0.25);
freqSamp->setAdmissibleRange(1e-99, 1e99);
}
| bool ToolSPACd::checkOutputFile | ( | ) |
References on_outputFileBrowse_clicked(), and TRACE.
{
TRACE;
if(outputFileEdit->text().isEmpty()) {
on_outputFileBrowse_clicked();
}
return !outputFileEdit->text().isEmpty();
}
| void ToolSPACd::getParameters | ( | SPACParameters & | param | ) |
References ArrayCore::ArrayParameters::frequencySampling(), ArrayCore::ArrayParameters::setFrequencyBandWidth(), ArrayCore::ArrayParameters::setOutputFile(), ArrayCore::SPACParameters::setOutputTypes(), ArrayCore::ArrayParameters::timeLimits(), TRACE, and ArrayCore::ArrayParameters::windowing().
Referenced by ToolSPAC::parameters().
{
TRACE;
timeLimits->getParameters(param.timeLimits());
winParam->getParameters(param.windowing());
freqSamp->getParameters(param.frequencySampling());
param.setFrequencyBandWidth(0.1);
// Output file not set here (useless and annoying for test)
SPACParameters::OutputTypes output=SPACParameters::NoOutput;
if(outputTarget->isChecked()) {
output|=SPACParameters::Target;
}
if(outputStmap->isChecked()) {
output|=SPACParameters::Stmap;
}
if(outputMax->isChecked()) {
output|=SPACParameters::Max;
}
param.setOutputTypes(output);
QString fileName=outputFileEdit->text();
removeExtension(fileName);
param.setOutputFile(fileName);
}
| void ToolSPACd::on_freqScroll_valueChanged | ( | int | ) | [slot] |
References QGpCoreTools::SamplingParameters::setValue(), TRACE, and QGpCoreTools::SamplingParameters::value().
{
TRACE;
SamplingParameters param;
freqSamp->getParameters(param);
testFrequency->setValue(param.value(freqScroll->value()));
}
| void ToolSPACd::on_outputFileBrowse_clicked | ( | ) | [slot] |
References str, QGpCoreTools::tr(), and TRACE.
Referenced by checkOutputFile().
| void ToolSPACd::setRunning | ( | bool | r | ) |
References QGpCoreTools::tr(), and TRACE.
Referenced by ToolSPAC::startLoop().
| void ToolSPACd::updateSubPool | ( | ) | [signal] |