Files
GUI/src/dialogs/guimessagedialog.h

42 lines
874 B
C
Raw Normal View History

2021-10-13 17:39:37 +08:00
#ifndef GUIMESSAGEDIALOG_H
#define GUIMESSAGEDIALOG_H
#include <QDialog>
#include <QList>
namespace Ui {
class GUIMessageDialog;
}
class QToolButton;
2021-10-13 17:39:37 +08:00
class GUIMessageDialog : public QDialog
{
Q_OBJECT
public:
explicit GUIMessageDialog(QWidget *parent = nullptr);
~GUIMessageDialog();
void showMessage(QString msg);
void hideMessage();
2021-10-13 17:39:37 +08:00
void showExitButton();
void hideExitButton();
2021-10-13 17:39:37 +08:00
void startLoading();
void stopLoading();
void startPending();
void stopPending();
bool Pending(){
return pending;
}
2022-01-11 13:05:05 +08:00
void setOpacity(double);
2021-10-13 17:39:37 +08:00
protected:
void timerEvent(QTimerEvent* event) override ;
private:
Ui::GUIMessageDialog *ui;
QList<QString> frame;
QToolButton *btn_main;
QToolButton *btn_Append;
2021-10-13 17:39:37 +08:00
int frameIndex=0;
int timerID = -1;
bool pending = false;
2021-10-13 17:39:37 +08:00
};
#endif // GUIMESSAGEDIALOG_H