|
|
@ -56,6 +56,9 @@ WalletView::WalletView(const PlatformStyle *platformStyle, QWidget *parent): |
|
|
|
receiveCoinsPage = new ReceiveCoinsDialog(platformStyle); |
|
|
|
receiveCoinsPage = new ReceiveCoinsDialog(platformStyle); |
|
|
|
sendCoinsPage = new SendCoinsDialog(platformStyle); |
|
|
|
sendCoinsPage = new SendCoinsDialog(platformStyle); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
usedSendingAddressesPage = new AddressBookPage(platformStyle, AddressBookPage::ForEditing, AddressBookPage::SendingTab, this); |
|
|
|
|
|
|
|
usedReceivingAddressesPage = new AddressBookPage(platformStyle, AddressBookPage::ForEditing, AddressBookPage::ReceivingTab, this); |
|
|
|
|
|
|
|
|
|
|
|
addWidget(overviewPage); |
|
|
|
addWidget(overviewPage); |
|
|
|
addWidget(transactionsPage); |
|
|
|
addWidget(transactionsPage); |
|
|
|
addWidget(receiveCoinsPage); |
|
|
|
addWidget(receiveCoinsPage); |
|
|
@ -115,6 +118,8 @@ void WalletView::setWalletModel(WalletModel *walletModel) |
|
|
|
overviewPage->setWalletModel(walletModel); |
|
|
|
overviewPage->setWalletModel(walletModel); |
|
|
|
receiveCoinsPage->setModel(walletModel); |
|
|
|
receiveCoinsPage->setModel(walletModel); |
|
|
|
sendCoinsPage->setModel(walletModel); |
|
|
|
sendCoinsPage->setModel(walletModel); |
|
|
|
|
|
|
|
usedReceivingAddressesPage->setModel(walletModel->getAddressTableModel()); |
|
|
|
|
|
|
|
usedSendingAddressesPage->setModel(walletModel->getAddressTableModel()); |
|
|
|
|
|
|
|
|
|
|
|
if (walletModel) |
|
|
|
if (walletModel) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -273,20 +278,20 @@ void WalletView::usedSendingAddresses() |
|
|
|
{ |
|
|
|
{ |
|
|
|
if(!walletModel) |
|
|
|
if(!walletModel) |
|
|
|
return; |
|
|
|
return; |
|
|
|
AddressBookPage *dlg = new AddressBookPage(platformStyle, AddressBookPage::ForEditing, AddressBookPage::SendingTab, this); |
|
|
|
|
|
|
|
dlg->setAttribute(Qt::WA_DeleteOnClose); |
|
|
|
usedSendingAddressesPage->show(); |
|
|
|
dlg->setModel(walletModel->getAddressTableModel()); |
|
|
|
usedSendingAddressesPage->raise(); |
|
|
|
dlg->show(); |
|
|
|
usedSendingAddressesPage->activateWindow(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void WalletView::usedReceivingAddresses() |
|
|
|
void WalletView::usedReceivingAddresses() |
|
|
|
{ |
|
|
|
{ |
|
|
|
if(!walletModel) |
|
|
|
if(!walletModel) |
|
|
|
return; |
|
|
|
return; |
|
|
|
AddressBookPage *dlg = new AddressBookPage(platformStyle, AddressBookPage::ForEditing, AddressBookPage::ReceivingTab, this); |
|
|
|
|
|
|
|
dlg->setAttribute(Qt::WA_DeleteOnClose); |
|
|
|
usedReceivingAddressesPage->show(); |
|
|
|
dlg->setModel(walletModel->getAddressTableModel()); |
|
|
|
usedReceivingAddressesPage->raise(); |
|
|
|
dlg->show(); |
|
|
|
usedReceivingAddressesPage->activateWindow(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void WalletView::showProgress(const QString &title, int nProgress) |
|
|
|
void WalletView::showProgress(const QString &title, int nProgress) |
|
|
|