2011-07-05 22:09:39 +02:00
|
|
|
#ifndef OVERVIEWPAGE_H
|
|
|
|
#define OVERVIEWPAGE_H
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
2011-08-04 04:41:01 +02:00
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
class QModelIndex;
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
|
2011-07-05 22:09:39 +02:00
|
|
|
namespace Ui {
|
|
|
|
class OverviewPage;
|
|
|
|
}
|
2011-07-11 20:42:10 +02:00
|
|
|
class WalletModel;
|
2011-08-03 20:52:18 +02:00
|
|
|
class TxViewDelegate;
|
2011-07-05 22:09:39 +02:00
|
|
|
|
2011-11-13 13:19:52 +01:00
|
|
|
/** Overview ("home") page widget */
|
2011-07-05 22:09:39 +02:00
|
|
|
class OverviewPage : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit OverviewPage(QWidget *parent = 0);
|
|
|
|
~OverviewPage();
|
|
|
|
|
2011-07-11 20:42:10 +02:00
|
|
|
void setModel(WalletModel *model);
|
|
|
|
|
2011-07-05 22:09:39 +02:00
|
|
|
public slots:
|
2011-07-11 20:42:10 +02:00
|
|
|
void setBalance(qint64 balance, qint64 unconfirmedBalance);
|
2011-07-07 10:59:00 +02:00
|
|
|
void setNumTransactions(int count);
|
2011-07-05 22:09:39 +02:00
|
|
|
|
2011-08-04 04:41:01 +02:00
|
|
|
signals:
|
|
|
|
void transactionClicked(const QModelIndex &index);
|
|
|
|
|
2011-07-05 22:09:39 +02:00
|
|
|
private:
|
|
|
|
Ui::OverviewPage *ui;
|
2011-07-11 20:42:10 +02:00
|
|
|
WalletModel *model;
|
2011-07-29 14:36:35 +02:00
|
|
|
qint64 currentBalance;
|
|
|
|
qint64 currentUnconfirmedBalance;
|
2011-07-05 22:09:39 +02:00
|
|
|
|
2011-08-03 20:52:18 +02:00
|
|
|
TxViewDelegate *txdelegate;
|
|
|
|
|
2011-07-29 14:36:35 +02:00
|
|
|
private slots:
|
|
|
|
void displayUnitChanged();
|
2011-07-05 22:09:39 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // OVERVIEWPAGE_H
|