Public Member Functions | Protected Member Functions
WaranWidget Class Reference

Brief description of class still missing. More...

#include <WaranWidget.h>

List of all members.

Public Member Functions

void setFrequencyBandWidth (double fbw)
 WaranWidget (QWidget *parent=0)
 ~WaranWidget ()

Protected Member Functions

void closeEvent (QCloseEvent *e)

Detailed Description

Brief description of class still missing.

Full description of class still missing


Constructor & Destructor Documentation

WaranWidget::WaranWidget ( QWidget *  parent = 0)

Description of constructor still missing

References GeopsyGui::StationCoordinatesItem::setStations(), QGpCoreTools::tr(), and TRACE.

    : QWidget(parent)
{
  TRACE;
  setupUi(this);

  connect(acquisitionWidget, SIGNAL(networkParametersChanged()), this, SLOT(setStations()));
  setStations();

  _arrayProcess=0;
  //_hvProcess=0;

  // By default the seed link is requesting from now to an unlimited buffer, this is what we want.
  // Users cannot change these options like in Geopsy main frame
  seedlink->removeOptions();
  seedlink->removeView();
  seedlink->setBufferType(SeedLinkStream::Rotate);
  setHVWindowLength(); // Just because seedLink rotate buffer is linked to this parameter
  connect(seedlink, SIGNAL(dataChanged(Signal *, TimeRange)),
           this, SLOT(dataChanged( Signal *, TimeRange) ), Qt::QueuedConnection);

  signalViewer->setSignals(&_signals);

  freqSamp->setUnit(tr(" Hz"));
  freqSamp->setPrecision(2);
  freqSamp->setSingleStep(0.25);
  freqSamp->setAdmissibleRange(0.001, 1e99);
  connect(freqSamp, SIGNAL(parametersChanged()), this, SLOT(setSamplingParameters()));
  connect(arrayWindowLength, SIGNAL(valueChanged(double)), this, SLOT(setArrayWindowLength()));
  connect(theoreticalResponse, SIGNAL(kminChanged(double)), this, SLOT(setKmin(double)));
  connect(theoreticalResponse, SIGNAL(kmaxChanged(double)), this, SLOT(setKmax(double)));
  connect(hvWindowLength, SIGNAL(valueChanged(double)), this, SLOT(setHVWindowLength()));

  arrayActivity->setMeasurementDelay(5.0);
  arrayActivity->setDisplayRange(300.0);
  hvActivity->setMeasurementDelay(5.0);
  hvActivity->setDisplayRange(300.0);
  _processUpdateTimer.setInterval(10000);
  connect (&_processUpdateTimer, SIGNAL(timeout()), this, SLOT(updateDataProcess()));
  _displayUpdateTimer.setInterval(5000);
  connect (&_displayUpdateTimer, SIGNAL(timeout()), this, SLOT(updateDataDisplay()));

  connect (startArrayBut, SIGNAL(clicked()), this, SLOT(startArrayProcess()));
  connect (stopArrayBut, SIGNAL(clicked()), this, SLOT(stopArrayProcess()));
  connect (startHVBut, SIGNAL(clicked()), this, SLOT(startHVProcess()));
  connect (stopHVBut, SIGNAL(clicked()), this, SLOT(stopHVProcess()));

  theoreticalResponse->createObjects(false);
  ringEditor->setCoArrayGraph(coArrayMap);
  coArrayMap->mapLayer()->setShowNames(false);

  StationCoordinatesItem * model=new StationCoordinatesItem(this);
  model->setStations(&_array);
  coordinates->setModel(model);
  coordinates->setItemDelegate(new StationCoordinatesDelegate(this) );
  coordinates->setSelectionMode(QAbstractItemView::NoSelection);
  coordinates->setEditTriggers(QAbstractItemView::NoEditTriggers);

  initResultGraph(fkHistogram, _fkGridLayer, _fkDispLimits);
  initResultGraph(hrfkHistogram, _hrfkGridLayer, _hrfkDispLimits);
  initResultGraph(spacHistogram, _spacGridLayer, _spacDispLimits);


  Settings::getWidget(this, "waran");

  // Currently not all tab are implemented
  tab->widget(2)->setEnabled(false);
  tab->widget(4)->setEnabled(false);
  tab->widget(5)->setEnabled(false);
  tab->widget(6)->setEnabled(false);
  tab->widget(7)->setEnabled(false);
  tab->widget(8)->setEnabled(false);
  tab->widget(9)->setEnabled(false);
  tab->widget(10)->setEnabled(false);
}

Description of destructor still missing

References TRACE.

{
  TRACE;
  qDeleteAll(_stations);
  _stations.clear();

  delete _arrayProcess;
  // delete _hvProcess;
}

Member Function Documentation

void WaranWidget::closeEvent ( QCloseEvent *  e) [protected]

References TRACE.

{
  TRACE;
  Settings::setWidget(this, "waran");
  e->accept();
}
void WaranWidget::setFrequencyBandWidth ( double  fbw) [inline]

Referenced by main().

{_frequencyBandWidth=fbw;}

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