Dash Core  0.12.2.1
P2P Digital Currency
overviewpage.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2015 The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef BITCOIN_QT_OVERVIEWPAGE_H
6 #define BITCOIN_QT_OVERVIEWPAGE_H
7 
8 #include "amount.h"
9 
10 #include <QWidget>
11 #include <memory>
12 
13 class ClientModel;
15 class TxViewDelegate;
16 class PlatformStyle;
17 class WalletModel;
18 
19 namespace Ui {
20  class OverviewPage;
21 }
22 
23 QT_BEGIN_NAMESPACE
24 class QModelIndex;
25 QT_END_NAMESPACE
26 
28 class OverviewPage : public QWidget
29 {
30  Q_OBJECT
31 
32 public:
33  explicit OverviewPage(const PlatformStyle *platformStyle, QWidget *parent = 0);
34  ~OverviewPage();
35 
38  void showOutOfSyncWarning(bool fShow);
39 
40 public Q_SLOTS:
41  void privateSendStatus();
42  void setBalance(const CAmount& balance, const CAmount& unconfirmedBalance, const CAmount& immatureBalance, const CAmount& anonymizedBalance,
43  const CAmount& watchOnlyBalance, const CAmount& watchUnconfBalance, const CAmount& watchImmatureBalance);
44 
45 Q_SIGNALS:
46  void transactionClicked(const QModelIndex &index);
48 
49 private:
50  QTimer *timer;
63 
65  std::unique_ptr<TransactionFilterProxy> filter;
66 
67  void SetupTransactionList(int nNumItems);
69 
70 private Q_SLOTS:
71  void togglePrivateSend();
72  void privateSendAuto();
73  void privateSendReset();
74  void privateSendInfo();
75  void updateDisplayUnit();
78  void handleTransactionClicked(const QModelIndex &index);
79  void updateAlerts(const QString &warnings);
80  void updateWatchOnlyLabels(bool showWatchOnly);
82 };
83 
84 #endif // BITCOIN_QT_OVERVIEWPAGE_H
OverviewPage(const PlatformStyle *platformStyle, QWidget *parent=0)
void handleTransactionClicked(const QModelIndex &index)
void updateAlerts(const QString &warnings)
bool fShowAdvancedPSUI
Definition: overviewpage.h:62
void setBalance(const CAmount &balance, const CAmount &unconfirmedBalance, const CAmount &immatureBalance, const CAmount &anonymizedBalance, const CAmount &watchOnlyBalance, const CAmount &watchUnconfBalance, const CAmount &watchImmatureBalance)
void updateAdvancedPSUI(bool fShowAdvancedPSUI)
void updatePrivateSendProgress()
void privateSendReset()
CAmount currentWatchUnconfBalance
Definition: overviewpage.h:59
void transactionClicked(const QModelIndex &index)
void showOutOfSyncWarning(bool fShow)
void DisablePrivateSendCompletely()
void handleOutOfSyncWarningClicks()
std::unique_ptr< TransactionFilterProxy > filter
Definition: overviewpage.h:65
CAmount currentAnonymizedBalance
Definition: overviewpage.h:57
void privateSendStatus()
int64_t CAmount
Definition: amount.h:14
void privateSendAuto()
TxViewDelegate * txdelegate
Definition: overviewpage.h:64
void setWalletModel(WalletModel *walletModel)
void updateDisplayUnit()
void togglePrivateSend()
ClientModel * clientModel
Definition: overviewpage.h:52
WalletModel * walletModel
Definition: overviewpage.h:53
CAmount currentUnconfirmedBalance
Definition: overviewpage.h:55
void setClientModel(ClientModel *clientModel)
void outOfSyncWarningClicked()
void SetupTransactionList(int nNumItems)
CAmount currentWatchImmatureBalance
Definition: overviewpage.h:60
CAmount currentImmatureBalance
Definition: overviewpage.h:56
void updateWatchOnlyLabels(bool showWatchOnly)
Ui::OverviewPage * ui
Definition: overviewpage.h:51
CAmount currentWatchOnlyBalance
Definition: overviewpage.h:58
CAmount currentBalance
Definition: overviewpage.h:54
void privateSendInfo()
QTimer * timer
Definition: overviewpage.h:50