Brief description of class still missing. More...
#include <SummaryMapOptions.h>
Signals | |
void | touched () |
Public Member Functions | |
const Legend & | categories () const |
StationLine::Label | labels () const |
int | peakIndex () const |
StationLine::PeakSelection | peakSelection () const |
StationResults::PeakValue | peakValue () const |
int | peakValueDecimals () const |
void | setCategories (const Legend &c) |
void | setLabels (StationLine::Label l) |
void | setPeakIndex (int index) |
void | setPeakSelection (StationLine::PeakSelection v) |
void | setPeakValue (StationResults::PeakValue v) |
void | setPeakValueDecimals (int d) |
void | setShowBubbles (bool b) |
bool | showBubbles () const |
SummaryMapOptions (QWidget *parent=0) | |
~SummaryMapOptions () |
Brief description of class still missing.
Full description of class still missing
MonoStation::SummaryMapOptions::SummaryMapOptions | ( | QWidget * | parent = 0 | ) |
Description of constructor still missing
References TRACE.
: QWidget(parent) { TRACE; setupUi(this); _legendProperties=0; connect(peakNumber, SIGNAL(clicked()), this, SLOT(commit())); connect(peakIndexEdit, SIGNAL(valueChanged(int)), this, SLOT(commit())); connect(lowestPeak, SIGNAL(clicked()), this, SLOT(commit())); connect(highestPeak, SIGNAL(clicked()), this, SLOT(commit())); connect(maxAmplitudePeak, SIGNAL(clicked()), this, SLOT(commit())); connect(peakFrequency, SIGNAL(clicked()), this, SLOT(commit())); connect(peakAmplitude, SIGNAL(clicked()), this, SLOT(commit())); connect(labelStationName, SIGNAL(clicked()), this, SLOT(commit())); connect(labelPeakValue, SIGNAL(clicked()), this, SLOT(commit())); connect(peakValueDecimalsEdit, SIGNAL(valueChanged(int)), this, SLOT(commit())); connect(noLabel, SIGNAL(clicked()), this, SLOT(commit())); connect(showBubblesEdit, SIGNAL(clicked()), this, SLOT(commit())); }
const Legend& MonoStation::SummaryMapOptions::categories | ( | ) | const [inline] |
{return _categories;}
References MonoStation::StationLine::NoLabel, MonoStation::StationLine::PeakValue, and MonoStation::StationLine::StationName.
{ if(labelPeakValue->isChecked()) { return StationLine::PeakValue; } else if(noLabel->isChecked()) { return StationLine::NoLabel; } else { return StationLine::StationName; } }
int MonoStation::SummaryMapOptions::peakIndex | ( | ) | const |
{
return peakIndexEdit->value()-1;
}
References MonoStation::StationLine::PeakHighest, MonoStation::StationLine::PeakLowest, MonoStation::StationLine::PeakMaximum, and MonoStation::StationLine::PeakNumber.
{ if(lowestPeak->isChecked()) { return StationLine::PeakLowest; } else if(highestPeak->isChecked()) { return StationLine::PeakHighest; } else if(maxAmplitudePeak->isChecked()) { return StationLine::PeakMaximum; } else { return StationLine::PeakNumber; } }
References MonoStation::StationResults::PeakAmplitude, and MonoStation::StationResults::PeakFrequency.
{ if(peakFrequency->isChecked()) { return StationResults::PeakFrequency; } else { return StationResults::PeakAmplitude; } }
int MonoStation::SummaryMapOptions::peakValueDecimals | ( | ) | const |
{
return peakValueDecimalsEdit->value();
}
void MonoStation::SummaryMapOptions::setCategories | ( | const Legend & | c | ) | [inline] |
{_categories=c;}
References MonoStation::StationLine::NoLabel, MonoStation::StationLine::PeakValue, MonoStation::StationLine::StationName, and TRACE.
{ TRACE; switch(l) { case StationLine::StationName: labelStationName->setChecked(true); break; case StationLine::PeakValue: labelPeakValue->setChecked(true); break; case StationLine::NoLabel: noLabel->setChecked(true); break; } }
void MonoStation::SummaryMapOptions::setPeakIndex | ( | int | index | ) |
{ peakIndexEdit->setValue(index+1); }
References MonoStation::StationLine::PeakHighest, MonoStation::StationLine::PeakLowest, MonoStation::StationLine::PeakMaximum, and MonoStation::StationLine::PeakNumber.
{ switch(v) { case StationLine::PeakNumber: peakNumber->setChecked(true); break; case StationLine::PeakLowest: lowestPeak->setChecked(true); break; case StationLine::PeakHighest: highestPeak->setChecked(true); break; case StationLine::PeakMaximum: maxAmplitudePeak->setChecked(true); break; } }
References MonoStation::StationResults::PeakAmplitude, and MonoStation::StationResults::PeakFrequency.
{ switch(v) { case StationResults::PeakFrequency: peakFrequency->setChecked(true); break; case StationResults::PeakAmplitude: peakAmplitude->setChecked(true); break; } }
void MonoStation::SummaryMapOptions::setPeakValueDecimals | ( | int | d | ) |
{ peakValueDecimalsEdit->setValue(d); }
void MonoStation::SummaryMapOptions::setShowBubbles | ( | bool | b | ) |
{ showBubblesEdit->setChecked(b); }
bool MonoStation::SummaryMapOptions::showBubbles | ( | ) | const |
{
return showBubblesEdit->isChecked();
}
void MonoStation::SummaryMapOptions::touched | ( | ) | [signal] |