Changeset View
Changeset View
Standalone View
Standalone View
src/qt/splashscreen.h
// Copyright (c) 2011-2016 The Bitcoin Core developers | // Copyright (c) 2011-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#ifndef BITCOIN_QT_SPLASHSCREEN_H | #ifndef BITCOIN_QT_SPLASHSCREEN_H | ||||
#define BITCOIN_QT_SPLASHSCREEN_H | #define BITCOIN_QT_SPLASHSCREEN_H | ||||
#include <QSplashScreen> | #include <QWidget> | ||||
#include <functional> | |||||
#include <memory> | #include <memory> | ||||
class NetworkStyle; | class NetworkStyle; | ||||
namespace interfaces { | namespace interfaces { | ||||
class Handler; | class Handler; | ||||
class Node; | class Node; | ||||
Show All 14 Lines | explicit SplashScreen(interfaces::Node &node, | ||||
const NetworkStyle *networkStyle); | const NetworkStyle *networkStyle); | ||||
~SplashScreen(); | ~SplashScreen(); | ||||
protected: | protected: | ||||
void paintEvent(QPaintEvent *event) override; | void paintEvent(QPaintEvent *event) override; | ||||
void closeEvent(QCloseEvent *event) override; | void closeEvent(QCloseEvent *event) override; | ||||
public Q_SLOTS: | public Q_SLOTS: | ||||
/** Slot to call finish() method as it's not defined as slot */ | /** Hide the splash screen window and schedule the splash screen object for | ||||
void slotFinish(QWidget *mainWin); | * deletion */ | ||||
void finish(); | |||||
/** Show message and progress */ | /** Show message and progress */ | ||||
void showMessage(const QString &message, int alignment, | void showMessage(const QString &message, int alignment, | ||||
const QColor &color); | const QColor &color); | ||||
protected: | protected: | ||||
bool eventFilter(QObject *obj, QEvent *ev) override; | bool eventFilter(QObject *obj, QEvent *ev) override; | ||||
Show All 22 Lines |