62e21fb5d0
Implements #1948 - Add macro `CLIENT_VERSION_IS_RELEASE` to clientversion.h - When running a prerelease (the above macro is `false`): - In UI, show an orange warning bar at the top. This will be used for other warnings (and alerts) as well, instead of the status bar. - For `bitcoind`, show the warning in the "errors" field in `getinfo` response.
56 lines
1.2 KiB
C++
56 lines
1.2 KiB
C++
#ifndef OVERVIEWPAGE_H
|
|
#define OVERVIEWPAGE_H
|
|
|
|
#include <QWidget>
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
class QModelIndex;
|
|
QT_END_NAMESPACE
|
|
|
|
namespace Ui {
|
|
class OverviewPage;
|
|
}
|
|
class ClientModel;
|
|
class WalletModel;
|
|
class TxViewDelegate;
|
|
class TransactionFilterProxy;
|
|
|
|
/** 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);
|
|
|
|
public slots:
|
|
void setBalance(qint64 balance, qint64 unconfirmedBalance, qint64 immatureBalance);
|
|
void setNumTransactions(int count);
|
|
|
|
signals:
|
|
void transactionClicked(const QModelIndex &index);
|
|
|
|
private:
|
|
Ui::OverviewPage *ui;
|
|
ClientModel *clientModel;
|
|
WalletModel *walletModel;
|
|
qint64 currentBalance;
|
|
qint64 currentUnconfirmedBalance;
|
|
qint64 currentImmatureBalance;
|
|
|
|
TxViewDelegate *txdelegate;
|
|
TransactionFilterProxy *filter;
|
|
|
|
private slots:
|
|
void updateDisplayUnit();
|
|
void handleTransactionClicked(const QModelIndex &index);
|
|
void updateAlerts(const QString &warnings);
|
|
};
|
|
|
|
#endif // OVERVIEWPAGE_H
|