Fabcoin Core  0.16.2
P2P Digital Currency
overviewpage.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2017 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 FABCOIN_QT_OVERVIEWPAGE_H
6 #define FABCOIN_QT_OVERVIEWPAGE_H
7 
8 #include <amount.h>
9 
10 #include <QWidget>
11 #include <memory>
12 
13 class ClientModel;
15 class TxViewDelegate;
16 class TknViewDelegate;
17 class PlatformStyle;
18 class WalletModel;
19 
20 namespace Ui {
21  class OverviewPage;
22 }
23 
24 QT_BEGIN_NAMESPACE
25 class QModelIndex;
26 QT_END_NAMESPACE
27 
29 class OverviewPage : public QWidget
30 {
31  Q_OBJECT
32 
33 public:
34  explicit OverviewPage(const PlatformStyle *platformStyle, QWidget *parent = 0);
35  ~OverviewPage();
36 
37  void setClientModel(ClientModel *clientModel);
38  void setWalletModel(WalletModel *walletModel);
39  void showOutOfSyncWarning(bool fShow);
40 
41 public Q_SLOTS:
42  void setBalance(const CAmount& balance, const CAmount& unconfirmedBalance, const CAmount& immatureBalance, const CAmount& stake,
43  const CAmount& watchOnlyBalance, const CAmount& watchUnconfBalance, const CAmount& watchImmatureBalance, const CAmount& watchOnlyStake);
44 
45  void checkForInvalidTokens();
46 
47 Q_SIGNALS:
48  void showMoreClicked();
49  void outOfSyncWarningClicked();
50  void addTokenClicked();
51 
52 private:
64 
67  std::unique_ptr<TransactionFilterProxy> filter;
68 
69 private Q_SLOTS:
70  void updateDisplayUnit();
71  void updateAlerts(const QString &warnings);
72  void updateWatchOnlyLabels(bool showWatchOnly);
73  void handleOutOfSyncWarningClicks();
74  void on_buttonAddToken_clicked();
75  void on_showMoreButton_clicked();
76  void showDetails();
77 };
78 
79 #endif // FABCOIN_QT_OVERVIEWPAGE_H
struct evm_uint256be balance(struct evm_env *env, struct evm_uint160be address)
Definition: capi.c:7
CAmount currentBalance
Definition: overviewpage.h:56
std::unique_ptr< TransactionFilterProxy > filter
Definition: overviewpage.h:67
CAmount currentWatchOnlyBalance
Definition: overviewpage.h:60
TxViewDelegate * txdelegate
Definition: overviewpage.h:65
WalletModel * walletModel
Definition: overviewpage.h:55
CAmount currentUnconfirmedBalance
Definition: overviewpage.h:57
CAmount currentWatchOnlyStake
Definition: overviewpage.h:63
int64_t CAmount
Amount in lius (Can be negative)
Definition: amount.h:15
CAmount currentWatchUnconfBalance
Definition: overviewpage.h:61
CAmount currentStake
Definition: overviewpage.h:59
Model for Fabcoin network client.
Definition: clientmodel.h:38
ClientModel * clientModel
Definition: overviewpage.h:54
Filter the transaction list according to pre-specified rules.
Interface to Fabcoin wallet from Qt view code.
Definition: walletmodel.h:103
CAmount currentWatchImmatureBalance
Definition: overviewpage.h:62
CAmount currentImmatureBalance
Definition: overviewpage.h:58
TknViewDelegate * tkndelegate
Definition: overviewpage.h:66
Overview ("home") page widget.
Definition: overviewpage.h:29
Ui::OverviewPage * ui
Definition: overviewpage.h:53