2025-09-18 15:50:18 +08:00
|
|
|
#ifndef ALARMEVENTMAINDIALOG_H
|
|
|
|
|
#define ALARMEVENTMAINDIALOG_H
|
|
|
|
|
|
|
|
|
|
#include <QDialog>
|
2025-11-18 16:53:57 +08:00
|
|
|
#include "global.h"
|
2025-09-18 15:50:18 +08:00
|
|
|
#include "alarmEventGlobal.h"
|
2025-11-17 10:13:02 +08:00
|
|
|
#include "alarmEventUtils.h"
|
2025-09-18 15:50:18 +08:00
|
|
|
|
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
|
namespace Ui {
|
|
|
|
|
class alarmEventMainDialog;
|
|
|
|
|
}
|
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
|
|
2025-11-18 16:53:57 +08:00
|
|
|
class TransparentMask;
|
|
|
|
|
class MessageDialog;
|
2025-11-17 10:13:02 +08:00
|
|
|
class AlarmEventDataView;
|
2025-11-18 16:53:57 +08:00
|
|
|
|
2025-09-18 15:50:18 +08:00
|
|
|
class AlarmEventMainDialog : public QDialog
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
2025-09-19 17:45:52 +08:00
|
|
|
AlarmEventMainDialog(QWidget *parent = nullptr);
|
2025-09-18 15:50:18 +08:00
|
|
|
~AlarmEventMainDialog();
|
|
|
|
|
|
2025-10-13 17:31:50 +08:00
|
|
|
void setMode(AlarmDataMode mode);
|
2025-09-19 17:45:52 +08:00
|
|
|
|
2025-09-18 15:50:18 +08:00
|
|
|
signals:
|
|
|
|
|
void sgl_hide();
|
2025-12-02 18:37:57 +08:00
|
|
|
void openConfigDialog();
|
2025-09-18 15:50:18 +08:00
|
|
|
|
2025-09-24 12:10:51 +08:00
|
|
|
protected:
|
|
|
|
|
void showEvent(QShowEvent* event) override;
|
2025-11-18 16:53:57 +08:00
|
|
|
void resizeEvent(QResizeEvent*) override;
|
2025-12-01 09:55:07 +08:00
|
|
|
bool eventFilter(QObject*, QEvent*) override;
|
2025-09-24 12:10:51 +08:00
|
|
|
|
2025-11-18 14:26:29 +08:00
|
|
|
private slots:
|
2025-11-18 16:53:57 +08:00
|
|
|
void onSignal_subDialogClose();
|
2025-11-18 14:26:29 +08:00
|
|
|
void onSyncDataStatus(const PaginationInfo&);
|
2025-11-18 16:53:57 +08:00
|
|
|
void onLoadDataError(const QString&);
|
2025-12-01 09:55:07 +08:00
|
|
|
//搜索条件
|
|
|
|
|
void onBeginTimeChanged();
|
|
|
|
|
void onEndTimeChanged();
|
2025-11-18 14:26:29 +08:00
|
|
|
|
2025-09-18 15:50:18 +08:00
|
|
|
public slots:
|
|
|
|
|
void onBtnClicked_close();
|
|
|
|
|
|
2025-12-01 09:55:07 +08:00
|
|
|
void onBtnClicked_firstPage();
|
|
|
|
|
void onBtnClicked_previousPage();
|
|
|
|
|
void onBtnClicked_nextPage();
|
|
|
|
|
void onBtnClicked_lastPage();
|
|
|
|
|
void onEditingFinished_page();
|
|
|
|
|
|
2025-09-18 15:50:18 +08:00
|
|
|
private:
|
2025-11-18 16:53:57 +08:00
|
|
|
void showTransparentMask();
|
|
|
|
|
void hideTransparentMask();
|
|
|
|
|
void showMessageDialog(MessageDialogType,const QString&,const QString&);
|
|
|
|
|
|
2025-09-18 15:50:18 +08:00
|
|
|
Ui::alarmEventMainDialog* ui;
|
2025-11-18 16:53:57 +08:00
|
|
|
TransparentMask* m_pTransparentMask;
|
|
|
|
|
MessageDialog* m_pMessageDialog;
|
2025-11-17 10:13:02 +08:00
|
|
|
AlarmEventDataView* m_tableView;
|
2025-10-13 17:31:50 +08:00
|
|
|
AlarmDataMode m_mode;
|
2025-11-17 10:13:02 +08:00
|
|
|
AlarmEventDataFilter m_eventFilter;
|
2025-09-19 17:45:52 +08:00
|
|
|
|
2025-09-18 15:50:18 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|