#include <FiboLine.h>
Public Slots | |
void | prefDialog () |
COBase::Status | pointerClick (QPoint &, QDateTime &, double) |
void | pointerMoving (QPixmap &, QPoint &, QDateTime &, double) |
Public Member Functions | |
FiboLine () | |
~FiboLine () | |
void | draw (QPixmap &, Scaler &, int, int, int) |
void | newObject (QString &, QString &) |
double | getHigh () |
double | getLow () |
void | drawMovingPointer (QPixmap &, QPoint &) |
void | loadDefaults () |
void | saveDefaults () |
double | getY (double v, double high, double low) |
void | getSettings (Setting &) |
void | setSettings (Setting &) |
int | isGrabSelected (QPoint point) |
double | getLine (int) |
void | adjustForSplit (QDateTime &, double) |
Protected Attributes | |
int | moveFlag |
QDateTime | tx |
double | ty |
int | mpx |
int | mpx2 |
int | mpy |
int | mpy2 |
QFont | font |
double | line1 |
double | line2 |
double | line3 |
double | line4 |
double | line5 |
double | line6 |
QDateTime | startDate |
QDateTime | endDate |
double | high |
double | low |
bool | extend |
QString | highLabel |
QString | lowLabel |
QString | sdateLabel |
QString | edateLabel |
QString | extendLabel |
QString | l1Label |
QString | l2Label |
QString | l3Label |
QString | l4Label |
QString | l5Label |
QString | l6Label |
Definition at line 33 of file FiboLine.h.
FiboLine::FiboLine | ( | ) |
Definition at line 28 of file FiboLine.cpp.
References COBase::defaultColor, edateLabel, endDate, extend, extendLabel, font, Config::getData(), COBase::helpFile, highLabel, l1Label, l2Label, l3Label, l4Label, l5Label, l6Label, line1, line2, line3, line4, line5, line6, loadDefaults(), lowLabel, Config::PlotFont, sdateLabel, startDate, and COBase::type.
FiboLine::~FiboLine | ( | ) |
Definition at line 65 of file FiboLine.cpp.
void FiboLine::draw | ( | QPixmap & | buffer, | |
Scaler & | scaler, | |||
int | startIndex, | |||
int | pixelspace, | |||
int | startX | |||
) | [virtual] |
Reimplemented from COBase.
Definition at line 69 of file FiboLine.cpp.
References COBase::clearGrabHandles(), COBase::clearSelectionArea(), Scaler::convertToY(), BarData::count(), COBase::data, endDate, extend, font, COBase::getColor(), BarData::getDate(), getHigh(), getLine(), getLow(), COBase::getStatus(), BarData::getX(), getY(), HANDLE_WIDTH, COBase::Selected, COBase::setGrabHandle(), COBase::setSelectionArea(), and startDate.
void FiboLine::newObject | ( | QString & | ind, | |
QString & | n | |||
) | [virtual] |
Reimplemented from COBase.
Definition at line 254 of file FiboLine.cpp.
References COBase::ClickWait, COBase::indicator, COBase::message(), mpx2, mpy2, COBase::name, COBase::plot, and COBase::status.
double FiboLine::getHigh | ( | ) | [virtual] |
Reimplemented from COBase.
Definition at line 472 of file FiboLine.cpp.
References high.
Referenced by draw(), pointerMoving(), and prefDialog().
double FiboLine::getLow | ( | ) | [virtual] |
Reimplemented from COBase.
Definition at line 477 of file FiboLine.cpp.
References low.
Referenced by draw(), pointerMoving(), and prefDialog().
void FiboLine::drawMovingPointer | ( | QPixmap & | buffer, | |
QPoint & | point | |||
) |
Definition at line 374 of file FiboLine.cpp.
References COBase::defaultColor, mpx, mpx2, mpy, mpy2, and COBase::signalRefresh().
Referenced by pointerMoving().
void FiboLine::loadDefaults | ( | ) |
Definition at line 406 of file FiboLine.cpp.
References COBase::defaultColor, line1, line2, line3, line4, line5, and line6.
Referenced by FiboLine().
void FiboLine::saveDefaults | ( | ) |
Definition at line 446 of file FiboLine.cpp.
References COBase::defaultColor, line1, line2, line3, line4, line5, and line6.
Referenced by prefDialog().
double FiboLine::getY | ( | double | v, | |
double | high, | |||
double | low | |||
) |
void FiboLine::getSettings | ( | Setting & | set | ) | [virtual] |
Reimplemented from COBase.
Definition at line 482 of file FiboLine.cpp.
References COBase::color, COBase::colorLabel, COBase::dateFormat, edateLabel, endDate, extend, extendLabel, high, highLabel, l1Label, l2Label, l3Label, l4Label, l5Label, l6Label, line1, line2, line3, line4, line5, line6, low, lowLabel, COBase::name, COBase::nameLabel, COBase::plot, COBase::plotLabel, sdateLabel, startDate, COBase::type, and COBase::typeLabel.
void FiboLine::setSettings | ( | Setting & | set | ) | [virtual] |
Reimplemented from COBase.
Definition at line 513 of file FiboLine.cpp.
References COBase::color, COBase::colorLabel, edateLabel, endDate, extend, extendLabel, Bar::getDate(), high, highLabel, l1Label, l2Label, l3Label, l4Label, l5Label, l6Label, line1, line2, line3, line4, line5, line6, low, lowLabel, COBase::name, COBase::nameLabel, COBase::plot, COBase::plotLabel, sdateLabel, Bar::setDate(), and startDate.
int FiboLine::isGrabSelected | ( | QPoint | point | ) |
Reimplemented from COBase.
Definition at line 538 of file FiboLine.cpp.
References COBase::grabHandles.
Referenced by pointerClick().
double FiboLine::getLine | ( | int | i | ) |
Definition at line 551 of file FiboLine.cpp.
References line1, line2, line3, line4, line5, and line6.
Referenced by draw(), and prefDialog().
void FiboLine::adjustForSplit | ( | QDateTime & | dt, | |
double | d | |||
) | [virtual] |
void FiboLine::prefDialog | ( | ) | [virtual, slot] |
Reimplemented from COBase.
Definition at line 183 of file FiboLine.cpp.
References PrefDialog::addCheckItem(), PrefDialog::addColorPrefItem(), PrefDialog::addDoubleItem(), COBase::color, PrefDialog::createPage(), COBase::defaultColor, extend, PrefDialog::getCheck(), PrefDialog::getColor(), PrefDialog::getDouble(), getHigh(), getLine(), getLow(), COBase::helpFile, high, line1, line2, line3, line4, line5, line6, low, saveDefaults(), PrefDialog::setHelpFile(), COBase::setSaveFlag(), and COBase::signalDraw().
COBase::Status FiboLine::pointerClick | ( | QPoint & | point, | |
QDateTime & | x, | |||
double | y | |||
) | [virtual, slot] |
Reimplemented from COBase.
Definition at line 265 of file FiboLine.cpp.
References COBase::ClickWait, COBase::ClickWait2, COBase::defaultColor, endDate, high, isGrabSelected(), COBase::isSelected(), low, COBase::message(), moveFlag, COBase::Moving, mpx, mpy, COBase::name, COBase::None, COBase::Selected, COBase::setColor(), COBase::setSaveFlag(), COBase::signalDraw(), COBase::signalSave(), startDate, COBase::status, tx, and ty.
void FiboLine::pointerMoving | ( | QPixmap & | buffer, | |
QPoint & | point, | |||
QDateTime & | x, | |||
double | y | |||
) | [virtual, slot] |
Reimplemented from COBase.
Definition at line 325 of file FiboLine.cpp.
References COBase::ClickWait2, drawMovingPointer(), endDate, getHigh(), getLow(), high, low, COBase::message(), moveFlag, COBase::Moving, COBase::setSaveFlag(), COBase::signalDraw(), startDate, and COBase::status.
int FiboLine::moveFlag [protected] |
QDateTime FiboLine::tx [protected] |
double FiboLine::ty [protected] |
int FiboLine::mpx [protected] |
int FiboLine::mpx2 [protected] |
int FiboLine::mpy [protected] |
int FiboLine::mpy2 [protected] |
QFont FiboLine::font [protected] |
double FiboLine::line1 [protected] |
Definition at line 65 of file FiboLine.h.
Referenced by FiboLine(), getLine(), getSettings(), loadDefaults(), prefDialog(), saveDefaults(), and setSettings().
double FiboLine::line2 [protected] |
Definition at line 66 of file FiboLine.h.
Referenced by FiboLine(), getLine(), getSettings(), loadDefaults(), prefDialog(), saveDefaults(), and setSettings().
double FiboLine::line3 [protected] |
Definition at line 67 of file FiboLine.h.
Referenced by FiboLine(), getLine(), getSettings(), loadDefaults(), prefDialog(), saveDefaults(), and setSettings().
double FiboLine::line4 [protected] |
Definition at line 68 of file FiboLine.h.
Referenced by FiboLine(), getLine(), getSettings(), loadDefaults(), prefDialog(), saveDefaults(), and setSettings().
double FiboLine::line5 [protected] |
Definition at line 69 of file FiboLine.h.
Referenced by FiboLine(), getLine(), getSettings(), loadDefaults(), prefDialog(), saveDefaults(), and setSettings().
double FiboLine::line6 [protected] |
Definition at line 70 of file FiboLine.h.
Referenced by FiboLine(), getLine(), getSettings(), loadDefaults(), prefDialog(), saveDefaults(), and setSettings().
QDateTime FiboLine::startDate [protected] |
Definition at line 71 of file FiboLine.h.
Referenced by adjustForSplit(), draw(), FiboLine(), getSettings(), pointerClick(), pointerMoving(), and setSettings().
QDateTime FiboLine::endDate [protected] |
Definition at line 72 of file FiboLine.h.
Referenced by adjustForSplit(), draw(), FiboLine(), getSettings(), pointerClick(), pointerMoving(), and setSettings().
double FiboLine::high [protected] |
Definition at line 73 of file FiboLine.h.
Referenced by adjustForSplit(), getHigh(), getSettings(), pointerClick(), pointerMoving(), prefDialog(), and setSettings().
double FiboLine::low [protected] |
Definition at line 74 of file FiboLine.h.
Referenced by adjustForSplit(), getLow(), getSettings(), pointerClick(), pointerMoving(), prefDialog(), and setSettings().
bool FiboLine::extend [protected] |
Definition at line 75 of file FiboLine.h.
Referenced by draw(), FiboLine(), getSettings(), prefDialog(), and setSettings().
QString FiboLine::highLabel [protected] |
Definition at line 76 of file FiboLine.h.
Referenced by FiboLine(), getSettings(), and setSettings().
QString FiboLine::lowLabel [protected] |
Definition at line 77 of file FiboLine.h.
Referenced by FiboLine(), getSettings(), and setSettings().
QString FiboLine::sdateLabel [protected] |
Definition at line 78 of file FiboLine.h.
Referenced by FiboLine(), getSettings(), and setSettings().
QString FiboLine::edateLabel [protected] |
Definition at line 79 of file FiboLine.h.
Referenced by FiboLine(), getSettings(), and setSettings().
QString FiboLine::extendLabel [protected] |
Definition at line 80 of file FiboLine.h.
Referenced by FiboLine(), getSettings(), and setSettings().
QString FiboLine::l1Label [protected] |
Definition at line 81 of file FiboLine.h.
Referenced by FiboLine(), getSettings(), and setSettings().
QString FiboLine::l2Label [protected] |
Definition at line 82 of file FiboLine.h.
Referenced by FiboLine(), getSettings(), and setSettings().
QString FiboLine::l3Label [protected] |
Definition at line 83 of file FiboLine.h.
Referenced by FiboLine(), getSettings(), and setSettings().
QString FiboLine::l4Label [protected] |
Definition at line 84 of file FiboLine.h.
Referenced by FiboLine(), getSettings(), and setSettings().
QString FiboLine::l5Label [protected] |
Definition at line 85 of file FiboLine.h.
Referenced by FiboLine(), getSettings(), and setSettings().
QString FiboLine::l6Label [protected] |
Definition at line 86 of file FiboLine.h.
Referenced by FiboLine(), getSettings(), and setSettings().