mirror of
https://github.com/huderlem/porymap.git
synced 2026-03-22 10:04:53 -05:00
44 lines
748 B
C++
44 lines
748 B
C++
#include "qgifimage.h"
|
|
|
|
#include <QSplashScreen>
|
|
#include <QTimer>
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
namespace Ui {
|
|
class LoadingScreen;
|
|
}
|
|
|
|
class PorymapLoadingScreen : public QWidget {
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit PorymapLoadingScreen(QWidget *parent = nullptr);
|
|
~PorymapLoadingScreen();
|
|
|
|
void setPixmap(const QPixmap &pixmap);
|
|
void showMessage(const QString &text);
|
|
void showMessage(const QString &prefix, const QString &text);
|
|
void showLoadingMessage(const QString &text);
|
|
|
|
void start();
|
|
void stop ();
|
|
|
|
private:
|
|
void setupUi();
|
|
|
|
public slots:
|
|
void updateFrame();
|
|
|
|
private:
|
|
Ui::LoadingScreen *ui;
|
|
|
|
QGifImage splashImage;
|
|
int frame = 0;
|
|
QTimer timer;
|
|
};
|
|
|
|
extern PorymapLoadingScreen *porysplash;
|