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

#include <ArrayDefinition.h>

Inheritance diagram for GeopsyGui::ArrayDefinition:
QGpGuiTools::Dialog QGpGuiTools::FrameGrabber

List of all members.

Public Member Functions

 ArrayDefinition (QWidget *parent=0)
QString getEndTime ()
QString getStartTime ()
void setCurrentGroup (QString groupName)
void setEndTime (QString t)
void setStartTime (QString t)
 ~ArrayDefinition ()

Constructor & Destructor Documentation

References QGpCoreTools::tr(), and TRACE.

    : Dialog(parent)
{
  TRACE;
  setupUi(this);
  // Set titles of columns in group list
  QTreeWidgetItem * headers=new QTreeWidgetItem;
  headers->setText(0, tr( "Group name" ));
  headers->setText(0, tr( "Signal name" ));
  headers->setText(1, tr( "Component" ));
  headers->setText(2, tr( "Time reference" ));
  headers->setText(3, tr( "Start time" ));
  headers->setText(4, tr( "End time" ));
  headers->setText(5, tr( "Rec x" ));
  headers->setText(6, tr( "Rec y" ));
  headers->setText(7, tr( "Rec y" ));
  groupList->setHeaderItem(headers);
  // Fill in group list
  /* TODO arrange quick group browser
  QStringList geopsyGroups=geopsyCore->currentDB() ->groupList();
  for(QStringList::Iterator it=geopsyGroups.begin();it!=geopsyGroups.end();++it) {
    QTreeWidgetItem * group=new QTreeWidgetItem(groupList, 0);
    group->setText(0, *it);
    SubSignalPool subPool;
    subPool.addGroup(geopsyCore->currentDB(), *it);
    for(int i=0; i < subPool.count();++i) {
      Signal * sig=subPool.at(i);
      QTreeWidgetItem * station=new QTreeWidgetItem(group, 1);
      station->setText(0, QString::number(i) );
      station->setText(1, sig->name());
      station->setText(2, sig->componentUserName());
      station->setText(3, sig->timeReference().toString( "dd/MM/yyyy hh:mm:ss" ));
      station->setText(4, Time::secondsToTime(sig->t0(), 4) );
      station->setText(5, Time::secondsToTime(sig->endTime(), 4) );
      station->setText(6, QString::number(sig->receiver().x(), 'f', 3) );
      station->setText(7, QString::number(sig->receiver().y(), 'f', 3) );
      station->setFlags(Qt::ItemIsEnabled);
    }
  } */
}

References TRACE.

{
  TRACE;}

Member Function Documentation

References str, and TRACE.

{
  TRACE;
  QString str=endTime->dateTime().toString( "yyyyMMddhhmmss.zzz" );
  return str;
}

References str, and TRACE.

{
  TRACE;
  QString str=startTime->dateTime().toString( "yyyyMMddhhmmss.zzz" );
  return str;
}
void GeopsyGui::ArrayDefinition::setCurrentGroup ( QString  groupName)

References TRACE.

{
  TRACE;
  QList<QTreeWidgetItem *> items=groupList->findItems (groupName, Qt::MatchExactly, 0);
  groupList->setCurrentItem(items.first());
}

References TRACE.

{
  TRACE;
  QDate dt(t.mid(0, 4).toInt(), t.mid(4, 2).toInt(), t.mid(6, 2).toInt());
  QTime tm(t.mid(8, 2).toInt(), t.mid(10, 2).toInt(), t.mid(12, 2).toInt(), t.mid(15, 3).toInt());
  QDateTime dttm(dt, tm);
  endTime->setDateTime(dttm);
}

References TRACE.

{
  TRACE;
  QDate dt(t.mid(0, 4).toInt(), t.mid(4, 2).toInt(), t.mid(6, 2).toInt());
  QTime tm(t.mid(8, 2).toInt(), t.mid(10, 2).toInt(), t.mid(12, 2).toInt(), t.mid(15, 3).toInt());
  QDateTime dttm(dt, tm);
  startTime->setDateTime(dttm);
}

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