#include <GeopsyGuiEngine.h>
Public Member Functions | |
| virtual void | addWindow (QWidget *) |
| virtual SignalFileFormat | askLoadFormat (const QString &signalFileName) |
| virtual bool | askRD3LogParameter (int &nSamples, double &sampFreq, double &t0) |
| virtual bool | askTimeReference (double &t0, QDateTime &timeRef, const QDateTime &timeTrue) |
| virtual SubPoolWindow * | newChronogramWindow (const SubSignalPool &) |
| virtual AbstractGraphicWindow * | newGraphicWindow (const SubSignalPool &) |
| virtual SubPoolWindow * | newMapWindow (const SubSignalPool &) |
| virtual SubPoolWindow * | newTableWindow (const SubSignalPool &) |
| virtual ProgressBar * | progressBar () |
| virtual void | refreshLists () |
| virtual void | removeWindow (QWidget *) |
| virtual void | showWindow (QWidget *) |
| virtual QStatusBar * | statusBar () |
| virtual void | updateWindowTitle (QWidget *) |
| virtual void GeopsyGui::GeopsyGuiEngine::addWindow | ( | QWidget * | ) | [inline, virtual] |
Reimplemented in Engine.
{}
| SignalFileFormat GeopsyGui::GeopsyGuiEngine::askLoadFormat | ( | const QString & | signalFileName | ) | [virtual] |
Ask for file format through a dialog box
The value returned is the same as the one returned by the Core implementation. Combo box order must match the Core order.
Reimplemented from GeopsyCore::GeopsyCoreEngine.
References GeopsyGui::LoadFormat::format(), format, and GeopsyGui::LoadFormat::setSignalFileName().
{
QSettings reg;
reg.beginGroup( "DialogOptions" );
reg.beginGroup( "LoadFormat" );
SignalFileFormat format=SignalFileFormat::Unknown;
if(reg.value( "again" ).toBool()) {
LoadFormat * d=new LoadFormat(qApp->activeWindow());
d->setSignalFileName(signalFileName);
Settings::getWidget(d);
if(d->exec()==QDialog::Accepted) {
Settings::setWidget(d);
format=d->format();
}
delete d;
} else {
QList< QPair<QString, SignalFileFormat> > formats=SignalFileFormat::importList();
int formatIndex=reg.value( "fileFormat" ).toInt();
if(formatIndex>=formats.count() || formatIndex<0) formatIndex=0;
format=formats.at(formatIndex).second;
}
return format;
}
| bool GeopsyGui::GeopsyGuiEngine::askRD3LogParameter | ( | int & | nSamples, |
| double & | sampFreq, | ||
| double & | t0 | ||
| ) | [virtual] |
Reimplemented from GeopsyCore::GeopsyCoreEngine.
References TRACE.
{
TRACE;
RD3LogParameter * d= new RD3LogParameter(qApp->activeWindow());
Settings::getWidget(d);
if(d->exec()!=QDialog::Accepted) {
delete d;
return false;
}
Settings::setWidget(d);
bool ok=false;
nSamples= d->numSamp->text().toInt(&ok);
if( !ok) {delete d; return false;}
sampFreq= d->sampFreq->text().toDouble(&ok);
if( !ok) {delete d; return false;}
t0=d->t0->text().toDouble(&ok);
if( !ok) {delete d; return false;}
delete d;
return true;
}
| bool GeopsyGui::GeopsyGuiEngine::askTimeReference | ( | double & | t0, |
| QDateTime & | timeRef, | ||
| const QDateTime & | timeTrue | ||
| ) | [virtual] |
Reimplemented from GeopsyCore::GeopsyCoreEngine.
References GeopsyGui::TimeReference::reference(), GeopsyGui::TimeReference::setTrueTimeDate(), GeopsyGui::TimeReference::t0(), and TRACE.
{
TRACE;
QSettings reg;
reg.beginGroup( "DialogOptions" );
reg.beginGroup( "TimeReference" );
if(reg.value( "again" ).toBool()) {
TimeReference * d=new TimeReference(qApp->activeWindow());
Settings::getWidget(d);
d->setTrueTimeDate(t0, timeTrue);
if(d->exec()==QDialog::Rejected) {
Settings::setWidget(d);
delete d;
return false;
}
Settings::setWidget(d);
timeRef=d->reference();
t0=d->t0();
delete d;
} else {
timeRef=QDateTime::fromString(reg.value("refDateTime", "01/01/2000 00:00:00").toString(), "dd/MM/yyyy hh:mm:ss");
if(timeRef.isValid()) {
t0 += (double) timeRef.secsTo(timeTrue);
}
}
return true;
}
| virtual SubPoolWindow* GeopsyGui::GeopsyGuiEngine::newChronogramWindow | ( | const SubSignalPool & | ) | [inline, virtual] |
Reimplemented in Engine.
{return 0;}
| virtual AbstractGraphicWindow* GeopsyGui::GeopsyGuiEngine::newGraphicWindow | ( | const SubSignalPool & | ) | [inline, virtual] |
Reimplemented in Engine.
{return 0;}
| virtual SubPoolWindow* GeopsyGui::GeopsyGuiEngine::newMapWindow | ( | const SubSignalPool & | ) | [inline, virtual] |
Reimplemented in Engine.
{return 0;}
| virtual SubPoolWindow* GeopsyGui::GeopsyGuiEngine::newTableWindow | ( | const SubSignalPool & | ) | [inline, virtual] |
Reimplemented in Engine.
{return 0;}
| virtual ProgressBar* GeopsyGui::GeopsyGuiEngine::progressBar | ( | ) | [inline, virtual] |
Reimplemented in Engine.
{return 0;}
| virtual void GeopsyGui::GeopsyGuiEngine::refreshLists | ( | ) | [inline, virtual] |
Reimplemented in Engine.
{}
| virtual void GeopsyGui::GeopsyGuiEngine::removeWindow | ( | QWidget * | ) | [inline, virtual] |
Reimplemented in Engine.
{}
| virtual void GeopsyGui::GeopsyGuiEngine::showWindow | ( | QWidget * | ) | [inline, virtual] |
Reimplemented in Engine.
{}
| virtual QStatusBar* GeopsyGui::GeopsyGuiEngine::statusBar | ( | ) | [inline, virtual] |
Reimplemented in Engine.
{return 0;}
| virtual void GeopsyGui::GeopsyGuiEngine::updateWindowTitle | ( | QWidget * | ) | [inline, virtual] |
Reimplemented in Engine.
{}