X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fqt%2Foverviewpage.h;h=10fa79a3d370c7bb3eca3ad5dff9b6cf71764479;hb=b0368da0e15b5506548da3462e14b038ca21ae69;hp=fbd6853b3707d5d7a58580738ed04eb331ec0c19;hpb=d52a0f3bca2c8df8360308b062185d803e34f0d9;p=novacoin.git diff --git a/src/qt/overviewpage.h b/src/qt/overviewpage.h index fbd6853..10fa79a 100644 --- a/src/qt/overviewpage.h +++ b/src/qt/overviewpage.h @@ -3,10 +3,18 @@ #include +QT_BEGIN_NAMESPACE +class QModelIndex; +QT_END_NAMESPACE + namespace Ui { class OverviewPage; } +class WalletModel; +class TxViewDelegate; +class TransactionFilterProxy; +/** Overview ("home") page widget */ class OverviewPage : public QWidget { Q_OBJECT @@ -15,13 +23,31 @@ public: explicit OverviewPage(QWidget *parent = 0); ~OverviewPage(); + void setModel(WalletModel *model); + void showOutOfSyncWarning(bool fShow); + public slots: - void setBalance(qint64 balance); + void setBalance(qint64 total, qint64 watchOnly, qint64 stake, qint64 unconfirmedBalance, qint64 immatureBalance); void setNumTransactions(int count); +signals: + void transactionClicked(const QModelIndex &index); + private: Ui::OverviewPage *ui; - + WalletModel *model; + qint64 currentBalanceTotal; + qint64 currentBalanceWatchOnly; + qint64 currentStake; + qint64 currentUnconfirmedBalance; + qint64 currentImmatureBalance; + + TxViewDelegate *txdelegate; + TransactionFilterProxy *filter; + +private slots: + void updateDisplayUnit(); + void handleTransactionClicked(const QModelIndex &index); }; #endif // OVERVIEWPAGE_H