Fabcoin Core  0.16.2
P2P Digital Currency
Public Slots | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
SplashScreen Class Reference

Class for the splashscreen with information of the running client. More...

#include <splashscreen.h>

Inheritance diagram for SplashScreen:
[legend]
Collaboration diagram for SplashScreen:
[legend]

Public Slots

void slotFinish (QWidget *mainWin)
 Slot to call finish() method as it's not defined as slot. More...
 
void showMessage (const QString &message, int alignment, const QColor &color)
 Show message and progress. More...
 
void setBreakAction (const std::function< void(void)> &action)
 Sets the break action. More...
 

Public Member Functions

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

Protected Member Functions

void paintEvent (QPaintEvent *event)
 
void closeEvent (QCloseEvent *event)
 
bool eventFilter (QObject *obj, QEvent *ev)
 

Private Member Functions

void subscribeToCoreSignals ()
 Connect core signals to splash screen. More...
 
void unsubscribeFromCoreSignals ()
 Disconnect core signals to splash screen. More...
 
void ConnectWallet (CWallet *)
 Connect wallet signals to splash screen. More...
 

Private Attributes

QPixmap pixmap
 
QString curMessage
 
QColor curColor
 
int curAlignment
 
QList< CWallet * > connectedWallets
 
std::function< void(void)> breakAction
 

Detailed Description

Class for the splashscreen with information of the running client.

Note
this is intentionally not a QSplashScreen. Fabcoin 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 20 of file splashscreen.h.

Constructor & Destructor Documentation

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

Definition at line 29 of file splashscreen.cpp.

Here is the call graph for this function:

SplashScreen::~SplashScreen ( )

Definition at line 115 of file splashscreen.cpp.

Here is the call graph for this function:

Member Function Documentation

void SplashScreen::closeEvent ( QCloseEvent *  event)
protected

Definition at line 219 of file splashscreen.cpp.

Here is the call graph for this function:

void SplashScreen::ConnectWallet ( CWallet )
private

Connect wallet signals to splash screen.

Here is the caller graph for this function:

bool SplashScreen::eventFilter ( QObject *  obj,
QEvent *  ev 
)
protected

Definition at line 120 of file splashscreen.cpp.

void SplashScreen::paintEvent ( QPaintEvent *  event)
protected

Definition at line 207 of file splashscreen.cpp.

void SplashScreen::setBreakAction ( const std::function< void(void)> &  action)
slot

Sets the break action.

Definition at line 156 of file splashscreen.cpp.

Here is the call graph for this function:

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

Show message and progress.

Definition at line 199 of file splashscreen.cpp.

void SplashScreen::slotFinish ( QWidget *  mainWin)
slot

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

Definition at line 130 of file splashscreen.cpp.

void SplashScreen::subscribeToCoreSignals ( )
private

Connect core signals to splash screen.

Definition at line 176 of file splashscreen.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void SplashScreen::unsubscribeFromCoreSignals ( )
private

Disconnect core signals to splash screen.

Definition at line 187 of file splashscreen.cpp.

Here is the caller graph for this function:

Member Data Documentation

std::function<void(void)> SplashScreen::breakAction
private

Definition at line 59 of file splashscreen.h.

QList<CWallet*> SplashScreen::connectedWallets
private

Definition at line 57 of file splashscreen.h.

int SplashScreen::curAlignment
private

Definition at line 55 of file splashscreen.h.

QColor SplashScreen::curColor
private

Definition at line 54 of file splashscreen.h.

QString SplashScreen::curMessage
private

Definition at line 53 of file splashscreen.h.

QPixmap SplashScreen::pixmap
private

Definition at line 52 of file splashscreen.h.


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