Text Class Reference

#include <Text.h>

Inheritance diagram for Text:

Inheritance graph
[legend]
Collaboration diagram for Text:

Collaboration graph
[legend]

List of all members.

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


Detailed Description

Definition at line 32 of file Text.h.


Constructor & Destructor Documentation

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.

Text::~Text (  ) 

Definition at line 47 of file Text.cpp.


Member Function Documentation

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::getFont ( QFont &  d  ) 

Definition at line 280 of file Text.cpp.

References font.

void Text::getLabel ( QString &  d  ) 

Definition at line 285 of file Text.cpp.

References label.

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.


Member Data Documentation

QPointArray Text::arrow [protected]

Definition at line 55 of file Text.h.

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]

Definition at line 58 of file Text.h.

Referenced by prefDialog(), and saveDefaults().

QString Text::fontLabel [protected]

Definition at line 59 of file Text.h.

Referenced by getSettings(), setSettings(), and Text().

QString Text::labelLabel [protected]

Definition at line 60 of file Text.h.

Referenced by getSettings(), setSettings(), and Text().


The documentation for this class was generated from the following files: