69 lines
1.7 KiB
C++
69 lines
1.7 KiB
C++
#ifndef REALTIMEALARM_H
|
|
#define REALTIMEALARM_H
|
|
|
|
#include <QWidget>
|
|
#include <QStandardItemModel> //数据模型类
|
|
#include "TableHeaderView.h"
|
|
#include "global.h"
|
|
#include <QProgressDialog>
|
|
#include "DataGraphView.h"
|
|
|
|
namespace Ui {
|
|
class CRealTimeAlarm;
|
|
}
|
|
|
|
|
|
|
|
class CRealTimeAlarm : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit CRealTimeAlarm(QWidget *parent = nullptr);
|
|
~CRealTimeAlarm();
|
|
void initTable();
|
|
private slots:
|
|
void Details(const QModelIndex &index);
|
|
void ItemCheckStateSlot(QString strID, bool bChecked);
|
|
void on_pushButton_refresh_clicked();
|
|
|
|
public slots:
|
|
void downloadProcess_Slot(qint64 byteSend, qint64 byteTotal);
|
|
void DownloadStatus_Slot();
|
|
signals:
|
|
void ItemCheckStateSignal(QString strID, bool bChecked);
|
|
private:
|
|
Ui::CRealTimeAlarm *ui;
|
|
|
|
TableHeaderView *myHeader;
|
|
QStandardItemModel *model;
|
|
QString headerStr ;
|
|
|
|
QVector<TriggerEvent_t> m_vecTriggerEvent;
|
|
QVector<TriggerAlarmStatusInfo_t> m_vecTriggerAlarmStatusInfo;
|
|
|
|
QVector<WAVE_DATA> m_vecPushData; //推送的原始数据
|
|
QVector<WAVE_ALLDATA> m_vecAllData; //推送的原始数据
|
|
QMap<QString,QVector<WAVE_DATA>> mapWaveData;
|
|
QVector<GroupData> m_vecGroupdata; //趋势数据
|
|
QVector<WAVE_INFO> m_vecWaveInfo;
|
|
|
|
int m_iCount; //总时间
|
|
int m_iCurCount; //当前时间
|
|
int m_iRealCount; //实际读出的秒数
|
|
|
|
|
|
QString m_strFileName;
|
|
|
|
void createRowItem(int Row,QVariantList RowItem);
|
|
void OpenDatFile(QString& strFileName);
|
|
QProgressDialog *downloadProgressDialog;
|
|
|
|
CDataGraphView *DateViewdialog;
|
|
|
|
|
|
|
|
};
|
|
|
|
#endif // REALTIMEALARM_H
|