| 89 | } |
| 90 | |
| 91 | void WalletView::setBitcoinGUI(BitcoinGUI *gui) |
| 92 | { |
| 93 | if (gui) |
| 94 | { |
| 95 | // Clicking on a transaction on the overview page simply sends you to transaction history page |
| 96 | connect(overviewPage, SIGNAL(transactionClicked(QModelIndex)), gui, SLOT(gotoHistoryPage())); |
| 97 | |
| 98 | // Navigate to transaction history page after send |
| 99 | connect(sendCoinsPage, SIGNAL(coinsSent(uint256)), gui, SLOT(gotoHistoryPage())); |
| 100 | |
| 101 | // Receive and report messages |
| 102 | connect(this, SIGNAL(message(QString,QString,unsigned int)), gui, SLOT(message(QString,QString,unsigned int))); |
| 103 | |
| 104 | // Pass through encryption status changed signals |
| 105 | connect(this, SIGNAL(encryptionStatusChanged()), gui, SLOT(updateWalletStatus())); |
| 106 | |
| 107 | // Pass through transaction notifications |
| 108 | connect(this, SIGNAL(incomingTransaction(QString,int,CAmount,QString,QString,QString,QString)), gui, SLOT(incomingTransaction(QString,int,CAmount,QString,QString,QString,QString))); |
| 109 | |
| 110 | // Connect HD enabled state signal |
| 111 | connect(this, SIGNAL(hdEnabledStatusChanged()), gui, SLOT(updateWalletStatus())); |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | void WalletView::setClientModel(ClientModel *_clientModel) |
| 116 | { |