#include <HorizontalLine.h>
Public Slots | |
void | prefDialog () |
COBase::Status | pointerClick (QPoint &, QDateTime &, double) |
void | pointerMoving (QPixmap &, QPoint &, QDateTime &, double y) |
Public Member Functions | |
HorizontalLine () | |
~HorizontalLine () | |
void | draw (QPixmap &, Scaler &, int, int, int) |
void | newObject (QString &, QString &) |
void | loadDefaults () |
void | saveDefaults () |
void | getSettings (Setting &) |
void | setSettings (Setting &) |
void | getText (QString &) |
void | adjustForSplit (QDateTime &, double) |
Protected Attributes | |
QFont | font |
QString | text |
QString | textLabel |
Definition at line 31 of file HorizontalLine.h.
HorizontalLine::HorizontalLine | ( | ) |
Definition at line 29 of file HorizontalLine.cpp.
References COBase::defaultColor, font, Config::getData(), COBase::helpFile, loadDefaults(), Config::PlotFont, text, textLabel, and COBase::type.
HorizontalLine::~HorizontalLine | ( | ) |
Definition at line 47 of file HorizontalLine.cpp.
void HorizontalLine::draw | ( | QPixmap & | buffer, | |
Scaler & | scaler, | |||
int | , | |||
int | , | |||
int | ||||
) | [virtual] |
Reimplemented from COBase.
Definition at line 51 of file HorizontalLine.cpp.
References COBase::clearGrabHandles(), COBase::clearSelectionArea(), Scaler::convertToY(), font, COBase::getColor(), Scaler::getLow(), COBase::getStatus(), getText(), COBase::getValue(), HANDLE_WIDTH, COBase::Selected, COBase::setGrabHandle(), and COBase::setSelectionArea().
void HorizontalLine::newObject | ( | QString & | ind, | |
QString & | n | |||
) | [virtual] |
Reimplemented from COBase.
Definition at line 161 of file HorizontalLine.cpp.
References COBase::ClickWait, COBase::indicator, COBase::message(), COBase::name, COBase::plot, and COBase::status.
void HorizontalLine::loadDefaults | ( | ) |
Definition at line 224 of file HorizontalLine.cpp.
References COBase::defaultColor.
Referenced by HorizontalLine().
void HorizontalLine::saveDefaults | ( | ) |
Definition at line 234 of file HorizontalLine.cpp.
References COBase::defaultColor.
Referenced by prefDialog().
void HorizontalLine::getSettings | ( | Setting & | set | ) | [virtual] |
Reimplemented from COBase.
Definition at line 242 of file HorizontalLine.cpp.
References COBase::color, COBase::colorLabel, COBase::name, COBase::nameLabel, COBase::plot, COBase::plotLabel, text, textLabel, COBase::type, COBase::typeLabel, COBase::value, and COBase::valueLabel.
void HorizontalLine::setSettings | ( | Setting & | set | ) | [virtual] |
Reimplemented from COBase.
Definition at line 254 of file HorizontalLine.cpp.
References COBase::color, COBase::colorLabel, COBase::name, COBase::nameLabel, COBase::plot, COBase::plotLabel, text, textLabel, COBase::value, and COBase::valueLabel.
void HorizontalLine::getText | ( | QString & | d | ) |
void HorizontalLine::adjustForSplit | ( | QDateTime & | , | |
double | d | |||
) | [virtual] |
Reimplemented from COBase.
Definition at line 270 of file HorizontalLine.cpp.
References COBase::value.
void HorizontalLine::prefDialog | ( | ) | [virtual, slot] |
Reimplemented from COBase.
Definition at line 122 of file HorizontalLine.cpp.
References PrefDialog::addCheckItem(), PrefDialog::addColorPrefItem(), PrefDialog::addDoubleItem(), PrefDialog::addTextItem(), COBase::color, PrefDialog::createPage(), COBase::defaultColor, PrefDialog::getCheck(), PrefDialog::getColor(), PrefDialog::getDouble(), PrefDialog::getText(), COBase::getValue(), COBase::helpFile, saveDefaults(), PrefDialog::setHelpFile(), COBase::setSaveFlag(), COBase::signalDraw(), text, and COBase::value.
COBase::Status HorizontalLine::pointerClick | ( | QPoint & | point, | |
QDateTime & | , | |||
double | y | |||
) | [virtual, slot] |
Reimplemented from COBase.
Definition at line 170 of file HorizontalLine.cpp.
References COBase::ClickWait, COBase::defaultColor, COBase::isGrabSelected(), COBase::isSelected(), COBase::message(), COBase::Moving, COBase::name, COBase::None, COBase::Selected, COBase::setColor(), COBase::setSaveFlag(), COBase::setValue(), COBase::signalDraw(), COBase::signalSave(), and COBase::status.
void HorizontalLine::pointerMoving | ( | QPixmap & | , | |
QPoint & | , | |||
QDateTime & | , | |||
double | y | |||
) | [virtual, slot] |
Reimplemented from COBase.
Definition at line 212 of file HorizontalLine.cpp.
References COBase::message(), COBase::Moving, COBase::setSaveFlag(), COBase::setValue(), COBase::signalDraw(), and COBase::status.
QFont HorizontalLine::font [protected] |
QString HorizontalLine::text [protected] |
Definition at line 54 of file HorizontalLine.h.
Referenced by getSettings(), getText(), HorizontalLine(), prefDialog(), and setSettings().
QString HorizontalLine::textLabel [protected] |
Definition at line 55 of file HorizontalLine.h.
Referenced by getSettings(), HorizontalLine(), and setSettings().