43 lines
824 B
C++
43 lines
824 B
C++
#ifndef ALARMEVENTREALTIMEDOCK_H
|
|
#define ALARMEVENTREALTIMEDOCK_H
|
|
|
|
#include <QWidget>
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
namespace Ui {
|
|
class alarmEventRealTimeDock;
|
|
}
|
|
QT_END_NAMESPACE
|
|
|
|
class AlarmEventDataView;
|
|
class QPropertyAnimation;
|
|
class AlarmEventRealTimeDock : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
AlarmEventRealTimeDock(QWidget *parent = nullptr);
|
|
~AlarmEventRealTimeDock();
|
|
|
|
void updateGeometry();
|
|
|
|
public slots:
|
|
void onBtnClicked_open();
|
|
void onBtnClicked_close();
|
|
void onBtnClicked_confirmAll();
|
|
void onBtnClicked_checkAll();
|
|
|
|
private:
|
|
void expand();
|
|
void collapse();
|
|
|
|
Ui::alarmEventRealTimeDock* ui;
|
|
AlarmEventDataView* m_tableView;
|
|
QPropertyAnimation* m_animationExpand;
|
|
QPropertyAnimation* m_animationAlert;
|
|
bool m_isInAnimation;
|
|
QString m_curState;
|
|
};
|
|
|
|
#endif
|