/******************************************************************** gCandleStick Graph Header Copyright (c)2011 Mark Watkins License: GPL *********************************************************************/ #ifndef GCANDLESTICK_H #define GCANDLESTICK_H #include "graphlayer.h" class gCandleStick:public gLayer { public: gCandleStick(Qt::Orientation o=Qt::Horizontal); virtual ~gCandleStick(); virtual void SetDay(Day *d); virtual void Plot(gGraphWindow & w,float scrx,float scry); void AddSlice(MachineCode code,QColor color,QString name=""); void setGradientColor(QColor & color) { m_gradient_color=color; } void setOutlineColor(QColor & color) { m_outline_color=color; } protected: Qt::Orientation m_orientation; map m_counts; map m_names; map m_colors; QColor m_gradient_color; QColor m_outline_color; int m_total; }; #endif // GCANDLESTICK_H