mainwidget.h
37 lines
| 785 B
| text/x-c
|
CLexer
Tero Ahola
|
r5 | #ifndef MAINWIDGET_H | ||
#define MAINWIDGET_H | ||||
#include <QWidget> | ||||
Tero Ahola
|
r8 | class QChartWidget; | ||
Tero Ahola
|
r6 | class QSpinBox; | ||
Tero Ahola
|
r8 | class QCheckBox; | ||
Tero Ahola
|
r5 | |||
class MainWidget : public QWidget | ||||
{ | ||||
Q_OBJECT | ||||
public: | ||||
explicit MainWidget(QWidget *parent = 0); | ||||
signals: | ||||
private slots: | ||||
void chartTypeChanged(int itemIndex); | ||||
void dataChanged(QString itemText); | ||||
void backgroundChanged(int itemIndex); | ||||
Tero Ahola
|
r6 | void autoScaleChanged(int value); | ||
Tero Ahola
|
r5 | void xMinChanged(int value); | ||
void xMaxChanged(int value); | ||||
void yMinChanged(int value); | ||||
void yMaxChanged(int value); | ||||
private: | ||||
Tero Ahola
|
r8 | QChartWidget *m_chartWidget; | ||
QCheckBox *m_autoScaleCheck; | ||||
Tero Ahola
|
r6 | QSpinBox *m_xMinSpin; | ||
QSpinBox *m_xMaxSpin; | ||||
QSpinBox *m_yMinSpin; | ||||
QSpinBox *m_yMaxSpin; | ||||
Tero Ahola
|
r5 | }; | ||
#endif // MAINWIDGET_H | ||||