Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

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 WalletModel;
17 
18 namespace Ui {
19  class OverviewPage;
20 }
21 
22 QT_BEGIN_NAMESPACE
23 class QModelIndex;
24 QT_END_NAMESPACE
25 
27 class OverviewPage : public QWidget
28 {
29  Q_OBJECT
30 
31 public:
32  explicit OverviewPage(QWidget* parent = 0);
33  ~OverviewPage();
34 
37  void showOutOfSyncWarning(bool fShow);
38 
39 public Q_SLOTS:
40  void privateSendStatus(bool fForce = false);
41  void setBalance(const CAmount& balance, const CAmount& unconfirmedBalance, const CAmount& immatureBalance, const CAmount& anonymizedBalance,
42  const CAmount& watchOnlyBalance, const CAmount& watchUnconfBalance, const CAmount& watchImmatureBalance);
43 
44 Q_SIGNALS:
45  void transactionClicked(const QModelIndex &index);
47 
48 private:
49  QTimer *timer;
50  Ui::OverviewPage *ui;
63 
65  std::unique_ptr<TransactionFilterProxy> filter;
66 
67  void SetupTransactionList(int nNumItems);
69 
70 private Q_SLOTS:
71  void togglePrivateSend();
72  void updateDisplayUnit();
75  void handleTransactionClicked(const QModelIndex &index);
76  void updateAlerts(const QString &warnings);
77  void updateWatchOnlyLabels(bool showWatchOnly);
79 };
80 
81 #endif // BITCOIN_QT_OVERVIEWPAGE_H
void setWalletModel(WalletModel *walletModel)
void updateAlerts(const QString &warnings)
void DisablePrivateSendCompletely()
void handleTransactionClicked(const QModelIndex &index)
CAmount currentBalance
Definition: overviewpage.h:53
std::unique_ptr< TransactionFilterProxy > filter
Definition: overviewpage.h:65
CAmount currentWatchOnlyBalance
Definition: overviewpage.h:57
TxViewDelegate * txdelegate
Definition: overviewpage.h:64
WalletModel * walletModel
Definition: overviewpage.h:52
CAmount currentUnconfirmedBalance
Definition: overviewpage.h:54
void outOfSyncWarningClicked()
int64_t CAmount
Amount in satoshis (Can be negative)
Definition: amount.h:12
int cachedNumISLocks
Definition: overviewpage.h:62
CAmount currentWatchUnconfBalance
Definition: overviewpage.h:58
CAmount currentAnonymizedBalance
Definition: overviewpage.h:56
void updateWatchOnlyLabels(bool showWatchOnly)
void togglePrivateSend()
void updateAdvancedPSUI(bool fShowAdvancedPSUI)
bool fShowAdvancedPSUI
Definition: overviewpage.h:61
Model for Dash network client.
Definition: clientmodel.h:42
ClientModel * clientModel
Definition: overviewpage.h:51
void privateSendStatus(bool fForce=false)
void transactionClicked(const QModelIndex &index)
void showOutOfSyncWarning(bool fShow)
QTimer * timer
Definition: overviewpage.h:49
OverviewPage(QWidget *parent=0)
Filter the transaction list according to pre-specified rules.
void updateDisplayUnit()
Interface to Bitcoin wallet from Qt view code.
Definition: walletmodel.h:100
void updatePrivateSendProgress()
CAmount currentWatchImmatureBalance
Definition: overviewpage.h:59
CAmount currentImmatureBalance
Definition: overviewpage.h:55
void setClientModel(ClientModel *clientModel)
void handleOutOfSyncWarningClicks()
void setBalance(const CAmount &balance, const CAmount &unconfirmedBalance, const CAmount &immatureBalance, const CAmount &anonymizedBalance, const CAmount &watchOnlyBalance, const CAmount &watchUnconfBalance, const CAmount &watchImmatureBalance)
Overview ("home") page widget.
Definition: overviewpage.h:27
Ui::OverviewPage * ui
Definition: overviewpage.h:50
void SetupTransactionList(int nNumItems)
Released under the MIT license