Changeset View
Changeset View
Standalone View
Standalone View
src/qt/modaloverlay.h
// Copyright (c) 2016 The Bitcoin Core developers | // Copyright (c) 2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#ifndef BITCOIN_QT_MODALOVERLAY_H | #ifndef BITCOIN_QT_MODALOVERLAY_H | ||||
#define BITCOIN_QT_MODALOVERLAY_H | #define BITCOIN_QT_MODALOVERLAY_H | ||||
#include <QDateTime> | #include <QDateTime> | ||||
#include <QPropertyAnimation> | |||||
#include <QWidget> | #include <QWidget> | ||||
//! The required delta of headers to the estimated number of available headers | //! The required delta of headers to the estimated number of available headers | ||||
//! until we show the IBD progress | //! until we show the IBD progress | ||||
static constexpr int HEADER_HEIGHT_DELTA_SYNC = 24; | static constexpr int HEADER_HEIGHT_DELTA_SYNC = 24; | ||||
namespace Ui { | namespace Ui { | ||||
class ModalOverlay; | class ModalOverlay; | ||||
Show All 24 Lines | |||||
private: | private: | ||||
Ui::ModalOverlay *ui; | Ui::ModalOverlay *ui; | ||||
int bestHeaderHeight; // best known height (based on the headers) | int bestHeaderHeight; // best known height (based on the headers) | ||||
QDateTime bestHeaderDate; | QDateTime bestHeaderDate; | ||||
QVector<QPair<qint64, double>> blockProcessTime; | QVector<QPair<qint64, double>> blockProcessTime; | ||||
bool layerIsVisible; | bool layerIsVisible; | ||||
bool userClosed; | bool userClosed; | ||||
QPropertyAnimation m_animation; | |||||
void UpdateHeaderSyncLabel(); | void UpdateHeaderSyncLabel(); | ||||
}; | }; | ||||
#endif // BITCOIN_QT_MODALOVERLAY_H | #endif // BITCOIN_QT_MODALOVERLAY_H |