Fabcoin Core  0.16.2
P2P Digital Currency
splashscreen.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2017 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 FABCOIN_QT_SPLASHSCREEN_H
6 #define FABCOIN_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 
40  void setBreakAction(const std::function<void(void)> &action);
41 protected:
42  bool eventFilter(QObject * obj, QEvent * ev);
43 
44 private:
50  void ConnectWallet(CWallet*);
51 
52  QPixmap pixmap;
53  QString curMessage;
54  QColor curColor;
56 
57  QList<CWallet*> connectedWallets;
58 
59  std::function<void(void)> breakAction;
60 };
61 
62 #endif // FABCOIN_QT_SPLASHSCREEN_H
bool eventFilter(QObject *obj, QEvent *ev)
void unsubscribeFromCoreSignals()
Disconnect core signals to splash screen.
#define function(a, b, c, d, k, s)
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:57
void paintEvent(QPaintEvent *event)
void showMessage(const QString &message, int alignment, const QColor &color)
Show message and progress.
QString curMessage
Definition: splashscreen.h:53
QPixmap pixmap
Definition: splashscreen.h:52
std::function< void(void)> breakAction
Definition: splashscreen.h:59
#define f(x)
Definition: gost.cpp:57
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:672
void setBreakAction(const std::function< void(void)> &action)
Sets the break action.
QColor curColor
Definition: splashscreen.h:54