Changeset View
Changeset View
Standalone View
Standalone View
src/qt/overviewpage.h
// Copyright (c) 2011-2016 The Bitcoin Core developers | // Copyright (c) 2011-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_OVERVIEWPAGE_H | #ifndef BITCOIN_QT_OVERVIEWPAGE_H | ||||
#define BITCOIN_QT_OVERVIEWPAGE_H | #define BITCOIN_QT_OVERVIEWPAGE_H | ||||
#include "amount.h" | #include <interfaces/wallet.h> | ||||
#include <QWidget> | #include <QWidget> | ||||
#include <memory> | #include <memory> | ||||
class ClientModel; | class ClientModel; | ||||
class TransactionFilterProxy; | class TransactionFilterProxy; | ||||
class TxViewDelegate; | class TxViewDelegate; | ||||
class PlatformStyle; | class PlatformStyle; | ||||
Show All 16 Lines | explicit OverviewPage(const PlatformStyle *platformStyle, | ||||
QWidget *parent = 0); | QWidget *parent = 0); | ||||
~OverviewPage(); | ~OverviewPage(); | ||||
void setClientModel(ClientModel *clientModel); | void setClientModel(ClientModel *clientModel); | ||||
void setWalletModel(WalletModel *walletModel); | void setWalletModel(WalletModel *walletModel); | ||||
void showOutOfSyncWarning(bool fShow); | void showOutOfSyncWarning(bool fShow); | ||||
public Q_SLOTS: | public Q_SLOTS: | ||||
void setBalance(const Amount balance, const Amount unconfirmedBalance, | void setBalance(const interfaces::WalletBalances &balances); | ||||
const Amount immatureBalance, const Amount watchOnlyBalance, | |||||
const Amount watchUnconfBalance, | |||||
const Amount watchImmatureBalance); | |||||
Q_SIGNALS: | Q_SIGNALS: | ||||
void transactionClicked(const QModelIndex &index); | void transactionClicked(const QModelIndex &index); | ||||
void outOfSyncWarningClicked(); | void outOfSyncWarningClicked(); | ||||
private: | private: | ||||
Ui::OverviewPage *ui; | Ui::OverviewPage *ui; | ||||
ClientModel *clientModel; | ClientModel *clientModel; | ||||
WalletModel *walletModel; | WalletModel *walletModel; | ||||
Amount currentBalance; | interfaces::WalletBalances m_balances; | ||||
Amount currentUnconfirmedBalance; | |||||
Amount currentImmatureBalance; | |||||
Amount currentWatchOnlyBalance; | |||||
Amount currentWatchUnconfBalance; | |||||
Amount currentWatchImmatureBalance; | |||||
TxViewDelegate *txdelegate; | TxViewDelegate *txdelegate; | ||||
std::unique_ptr<TransactionFilterProxy> filter; | std::unique_ptr<TransactionFilterProxy> filter; | ||||
private Q_SLOTS: | private Q_SLOTS: | ||||
void updateDisplayUnit(); | void updateDisplayUnit(); | ||||
void handleTransactionClicked(const QModelIndex &index); | void handleTransactionClicked(const QModelIndex &index); | ||||
void updateAlerts(const QString &warnings); | void updateAlerts(const QString &warnings); | ||||
void updateWatchOnlyLabels(bool showWatchOnly); | void updateWatchOnlyLabels(bool showWatchOnly); | ||||
void handleOutOfSyncWarningClicks(); | void handleOutOfSyncWarningClicks(); | ||||
}; | }; | ||||
#endif // BITCOIN_QT_OVERVIEWPAGE_H | #endif // BITCOIN_QT_OVERVIEWPAGE_H |