FinancialChart2D Example

#include <QtitanChart.h>
#include "DemoChartWindow.h"

class QComboBox;
class QSpinBox;

/* MainWindow */
class MainWindow : public DemoChartWindow
{
    Q_OBJECT
protected:
    enum SeriesType
    {
        OpenHighLowCloseSeries,
        CandleStickSeries,
    };
public:
    MainWindow();
protected:
    void createSeriesParametrs();
    void createOpenHighLowCloseSeries();
    void createCandleStickSeries();
    virtual void updateValueParameters();
protected slots:
    void seriesChanged(int);
    void valueThicknessChanged(int value);
protected:
    QComboBox* m_seriesSwitcher;
    QGroupBox* m_pointsSeriesBox;
    QLabel* m_thicknessLabelBox;
    QSpinBox* m_thicknessBox;
private:
    Q_DISABLE_COPY(MainWindow)
};