Fabcoin Core  0.16.2
P2P Digital Currency
Public Types | Public Slots | Signals | Public Member Functions | Protected 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 Types

enum  OverlayType { Sync = 0, Backup = 1 }
 

Public Slots

void tipUpdate (int count, const QDateTime &blockDate, double nVerificationProgress)
 
void setKnownBestHeight (int count, const QDateTime &blockDate)
 
void toggleVisibility ()
 
void showHide (bool hide=false, bool userRequested=false)
 
void closeClicked ()
 
void backupWalletClicked ()
 
bool isLayerVisible ()
 

Signals

void backupWallet ()
 

Public Member Functions

 ModalOverlay (QWidget *parent, OverlayType _type=OverlayType::Sync)
 
 ~ModalOverlay ()
 

Protected Member Functions

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

Private Attributes

Ui::ModalOverlayui
 
int bestHeaderHeight
 
QDateTime bestHeaderDate
 
QVector< QPair< qint64, double > > blockProcessTime
 
bool layerIsVisible
 
bool userClosed
 
OverlayType type
 

Detailed Description

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

Definition at line 19 of file modaloverlay.h.

Member Enumeration Documentation

Enumerator
Sync 
Backup 

Definition at line 24 of file modaloverlay.h.

Constructor & Destructor Documentation

ModalOverlay::ModalOverlay ( QWidget *  parent,
OverlayType  _type = OverlayType::Sync 
)
explicit

Definition at line 16 of file modaloverlay.cpp.

Here is the call graph for this function:

ModalOverlay::~ModalOverlay ( )

Definition at line 44 of file modaloverlay.cpp.

Member Function Documentation

void ModalOverlay::backupWallet ( )
signal

Definition at line 168 of file moc_modaloverlay.cpp.

Here is the caller graph for this function:

void ModalOverlay::backupWalletClicked ( )
slot

Definition at line 187 of file modaloverlay.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void ModalOverlay::closeClicked ( )
slot

Definition at line 181 of file modaloverlay.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool ModalOverlay::event ( QEvent *  ev)
protected

Tracks parent widget changes.

Definition at line 66 of file modaloverlay.cpp.

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

Definition at line 49 of file modaloverlay.cpp.

bool ModalOverlay::isLayerVisible ( )
inlineslot

Definition at line 42 of file modaloverlay.h.

Here is the caller graph for this function:

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

Definition at line 79 of file modaloverlay.cpp.

Here is the caller graph for this function:

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

Definition at line 162 of file modaloverlay.cpp.

Here is the caller graph for this function:

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

Definition at line 87 of file modaloverlay.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void ModalOverlay::toggleVisibility ( )
slot

Definition at line 155 of file modaloverlay.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

QDateTime ModalOverlay::bestHeaderDate
private

Definition at line 54 of file modaloverlay.h.

int ModalOverlay::bestHeaderHeight
private

Definition at line 53 of file modaloverlay.h.

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

Definition at line 55 of file modaloverlay.h.

bool ModalOverlay::layerIsVisible
private

Definition at line 56 of file modaloverlay.h.

OverlayType ModalOverlay::type
private

Definition at line 58 of file modaloverlay.h.

Ui::ModalOverlay* ModalOverlay::ui
private

Definition at line 52 of file modaloverlay.h.

bool ModalOverlay::userClosed
private

Definition at line 57 of file modaloverlay.h.


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