when clicking a transaction on the overview page, send the user to the transactions...
[novacoin.git] / src / qt / overviewpage.h
1 #ifndef OVERVIEWPAGE_H
2 #define OVERVIEWPAGE_H
3
4 #include <QWidget>
5
6 QT_BEGIN_NAMESPACE
7 class QModelIndex;
8 QT_END_NAMESPACE
9
10 namespace Ui {
11     class OverviewPage;
12 }
13 class WalletModel;
14 class TxViewDelegate;
15
16 class OverviewPage : public QWidget
17 {
18     Q_OBJECT
19
20 public:
21     explicit OverviewPage(QWidget *parent = 0);
22     ~OverviewPage();
23
24     void setModel(WalletModel *model);
25
26 public slots:
27     void setBalance(qint64 balance, qint64 unconfirmedBalance);
28     void setNumTransactions(int count);
29
30 signals:
31     void transactionClicked(const QModelIndex &index);
32
33 private:
34     Ui::OverviewPage *ui;
35     WalletModel *model;
36     qint64 currentBalance;
37     qint64 currentUnconfirmedBalance;
38
39     TxViewDelegate *txdelegate;
40
41 private slots:
42     void displayUnitChanged();
43 };
44
45 #endif // OVERVIEWPAGE_H