2023-04-14 19:30:30 +08:00
|
|
|
#ifndef HISTORYALARM_H
|
|
|
|
|
#define HISTORYALARM_H
|
|
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
#include <QStandardItemModel> //数据模型类
|
|
|
|
|
#include "HeaderView.h"
|
|
|
|
|
#include "TableHeaderView.h"
|
|
|
|
|
#include "global.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
|
class CHistoryAlarm;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class CHistoryAlarm : public QWidget
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
explicit CHistoryAlarm(QWidget *parent = nullptr);
|
|
|
|
|
~CHistoryAlarm();
|
|
|
|
|
|
2023-04-27 19:48:15 +08:00
|
|
|
private slots:
|
|
|
|
|
void on_comboBox_channel_currentTextChanged(const QString&);
|
|
|
|
|
void on_pushButton_search_clicked();
|
|
|
|
|
void Details(const QModelIndex &index);
|
2023-04-14 19:30:30 +08:00
|
|
|
private:
|
|
|
|
|
Ui::CHistoryAlarm *ui;
|
|
|
|
|
|
|
|
|
|
TableHeaderView *myHeader;
|
|
|
|
|
QStandardItemModel *model;
|
|
|
|
|
QString headerStr ;
|
2023-04-27 19:48:15 +08:00
|
|
|
QString m_strChannelID;
|
|
|
|
|
|
|
|
|
|
QVector<TriggerEvent_t> m_vecTriggerEvent;
|
|
|
|
|
|
|
|
|
|
void createRowItem(int Row,QVariantList RowItem);
|
2023-04-14 19:30:30 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // HISTORYALARM_H
|