Plot Class Reference

#include <Plot.h>

Collaboration diagram for Plot:

Collaboration graph
[legend]

List of all members.

Public Slots

void draw ()
void drawRefresh ()
void setPixelspace (int)
void setBackgroundColor (QColor)
void setBorderColor (QColor)
void setGridColor (QColor)
void setPlotFont (QFont)
void setIndex (int)
void setInterval (BarData::BarLength)
void crossHair (int, int, bool)
void setChartPath (QString)
void setCrosshairsStatus (bool)
void slotSliderChanged (int)
void slotGridChanged (bool)
void slotScaleToScreenChanged (bool)
void slotDrawModeChanged (bool)
void slotDateFlagChanged (bool)
void slotLogScaleChanged (bool)
void slotUpdateScalePlot ()

Public Member Functions

 Plot (QWidget *, DBIndex *)
 ~Plot ()
void clear ()
void setData (BarData *)
void setLogScale (bool)
void updateStatusBar (int, int)
void setInfoFlag (bool)
void drawCrossHair ()
void addIndicator (Indicator *)
IndicatorgetIndicator ()
bool deleteIndicator ()
void addChartObject (Setting &)
int getWidth ()
void setGridFlag (bool)
void setScaleToScreen (bool)
void setDrawMode (bool)
void setDateFlag (bool)
void setCrosshairsFlag (bool)
IndicatorPlotgetIndicatorPlot ()
DatePlotgetDatePlot ()
void setMenuFlag (bool)

Private Attributes

DatePlotdatePlot
ScalePlotscalePlot
IndicatorPlotindicatorPlot


Detailed Description

Definition at line 39 of file Plot.h.


Constructor & Destructor Documentation

Plot::Plot ( QWidget *  w,
DBIndex i 
)

Definition at line 25 of file Plot.cpp.

References datePlot, indicatorPlot, scalePlot, slotDateFlagChanged(), slotLogScaleChanged(), and slotUpdateScalePlot().

Plot::~Plot (  ) 

Definition at line 49 of file Plot.cpp.


Member Function Documentation

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().

DatePlot * Plot::getDatePlot (  ) 

Definition at line 259 of file Plot.cpp.

References datePlot.

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]

Definition at line 244 of file Plot.cpp.

References IndicatorPlot::crossHair(), and indicatorPlot.

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]

Definition at line 201 of file Plot.cpp.

References draw(), and setIndex().

void Plot::slotGridChanged ( bool  d  )  [slot]

Definition at line 207 of file Plot.cpp.

References setGridFlag().

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]

Definition at line 218 of file Plot.cpp.

References setDrawMode().

void Plot::slotDateFlagChanged ( bool  d  )  [slot]

Definition at line 223 of file Plot.cpp.

References setDateFlag().

Referenced by Plot().

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().


Member Data Documentation

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().


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