All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Public Member Functions
GeopsyGui::GeopsyGuiEngine Class Reference

#include <GeopsyGuiEngine.h>

Inheritance diagram for GeopsyGui::GeopsyGuiEngine:
GeopsyCore::GeopsyCoreEngine QGpCoreTools::GlobalObject Engine

List of all members.

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 SubPoolWindownewChronogramWindow (const SubSignalPool &)
virtual AbstractGraphicWindownewGraphicWindow (const SubSignalPool &)
virtual SubPoolWindownewMapWindow (const SubSignalPool &)
virtual SubPoolWindownewTableWindow (const SubSignalPool &)
virtual ProgressBarprogressBar ()
virtual void refreshLists ()
virtual void removeWindow (QWidget *)
virtual void showWindow (QWidget *)
virtual QStatusBar * statusBar ()
virtual void updateWindowTitle (QWidget *)

Member Function Documentation

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;
  }

Reimplemented in Engine.

{return 0;}

Reimplemented in Engine.

{return 0;}
virtual SubPoolWindow* GeopsyGui::GeopsyGuiEngine::newMapWindow ( const SubSignalPool ) [inline, virtual]

Reimplemented in Engine.

{return 0;}

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.

{}

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines