mainwidget.h
43 lines
| 958 B
| text/x-c
|
CLexer
|
r5 | #ifndef MAINWIDGET_H | ||
#define MAINWIDGET_H | ||||
|
r30 | #include <qchartglobal.h> | ||
|
r19 | #include <qchartwidget.h> | ||
|
r5 | #include <QWidget> | ||
|
r6 | class QSpinBox; | ||
|
r8 | class QCheckBox; | ||
|
r5 | |||
|
r30 | QTCOMMERCIALCHART_USE_NAMESPACE | ||
|
r19 | |||
|
r5 | class MainWidget : public QWidget | ||
{ | ||||
Q_OBJECT | ||||
public: | ||||
explicit MainWidget(QWidget *parent = 0); | ||||
signals: | ||||
private slots: | ||||
void chartTypeChanged(int itemIndex); | ||||
|
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); | ||||
private: | ||||
|
r8 | QChartWidget *m_chartWidget; | ||
QCheckBox *m_autoScaleCheck; | ||||
|
r6 | QSpinBox *m_xMinSpin; | ||
QSpinBox *m_xMaxSpin; | ||||
QSpinBox *m_yMinSpin; | ||||
QSpinBox *m_yMaxSpin; | ||||
|
r26 | QString m_defaultSeries; | ||
|
r5 | }; | ||
#endif // MAINWIDGET_H | ||||