AdvancedFeaturesDemo Example

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

class QComboBox;
class QCheckBox;

/* MainWindow */
class MainWindow : public DemoChartWindow
{
    Q_OBJECT
protected:
    enum SeriesType
    {
        Combined,
        SecondaryAxis,
        Interactive,
    };
public:
    MainWindow();

protected:
    void createSeriesParametrs();
    void createCombined();
    void createSecondaryAxis();
    void createInteractive();
    virtual void updateValueParameters();

protected slots:
    void mouseTrack(ChartHitInfo* hit);
    void mouseUp(ChartHitInfo* hit);

protected slots:
    void seriesChanged(int);
    void showSecondaryAxisXChanged(int);
    void showAxisXChanged(int);
    void showSecondaryAxisYChanged(int);
    void showAxisYChanged(int);
    void updateAngleChanged(int);

protected:
    QComboBox* m_seriesSwitcher;
    QCheckBox* m_showSecondaryAxisX;
    QCheckBox* m_showSecondaryAxisY;
    QLabel* m_hitTestResult;

    ChartAxis* m_axisY1;
    ChartAxis* m_axisY2;

private:
    Q_DISABLE_COPY(MainWindow)
};