Indicator Class Reference

#include <Indicator.h>

List of all members.

Public Member Functions

 Indicator ()
 ~Indicator ()
int getLines ()
void addLine (PlotLine *)
void prependLine (PlotLine *)
PlotLinegetLine (int)
int getTabRow ()
void setTabRow (int)
void clearLines ()
void setEnable (bool)
bool getEnable ()
void setName (QString &)
void getName (QString &)
void setFile (QString &)
void getFile (QString &)
void copy (Indicator *)
void setType (QString &)
void getType (QString &)
void setDateFlag (bool)
bool getDateFlag ()
void setLogScale (bool)
bool getLogScale ()
void setIndicator (Setting &, QString &)

Private Attributes

QPtrList< PlotLinelines
bool enable
QString name
QString file
QString type
int tabRow
bool dateFlag
bool logScale


Detailed Description

Definition at line 30 of file Indicator.h.


Constructor & Destructor Documentation

Indicator::Indicator (  ) 

Definition at line 26 of file Indicator.cpp.

References dateFlag, enable, lines, logScale, and tabRow.

Indicator::~Indicator (  ) 

Definition at line 35 of file Indicator.cpp.


Member Function Documentation

int Indicator::getLines (  ) 

Definition at line 39 of file Indicator.cpp.

References lines.

Referenced by copy(), IndicatorPlot::drawInfo(), IndicatorPlot::drawLines(), IndicatorPlot::getInfo(), IndicatorSummary::run(), Scanner::scan(), DataWindow::setPlot(), and IndicatorPlot::setScale().

void Indicator::addLine ( PlotLine l  ) 

Definition at line 49 of file Indicator.cpp.

References lines.

Referenced by VOL::calculate(), VIDYA::calculate(), VFI::calculate(), THERM::calculate(), TALIB::calculate(), SZ::calculate(), SINWAV::calculate(), PP::calculate(), LOWPASS::calculate(), LMS::calculate(), FI::calculate(), ExScript::calculate(), BARS::calculate(), BARS::calculateMA(), copy(), CUS::createPlot(), and TesterChartPage::updateChart().

void Indicator::prependLine ( PlotLine l  ) 

Definition at line 54 of file Indicator.cpp.

References lines.

Referenced by TALIB::calculate().

PlotLine * Indicator::getLine ( int  i  ) 

Definition at line 44 of file Indicator.cpp.

References lines.

Referenced by copy(), IndicatorPlot::drawInfo(), IndicatorPlot::drawLines(), IndicatorPlot::getInfo(), TesterStopPage::loadCustomLongStop(), TesterStopPage::loadCustomShortStop(), Tester::loadSignals(), IndicatorSummary::run(), Scanner::scan(), DataWindow::setPlot(), and IndicatorPlot::setScale().

int Indicator::getTabRow (  ) 

Definition at line 64 of file Indicator.cpp.

References tabRow.

Referenced by QtstalkerApp::addIndicatorButton(), copy(), QtstalkerApp::slotDeleteIndicator(), and QtstalkerApp::slotDisableIndicator().

void Indicator::setTabRow ( int  d  ) 

Definition at line 59 of file Indicator.cpp.

References tabRow.

Referenced by copy(), IndicatorPage::newIndicator(), and setIndicator().

void Indicator::clearLines (  ) 

Definition at line 69 of file Indicator.cpp.

References lines.

void Indicator::setEnable ( bool  status  ) 

Definition at line 74 of file Indicator.cpp.

References enable.

Referenced by copy(), and setIndicator().

bool Indicator::getEnable (  ) 

Definition at line 79 of file Indicator.cpp.

References enable.

Referenced by QtstalkerApp::addIndicatorButton(), copy(), IndicatorPlot::drawInfo(), IndicatorPlot::drawLines(), IndicatorPage::editIndicator(), IndicatorPlot::getInfo(), QtstalkerApp::loadChart(), IndicatorSummary::loadIndicators(), IndicatorPlot::setScale(), and QtstalkerApp::slotEnableIndicator().

void Indicator::setName ( QString &  d  ) 

Definition at line 84 of file Indicator.cpp.

References name.

Referenced by IndicatorPage::newIndicator(), setIndicator(), and TesterChartPage::updateChart().

void Indicator::getName ( QString &  d  ) 

Definition at line 89 of file Indicator.cpp.

References name.

Referenced by QtstalkerApp::slotDisableIndicator(), IndicatorPlot::slotEditIndicator(), IndicatorPlot::slotIndicatorHelp(), QtstalkerApp::slotIndicatorSummary(), IndicatorPlot::slotNewChartObject(), and TesterChartPage::updateChart().

void Indicator::setFile ( QString &  d  ) 

Definition at line 104 of file Indicator.cpp.

References file.

Referenced by IndicatorPage::newIndicator(), and setIndicator().

void Indicator::getFile ( QString &  d  ) 

Definition at line 109 of file Indicator.cpp.

References file.

Referenced by QtstalkerApp::loadIndicator(), IndicatorSummary::run(), QtstalkerApp::slotEditIndicator(), QtstalkerApp::slotNewIndicator(), IndicatorPlot::toggleDate(), and IndicatorPlot::toggleLog().

void Indicator::copy ( Indicator d  ) 

Definition at line 114 of file Indicator.cpp.

References addLine(), PlotLine::copy(), getDateFlag(), getEnable(), getLine(), getLines(), getLogScale(), getTabRow(), setDateFlag(), setEnable(), setLogScale(), and setTabRow().

Referenced by QtstalkerApp::loadIndicator().

void Indicator::setType ( QString &  d  ) 

Definition at line 94 of file Indicator.cpp.

References type.

Referenced by IndicatorPage::newIndicator(), and setIndicator().

void Indicator::getType ( QString &  d  ) 

Definition at line 99 of file Indicator.cpp.

References type.

Referenced by QtstalkerApp::addIndicatorButton(), QtstalkerApp::loadIndicator(), IndicatorSummary::loadIndicators(), and IndicatorSummary::run().

void Indicator::setDateFlag ( bool  d  ) 

Definition at line 134 of file Indicator.cpp.

References dateFlag.

Referenced by VOL::calculate(), VIDYA::calculate(), VFI::calculate(), THERM::calculate(), TALIB::calculate(), SZ::calculate(), SINWAV::calculate(), PP::calculate(), LOWPASS::calculate(), LMS::calculate(), FI::calculate(), ExScript::calculate(), CUS::calculate(), BARS::calculate(), copy(), and setIndicator().

bool Indicator::getDateFlag (  ) 

Definition at line 139 of file Indicator.cpp.

References dateFlag.

Referenced by Plot::addIndicator(), and copy().

void Indicator::setLogScale ( bool  d  ) 

Definition at line 144 of file Indicator.cpp.

References logScale.

Referenced by VOL::calculate(), VIDYA::calculate(), VFI::calculate(), THERM::calculate(), TALIB::calculate(), SZ::calculate(), SINWAV::calculate(), PP::calculate(), LOWPASS::calculate(), LMS::calculate(), FI::calculate(), ExScript::calculate(), CUS::calculate(), BARS::calculate(), copy(), and setIndicator().

bool Indicator::getLogScale (  ) 

Definition at line 149 of file Indicator.cpp.

References logScale.

Referenced by Plot::addIndicator(), and copy().

void Indicator::setIndicator ( Setting set,
QString &  f 
)

Definition at line 154 of file Indicator.cpp.

References setDateFlag(), setEnable(), setFile(), setLogScale(), setName(), setTabRow(), and setType().

Referenced by QtstalkerApp::addIndicatorButton(), IndicatorPage::addLocalIndicator(), IndicatorPage::editIndicator(), QtstalkerApp::loadChart(), IndicatorSummary::loadIndicators(), QtstalkerApp::slotDeleteIndicator(), QtstalkerApp::slotDisableIndicator(), and QtstalkerApp::slotEnableIndicator().


Member Data Documentation

QPtrList<PlotLine> Indicator::lines [private]

Definition at line 58 of file Indicator.h.

Referenced by addLine(), clearLines(), getLine(), getLines(), Indicator(), and prependLine().

bool Indicator::enable [private]

Definition at line 59 of file Indicator.h.

Referenced by getEnable(), Indicator(), and setEnable().

QString Indicator::name [private]

Definition at line 60 of file Indicator.h.

Referenced by getName(), and setName().

QString Indicator::file [private]

Definition at line 61 of file Indicator.h.

Referenced by getFile(), and setFile().

QString Indicator::type [private]

Definition at line 62 of file Indicator.h.

Referenced by getType(), and setType().

int Indicator::tabRow [private]

Definition at line 63 of file Indicator.h.

Referenced by getTabRow(), Indicator(), and setTabRow().

bool Indicator::dateFlag [private]

Definition at line 64 of file Indicator.h.

Referenced by getDateFlag(), Indicator(), and setDateFlag().

bool Indicator::logScale [private]

Definition at line 65 of file Indicator.h.

Referenced by getLogScale(), Indicator(), and setLogScale().


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