PP Class Reference

#include <PP.h>

Inheritance diagram for PP:

Inheritance graph
[legend]
Collaboration diagram for PP:

Collaboration graph
[legend]

List of all members.

Public Member Functions

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

Private Attributes

QColor resColor
QColor supColor
PlotLine::LineType resLineType
PlotLine::LineType supLineType
QString resLabel
QString resLabel2
QString resLabel3
QString supLabel
QString supLabel2
QString supLabel3
QString label
QStringList ppList
QString resColorLabel
QString supColorLabel
QString resLineTypeLabel
QString supLineTypeLabel
QString resLabelLabel
QString resLabel2Label
QString resLabel3Label
QString supLabelLabel
QString supLabel2Label
QString supLabel3Label
QString labelLabel
QString pluginLabel


Detailed Description

Definition at line 24 of file PP.h.


Constructor & Destructor Documentation

PP::PP (  ) 

Definition at line 27 of file PP.cpp.

References IndicatorPlugin::formatList, IndicatorPlugin::FormatString, IndicatorPlugin::helpFile, labelLabel, pluginLabel, IndicatorPlugin::pluginName, ppList, resColorLabel, resLabel2Label, resLabel3Label, resLabelLabel, resLineTypeLabel, setDefaults(), supColorLabel, supLabel2Label, supLabel3Label, supLabelLabel, and supLineTypeLabel.

PP::~PP (  )  [virtual]

Definition at line 57 of file PP.cpp.


Member Function Documentation

Indicator * PP::calculate (  )  [virtual]

Reimplemented from IndicatorPlugin.

Definition at line 76 of file PP.cpp.

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

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

Reimplemented from IndicatorPlugin.

Definition at line 155 of file PP.cpp.

References PrefDialog::addColorItem(), PrefDialog::addTextItem(), PrefDialog::createPage(), PrefDialog::getColor(), PrefDialog::getText(), IndicatorPlugin::helpFile, resColor, resLabel, resLabel2, resLabel3, PrefDialog::setHelpFile(), supColor, supLabel, supLabel2, and supLabel3.

void PP::setDefaults (  ) 

Definition at line 61 of file PP.cpp.

References PlotLine::Horizontal, label, IndicatorPlugin::pluginName, resColor, resLabel, resLabel2, resLabel3, resLineType, supColor, supLabel, supLabel2, supLabel3, and supLineType.

Referenced by PP(), and setIndicatorSettings().

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

Reimplemented from IndicatorPlugin.

Definition at line 258 of file PP.cpp.

References label, labelLabel, pluginLabel, IndicatorPlugin::pluginName, resColor, resColorLabel, resLabel, resLabel2, resLabel2Label, resLabel3, resLabel3Label, resLabelLabel, resLineType, resLineTypeLabel, Setting::setData(), supColor, supColorLabel, supLabel, supLabel2, supLabel2Label, supLabel3, supLabel3Label, supLabelLabel, supLineType, and supLineTypeLabel.

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

Reimplemented from IndicatorPlugin.

Definition at line 205 of file PP.cpp.

References Setting::count(), Setting::getData(), label, labelLabel, resColor, resColorLabel, resLabel, resLabel2, resLabel2Label, resLabel3, resLabel3Label, resLabelLabel, resLineType, resLineTypeLabel, setDefaults(), supColor, supColorLabel, supLabel, supLabel2, supLabel2Label, supLabel3, supLabel3Label, supLabelLabel, supLineType, and supLineTypeLabel.

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

Reimplemented from IndicatorPlugin.

Definition at line 278 of file PP.cpp.

References IndicatorPlugin::checkFormat(), PlotLine::copy(), IndicatorPlugin::formatStringList, getPP(), and ppList.

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

Reimplemented from IndicatorPlugin.

Definition at line 302 of file PP.cpp.

References PrefDialog::addComboItem(), PrefDialog::addTextItem(), PrefDialog::createPage(), PrefDialog::getCombo(), PrefDialog::getText(), IndicatorPlugin::helpFile, ppList, and PrefDialog::setHelpFile().

void PP::getPP ( QPtrList< PlotLine > &  pll  ) 

Definition at line 93 of file PP.cpp.

References PlotLine::append(), BarData::count(), IndicatorPlugin::data, BarData::getClose(), BarData::getHigh(), BarData::getLow(), resColor, resLabel, resLabel2, resLabel3, resLineType, PlotLine::setColor(), PlotLine::setLabel(), PlotLine::setType(), supColor, supLabel, supLabel2, supLabel3, and supLineType.

Referenced by calculate(), and calculateCustom().


Member Data Documentation

QColor PP::resColor [private]

Definition at line 39 of file PP.h.

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

QColor PP::supColor [private]

Definition at line 40 of file PP.h.

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

PlotLine::LineType PP::resLineType [private]

Definition at line 41 of file PP.h.

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

PlotLine::LineType PP::supLineType [private]

Definition at line 42 of file PP.h.

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

QString PP::resLabel [private]

Definition at line 43 of file PP.h.

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

QString PP::resLabel2 [private]

Definition at line 44 of file PP.h.

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

QString PP::resLabel3 [private]

Definition at line 45 of file PP.h.

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

QString PP::supLabel [private]

Definition at line 46 of file PP.h.

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

QString PP::supLabel2 [private]

Definition at line 47 of file PP.h.

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

QString PP::supLabel3 [private]

Definition at line 48 of file PP.h.

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

QString PP::label [private]

Definition at line 49 of file PP.h.

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

QStringList PP::ppList [private]

Definition at line 50 of file PP.h.

Referenced by calculateCustom(), formatDialog(), and PP().

QString PP::resColorLabel [private]

Definition at line 52 of file PP.h.

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

QString PP::supColorLabel [private]

Definition at line 53 of file PP.h.

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

QString PP::resLineTypeLabel [private]

Definition at line 54 of file PP.h.

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

QString PP::supLineTypeLabel [private]

Definition at line 55 of file PP.h.

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

QString PP::resLabelLabel [private]

Definition at line 56 of file PP.h.

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

QString PP::resLabel2Label [private]

Definition at line 57 of file PP.h.

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

QString PP::resLabel3Label [private]

Definition at line 58 of file PP.h.

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

QString PP::supLabelLabel [private]

Definition at line 59 of file PP.h.

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

QString PP::supLabel2Label [private]

Definition at line 60 of file PP.h.

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

QString PP::supLabel3Label [private]

Definition at line 61 of file PP.h.

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

QString PP::labelLabel [private]

Definition at line 62 of file PP.h.

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

QString PP::pluginLabel [private]

Definition at line 63 of file PP.h.

Referenced by getIndicatorSettings(), and PP().


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