ExScript Class Reference

#include <ExScript.h>

Inheritance diagram for ExScript:

Inheritance graph
[legend]
Collaboration diagram for ExScript:

Collaboration graph
[legend]

List of all members.

Public Slots

void readFromStdout ()
void timerDone ()

Public Member Functions

 ExScript ()
virtual ~ExScript ()
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 getInput (QString &)
PlotLinedoScript ()

Private Attributes

QColor color
PlotLine::LineType lineType
QString label
QString scriptPath
QString comlineParms
QProcess * proc
QString buffer
QTimer * timer
int seconds
QString colorLabel
QString labelLabel
QString lineTypeLabel
QString scriptPathLabel
QString comlineParmsLabel
QString pluginLabel
QString dateLabel
QString openLabel
QString highLabel
QString lowLabel
QString closeLabel
QString volumeLabel
QString oiLabel
QString timeoutLabel
bool dateFlag
bool openFlag
bool highFlag
bool lowFlag
bool closeFlag
bool volumeFlag
bool oiFlag


Detailed Description

Definition at line 26 of file ExScript.h.


Constructor & Destructor Documentation

ExScript::ExScript (  ) 

Definition at line 28 of file ExScript.cpp.

References closeLabel, colorLabel, comlineParmsLabel, dateLabel, IndicatorPlugin::FormatBool, IndicatorPlugin::formatList, IndicatorPlugin::FormatString, IndicatorPlugin::helpFile, highLabel, labelLabel, lineTypeLabel, lowLabel, oiLabel, openLabel, pluginLabel, IndicatorPlugin::pluginName, proc, scriptPathLabel, setDefaults(), timeoutLabel, timer, timerDone(), and volumeLabel.

ExScript::~ExScript (  )  [virtual]

Definition at line 65 of file ExScript.cpp.

References proc, and timer.


Member Function Documentation

Indicator * ExScript::calculate (  )  [virtual]

Reimplemented from IndicatorPlugin.

Definition at line 88 of file ExScript.cpp.

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

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

Reimplemented from IndicatorPlugin.

Definition at line 226 of file ExScript.cpp.

References PrefDialog::addCheckItem(), PrefDialog::addColorItem(), PrefDialog::addComboItem(), PrefDialog::addFileItem(), PrefDialog::addIntItem(), PrefDialog::addTextItem(), closeFlag, color, comlineParms, PrefDialog::createPage(), dateFlag, PrefDialog::getCheck(), PrefDialog::getColor(), PrefDialog::getComboIndex(), PrefDialog::getFile(), PrefDialog::getInt(), PrefDialog::getText(), IndicatorPlugin::helpFile, highFlag, label, lineType, IndicatorPlugin::lineTypes, lowFlag, oiFlag, openFlag, scriptPath, seconds, PrefDialog::setHelpFile(), and volumeFlag.

void ExScript::setDefaults (  ) 

Definition at line 73 of file ExScript.cpp.

References closeFlag, color, dateFlag, highFlag, label, PlotLine::Line, lineType, lowFlag, oiFlag, openFlag, IndicatorPlugin::pluginName, seconds, and volumeFlag.

Referenced by ExScript(), and setIndicatorSettings().

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

Reimplemented from IndicatorPlugin.

Definition at line 357 of file ExScript.cpp.

References closeFlag, closeLabel, color, colorLabel, comlineParms, comlineParmsLabel, dateFlag, dateLabel, highFlag, highLabel, label, labelLabel, lineType, lineTypeLabel, lowFlag, lowLabel, oiFlag, oiLabel, openFlag, openLabel, pluginLabel, IndicatorPlugin::pluginName, scriptPath, scriptPathLabel, seconds, Setting::setData(), timeoutLabel, volumeFlag, and volumeLabel.

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

Reimplemented from IndicatorPlugin.

Definition at line 296 of file ExScript.cpp.

References closeFlag, closeLabel, color, colorLabel, comlineParms, comlineParmsLabel, Setting::count(), dateFlag, dateLabel, Setting::getData(), highFlag, highLabel, label, labelLabel, lineType, lineTypeLabel, lowFlag, lowLabel, oiFlag, oiLabel, openFlag, openLabel, scriptPath, scriptPathLabel, seconds, setDefaults(), timeoutLabel, volumeFlag, and volumeLabel.

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

Reimplemented from IndicatorPlugin.

Definition at line 385 of file ExScript.cpp.

References IndicatorPlugin::checkFormat(), closeFlag, comlineParms, dateFlag, doScript(), IndicatorPlugin::formatStringList, highFlag, lowFlag, oiFlag, openFlag, scriptPath, and volumeFlag.

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

Reimplemented from IndicatorPlugin.

Definition at line 433 of file ExScript.cpp.

References PrefDialog::addCheckItem(), PrefDialog::addFileItem(), PrefDialog::addTextItem(), closeFlag, comlineParms, PrefDialog::createPage(), dateFlag, PrefDialog::getCheck(), PrefDialog::getFile(), PrefDialog::getText(), IndicatorPlugin::helpFile, highFlag, lowFlag, oiFlag, openFlag, scriptPath, PrefDialog::setHelpFile(), and volumeFlag.

void ExScript::getInput ( QString &  ss  ) 

Definition at line 180 of file ExScript.cpp.

References closeFlag, BarData::count(), IndicatorPlugin::data, dateFlag, BarData::getBar(), Bar::getClose(), Bar::getDateTimeString(), Bar::getHigh(), Bar::getLow(), Bar::getOI(), Bar::getOpen(), Bar::getVolume(), highFlag, lowFlag, oiFlag, openFlag, and volumeFlag.

Referenced by doScript().

PlotLine * ExScript::doScript (  ) 

Definition at line 99 of file ExScript.cpp.

References PlotLine::append(), buffer, closeFlag, color, comlineParms, dateFlag, getInput(), highFlag, label, lineType, lowFlag, oiFlag, openFlag, proc, readFromStdout(), scriptPath, seconds, PlotLine::setColor(), PlotLine::setLabel(), PlotLine::setType(), timer, volumeFlag, and IndicatorPlugin::wakeup().

Referenced by calculate(), and calculateCustom().

void ExScript::readFromStdout (  )  [slot]

Definition at line 218 of file ExScript.cpp.

References buffer, and proc.

Referenced by doScript().

void ExScript::timerDone (  )  [slot]

Definition at line 524 of file ExScript.cpp.

References proc, seconds, and timer.

Referenced by ExScript().


Member Data Documentation

QColor ExScript::color [private]

Definition at line 48 of file ExScript.h.

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

PlotLine::LineType ExScript::lineType [private]

Definition at line 49 of file ExScript.h.

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

QString ExScript::label [private]

Definition at line 50 of file ExScript.h.

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

QString ExScript::scriptPath [private]

Definition at line 51 of file ExScript.h.

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

QString ExScript::comlineParms [private]

Definition at line 52 of file ExScript.h.

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

QProcess* ExScript::proc [private]

Definition at line 53 of file ExScript.h.

Referenced by doScript(), ExScript(), readFromStdout(), timerDone(), and ~ExScript().

QString ExScript::buffer [private]

Definition at line 54 of file ExScript.h.

Referenced by doScript(), and readFromStdout().

QTimer* ExScript::timer [private]

Definition at line 55 of file ExScript.h.

Referenced by doScript(), ExScript(), timerDone(), and ~ExScript().

int ExScript::seconds [private]

Definition at line 56 of file ExScript.h.

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

QString ExScript::colorLabel [private]

Definition at line 58 of file ExScript.h.

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

QString ExScript::labelLabel [private]

Definition at line 59 of file ExScript.h.

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

QString ExScript::lineTypeLabel [private]

Definition at line 60 of file ExScript.h.

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

QString ExScript::scriptPathLabel [private]

Definition at line 61 of file ExScript.h.

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

QString ExScript::comlineParmsLabel [private]

Definition at line 62 of file ExScript.h.

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

QString ExScript::pluginLabel [private]

Definition at line 63 of file ExScript.h.

Referenced by ExScript(), and getIndicatorSettings().

QString ExScript::dateLabel [private]

Definition at line 64 of file ExScript.h.

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

QString ExScript::openLabel [private]

Definition at line 65 of file ExScript.h.

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

QString ExScript::highLabel [private]

Definition at line 66 of file ExScript.h.

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

QString ExScript::lowLabel [private]

Definition at line 67 of file ExScript.h.

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

QString ExScript::closeLabel [private]

Definition at line 68 of file ExScript.h.

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

QString ExScript::volumeLabel [private]

Definition at line 69 of file ExScript.h.

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

QString ExScript::oiLabel [private]

Definition at line 70 of file ExScript.h.

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

QString ExScript::timeoutLabel [private]

Definition at line 71 of file ExScript.h.

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

bool ExScript::dateFlag [private]

Reimplemented from IndicatorPlugin.

Definition at line 73 of file ExScript.h.

Referenced by calculate(), calculateCustom(), doScript(), formatDialog(), getIndicatorSettings(), getInput(), indicatorPrefDialog(), setDefaults(), and setIndicatorSettings().

bool ExScript::openFlag [private]

Definition at line 74 of file ExScript.h.

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

bool ExScript::highFlag [private]

Definition at line 75 of file ExScript.h.

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

bool ExScript::lowFlag [private]

Definition at line 76 of file ExScript.h.

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

bool ExScript::closeFlag [private]

Definition at line 77 of file ExScript.h.

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

bool ExScript::volumeFlag [private]

Definition at line 78 of file ExScript.h.

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

bool ExScript::oiFlag [private]

Definition at line 79 of file ExScript.h.

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


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