65 lines
1.8 KiB
C++
65 lines
1.8 KiB
C++
#ifndef HISTORYALARM_H
|
|
#define HISTORYALARM_H
|
|
|
|
#include <QWidget>
|
|
#include <QStandardItemModel> //数据模型类
|
|
#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<WAVE_DATA> m_vecPushData; //推送的原始数据
|
|
QVector<WAVE_ALLDATA> m_vecAllData; //推送的原始数据
|
|
QMap<QString,QVector<WAVE_DATA>> mapWaveData;
|
|
QVector<GroupData> m_vecGroupdata; //趋势数据
|
|
QVector<WAVE_INFO> m_vecWaveInfo;
|
|
|
|
QString m_strFileName;
|
|
|
|
|
|
QVector<TriggerEvent_t> m_vecTriggerEvent;
|
|
QVector<TriggerAlarmStatusInfo_t> 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
|