Dash Core  0.12.2.1
P2P Digital Currency
SplashScreen Class Reference

#include <splashscreen.h>

+ Inheritance diagram for SplashScreen:

Public Slots

void slotFinish (QWidget *mainWin)
 
void showMessage (const QString &message, int alignment, const QColor &color)
 

Public Member Functions

 SplashScreen (Qt::WindowFlags f, const NetworkStyle *networkStyle)
 
 ~SplashScreen ()
 

Protected Member Functions

void paintEvent (QPaintEvent *event)
 
void closeEvent (QCloseEvent *event)
 

Private Member Functions

void subscribeToCoreSignals ()
 
void unsubscribeFromCoreSignals ()
 

Private Attributes

QPixmap pixmap
 
QString curMessage
 
QColor curColor
 
int curAlignment
 

Detailed Description

Class for the splashscreen with information of the running client.

Note
this is intentionally not a QSplashScreen. Bitcoin Core initialization can take a long time, and in that case a progress window that cannot be moved around and minimized has turned out to be frustrating to the user.

Definition at line 18 of file splashscreen.h.

Constructor & Destructor Documentation

◆ SplashScreen()

SplashScreen::SplashScreen ( Qt::WindowFlags  f,
const NetworkStyle networkStyle 
)
explicit

Definition at line 25 of file splashscreen.cpp.

◆ ~SplashScreen()

SplashScreen::~SplashScreen ( )

Definition at line 108 of file splashscreen.cpp.

Member Function Documentation

◆ closeEvent()

void SplashScreen::closeEvent ( QCloseEvent *  event)
protected

Definition at line 184 of file splashscreen.cpp.

◆ paintEvent()

void SplashScreen::paintEvent ( QPaintEvent *  event)
protected

Definition at line 175 of file splashscreen.cpp.

◆ showMessage

void SplashScreen::showMessage ( const QString &  message,
int  alignment,
const QColor &  color 
)
slot

Show message and progress

Definition at line 167 of file splashscreen.cpp.

◆ slotFinish

void SplashScreen::slotFinish ( QWidget *  mainWin)
slot

Slot to call finish() method as it's not defined as slot

Definition at line 113 of file splashscreen.cpp.

◆ subscribeToCoreSignals()

void SplashScreen::subscribeToCoreSignals ( )
private

Connect core signals to splash screen

Definition at line 146 of file splashscreen.cpp.

Referenced by SplashScreen().

◆ unsubscribeFromCoreSignals()

void SplashScreen::unsubscribeFromCoreSignals ( )
private

Disconnect core signals to splash screen

Definition at line 156 of file splashscreen.cpp.

Referenced by ~SplashScreen().

Member Data Documentation

◆ curAlignment

int SplashScreen::curAlignment
private

Definition at line 46 of file splashscreen.h.

Referenced by paintEvent(), and showMessage().

◆ curColor

QColor SplashScreen::curColor
private

Definition at line 45 of file splashscreen.h.

Referenced by paintEvent(), and showMessage().

◆ curMessage

QString SplashScreen::curMessage
private

Definition at line 44 of file splashscreen.h.

Referenced by paintEvent(), and showMessage().

◆ pixmap

QPixmap SplashScreen::pixmap
private

Definition at line 43 of file splashscreen.h.

Referenced by paintEvent(), and SplashScreen().


The documentation for this class was generated from the following files: