2022-01-04 18:11:48 +08:00
|
|
|
|
#ifndef LOEMPTYDIALOG_H
|
|
|
|
|
#define LOEMPTYDIALOG_H
|
2022-08-25 18:37:24 +08:00
|
|
|
|
|
|
|
|
|
#include <basedlg.h>
|
2022-10-27 15:07:45 +08:00
|
|
|
|
#include <base/customprogressindicator.h>
|
2022-08-25 18:37:24 +08:00
|
|
|
|
#include <QLabel>
|
2022-01-04 18:11:48 +08:00
|
|
|
|
|
2022-08-25 18:37:24 +08:00
|
|
|
|
class LoEmptyDialog : public BaseDlg {
|
2022-01-04 18:11:48 +08:00
|
|
|
|
Q_OBJECT
|
|
|
|
|
public:
|
|
|
|
|
explicit LoEmptyDialog(QWidget *parent = nullptr);
|
2022-08-25 18:37:24 +08:00
|
|
|
|
int exec() override {
|
|
|
|
|
emit startUp();
|
|
|
|
|
return BaseDlg::exec();
|
|
|
|
|
}
|
|
|
|
|
CustomProgressIndicator *mIndicator{0};
|
2022-01-04 18:11:48 +08:00
|
|
|
|
signals:
|
|
|
|
|
void startUp();
|
|
|
|
|
void sigClose();
|
|
|
|
|
public slots:
|
|
|
|
|
void lock(QString strTip,QString strUnLockTip,QString strTimerOutUnLockTip);
|
|
|
|
|
void unlock();
|
|
|
|
|
void TimerOutUnlock();
|
|
|
|
|
bool getLockStatus();
|
|
|
|
|
void SetFailedTipString(QString strTip);
|
2022-08-25 18:37:24 +08:00
|
|
|
|
void SetTipTextContent(QString strTip);
|
|
|
|
|
private:
|
|
|
|
|
QLabel *label;
|
|
|
|
|
int iClosedFlag=0;
|
|
|
|
|
bool iLockFlag = false;
|
|
|
|
|
QString mFinishTip;
|
|
|
|
|
QString mTimeroutTip;
|
|
|
|
|
LoEmptyDialog *m_pSelf=nullptr;
|
|
|
|
|
void CloseWndByDelaySec(int iCloseWndDelaySec);
|
2022-01-04 18:11:48 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // LOEMPTYDIALOG_H
|