All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Public Types | Public Slots | Signals | Public Member Functions | Static Public Member Functions
GeopsyGui::SignalsProperties Class Reference

Brief description of class still missing. More...

#include <SignalsProperties.h>

Inheritance diagram for GeopsyGui::SignalsProperties:
QGpGuiTools::PropertyWidget

List of all members.

Public Types

enum  Properties {
  Colors, IsSpectrum, Wiggle, VariableArea,
  Normalize, NormalizeValue, ClipMode, ClipValue,
  Overlap, Offset, YAxis, TimeRange,
  AroundPickName, BeforePickDelay, AfterPickDelay, CustomRange
}

Public Slots

void on_clipMode_currentIndexChanged ()
void on_colors_clicked ()
void on_defaultPaletteValues_clicked ()
void on_normalize_currentIndexChanged ()
void on_timeRange_currentIndexChanged ()

Signals

void setPaletteValues (ColorPalette pal)

Public Member Functions

void setCurrentSubPool (SubSignalPool *subPool)
virtual void setWidgets ()
 SignalsProperties (QWidget *parent=0)
 ~SignalsProperties ()

Static Public Member Functions

static int clip2item (SignalLayer::Clip n)
static SignalLayer::Clip item2clip (int index)
static SignalLayer::Normalize item2normalize (int index)
static SignalLayer::Offset item2offset (int index)
static SignalLayer::TimeRange item2timeRange (int index)
static SignalLayer::YAxis item2yAxis (int index)
static int normalize2item (SignalLayer::Normalize n)
static int offset2item (SignalLayer::Offset n)
static int timeRange2item (SignalLayer::TimeRange n)
static int yAxis2item (SignalLayer::YAxis n)

Detailed Description

Brief description of class still missing.

Full description of class still missing


Member Enumeration Documentation

Enumerator:
Colors 
IsSpectrum 
Wiggle 
VariableArea 
Normalize 
NormalizeValue 
ClipMode 
ClipValue 
Overlap 
Offset 
YAxis 
TimeRange 
AroundPickName 
BeforePickDelay 
AfterPickDelay 
CustomRange 

Constructor & Destructor Documentation

References QGpGuiTools::PropertyWidget::addProperty(), AfterPickDelay, AroundPickName, BeforePickDelay, ClipMode, ClipValue, Colors, CustomRange, IsSpectrum, Normalize, NormalizeValue, Offset, Overlap, TRACE, VariableArea, Wiggle, and YAxis.

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

  // Create properties
  addProperty(Colors, colors);
  addProperty(IsSpectrum);
  addProperty(Wiggle, wiggle);
  addProperty(VariableArea, variableArea);
  addProperty(Normalize, normalize);

  addProperty(NormalizeValue, normalizeValue, normalizeLabel);
  addProperty(ClipMode, clipMode);
  addProperty(ClipValue, clipValue);
  addProperty(Overlap, overlap, overlapLabel);
  addProperty(Offset, offset);

  addProperty(YAxis, yAxis);

  addProperty(TimeRange, timeRange);
  addProperty(AroundPickName, aroundPickEdit, aroundPickLabel);
  addProperty(BeforePickDelay, beforePickEdit, beforePickLabel);
  addProperty(AfterPickDelay, afterPickEdit, afterPickLabel);
  addProperty(CustomRange, customTimeRange);
}

References TRACE.

{
  TRACE;
  // no need to delete child widgets, Qt does it all for us
}

Member Function Documentation

References TRACE.

Referenced by setWidgets().

{
  TRACE;
  clipValue->setEnabled(clipMode->currentIndex() > 1);
}

References TRACE.

{
  TRACE;
  bool b=colors->isChecked();
  defaultPaletteValues->setEnabled(b);
  wiggle->setEnabled( !b);
  variableArea->setEnabled( !b);
}

References IsSpectrum, setPaletteValues(), QGpGuiTools::ColorPalette::setVLinear(), TRACE, and QGpGuiTools::PropertyWidget::value().

{
  TRACE;
  bool ok;
  double val=fabs(overlap->text().toDouble(&ok) );
  ColorPalette pal;
  if(ok) {
     if(value( IsSpectrum).toBool())
      pal.setVLinear(0, val);
    else
      pal.setVLinear( -val * 0.5, val * 0.5);
    emit setPaletteValues(pal);
  }
}

References TRACE.

Referenced by setWidgets().

{
  TRACE;
  normalizeValue->setEnabled(normalize->currentIndex()==4);
}

References TRACE.

Referenced by setWidgets().

{
  TRACE;
  if(timeRange->currentIndex()==1) {
    aroundPickEdit->show();
    aroundPickLabel->show();
    beforePickEdit->show();
    beforePickLabel->show();
    afterPickEdit->show();
    afterPickLabel->show();
  } else {
    aroundPickEdit->hide();
    aroundPickLabel->hide();
    beforePickEdit->hide();
    beforePickLabel->hide();
    afterPickEdit->hide();
    afterPickLabel->hide();
  }
  if(timeRange->currentIndex()==2) {
    customTimeRange->show();
  } else {
    customTimeRange->hide();
  }
}

Referenced by GeopsyGui::SignalLayer::addProperties().

{
  customTimeRange->blockSignals(true);
  customTimeRange->setPicks(subPool);
  customTimeRange->blockSignals(false);
  aroundPickEdit->clear();
  aroundPickEdit->addItems(TimePick::registeredNames());
}

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