#include <Plot.h>
Definition at line 39 of file Plot.h.
Plot::Plot | ( | QWidget * | w, | |
DBIndex * | i | |||
) |
Definition at line 25 of file Plot.cpp.
References datePlot, indicatorPlot, scalePlot, slotDateFlagChanged(), slotLogScaleChanged(), and slotUpdateScalePlot().
void Plot::clear | ( | ) |
Definition at line 53 of file Plot.cpp.
References IndicatorPlot::clear(), ScalePlot::clear(), DatePlot::clear(), datePlot, indicatorPlot, and scalePlot.
Referenced by TesterChartPage::clear().
void Plot::setData | ( | BarData * | l | ) |
Definition at line 60 of file Plot.cpp.
References BarData::count(), datePlot, BarData::getClose(), DatePlot::getXGrid(), indicatorPlot, scalePlot, IndicatorPlot::setData(), ScalePlot::setData(), DatePlot::setData(), and IndicatorPlot::setXGrid().
Referenced by QtstalkerApp::loadIndicator(), and TesterChartPage::updateChart().
void Plot::setLogScale | ( | bool | d | ) |
Definition at line 79 of file Plot.cpp.
References indicatorPlot, scalePlot, ScalePlot::setLogScale(), and IndicatorPlot::setLogScale().
Referenced by slotLogScaleChanged().
void Plot::updateStatusBar | ( | int | , | |
int | ||||
) |
void Plot::setInfoFlag | ( | bool | d | ) |
Definition at line 95 of file Plot.cpp.
References indicatorPlot, and IndicatorPlot::setInfoFlag().
Referenced by TesterChartPage::TesterChartPage().
void Plot::drawCrossHair | ( | ) |
void Plot::addIndicator | ( | Indicator * | i | ) |
Definition at line 177 of file Plot.cpp.
References IndicatorPlot::addIndicator(), Indicator::getDateFlag(), Indicator::getLogScale(), indicatorPlot, setDateFlag(), and IndicatorPlot::setLogScale().
Referenced by QtstalkerApp::loadIndicator(), and TesterChartPage::updateChart().
Indicator * Plot::getIndicator | ( | ) |
Definition at line 186 of file Plot.cpp.
References IndicatorPlot::getIndicator(), and indicatorPlot.
Referenced by DataWindow::setPlot().
bool Plot::deleteIndicator | ( | ) |
Definition at line 191 of file Plot.cpp.
References IndicatorPlot::deleteIndicator(), and indicatorPlot.
void Plot::addChartObject | ( | Setting & | set | ) |
Definition at line 234 of file Plot.cpp.
References IndicatorPlot::addChartObject(), and indicatorPlot.
Referenced by QtstalkerApp::loadChart().
int Plot::getWidth | ( | ) |
Definition at line 249 of file Plot.cpp.
References IndicatorPlot::getWidth(), and indicatorPlot.
Referenced by QtstalkerApp::setSliderStart().
void Plot::setGridFlag | ( | bool | d | ) |
Definition at line 141 of file Plot.cpp.
References indicatorPlot, and IndicatorPlot::setGridFlag().
Referenced by QtstalkerApp::addIndicatorButton(), slotGridChanged(), and TesterChartPage::TesterChartPage().
void Plot::setScaleToScreen | ( | bool | d | ) |
Definition at line 73 of file Plot.cpp.
References indicatorPlot, scalePlot, ScalePlot::setScaleToScreen(), and IndicatorPlot::setScaleToScreen().
Referenced by QtstalkerApp::addIndicatorButton(), TesterChartPage::slotScaleToScreen(), slotScaleToScreenChanged(), and TesterChartPage::TesterChartPage().
void Plot::setDrawMode | ( | bool | d | ) |
Definition at line 90 of file Plot.cpp.
References indicatorPlot, and IndicatorPlot::setDrawMode().
Referenced by QtstalkerApp::addIndicatorButton(), and slotDrawModeChanged().
void Plot::setDateFlag | ( | bool | d | ) |
Definition at line 164 of file Plot.cpp.
References datePlot, DatePlot::draw(), indicatorPlot, and IndicatorPlot::setDateFlag().
Referenced by addIndicator(), slotDateFlagChanged(), and TesterChartPage::TesterChartPage().
void Plot::setCrosshairsFlag | ( | bool | d | ) |
Definition at line 239 of file Plot.cpp.
References indicatorPlot, and IndicatorPlot::setCrosshairsFlag().
Referenced by TesterChartPage::TesterChartPage().
IndicatorPlot * Plot::getIndicatorPlot | ( | ) |
Definition at line 254 of file Plot.cpp.
References indicatorPlot.
Referenced by QtstalkerApp::addIndicatorButton().
void Plot::setMenuFlag | ( | bool | d | ) |
Definition at line 270 of file Plot.cpp.
References indicatorPlot, and IndicatorPlot::setMenuFlag().
Referenced by TesterChartPage::TesterChartPage().
void Plot::draw | ( | ) | [slot] |
Definition at line 100 of file Plot.cpp.
References datePlot, ScalePlot::draw(), IndicatorPlot::draw(), DatePlot::draw(), IndicatorPlot::getScaler(), indicatorPlot, scalePlot, and ScalePlot::setScaler().
Referenced by QtstalkerApp::slotDrawPlots(), QtstalkerApp::slotEditIndicator(), TesterChartPage::slotScaleToScreen(), TesterChartPage::slotSliderChanged(), slotSliderChanged(), and TesterChartPage::updateChart().
void Plot::drawRefresh | ( | ) | [slot] |
Definition at line 108 of file Plot.cpp.
References datePlot, ScalePlot::drawRefresh(), IndicatorPlot::drawRefresh(), DatePlot::drawRefresh(), indicatorPlot, and scalePlot.
void Plot::setPixelspace | ( | int | d | ) | [slot] |
Definition at line 146 of file Plot.cpp.
References datePlot, indicatorPlot, IndicatorPlot::setPixelspace(), and DatePlot::setPixelspace().
Referenced by QtstalkerApp::addIndicatorButton(), and TesterChartPage::TesterChartPage().
void Plot::setBackgroundColor | ( | QColor | d | ) | [slot] |
Definition at line 115 of file Plot.cpp.
References datePlot, indicatorPlot, scalePlot, IndicatorPlot::setBackgroundColor(), ScalePlot::setBackgroundColor(), and DatePlot::setBackgroundColor().
Referenced by QtstalkerApp::addIndicatorButton().
void Plot::setBorderColor | ( | QColor | d | ) | [slot] |
Definition at line 122 of file Plot.cpp.
References datePlot, indicatorPlot, scalePlot, IndicatorPlot::setBorderColor(), ScalePlot::setBorderColor(), and DatePlot::setBorderColor().
Referenced by QtstalkerApp::addIndicatorButton().
void Plot::setGridColor | ( | QColor | d | ) | [slot] |
Definition at line 129 of file Plot.cpp.
References indicatorPlot, and IndicatorPlot::setGridColor().
Referenced by QtstalkerApp::addIndicatorButton().
void Plot::setPlotFont | ( | QFont | d | ) | [slot] |
Definition at line 134 of file Plot.cpp.
References datePlot, indicatorPlot, scalePlot, IndicatorPlot::setPlotFont(), ScalePlot::setPlotFont(), and DatePlot::setPlotFont().
Referenced by QtstalkerApp::addIndicatorButton(), and TesterChartPage::TesterChartPage().
void Plot::setIndex | ( | int | d | ) | [slot] |
Definition at line 152 of file Plot.cpp.
References datePlot, indicatorPlot, IndicatorPlot::setIndex(), and DatePlot::setIndex().
Referenced by QtstalkerApp::addIndicatorButton(), slotSliderChanged(), and TesterChartPage::TesterChartPage().
void Plot::setInterval | ( | BarData::BarLength | d | ) | [slot] |
Definition at line 158 of file Plot.cpp.
References datePlot, indicatorPlot, IndicatorPlot::setInterval(), and DatePlot::setInterval().
Referenced by QtstalkerApp::addIndicatorButton().
void Plot::crossHair | ( | int | d, | |
int | d2, | |||
bool | d3 | |||
) | [slot] |
void Plot::setChartPath | ( | QString | d | ) | [slot] |
Definition at line 85 of file Plot.cpp.
References indicatorPlot, and IndicatorPlot::setChartPath().
void Plot::setCrosshairsStatus | ( | bool | status | ) | [slot] |
Definition at line 196 of file Plot.cpp.
References indicatorPlot, and IndicatorPlot::setCrosshairsStatus().
Referenced by QtstalkerApp::addIndicatorButton().
void Plot::slotSliderChanged | ( | int | v | ) | [slot] |
void Plot::slotGridChanged | ( | bool | d | ) | [slot] |
void Plot::slotScaleToScreenChanged | ( | bool | d | ) | [slot] |
Definition at line 212 of file Plot.cpp.
References IndicatorPlot::draw(), indicatorPlot, and setScaleToScreen().
void Plot::slotDrawModeChanged | ( | bool | d | ) | [slot] |
void Plot::slotDateFlagChanged | ( | bool | d | ) | [slot] |
void Plot::slotLogScaleChanged | ( | bool | d | ) | [slot] |
Definition at line 228 of file Plot.cpp.
References IndicatorPlot::draw(), indicatorPlot, and setLogScale().
Referenced by Plot().
void Plot::slotUpdateScalePlot | ( | ) | [slot] |
Definition at line 264 of file Plot.cpp.
References ScalePlot::draw(), IndicatorPlot::getScaler(), indicatorPlot, scalePlot, and ScalePlot::setScaler().
Referenced by Plot().
DatePlot* Plot::datePlot [private] |
Definition at line 88 of file Plot.h.
Referenced by clear(), draw(), drawRefresh(), getDatePlot(), Plot(), setBackgroundColor(), setBorderColor(), setData(), setDateFlag(), setIndex(), setInterval(), setPixelspace(), and setPlotFont().
ScalePlot* Plot::scalePlot [private] |
Definition at line 89 of file Plot.h.
Referenced by clear(), draw(), drawRefresh(), Plot(), setBackgroundColor(), setBorderColor(), setData(), setLogScale(), setPlotFont(), setScaleToScreen(), and slotUpdateScalePlot().
IndicatorPlot* Plot::indicatorPlot [private] |
Definition at line 90 of file Plot.h.
Referenced by addChartObject(), addIndicator(), clear(), crossHair(), deleteIndicator(), draw(), drawRefresh(), getIndicator(), getIndicatorPlot(), getWidth(), Plot(), setBackgroundColor(), setBorderColor(), setChartPath(), setCrosshairsFlag(), setCrosshairsStatus(), setData(), setDateFlag(), setDrawMode(), setGridColor(), setGridFlag(), setIndex(), setInfoFlag(), setInterval(), setLogScale(), setMenuFlag(), setPixelspace(), setPlotFont(), setScaleToScreen(), slotLogScaleChanged(), slotScaleToScreenChanged(), and slotUpdateScalePlot().