#include <TrendLine.h>
Public Slots | |
void | prefDialog () |
COBase::Status | pointerClick (QPoint &, QDateTime &, double) |
void | pointerMoving (QPixmap &, QPoint &, QDateTime &, double) |
Public Member Functions | |
TrendLine () | |
~TrendLine () | |
void | draw (QPixmap &, Scaler &, int, int, int) |
void | newObject (QString &, QString &) |
double | getHigh () |
double | getLow () |
void | drawMovingPointer (QPixmap &, QPoint &) |
void | loadDefaults () |
void | saveDefaults () |
void | getSettings (Setting &) |
void | setSettings (Setting &) |
void | setDate2 (QDateTime &) |
void | getDate2 (QDateTime &) |
void | setValue2 (double) |
double | getValue2 () |
int | isGrabSelected (QPoint point) |
bool | getUseBar () |
void | getBar (QString &) |
bool | getExtend () |
void | adjustForSplit (QDateTime &, double) |
Protected Attributes | |
bool | usebar |
bool | extend |
QString | bar |
int | moveFlag |
QDateTime | tx |
double | ty |
int | mpx |
int | mpx2 |
int | mpy |
int | mpy2 |
QDateTime | date2 |
double | value2 |
QString | sdateLabel |
QString | edateLabel |
QString | svalueLabel |
QString | evalueLabel |
QString | fieldLabel |
QString | usebarLabel |
QString | extendLabel |
Definition at line 31 of file TrendLine.h.
TrendLine::TrendLine | ( | ) |
Definition at line 27 of file TrendLine.cpp.
References bar, COBase::date, date2, COBase::defaultColor, edateLabel, evalueLabel, extend, extendLabel, fieldLabel, COBase::helpFile, loadDefaults(), sdateLabel, svalueLabel, COBase::type, usebar, and usebarLabel.
TrendLine::~TrendLine | ( | ) |
Definition at line 48 of file TrendLine.cpp.
void TrendLine::draw | ( | QPixmap & | buffer, | |
Scaler & | scaler, | |||
int | startIndex, | |||
int | pixelspace, | |||
int | startX | |||
) | [virtual] |
Reimplemented from COBase.
Definition at line 52 of file TrendLine.cpp.
References bar, COBase::clearGrabHandles(), COBase::clearSelectionArea(), Scaler::convertToY(), COBase::data, COBase::date, date2, BarData::getClose(), COBase::getColor(), getExtend(), BarData::getHigh(), BarData::getLow(), BarData::getOpen(), COBase::getStatus(), getUseBar(), COBase::getValue(), getValue2(), BarData::getX(), HANDLE_WIDTH, COBase::Selected, COBase::setGrabHandle(), COBase::setSelectionArea(), tx, and ty.
void TrendLine::newObject | ( | QString & | ind, | |
QString & | n | |||
) | [virtual] |
Reimplemented from COBase.
Definition at line 229 of file TrendLine.cpp.
References COBase::ClickWait, COBase::indicator, COBase::message(), mpx2, mpy2, COBase::name, COBase::plot, and COBase::status.
double TrendLine::getHigh | ( | ) | [virtual] |
Reimplemented from COBase.
Definition at line 406 of file TrendLine.cpp.
References COBase::getValue(), and getValue2().
double TrendLine::getLow | ( | ) | [virtual] |
Reimplemented from COBase.
Definition at line 418 of file TrendLine.cpp.
References COBase::getValue(), and getValue2().
void TrendLine::drawMovingPointer | ( | QPixmap & | buffer, | |
QPoint & | point | |||
) |
Definition at line 336 of file TrendLine.cpp.
References COBase::defaultColor, mpx, mpx2, mpy, mpy2, and COBase::signalRefresh().
Referenced by pointerMoving().
void TrendLine::loadDefaults | ( | ) |
Definition at line 361 of file TrendLine.cpp.
References bar, COBase::defaultColor, extend, Config::getData(), and usebar.
Referenced by TrendLine().
void TrendLine::saveDefaults | ( | ) |
Definition at line 386 of file TrendLine.cpp.
References bar, COBase::defaultColor, extend, Config::setData(), and usebar.
Referenced by prefDialog().
void TrendLine::getSettings | ( | Setting & | set | ) | [virtual] |
Reimplemented from COBase.
Definition at line 463 of file TrendLine.cpp.
References bar, COBase::color, COBase::colorLabel, COBase::date, date2, COBase::dateFormat, edateLabel, evalueLabel, extend, extendLabel, fieldLabel, COBase::name, COBase::nameLabel, COBase::plot, COBase::plotLabel, sdateLabel, svalueLabel, COBase::type, COBase::typeLabel, usebar, usebarLabel, COBase::value, and value2.
void TrendLine::setSettings | ( | Setting & | set | ) | [virtual] |
Reimplemented from COBase.
Definition at line 485 of file TrendLine.cpp.
References bar, COBase::color, COBase::colorLabel, COBase::date, date2, edateLabel, evalueLabel, extend, extendLabel, fieldLabel, Bar::getDate(), COBase::name, COBase::nameLabel, COBase::plot, COBase::plotLabel, sdateLabel, Bar::setDate(), svalueLabel, usebar, usebarLabel, COBase::value, and value2.
void TrendLine::setDate2 | ( | QDateTime & | d | ) |
Definition at line 430 of file TrendLine.cpp.
References date2.
Referenced by pointerClick(), and pointerMoving().
void TrendLine::getDate2 | ( | QDateTime & | d | ) |
void TrendLine::setValue2 | ( | double | d | ) |
Definition at line 440 of file TrendLine.cpp.
References value2.
Referenced by pointerClick(), pointerMoving(), and prefDialog().
double TrendLine::getValue2 | ( | ) |
Definition at line 445 of file TrendLine.cpp.
References value2.
Referenced by draw(), getHigh(), getLow(), and prefDialog().
int TrendLine::isGrabSelected | ( | QPoint | point | ) |
Reimplemented from COBase.
Definition at line 450 of file TrendLine.cpp.
References COBase::grabHandles.
Referenced by pointerClick().
bool TrendLine::getUseBar | ( | ) |
void TrendLine::getBar | ( | QString & | d | ) |
bool TrendLine::getExtend | ( | ) |
void TrendLine::adjustForSplit | ( | QDateTime & | dt, | |
double | d | |||
) | [virtual] |
Reimplemented from COBase.
Definition at line 521 of file TrendLine.cpp.
References COBase::date, date2, COBase::value, and value2.
void TrendLine::prefDialog | ( | ) | [virtual, slot] |
Reimplemented from COBase.
Definition at line 170 of file TrendLine.cpp.
References PrefDialog::addCheckItem(), PrefDialog::addColorPrefItem(), PrefDialog::addComboItem(), PrefDialog::addDoubleItem(), bar, COBase::color, PrefDialog::createPage(), COBase::defaultColor, extend, PrefDialog::getCheck(), PrefDialog::getColor(), PrefDialog::getCombo(), PrefDialog::getDouble(), COBase::getValue(), getValue2(), COBase::helpFile, saveDefaults(), PrefDialog::setHelpFile(), COBase::setSaveFlag(), COBase::setValue(), setValue2(), COBase::signalDraw(), and usebar.
COBase::Status TrendLine::pointerClick | ( | QPoint & | point, | |
QDateTime & | x, | |||
double | y | |||
) | [virtual, slot] |
Reimplemented from COBase.
Definition at line 240 of file TrendLine.cpp.
References COBase::ClickWait, COBase::ClickWait2, COBase::defaultColor, isGrabSelected(), COBase::isSelected(), COBase::message(), moveFlag, COBase::Moving, mpx, mpy, COBase::name, COBase::None, COBase::Selected, COBase::setColor(), COBase::setDate(), setDate2(), COBase::setSaveFlag(), COBase::setValue(), setValue2(), COBase::signalDraw(), COBase::signalSave(), COBase::status, tx, and ty.
void TrendLine::pointerMoving | ( | QPixmap & | buffer, | |
QPoint & | point, | |||
QDateTime & | x, | |||
double | y | |||
) | [virtual, slot] |
Reimplemented from COBase.
Definition at line 298 of file TrendLine.cpp.
References COBase::ClickWait2, COBase::date, date2, drawMovingPointer(), COBase::message(), moveFlag, COBase::Moving, COBase::setDate(), setDate2(), COBase::setSaveFlag(), COBase::setValue(), setValue2(), COBase::signalDraw(), and COBase::status.
bool TrendLine::usebar [protected] |
Definition at line 63 of file TrendLine.h.
Referenced by getSettings(), getUseBar(), loadDefaults(), prefDialog(), saveDefaults(), setSettings(), and TrendLine().
bool TrendLine::extend [protected] |
Definition at line 64 of file TrendLine.h.
Referenced by getExtend(), getSettings(), loadDefaults(), prefDialog(), saveDefaults(), setSettings(), and TrendLine().
QString TrendLine::bar [protected] |
Definition at line 65 of file TrendLine.h.
Referenced by draw(), getBar(), getSettings(), loadDefaults(), prefDialog(), saveDefaults(), setSettings(), and TrendLine().
int TrendLine::moveFlag [protected] |
QDateTime TrendLine::tx [protected] |
double TrendLine::ty [protected] |
int TrendLine::mpx [protected] |
int TrendLine::mpx2 [protected] |
int TrendLine::mpy [protected] |
int TrendLine::mpy2 [protected] |
QDateTime TrendLine::date2 [protected] |
Definition at line 70 of file TrendLine.h.
Referenced by adjustForSplit(), draw(), getDate2(), getSettings(), pointerMoving(), setDate2(), setSettings(), and TrendLine().
double TrendLine::value2 [protected] |
Definition at line 71 of file TrendLine.h.
Referenced by adjustForSplit(), getSettings(), getValue2(), setSettings(), and setValue2().
QString TrendLine::sdateLabel [protected] |
Definition at line 72 of file TrendLine.h.
Referenced by getSettings(), setSettings(), and TrendLine().
QString TrendLine::edateLabel [protected] |
Definition at line 73 of file TrendLine.h.
Referenced by getSettings(), setSettings(), and TrendLine().
QString TrendLine::svalueLabel [protected] |
Definition at line 74 of file TrendLine.h.
Referenced by getSettings(), setSettings(), and TrendLine().
QString TrendLine::evalueLabel [protected] |
Definition at line 75 of file TrendLine.h.
Referenced by getSettings(), setSettings(), and TrendLine().
QString TrendLine::fieldLabel [protected] |
Definition at line 76 of file TrendLine.h.
Referenced by getSettings(), setSettings(), and TrendLine().
QString TrendLine::usebarLabel [protected] |
Definition at line 77 of file TrendLine.h.
Referenced by getSettings(), setSettings(), and TrendLine().
QString TrendLine::extendLabel [protected] |
Definition at line 78 of file TrendLine.h.
Referenced by getSettings(), setSettings(), and TrendLine().