Changeset View
Changeset View
Standalone View
Standalone View
src/qt/walletview.cpp
Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | WalletView::WalletView(const PlatformStyle *_platformStyle, const Config *cfg, | ||||
// Clicking on a transaction on the overview pre-selects the transaction on | // Clicking on a transaction on the overview pre-selects the transaction on | ||||
// the transaction history page | // the transaction history page | ||||
connect(overviewPage, SIGNAL(transactionClicked(QModelIndex)), | connect(overviewPage, SIGNAL(transactionClicked(QModelIndex)), | ||||
transactionView, SLOT(focusTransaction(QModelIndex))); | transactionView, SLOT(focusTransaction(QModelIndex))); | ||||
connect(overviewPage, SIGNAL(outOfSyncWarningClicked()), this, | connect(overviewPage, SIGNAL(outOfSyncWarningClicked()), this, | ||||
SLOT(requestedSyncWarningInfo())); | SLOT(requestedSyncWarningInfo())); | ||||
// Highlight transaction after send | |||||
connect(sendCoinsPage, SIGNAL(coinsSent(uint256)), transactionView, | |||||
SLOT(focusTransaction(uint256))); | |||||
// Double-clicking on a transaction on the transaction history page shows | // Double-clicking on a transaction on the transaction history page shows | ||||
// details | // details | ||||
connect(transactionView, SIGNAL(doubleClicked(QModelIndex)), | connect(transactionView, SIGNAL(doubleClicked(QModelIndex)), | ||||
transactionView, SLOT(showDetails())); | transactionView, SLOT(showDetails())); | ||||
// Clicking on "Export" allows to export the transaction list | // Clicking on "Export" allows to export the transaction list | ||||
connect(exportButton, SIGNAL(clicked()), transactionView, | connect(exportButton, SIGNAL(clicked()), transactionView, | ||||
SLOT(exportClicked())); | SLOT(exportClicked())); | ||||
Show All 10 Lines | |||||
void WalletView::setBitcoinGUI(BitcoinGUI *gui) { | void WalletView::setBitcoinGUI(BitcoinGUI *gui) { | ||||
if (gui) { | if (gui) { | ||||
// Clicking on a transaction on the overview page simply sends you to | // Clicking on a transaction on the overview page simply sends you to | ||||
// transaction history page | // transaction history page | ||||
connect(overviewPage, SIGNAL(transactionClicked(QModelIndex)), gui, | connect(overviewPage, SIGNAL(transactionClicked(QModelIndex)), gui, | ||||
SLOT(gotoHistoryPage())); | SLOT(gotoHistoryPage())); | ||||
// Navigate to transaction history page after send | |||||
connect(sendCoinsPage, SIGNAL(coinsSent(uint256)), gui, | |||||
SLOT(gotoHistoryPage())); | |||||
// Receive and report messages | // Receive and report messages | ||||
connect(this, SIGNAL(message(QString, QString, unsigned int)), gui, | connect(this, SIGNAL(message(QString, QString, unsigned int)), gui, | ||||
SLOT(message(QString, QString, unsigned int))); | SLOT(message(QString, QString, unsigned int))); | ||||
// Pass through encryption status changed signals | // Pass through encryption status changed signals | ||||
connect(this, SIGNAL(encryptionStatusChanged(int)), gui, | connect(this, SIGNAL(encryptionStatusChanged(int)), gui, | ||||
SLOT(setEncryptionStatus(int))); | SLOT(setEncryptionStatus(int))); | ||||
▲ Show 20 Lines • Show All 245 Lines • Show Last 20 Lines |