Dogecoin Core  1.14.2
P2P Digital Currency
splashscreen.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2016 The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef BITCOIN_QT_SPLASHSCREEN_H
6 #define BITCOIN_QT_SPLASHSCREEN_H
7 
8 #include <QSplashScreen>
9 
10 class CWallet;
11 class NetworkStyle;
12 
19 class SplashScreen : public QWidget
20 {
21  Q_OBJECT
22 
23 public:
24  explicit SplashScreen(Qt::WindowFlags f, const NetworkStyle *networkStyle);
25  ~SplashScreen();
26 
27 protected:
28  void paintEvent(QPaintEvent *event);
29  void closeEvent(QCloseEvent *event);
30 
31 public Q_SLOTS:
33  void slotFinish(QWidget *mainWin);
34 
36  void showMessage(const QString &message, int alignment, const QColor &color);
37 
38 private:
45 
46  QPixmap pixmap;
47  QString curMessage;
48  QColor curColor;
50 
51  QList<CWallet*> connectedWallets;
52 };
53 
54 #endif // BITCOIN_QT_SPLASHSCREEN_H
A CWallet is an extension of a keystore, which also maintains a set of transactions and balances,...
Definition: wallet.h:493
Class for the splashscreen with information of the running client.
Definition: splashscreen.h:20
void ConnectWallet(CWallet *)
Connect wallet signals to splash screen.
void paintEvent(QPaintEvent *event)
void showMessage(const QString &message, int alignment, const QColor &color)
Show message and progress.
void unsubscribeFromCoreSignals()
Disconnect core signals to splash screen.
void subscribeToCoreSignals()
Connect core signals to splash screen.
QColor curColor
Definition: splashscreen.h:48
QList< CWallet * > connectedWallets
Definition: splashscreen.h:51
SplashScreen(Qt::WindowFlags f, const NetworkStyle *networkStyle)
QString curMessage
Definition: splashscreen.h:47
QPixmap pixmap
Definition: splashscreen.h:46
void slotFinish(QWidget *mainWin)
Slot to call finish() method as it's not defined as slot.
void closeEvent(QCloseEvent *event)