##// END OF EJS Templates
Added size factor property to pie
Added size factor property to pie

File last commit:

r60:0be2c26f8dc1
r60:0be2c26f8dc1
Show More
mainwidget.h
48 lines | 1.1 KiB | text/x-c | CLexer
Tero Ahola
New features like chart type to the test app
r5 #ifndef MAINWIDGET_H
#define MAINWIDGET_H
Tero Ahola
Renamed to QtCommercialChart
r30 #include <qchartglobal.h>
Tero Ahola
Started to refactor the API to allow integrating different plot types
r19 #include <qchartwidget.h>
Tero Ahola
New features like chart type to the test app
r5 #include <QWidget>
Tero Ahola
Added auto scaling option to test app
r6 class QSpinBox;
Tero Ahola
Drafting scatter type plotting...
r8 class QCheckBox;
Tero Ahola
Added size factor property to pie
r60 class QGridLayout;
Tero Ahola
New features like chart type to the test app
r5
Tero Ahola
Renamed to QtCommercialChart
r30 QTCOMMERCIALCHART_USE_NAMESPACE
Tero Ahola
Started to refactor the API to allow integrating different plot types
r19
Tero Ahola
New features like chart type to the test app
r5 class MainWidget : public QWidget
{
Q_OBJECT
public:
explicit MainWidget(QWidget *parent = 0);
signals:
private slots:
Tero Ahola
Started to refactor the API to allow integrating different plot types
r19 void addSeries();
Tero Ahola
Test app now adds n data series of different type
r20 void addSeries(QString series, QString data);
Tero Ahola
Added test data
r16 void testDataChanged(int itemIndex);
Tero Ahola
New features like chart type to the test app
r5 void backgroundChanged(int itemIndex);
Tero Ahola
Added auto scaling option to test app
r6 void autoScaleChanged(int value);
Tero Ahola
New features like chart type to the test app
r5 void xMinChanged(int value);
void xMaxChanged(int value);
void yMinChanged(int value);
void yMaxChanged(int value);
Tero Ahola
Added size factor property to pie
r60 void setCurrentSeries(QChartSeries *series);
void setPieSizeFactor(double margin);
Tero Ahola
New features like chart type to the test app
r5
private:
Tero Ahola
Drafting scatter type plotting...
r8 QChartWidget *m_chartWidget;
QCheckBox *m_autoScaleCheck;
Tero Ahola
Added auto scaling option to test app
r6 QSpinBox *m_xMinSpin;
QSpinBox *m_xMaxSpin;
QSpinBox *m_yMinSpin;
QSpinBox *m_yMaxSpin;
Tero Ahola
Added size factor property to pie
r60 QString m_defaultSeriesName;
QChartSeries *m_currentSeries;
QGridLayout *m_scatterLayout;
QGridLayout *m_pieLayout;
Tero Ahola
New features like chart type to the test app
r5 };
#endif // MAINWIDGET_H