forked from ezehy/starcashx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoverviewpage.h
72 lines (58 loc) · 1.84 KB
/
overviewpage.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#ifndef OVERVIEWPAGE_H
#define OVERVIEWPAGE_H
#include "util.h"
#include <QTimer>
#include <QWidget>
class ClientModel;
class WalletModel;
class TxViewDelegate;
class TransactionFilterProxy;
namespace Ui {
class OverviewPage;
}
QT_BEGIN_NAMESPACE
class QModelIndex;
QT_END_NAMESPACE
/** Overview ("home") page widget */
class OverviewPage : public QWidget
{
Q_OBJECT
public:
explicit OverviewPage(QWidget *parent = 0);
~OverviewPage();
void setClientModel(ClientModel *clientModel);
void setWalletModel(WalletModel *walletModel);
void showOutOfSyncWarning(bool fShow);
void updateDarksendProgress();
public slots:
void darkSendStatus();
void setBalance(const CAmount& balance, const CAmount& stake, const CAmount& unconfirmedBalance, const CAmount& immatureBalance, const CAmount& anonymizedBalance, const CAmount& watchOnlyBalance, const CAmount& watchOnlyStake, const CAmount& watchUnconfBalance, const CAmount& watchImmatureBalance);
signals:
void transactionClicked(const QModelIndex &index);
private:
QTimer *timer;
Ui::OverviewPage *ui;
ClientModel *clientModel;
WalletModel *walletModel;
CAmount currentBalance;
CAmount currentStake;
CAmount currentUnconfirmedBalance;
CAmount currentImmatureBalance;
CAmount currentAnonymizedBalance;
CAmount currentWatchOnlyBalance;
CAmount currentWatchOnlyStake;
CAmount currentWatchUnconfBalance;
CAmount currentWatchImmatureBalance;
int nDisplayUnit;
TxViewDelegate *txdelegate;
TransactionFilterProxy *filter;
private slots:
void toggleDarksend();
void darksendAuto();
void darksendReset();
void updateDisplayUnit();
void handleTransactionClicked(const QModelIndex &index);
void updateAlerts(const QString &warnings);
void updateWatchOnlyLabels(bool showWatchOnly);
};
#endif // OVERVIEWPAGE_H