Bitcoin Core  0.20.99
P2P Digital Currency
Public Slots | Signals | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
ModalOverlay Class Reference

Modal overlay to display information about the chain-sync state. More...

#include <modaloverlay.h>

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

Public Slots

void toggleVisibility ()
 
void closeClicked ()
 

Signals

void triggered (bool hidden)
 

Public Member Functions

 ModalOverlay (bool enable_wallet, QWidget *parent)
 
 ~ModalOverlay ()
 
void tipUpdate (int count, const QDateTime &blockDate, double nVerificationProgress)
 
void setKnownBestHeight (int count, const QDateTime &blockDate)
 
void showHide (bool hide=false, bool userRequested=false)
 
bool isLayerVisible () const
 

Protected Member Functions

bool eventFilter (QObject *obj, QEvent *ev) override
 
bool event (QEvent *ev) override
 Tracks parent widget changes. More...
 

Private Member Functions

void UpdateHeaderSyncLabel ()
 

Private Attributes

Ui::ModalOverlay * ui
 
int bestHeaderHeight
 
QDateTime bestHeaderDate
 
QVector< QPair< qint64, double > > blockProcessTime
 
bool layerIsVisible
 
bool userClosed
 
QPropertyAnimation m_animation
 

Detailed Description

Modal overlay to display information about the chain-sync state.

Definition at line 20 of file modaloverlay.h.

Constructor & Destructor Documentation

◆ ModalOverlay()

ModalOverlay::ModalOverlay ( bool  enable_wallet,
QWidget *  parent 
)
explicit

Definition at line 15 of file modaloverlay.cpp.

Here is the call graph for this function:

◆ ~ModalOverlay()

ModalOverlay::~ModalOverlay ( )

Definition at line 43 of file modaloverlay.cpp.

Member Function Documentation

◆ closeClicked

void ModalOverlay::closeClicked ( )
slot

Definition at line 186 of file modaloverlay.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ event()

bool ModalOverlay::event ( QEvent *  ev)
overrideprotected

Tracks parent widget changes.

Definition at line 68 of file modaloverlay.cpp.

◆ eventFilter()

bool ModalOverlay::eventFilter ( QObject *  obj,
QEvent *  ev 
)
overrideprotected

Definition at line 48 of file modaloverlay.cpp.

◆ isLayerVisible()

bool ModalOverlay::isLayerVisible ( ) const
inline

Definition at line 33 of file modaloverlay.h.

Here is the caller graph for this function:

◆ setKnownBestHeight()

void ModalOverlay::setKnownBestHeight ( int  count,
const QDateTime &  blockDate 
)

Definition at line 81 of file modaloverlay.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ showHide()

void ModalOverlay::showHide ( bool  hide = false,
bool  userRequested = false 
)

Definition at line 169 of file modaloverlay.cpp.

Here is the caller graph for this function:

◆ tipUpdate()

void ModalOverlay::tipUpdate ( int  count,
const QDateTime &  blockDate,
double  nVerificationProgress 
)

Definition at line 90 of file modaloverlay.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ toggleVisibility

void ModalOverlay::toggleVisibility ( )
slot

Definition at line 162 of file modaloverlay.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ triggered

void ModalOverlay::triggered ( bool  hidden)
signal
Here is the caller graph for this function:

◆ UpdateHeaderSyncLabel()

void ModalOverlay::UpdateHeaderSyncLabel ( )
private

Definition at line 157 of file modaloverlay.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ bestHeaderDate

QDateTime ModalOverlay::bestHeaderDate
private

Definition at line 49 of file modaloverlay.h.

◆ bestHeaderHeight

int ModalOverlay::bestHeaderHeight
private

Definition at line 48 of file modaloverlay.h.

◆ blockProcessTime

QVector<QPair<qint64, double> > ModalOverlay::blockProcessTime
private

Definition at line 50 of file modaloverlay.h.

◆ layerIsVisible

bool ModalOverlay::layerIsVisible
private

Definition at line 51 of file modaloverlay.h.

◆ m_animation

QPropertyAnimation ModalOverlay::m_animation
private

Definition at line 53 of file modaloverlay.h.

◆ ui

Ui::ModalOverlay* ModalOverlay::ui
private

Definition at line 47 of file modaloverlay.h.

◆ userClosed

bool ModalOverlay::userClosed
private

Definition at line 52 of file modaloverlay.h.


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