#ifndef SUBFORM_H #define SUBFORM_H #include #include #include #include #include #include #include #include #include #include "global.h" #include #include QT_BEGIN_NAMESPACE namespace Ui { class Form; } QT_END_NAMESPACE using namespace QtCharts; class SubForm :QWidget { Q_OBJECT public: SubForm(QString,int baurate,int device_addr,int rate); void init_charts(); private slots: void on_pushButton_clicked(); void on_pushButton_2_clicked(bool checked); void on_pushButton_2_clicked(); void on_log(QString); private: Ui::Form *ui; QChart *mChart; QValueAxis *mAxisX; QValueAxis *mAxisY; QValueAxis *mAxisY2; int baurate; QLineSeries *mSeries1; QMap mLines; QVector pTime; QVector p1; QVector p2; QVector p3; QVector p4; QVector p5; QVector p6; Config *mConfig; float mMaxX; QDateTime mStartTime; bool mStart; QStandardItemModel *mModel; }; #endif // SUBFORM_H