20151a2248
Prevent UI freezes during sync by batching wallet transaction notifications with a 250ms debounce timer and full-refresh fallback for large batches. Disable dynamic sorting and view updates on overview/transaction pages while syncing. Add request/reply/error filter checkboxes to the RPC console with in-memory message store. Implement macOS LaunchAgents-based autostart. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
57 lines
1.2 KiB
C++
57 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 setModel(WalletModel *model);
|
|
void showOutOfSyncWarning(bool fShow);
|
|
|
|
public slots:
|
|
void setBalance(qint64 balance, qint64 stake, qint64 unconfirmedBalance, qint64 immatureBalance);
|
|
void setTransactionSyncState(bool syncing);
|
|
|
|
signals:
|
|
void transactionClicked(const QModelIndex &index);
|
|
|
|
private:
|
|
Ui::OverviewPage *ui;
|
|
ClientModel *clientModel;
|
|
WalletModel *model;
|
|
qint64 currentBalance;
|
|
qint64 currentStake;
|
|
qint64 currentUnconfirmedBalance;
|
|
qint64 currentImmatureBalance;
|
|
bool walletTransactionSyncing;
|
|
|
|
TxViewDelegate *txdelegate;
|
|
TransactionFilterProxy *filter;
|
|
|
|
private slots:
|
|
void updateDisplayUnit();
|
|
void handleTransactionClicked(const QModelIndex &index);
|
|
};
|
|
|
|
#endif // OVERVIEWPAGE_H
|