PRCYCoin  2.0.0.7rc1
P2P Digital Currency
splashscreen.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2014 The Bitcoin developers
2 // Distributed under the MIT/X11 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 NetworkStyle;
11 
18 class SplashScreen : public QWidget
19 {
20  Q_OBJECT
21 
22 public:
23  explicit SplashScreen(Qt::WindowFlags f, const NetworkStyle* networkStyle);
24  ~SplashScreen();
25 
26 protected:
27  void paintEvent(QPaintEvent* event);
28  void closeEvent(QCloseEvent* event);
29 
30 public Q_SLOTS:
32  void slotFinish(QWidget* mainWin);
33 
35  void showMessage(const QString& message, int alignment, const QColor& color);
36 
37 private:
42 
43  QPixmap pixmap;
44  QString curMessage;
45  QColor curColor;
47 };
48 
49 #endif // BITCOIN_QT_SPLASHSCREEN_H
SplashScreen::curAlignment
int curAlignment
Definition: splashscreen.h:46
NetworkStyle
Definition: networkstyle.h:13
SplashScreen::unsubscribeFromCoreSignals
void unsubscribeFromCoreSignals()
Disconnect core signals to splash screen.
Definition: splashscreen.cpp:148
SplashScreen::~SplashScreen
~SplashScreen()
Definition: splashscreen.cpp:106
SplashScreen::subscribeToCoreSignals
void subscribeToCoreSignals()
Connect core signals to splash screen.
Definition: splashscreen.cpp:138
SplashScreen::curMessage
QString curMessage
Definition: splashscreen.h:44
SplashScreen::showMessage
void showMessage(const QString &message, int alignment, const QColor &color)
Show message and progress.
Definition: splashscreen.cpp:159
SplashScreen::pixmap
QPixmap pixmap
Definition: splashscreen.h:43
SplashScreen
Class for the splashscreen with information of the running client.
Definition: splashscreen.h:18
SplashScreen::SplashScreen
SplashScreen(Qt::WindowFlags f, const NetworkStyle *networkStyle)
Definition: splashscreen.cpp:26
SplashScreen::slotFinish
void slotFinish(QWidget *mainWin)
Slot to call finish() method as it's not defined as slot.
Definition: splashscreen.cpp:111
SplashScreen::curColor
QColor curColor
Definition: splashscreen.h:45
SplashScreen::closeEvent
void closeEvent(QCloseEvent *event)
Definition: splashscreen.cpp:176
SplashScreen::paintEvent
void paintEvent(QPaintEvent *event)
Definition: splashscreen.cpp:167