#include <Text.h>
Public Slots | |
void | prefDialog () |
COBase::Status | pointerClick (QPoint &, QDateTime &, double) |
void | pointerMoving (QPixmap &, QPoint &, QDateTime &, double y) |
Public Member Functions | |
Text () | |
~Text () | |
void | draw (QPixmap &, Scaler &, int, int, int) |
void | newObject (QString &, QString &) |
void | loadDefaults () |
void | saveDefaults () |
void | getSettings (Setting &) |
void | setSettings (Setting &) |
void | getFont (QFont &) |
void | getLabel (QString &) |
void | adjustForSplit (QDateTime &, double) |
Protected Attributes | |
QPointArray | arrow |
QString | label |
QFont | font |
QFont | dfont |
QString | fontLabel |
QString | labelLabel |
Definition at line 32 of file Text.h.
Text::Text | ( | ) |
Definition at line 28 of file Text.cpp.
References COBase::defaultColor, font, fontLabel, Config::getData(), COBase::helpFile, label, labelLabel, loadDefaults(), Config::PlotFont, and COBase::type.
void Text::draw | ( | QPixmap & | buffer, | |
Scaler & | scaler, | |||
int | startIndex, | |||
int | pixelspace, | |||
int | startX | |||
) | [virtual] |
Reimplemented from COBase.
Definition at line 51 of file Text.cpp.
References COBase::clearGrabHandles(), COBase::clearSelectionArea(), COBase::color, Scaler::convertToY(), COBase::data, COBase::date, font, COBase::getColor(), COBase::getStatus(), COBase::getValue(), BarData::getX(), HANDLE_WIDTH, label, COBase::Selected, COBase::setGrabHandle(), and COBase::setSelectionArea().
void Text::newObject | ( | QString & | ind, | |
QString & | n | |||
) | [virtual] |
Reimplemented from COBase.
Definition at line 143 of file Text.cpp.
References COBase::ClickWait, COBase::indicator, COBase::message(), COBase::name, COBase::plot, and COBase::status.
void Text::loadDefaults | ( | ) |
Definition at line 208 of file Text.cpp.
References COBase::defaultColor, and font.
Referenced by Text().
void Text::saveDefaults | ( | ) |
Definition at line 226 of file Text.cpp.
References COBase::defaultColor, and dfont.
Referenced by prefDialog().
void Text::getSettings | ( | Setting & | set | ) | [virtual] |
Reimplemented from COBase.
Definition at line 239 of file Text.cpp.
References COBase::color, COBase::colorLabel, COBase::date, COBase::dateFormat, COBase::dateLabel, font, fontLabel, label, labelLabel, COBase::name, COBase::nameLabel, COBase::plot, COBase::plotLabel, COBase::type, COBase::typeLabel, COBase::value, and COBase::valueLabel.
void Text::setSettings | ( | Setting & | set | ) | [virtual] |
Reimplemented from COBase.
Definition at line 260 of file Text.cpp.
References COBase::color, COBase::colorLabel, COBase::date, COBase::dateLabel, font, fontLabel, Bar::getDate(), label, labelLabel, COBase::name, COBase::nameLabel, COBase::plot, COBase::plotLabel, Bar::setDate(), COBase::value, and COBase::valueLabel.
void Text::adjustForSplit | ( | QDateTime & | dt, | |
double | d | |||
) | [virtual] |
Reimplemented from COBase.
Definition at line 290 of file Text.cpp.
References COBase::date, and COBase::value.
void Text::prefDialog | ( | ) | [virtual, slot] |
Reimplemented from COBase.
Definition at line 99 of file Text.cpp.
References PrefDialog::addCheckItem(), PrefDialog::addColorPrefItem(), PrefDialog::addDoubleItem(), PrefDialog::addFontItem(), PrefDialog::addTextItem(), COBase::color, PrefDialog::createPage(), COBase::defaultColor, dfont, font, PrefDialog::getCheck(), PrefDialog::getColor(), PrefDialog::getDouble(), PrefDialog::getFont(), PrefDialog::getText(), COBase::getValue(), COBase::helpFile, label, saveDefaults(), PrefDialog::setHelpFile(), COBase::setSaveFlag(), COBase::signalDraw(), and COBase::value.
COBase::Status Text::pointerClick | ( | QPoint & | point, | |
QDateTime & | x, | |||
double | y | |||
) | [virtual, slot] |
Reimplemented from COBase.
Definition at line 152 of file Text.cpp.
References COBase::ClickWait, COBase::defaultColor, COBase::isGrabSelected(), COBase::isSelected(), COBase::message(), COBase::Moving, COBase::name, COBase::None, COBase::Selected, COBase::setColor(), COBase::setDate(), COBase::setSaveFlag(), COBase::setValue(), COBase::signalDraw(), COBase::signalSave(), and COBase::status.
void Text::pointerMoving | ( | QPixmap & | , | |
QPoint & | , | |||
QDateTime & | x, | |||
double | y | |||
) | [virtual, slot] |
Reimplemented from COBase.
Definition at line 195 of file Text.cpp.
References COBase::message(), COBase::Moving, COBase::setDate(), COBase::setSaveFlag(), COBase::setValue(), COBase::signalDraw(), and COBase::status.
QPointArray Text::arrow [protected] |
QString Text::label [protected] |
Definition at line 56 of file Text.h.
Referenced by draw(), getLabel(), getSettings(), prefDialog(), setSettings(), and Text().
QFont Text::font [protected] |
Definition at line 57 of file Text.h.
Referenced by draw(), getFont(), getSettings(), loadDefaults(), prefDialog(), setSettings(), and Text().
QFont Text::dfont [protected] |
QString Text::fontLabel [protected] |
QString Text::labelLabel [protected] |