Bitcoin
Public Slots | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
SplashScreen Class Reference

#include <splashscreen.h>

Inheritance diagram for SplashScreen:

Public Slots

void finish ()
 
void showMessage (const QString &message, int alignment, const QColor &color)
 

Public Member Functions

 SplashScreen (interfaces::Node &node, 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 ()
 
void unsubscribeFromCoreSignals ()
 
void ConnectWallet (std::unique_ptr< interfaces::Wallet > wallet)
 

Private Attributes

QPixmap pixmap
 
QString curMessage
 
QColor curColor
 
int curAlignment
 
interfaces::Nodem_node
 
std::unique_ptr< interfaces::Handlerm_handler_init_message
 
std::unique_ptr< interfaces::Handlerm_handler_show_progress
 
std::unique_ptr< interfaces::Handlerm_handler_load_wallet
 
std::list< std::unique_ptr< interfaces::Wallet > > m_connected_wallets
 
std::list< std::unique_ptr< interfaces::Handler > > m_connected_wallet_handlers
 

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.

Constructor & Destructor Documentation

◆ SplashScreen()

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

◆ ~SplashScreen()

SplashScreen::~SplashScreen ( )

Member Function Documentation

◆ closeEvent()

void SplashScreen::closeEvent ( QCloseEvent *  event)
protected

◆ ConnectWallet()

void SplashScreen::ConnectWallet ( std::unique_ptr< interfaces::Wallet wallet)
private

Connect wallet signals to splash screen

◆ eventFilter()

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

◆ finish

void SplashScreen::finish ( )
slot

Hide the splash screen window and schedule the splash screen object for deletion

◆ paintEvent()

void SplashScreen::paintEvent ( QPaintEvent *  event)
protected

◆ showMessage

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

Show message and progress

◆ subscribeToCoreSignals()

void SplashScreen::subscribeToCoreSignals ( )
private

Connect core signals to splash screen

◆ unsubscribeFromCoreSignals()

void SplashScreen::unsubscribeFromCoreSignals ( )
private

Disconnect core signals to splash screen

Member Data Documentation

◆ curAlignment

int SplashScreen::curAlignment
private

◆ curColor

QColor SplashScreen::curColor
private

◆ curMessage

QString SplashScreen::curMessage
private

◆ m_connected_wallet_handlers

std::list<std::unique_ptr<interfaces::Handler> > SplashScreen::m_connected_wallet_handlers
private

◆ m_connected_wallets

std::list<std::unique_ptr<interfaces::Wallet> > SplashScreen::m_connected_wallets
private

◆ m_handler_init_message

std::unique_ptr<interfaces::Handler> SplashScreen::m_handler_init_message
private

◆ m_handler_load_wallet

std::unique_ptr<interfaces::Handler> SplashScreen::m_handler_load_wallet
private

◆ m_handler_show_progress

std::unique_ptr<interfaces::Handler> SplashScreen::m_handler_show_progress
private

◆ m_node

interfaces::Node& SplashScreen::m_node
private

◆ pixmap

QPixmap SplashScreen::pixmap
private

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