Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

splashscreen.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2015 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 <functional>
9 #include <QSplashScreen>
10 
11 class CWallet;
12 class NetworkStyle;
13 
20 class SplashScreen : public QWidget
21 {
22  Q_OBJECT
23 
24 public:
25  explicit SplashScreen(Qt::WindowFlags f, const NetworkStyle *networkStyle);
26  ~SplashScreen();
27 
28 protected:
29  void paintEvent(QPaintEvent *event);
30  void closeEvent(QCloseEvent *event);
31 
32 public Q_SLOTS:
34  void slotFinish(QWidget *mainWin);
35 
37  void showMessage(const QString &message, int alignment, const QColor &color);
38 
39 protected:
40  bool eventFilter(QObject * obj, QEvent * ev);
41 
42 private:
48  void ConnectWallet(CWallet*);
49 
50  QPixmap pixmap;
51  QString curMessage;
52  QColor curColor;
54 
55  QList<CWallet*> connectedWallets;
56 };
57 
58 #endif // BITCOIN_QT_SPLASHSCREEN_H
bool eventFilter(QObject *obj, QEvent *ev)
void unsubscribeFromCoreSignals()
Disconnect core signals to splash screen.
void closeEvent(QCloseEvent *event)
void ConnectWallet(CWallet *)
Connect wallet signals to splash screen.
Class for the splashscreen with information of the running client.
Definition: splashscreen.h:20
SplashScreen(Qt::WindowFlags f, const NetworkStyle *networkStyle)
void subscribeToCoreSignals()
Connect core signals to splash screen.
QList< CWallet * > connectedWallets
Definition: splashscreen.h:55
void paintEvent(QPaintEvent *event)
void showMessage(const QString &message, int alignment, const QColor &color)
Show message and progress.
QString curMessage
Definition: splashscreen.h:51
QPixmap pixmap
Definition: splashscreen.h:50
void slotFinish(QWidget *mainWin)
Slot to call finish() method as it&#39;s not defined as slot.
A CWallet is an extension of a keystore, which also maintains a set of transactions and balances...
Definition: wallet.h:715
QColor curColor
Definition: splashscreen.h:52
Released under the MIT license