#include <Cycle.h>
Public Slots | |
void | prefDialog () |
COBase::Status | pointerClick (QPoint &, QDateTime &, double) |
void | pointerMoving (QPixmap &, QPoint &, QDateTime &, double y) |
Public Member Functions | |
Cycle () | |
~Cycle () | |
void | draw (QPixmap &, Scaler &, int, int, int) |
void | newObject (QString &, QString &) |
double | getHigh () |
double | getLow () |
void | loadDefaults () |
void | saveDefaults () |
void | getSettings (Setting &) |
void | setSettings (Setting &) |
bool | isGrabSelected (QPoint point) |
Protected Attributes | |
int | defaultInterval |
QPoint | tpoint |
int | tpixelspace |
int | interval |
int | grabPosition |
QString | intervalLabel |
Definition at line 30 of file Cycle.h.
Cycle::Cycle | ( | ) |
Definition at line 27 of file Cycle.cpp.
References COBase::defaultColor, defaultInterval, grabPosition, COBase::helpFile, interval, intervalLabel, loadDefaults(), and COBase::type.
void Cycle::draw | ( | QPixmap & | buffer, | |
Scaler & | , | |||
int | startIndex, | |||
int | pixelspace, | |||
int | startX | |||
) | [virtual] |
Reimplemented from COBase.
Definition at line 44 of file Cycle.cpp.
References COBase::clearGrabHandles(), COBase::clearSelectionArea(), COBase::data, COBase::date, COBase::getColor(), COBase::getStatus(), BarData::getX(), HANDLE_WIDTH, interval, COBase::Selected, COBase::setGrabHandle(), COBase::setSelectionArea(), and tpixelspace.
void Cycle::newObject | ( | QString & | ind, | |
QString & | n | |||
) | [virtual] |
Reimplemented from COBase.
Definition at line 153 of file Cycle.cpp.
References COBase::ClickWait, COBase::indicator, COBase::message(), COBase::name, COBase::plot, and COBase::status.
double Cycle::getHigh | ( | ) | [virtual] |
Reimplemented from COBase.
Definition at line 270 of file Cycle.cpp.
References COBase::data, and BarData::getMax().
double Cycle::getLow | ( | ) | [virtual] |
Reimplemented from COBase.
Definition at line 275 of file Cycle.cpp.
References COBase::data, and BarData::getMin().
void Cycle::loadDefaults | ( | ) |
Definition at line 244 of file Cycle.cpp.
References COBase::defaultColor, and defaultInterval.
Referenced by Cycle().
void Cycle::saveDefaults | ( | ) |
Definition at line 259 of file Cycle.cpp.
References COBase::defaultColor, and defaultInterval.
Referenced by prefDialog().
void Cycle::getSettings | ( | Setting & | set | ) | [virtual] |
Reimplemented from COBase.
Definition at line 280 of file Cycle.cpp.
References COBase::color, COBase::colorLabel, COBase::date, COBase::dateFormat, COBase::dateLabel, interval, intervalLabel, COBase::name, COBase::nameLabel, COBase::plot, COBase::plotLabel, COBase::type, and COBase::typeLabel.
void Cycle::setSettings | ( | Setting & | set | ) | [virtual] |
Reimplemented from COBase.
Definition at line 293 of file Cycle.cpp.
References COBase::color, COBase::colorLabel, COBase::date, COBase::dateLabel, Bar::getDate(), interval, intervalLabel, COBase::name, COBase::nameLabel, COBase::plot, COBase::plotLabel, and Bar::setDate().
bool Cycle::isGrabSelected | ( | QPoint | point | ) |
Reimplemented from COBase.
Definition at line 307 of file Cycle.cpp.
References COBase::grabHandles, and grabPosition.
Referenced by pointerClick().
void Cycle::prefDialog | ( | ) | [virtual, slot] |
Reimplemented from COBase.
Definition at line 118 of file Cycle.cpp.
References PrefDialog::addCheckItem(), PrefDialog::addColorPrefItem(), PrefDialog::addIntItem(), COBase::color, PrefDialog::createPage(), COBase::defaultColor, PrefDialog::getCheck(), PrefDialog::getColor(), PrefDialog::getInt(), COBase::helpFile, interval, saveDefaults(), PrefDialog::setHelpFile(), and COBase::signalDraw().
COBase::Status Cycle::pointerClick | ( | QPoint & | point, | |
QDateTime & | x, | |||
double | ||||
) | [virtual, slot] |
Reimplemented from COBase.
Definition at line 162 of file Cycle.cpp.
References COBase::ClickWait, COBase::defaultColor, interval, isGrabSelected(), COBase::isSelected(), COBase::message(), COBase::Moving, COBase::name, COBase::None, COBase::Selected, COBase::setColor(), COBase::setDate(), COBase::setSaveFlag(), COBase::signalDraw(), COBase::signalSave(), COBase::status, tpixelspace, and tpoint.
void Cycle::pointerMoving | ( | QPixmap & | , | |
QPoint & | p, | |||
QDateTime & | x, | |||
double | y | |||
) | [virtual, slot] |
Reimplemented from COBase.
Definition at line 208 of file Cycle.cpp.
References grabPosition, interval, COBase::message(), COBase::Moving, COBase::setDate(), COBase::setSaveFlag(), COBase::signalDraw(), COBase::status, tpixelspace, and tpoint.
int Cycle::defaultInterval [protected] |
QPoint Cycle::tpoint [protected] |
int Cycle::tpixelspace [protected] |
int Cycle::interval [protected] |
Definition at line 56 of file Cycle.h.
Referenced by Cycle(), draw(), getSettings(), pointerClick(), pointerMoving(), prefDialog(), and setSettings().
int Cycle::grabPosition [protected] |
Definition at line 57 of file Cycle.h.
Referenced by Cycle(), isGrabSelected(), and pointerMoving().
QString Cycle::intervalLabel [protected] |