Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
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, bool presync)
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.

Private Member Functions

void UpdateHeaderSyncLabel ()
void UpdateHeaderPresyncLabel (int height, const QDateTime &blockDate)

Private Attributes

Ui::ModalOverlay * ui
int bestHeaderHeight {0}
QDateTime bestHeaderDate
QVector< QPair< qint64, double > > blockProcessTime
bool layerIsVisible {false}
bool userClosed {false}
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 17 of file modaloverlay.cpp.

Here is the call graph for this function:
Here is the caller 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 202 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 73 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.

◆ setKnownBestHeight()

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

Definition at line 86 of file modaloverlay.cpp.

Here is the call graph for this function:

◆ showHide()

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

Definition at line 181 of file modaloverlay.cpp.

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

◆ tipUpdate()

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

Definition at line 98 of file modaloverlay.cpp.

Here is the call graph for this function:

◆ toggleVisibility

void ModalOverlay::toggleVisibility ( )
slot

Definition at line 174 of file modaloverlay.cpp.

Here is the call graph for this function:

◆ triggered

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

◆ UpdateHeaderPresyncLabel()

void ModalOverlay::UpdateHeaderPresyncLabel ( int height,
const QDateTime & blockDate )
private

Definition at line 169 of file modaloverlay.cpp.

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

◆ UpdateHeaderSyncLabel()

void ModalOverlay::UpdateHeaderSyncLabel ( )
private

Definition at line 164 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 {0}
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 {false}
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 {false}
private

Definition at line 52 of file modaloverlay.h.


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