mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 15:15:50 +08:00
53 lines
1.3 KiB
C++
53 lines
1.3 KiB
C++
/* Copyright (C) 2018
|
|
* swift project Community / Contributors
|
|
*
|
|
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
|
|
* directory of this distribution. No part of swift project, including this file, may be copied, modified, propagated,
|
|
* or distributed except according to the terms contained in the LICENSE file.
|
|
*/
|
|
|
|
//! \file
|
|
|
|
#ifndef BLACKGUI_SPLASHSCREEN_H
|
|
#define BLACKGUI_SPLASHSCREEN_H
|
|
|
|
#include "blackmisc/statusmessage.h"
|
|
#include <QSplashScreen>
|
|
#include <QPainter>
|
|
#include <QPixmap>
|
|
#include <QLabel>
|
|
#include <QFont>
|
|
#include <QTimer>
|
|
|
|
namespace BlackGui
|
|
{
|
|
/**
|
|
* Own splash screen
|
|
*/
|
|
class CSplashScreen : public QSplashScreen
|
|
{
|
|
public:
|
|
//! Ctor
|
|
CSplashScreen(const QPixmap &pixmap);
|
|
|
|
//! Show status message
|
|
void showStatusMessage(const QString &html);
|
|
|
|
//! Show status message
|
|
void showStatusMessage(const BlackMisc::CStatusMessage &message);
|
|
|
|
//! Set the font for the splash screen
|
|
void setSplashFont(const QFont &font);
|
|
|
|
private:
|
|
//! Hide text
|
|
void hideText();
|
|
|
|
QString m_message;
|
|
QTimer m_hideTextTimer;
|
|
QLabel *m_label = nullptr;
|
|
};
|
|
} // ns
|
|
|
|
#endif // guard
|