SZ Class Reference

#include <SZ.h>

Inheritance diagram for SZ:

Inheritance graph
[legend]
Collaboration diagram for SZ:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 SZ ()
virtual ~SZ ()
Indicatorcalculate ()
int indicatorPrefDialog (QWidget *)
void setDefaults ()
PlotLinecalculateCustom (QString &, QPtrList< PlotLine > &)
void getIndicatorSettings (Setting &)
void setIndicatorSettings (Setting &)
void formatDialog (QStringList &vl, QString &rv, QString &rs)
PlotLinegetSZ ()

Private Attributes

QColor color
PlotLine::LineType lineType
double coefficient
int period
int no_decline_period
QString method
QStringList methodList
QString label
QString colorLabel
QString lineTypeLabel
QString periodLabel
QString noDeclinePeriodLabel
QString coefficientLabel
QString methodLabel
QString labelLabel
QString pluginLabel


Detailed Description

Definition at line 24 of file SZ.h.


Constructor & Destructor Documentation

SZ::SZ (  ) 

Definition at line 32 of file SZ.cpp.

References coefficientLabel, colorLabel, IndicatorPlugin::FormatDouble, IndicatorPlugin::FormatInteger, IndicatorPlugin::formatList, IndicatorPlugin::FormatString, IndicatorPlugin::helpFile, labelLabel, lineTypeLabel, methodLabel, methodList, noDeclinePeriodLabel, periodLabel, pluginLabel, IndicatorPlugin::pluginName, and setDefaults().

SZ::~SZ (  )  [virtual]

Definition at line 57 of file SZ.cpp.


Member Function Documentation

Indicator * SZ::calculate (  )  [virtual]

Reimplemented from IndicatorPlugin.

Definition at line 72 of file SZ.cpp.

References Indicator::addLine(), IndicatorPlugin::dateFlag, getSZ(), IndicatorPlugin::logScale, Indicator::setDateFlag(), and Indicator::setLogScale().

int SZ::indicatorPrefDialog ( QWidget *  w  )  [virtual]

Reimplemented from IndicatorPlugin.

Definition at line 208 of file SZ.cpp.

References PrefDialog::addColorItem(), PrefDialog::addComboItem(), PrefDialog::addDoubleItem(), PrefDialog::addIntItem(), PrefDialog::addTextItem(), coefficient, color, PrefDialog::createPage(), PrefDialog::getColor(), PrefDialog::getCombo(), PrefDialog::getComboIndex(), PrefDialog::getDouble(), PrefDialog::getInt(), PrefDialog::getText(), IndicatorPlugin::helpFile, label, lineType, IndicatorPlugin::lineTypes, method, methodList, no_decline_period, period, and PrefDialog::setHelpFile().

void SZ::setDefaults (  ) 

Definition at line 61 of file SZ.cpp.

References coefficient, color, label, PlotLine::Line, lineType, method, no_decline_period, period, and IndicatorPlugin::pluginName.

Referenced by setIndicatorSettings(), and SZ().

PlotLine * SZ::calculateCustom ( QString &  p,
QPtrList< PlotLine > &  d 
) [virtual]

Reimplemented from IndicatorPlugin.

Definition at line 305 of file SZ.cpp.

References IndicatorPlugin::checkFormat(), coefficient, IndicatorPlugin::formatStringList, getSZ(), method, methodList, no_decline_period, and period.

void SZ::getIndicatorSettings ( Setting dict  )  [virtual]

Reimplemented from IndicatorPlugin.

Definition at line 288 of file SZ.cpp.

References coefficient, coefficientLabel, color, colorLabel, label, labelLabel, lineType, lineTypeLabel, method, methodLabel, no_decline_period, noDeclinePeriodLabel, period, periodLabel, pluginLabel, IndicatorPlugin::pluginName, and Setting::setData().

void SZ::setIndicatorSettings ( Setting dict  )  [virtual]

Reimplemented from IndicatorPlugin.

Definition at line 251 of file SZ.cpp.

References coefficient, coefficientLabel, color, colorLabel, Setting::count(), Setting::getData(), label, labelLabel, lineType, lineTypeLabel, method, methodLabel, no_decline_period, noDeclinePeriodLabel, period, periodLabel, and setDefaults().

void SZ::formatDialog ( QStringList &  vl,
QString &  rv,
QString &  rs 
) [virtual]

Reimplemented from IndicatorPlugin.

Definition at line 326 of file SZ.cpp.

References PrefDialog::addComboItem(), PrefDialog::addDoubleItem(), PrefDialog::addIntItem(), PrefDialog::addTextItem(), coefficient, PrefDialog::createPage(), PrefDialog::getCombo(), PrefDialog::getDouble(), PrefDialog::getInt(), PrefDialog::getText(), IndicatorPlugin::helpFile, method, methodList, no_decline_period, period, and PrefDialog::setHelpFile().

PlotLine * SZ::getSZ (  ) 

Definition at line 81 of file SZ.cpp.

References PlotLine::append(), coefficient, color, BarData::count(), IndicatorPlugin::data, BarData::getHigh(), BarData::getLow(), lineType, method, no_decline_period, period, PlotLine::setColor(), PlotLine::setLabel(), and PlotLine::setType().

Referenced by calculate(), and calculateCustom().


Member Data Documentation

QColor SZ::color [private]

Definition at line 39 of file SZ.h.

Referenced by getIndicatorSettings(), getSZ(), indicatorPrefDialog(), setDefaults(), and setIndicatorSettings().

PlotLine::LineType SZ::lineType [private]

Definition at line 40 of file SZ.h.

Referenced by getIndicatorSettings(), getSZ(), indicatorPrefDialog(), setDefaults(), and setIndicatorSettings().

double SZ::coefficient [private]

Definition at line 41 of file SZ.h.

Referenced by calculateCustom(), formatDialog(), getIndicatorSettings(), getSZ(), indicatorPrefDialog(), setDefaults(), and setIndicatorSettings().

int SZ::period [private]

Definition at line 42 of file SZ.h.

Referenced by calculateCustom(), formatDialog(), getIndicatorSettings(), getSZ(), indicatorPrefDialog(), setDefaults(), and setIndicatorSettings().

int SZ::no_decline_period [private]

Definition at line 43 of file SZ.h.

Referenced by calculateCustom(), formatDialog(), getIndicatorSettings(), getSZ(), indicatorPrefDialog(), setDefaults(), and setIndicatorSettings().

QString SZ::method [private]

Definition at line 44 of file SZ.h.

Referenced by calculateCustom(), formatDialog(), getIndicatorSettings(), getSZ(), indicatorPrefDialog(), setDefaults(), and setIndicatorSettings().

QStringList SZ::methodList [private]

Definition at line 45 of file SZ.h.

Referenced by calculateCustom(), formatDialog(), indicatorPrefDialog(), and SZ().

QString SZ::label [private]

Definition at line 46 of file SZ.h.

Referenced by getIndicatorSettings(), indicatorPrefDialog(), setDefaults(), and setIndicatorSettings().

QString SZ::colorLabel [private]

Definition at line 48 of file SZ.h.

Referenced by getIndicatorSettings(), setIndicatorSettings(), and SZ().

QString SZ::lineTypeLabel [private]

Definition at line 49 of file SZ.h.

Referenced by getIndicatorSettings(), setIndicatorSettings(), and SZ().

QString SZ::periodLabel [private]

Definition at line 50 of file SZ.h.

Referenced by getIndicatorSettings(), setIndicatorSettings(), and SZ().

QString SZ::noDeclinePeriodLabel [private]

Definition at line 51 of file SZ.h.

Referenced by getIndicatorSettings(), setIndicatorSettings(), and SZ().

QString SZ::coefficientLabel [private]

Definition at line 52 of file SZ.h.

Referenced by getIndicatorSettings(), setIndicatorSettings(), and SZ().

QString SZ::methodLabel [private]

Definition at line 53 of file SZ.h.

Referenced by getIndicatorSettings(), setIndicatorSettings(), and SZ().

QString SZ::labelLabel [private]

Definition at line 54 of file SZ.h.

Referenced by getIndicatorSettings(), setIndicatorSettings(), and SZ().

QString SZ::pluginLabel [private]

Definition at line 55 of file SZ.h.

Referenced by getIndicatorSettings(), and SZ().


The documentation for this class was generated from the following files: