#include <DatePlot.h>

Public Slots | |
| void | draw () |
| void | drawRefresh () |
| void | setPixelspace (int) |
| void | setBackgroundColor (QColor) |
| void | setBorderColor (QColor) |
| void | setPlotFont (QFont) |
| void | setIndex (int) |
| void | setInterval (BarData::BarLength) |
Public Member Functions | |
| DatePlot (QWidget *) | |
| ~DatePlot () | |
| void | clear () |
| void | setData (BarData *) |
| QMemArray< int > & | getXGrid () |
Protected Member Functions | |
| virtual void | paintEvent (QPaintEvent *) |
| virtual void | resizeEvent (QResizeEvent *) |
Private Slots | |
| void | getDailyDate () |
| void | getWeeklyDate () |
| void | getMonthlyDate () |
| void | getMinuteDate () |
Private Attributes | |
| QFont | plotFont |
| QPixmap | buffer |
| int | pixelspace |
| int | scaleWidth |
| int | startX |
| int | startIndex |
| BarData::BarLength | interval |
| QColor | backgroundColor |
| QColor | borderColor |
| BarData * | data |
| QPtrList< TickItem > | dateList |
| QMemArray< int > | xGrid |
Definition at line 42 of file DatePlot.h.
| DatePlot::DatePlot | ( | QWidget * | w | ) |
Definition at line 31 of file DatePlot.cpp.
References backgroundColor, borderColor, BarData::DailyBar, data, DATE_HEIGHT, dateList, interval, pixelspace, plotFont, SCALE_WIDTH, scaleWidth, startIndex, and startX.
| DatePlot::~DatePlot | ( | ) |
Definition at line 55 of file DatePlot.cpp.
| void DatePlot::clear | ( | ) |
Definition at line 59 of file DatePlot.cpp.
References data, and dateList.
Referenced by Plot::clear().
| void DatePlot::setData | ( | BarData * | l | ) |
Definition at line 65 of file DatePlot.cpp.
References BarData::count(), data, dateList, getDailyDate(), getMinuteDate(), getMonthlyDate(), getWeeklyDate(), interval, BarData::Minute1, BarData::Minute10, BarData::Minute15, BarData::Minute30, BarData::Minute5, BarData::Minute60, BarData::MonthlyBar, and BarData::WeeklyBar.
Referenced by Plot::setData().
| QMemArray< int > & DatePlot::getXGrid | ( | ) |
| void DatePlot::draw | ( | ) | [slot] |
Definition at line 95 of file DatePlot.cpp.
References backgroundColor, borderColor, buffer, dateList, TickItem::flag, paintEvent(), pixelspace, plotFont, scaleWidth, startIndex, startX, TickItem::text, and TickItem::tick.
Referenced by Plot::draw(), resizeEvent(), and Plot::setDateFlag().
| void DatePlot::drawRefresh | ( | ) | [slot] |
Definition at line 154 of file DatePlot.cpp.
References paintEvent().
Referenced by Plot::drawRefresh().
| void DatePlot::setPixelspace | ( | int | d | ) | [slot] |
Definition at line 185 of file DatePlot.cpp.
References pixelspace.
Referenced by Plot::setPixelspace().
| void DatePlot::setBackgroundColor | ( | QColor | d | ) | [slot] |
Definition at line 170 of file DatePlot.cpp.
References backgroundColor.
Referenced by Plot::setBackgroundColor().
| void DatePlot::setBorderColor | ( | QColor | d | ) | [slot] |
Definition at line 175 of file DatePlot.cpp.
References borderColor.
Referenced by Plot::setBorderColor().
| void DatePlot::setPlotFont | ( | QFont | d | ) | [slot] |
Definition at line 180 of file DatePlot.cpp.
References plotFont.
Referenced by Plot::setPlotFont().
| void DatePlot::setIndex | ( | int | d | ) | [slot] |
| void DatePlot::setInterval | ( | BarData::BarLength | d | ) | [slot] |
Definition at line 195 of file DatePlot.cpp.
References interval.
Referenced by Plot::setInterval().
| void DatePlot::paintEvent | ( | QPaintEvent * | ) | [protected, virtual] |
Definition at line 159 of file DatePlot.cpp.
References buffer.
Referenced by draw(), and drawRefresh().
| void DatePlot::resizeEvent | ( | QResizeEvent * | event | ) | [protected, virtual] |
| void DatePlot::getDailyDate | ( | ) | [private, slot] |
Definition at line 265 of file DatePlot.cpp.
References BarData::count(), data, dateList, TickItem::flag, BarData::getDate(), TickItem::text, TickItem::tick, and xGrid.
Referenced by setData().
| void DatePlot::getWeeklyDate | ( | ) | [private, slot] |
Definition at line 314 of file DatePlot.cpp.
References BarData::count(), data, dateList, TickItem::flag, BarData::getDate(), TickItem::text, TickItem::tick, and xGrid.
Referenced by setData().
| void DatePlot::getMonthlyDate | ( | ) | [private, slot] |
Definition at line 358 of file DatePlot.cpp.
References BarData::count(), data, dateList, TickItem::flag, BarData::getDate(), TickItem::text, TickItem::tick, and xGrid.
Referenced by setData().
| void DatePlot::getMinuteDate | ( | ) | [private, slot] |
Definition at line 200 of file DatePlot.cpp.
References BarData::count(), data, dateList, TickItem::flag, BarData::getDate(), interval, BarData::Minute1, BarData::Minute30, TickItem::text, TickItem::tick, and xGrid.
Referenced by setData().
QFont DatePlot::plotFont [private] |
QPixmap DatePlot::buffer [private] |
int DatePlot::pixelspace [private] |
int DatePlot::scaleWidth [private] |
int DatePlot::startX [private] |
int DatePlot::startIndex [private] |
BarData::BarLength DatePlot::interval [private] |
Definition at line 80 of file DatePlot.h.
Referenced by DatePlot(), getMinuteDate(), setData(), and setInterval().
QColor DatePlot::backgroundColor [private] |
Definition at line 81 of file DatePlot.h.
Referenced by DatePlot(), draw(), and setBackgroundColor().
QColor DatePlot::borderColor [private] |
BarData* DatePlot::data [private] |
Definition at line 83 of file DatePlot.h.
Referenced by clear(), DatePlot(), getDailyDate(), getMinuteDate(), getMonthlyDate(), getWeeklyDate(), and setData().
QPtrList<TickItem> DatePlot::dateList [private] |
Definition at line 84 of file DatePlot.h.
Referenced by clear(), DatePlot(), draw(), getDailyDate(), getMinuteDate(), getMonthlyDate(), getWeeklyDate(), and setData().
QMemArray<int> DatePlot::xGrid [private] |
Definition at line 85 of file DatePlot.h.
Referenced by getDailyDate(), getMinuteDate(), getMonthlyDate(), getWeeklyDate(), and getXGrid().