#ifndef HISTORYALARM_H #define HISTORYALARM_H #include #include //数据模型类 #include "TableHeaderView.h" #include "global.h" #include "DataGraphView.h" namespace Ui { class CHistoryAlarm; } class CHistoryAlarm : public QWidget { Q_OBJECT public: explicit CHistoryAlarm(QWidget *parent = nullptr); ~CHistoryAlarm(); private slots: void on_comboBox_channel_currentTextChanged(const QString&); void on_pushButton_search_clicked(); void Details(const QModelIndex &index); void downloadProcess_Slot(qint64 byteSend, qint64 byteTotal); void ItemCheckStateSlot(QString strID, bool bChecked); void headerStateChangedSlot(int state); void on_pushButton_delete_clicked(); private: Ui::CHistoryAlarm *ui; TableHeaderView *myHeader = nullptr; QStandardItemModel *model = nullptr; QString headerStr ; QString m_strChannelID; QVector m_vecPushData; //推送的原始数据 QVector m_vecAllData; //推送的原始数据 QMap> mapWaveData; QVector m_vecGroupdata; //趋势数据 QVector m_vecWaveInfo; QString m_strFileName; QVector m_vecTriggerEvent; QVector m_vecTriggerAlarmStatusInfo; void createRowItem(int Row,QVariantList RowItem); void OpenDatFile(QString& strFileName); CDataGraphView *DateViewdialog; QProgressDialog *downloadProgressDialog; int m_iCount; //总时间 int m_iCurCount; //当前时间 int m_iRealCount; //实际读出的秒数 }; #endif // HISTORYALARM_H