mainwidget.h
56 lines
| 1.4 KiB
| text/x-c
|
CLexer
|
r5 | #ifndef MAINWIDGET_H | ||
#define MAINWIDGET_H | ||||
|
r30 | #include <qchartglobal.h> | ||
|
r136 | #include <qchartview.h> | ||
|
r5 | #include <QWidget> | ||
|
r6 | class QSpinBox; | ||
|
r8 | class QCheckBox; | ||
|
r60 | class QGridLayout; | ||
|
r5 | |||
|
r30 | QTCOMMERCIALCHART_USE_NAMESPACE | ||
|
r19 | |||
|
r5 | class MainWidget : public QWidget | ||
{ | ||||
Q_OBJECT | ||||
public: | ||||
explicit MainWidget(QWidget *parent = 0); | ||||
signals: | ||||
|
r110 | private: | ||
void initBackroundCombo(QGridLayout *grid); | ||||
void initScaleControls(QGridLayout *grid); | ||||
void initThemeCombo(QGridLayout *grid); | ||||
void initPieControls(); | ||||
|
r5 | private slots: | ||
|
r19 | void addSeries(); | ||
|
r20 | void addSeries(QString series, QString data); | ||
|
r16 | void testDataChanged(int itemIndex); | ||
|
r5 | void backgroundChanged(int itemIndex); | ||
|
r6 | void autoScaleChanged(int value); | ||
|
r5 | void xMinChanged(int value); | ||
void xMaxChanged(int value); | ||||
void yMinChanged(int value); | ||||
void yMaxChanged(int value); | ||||
|
r60 | void setCurrentSeries(QChartSeries *series); | ||
|
r64 | void changeChartTheme(int themeIndex); | ||
|
r60 | void setPieSizeFactor(double margin); | ||
|
r77 | void setPiePosition(int position); | ||
|
r5 | |||
private: | ||||
|
r136 | QChartView *m_chartWidget; | ||
|
r8 | QCheckBox *m_autoScaleCheck; | ||
|
r6 | QSpinBox *m_xMinSpin; | ||
QSpinBox *m_xMaxSpin; | ||||
QSpinBox *m_yMinSpin; | ||||
QSpinBox *m_yMaxSpin; | ||||
|
r60 | QString m_defaultSeriesName; | ||
QChartSeries *m_currentSeries; | ||||
QGridLayout *m_scatterLayout; | ||||
QGridLayout *m_pieLayout; | ||||
|
r5 | }; | ||
#endif // MAINWIDGET_H | ||||