Raven Core  3.0.0
P2P Digital Currency
splashscreen.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2016 The Bitcoin Core developers
2 // Copyright (c) 2017-2019 The Raven Core developers
3 // Distributed under the MIT software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 
6 #ifndef RAVEN_QT_SPLASHSCREEN_H
7 #define RAVEN_QT_SPLASHSCREEN_H
8 
9 #include <functional>
10 #include <QSplashScreen>
11 
12 class CWallet;
13 class NetworkStyle;
14 
21 class SplashScreen : public QWidget
22 {
23  Q_OBJECT
24 
25 public:
26  explicit SplashScreen(Qt::WindowFlags f, const NetworkStyle *networkStyle);
27  ~SplashScreen();
28 
29 protected:
30  void paintEvent(QPaintEvent *event);
31  void closeEvent(QCloseEvent *event);
32 
33 public Q_SLOTS:
35  void slotFinish(QWidget *mainWin);
36 
38  void showMessage(const QString &message, int alignment, const QColor &color);
39 
40 protected:
41  bool eventFilter(QObject * obj, QEvent * ev);
42 
43 private:
49  void ConnectWallet(CWallet*);
50 
51  QPixmap pixmap;
52  QString curMessage;
53  QColor curColor;
55 
56  QList<CWallet*> connectedWallets;
57 };
58 
59 #endif // RAVEN_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:21
SplashScreen(Qt::WindowFlags f, const NetworkStyle *networkStyle)
void subscribeToCoreSignals()
Connect core signals to splash screen.
QList< CWallet * > connectedWallets
Definition: splashscreen.h:56
void paintEvent(QPaintEvent *event)
void showMessage(const QString &message, int alignment, const QColor &color)
Show message and progress.
QString curMessage
Definition: splashscreen.h:52
QPixmap pixmap
Definition: splashscreen.h:51
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:673
QColor curColor
Definition: splashscreen.h:53