|
|
@ -14,6 +14,7 @@ |
|
|
|
#include "optionsdialog.h" |
|
|
|
#include "optionsdialog.h" |
|
|
|
#include "optionsmodel.h" |
|
|
|
#include "optionsmodel.h" |
|
|
|
#include "rpcconsole.h" |
|
|
|
#include "rpcconsole.h" |
|
|
|
|
|
|
|
#include "scicon.h" |
|
|
|
#include "utilitydialog.h" |
|
|
|
#include "utilitydialog.h" |
|
|
|
|
|
|
|
|
|
|
|
#ifdef ENABLE_WALLET |
|
|
|
#ifdef ENABLE_WALLET |
|
|
@ -36,7 +37,6 @@ |
|
|
|
#include <QDateTime> |
|
|
|
#include <QDateTime> |
|
|
|
#include <QDesktopWidget> |
|
|
|
#include <QDesktopWidget> |
|
|
|
#include <QDragEnterEvent> |
|
|
|
#include <QDragEnterEvent> |
|
|
|
#include <QIcon> |
|
|
|
|
|
|
|
#include <QListWidget> |
|
|
|
#include <QListWidget> |
|
|
|
#include <QMenuBar> |
|
|
|
#include <QMenuBar> |
|
|
|
#include <QMessageBox> |
|
|
|
#include <QMessageBox> |
|
|
@ -242,28 +242,28 @@ void BitcoinGUI::createActions(const NetworkStyle *networkStyle) |
|
|
|
{ |
|
|
|
{ |
|
|
|
QActionGroup *tabGroup = new QActionGroup(this); |
|
|
|
QActionGroup *tabGroup = new QActionGroup(this); |
|
|
|
|
|
|
|
|
|
|
|
overviewAction = new QAction(QIcon(":/icons/overview"), tr("&Overview"), this); |
|
|
|
overviewAction = new QAction(SingleColorIcon(":/icons/overview"), tr("&Overview"), this); |
|
|
|
overviewAction->setStatusTip(tr("Show general overview of wallet")); |
|
|
|
overviewAction->setStatusTip(tr("Show general overview of wallet")); |
|
|
|
overviewAction->setToolTip(overviewAction->statusTip()); |
|
|
|
overviewAction->setToolTip(overviewAction->statusTip()); |
|
|
|
overviewAction->setCheckable(true); |
|
|
|
overviewAction->setCheckable(true); |
|
|
|
overviewAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_1)); |
|
|
|
overviewAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_1)); |
|
|
|
tabGroup->addAction(overviewAction); |
|
|
|
tabGroup->addAction(overviewAction); |
|
|
|
|
|
|
|
|
|
|
|
sendCoinsAction = new QAction(QIcon(":/icons/send"), tr("&Send"), this); |
|
|
|
sendCoinsAction = new QAction(SingleColorIcon(":/icons/send"), tr("&Send"), this); |
|
|
|
sendCoinsAction->setStatusTip(tr("Send coins to a Bitcoin address")); |
|
|
|
sendCoinsAction->setStatusTip(tr("Send coins to a Bitcoin address")); |
|
|
|
sendCoinsAction->setToolTip(sendCoinsAction->statusTip()); |
|
|
|
sendCoinsAction->setToolTip(sendCoinsAction->statusTip()); |
|
|
|
sendCoinsAction->setCheckable(true); |
|
|
|
sendCoinsAction->setCheckable(true); |
|
|
|
sendCoinsAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_2)); |
|
|
|
sendCoinsAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_2)); |
|
|
|
tabGroup->addAction(sendCoinsAction); |
|
|
|
tabGroup->addAction(sendCoinsAction); |
|
|
|
|
|
|
|
|
|
|
|
receiveCoinsAction = new QAction(QIcon(":/icons/receiving_addresses"), tr("&Receive"), this); |
|
|
|
receiveCoinsAction = new QAction(SingleColorIcon(":/icons/receiving_addresses"), tr("&Receive"), this); |
|
|
|
receiveCoinsAction->setStatusTip(tr("Request payments (generates QR codes and bitcoin: URIs)")); |
|
|
|
receiveCoinsAction->setStatusTip(tr("Request payments (generates QR codes and bitcoin: URIs)")); |
|
|
|
receiveCoinsAction->setToolTip(receiveCoinsAction->statusTip()); |
|
|
|
receiveCoinsAction->setToolTip(receiveCoinsAction->statusTip()); |
|
|
|
receiveCoinsAction->setCheckable(true); |
|
|
|
receiveCoinsAction->setCheckable(true); |
|
|
|
receiveCoinsAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_3)); |
|
|
|
receiveCoinsAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_3)); |
|
|
|
tabGroup->addAction(receiveCoinsAction); |
|
|
|
tabGroup->addAction(receiveCoinsAction); |
|
|
|
|
|
|
|
|
|
|
|
historyAction = new QAction(QIcon(":/icons/history"), tr("&Transactions"), this); |
|
|
|
historyAction = new QAction(SingleColorIcon(":/icons/history"), tr("&Transactions"), this); |
|
|
|
historyAction->setStatusTip(tr("Browse transaction history")); |
|
|
|
historyAction->setStatusTip(tr("Browse transaction history")); |
|
|
|
historyAction->setToolTip(historyAction->statusTip()); |
|
|
|
historyAction->setToolTip(historyAction->statusTip()); |
|
|
|
historyAction->setCheckable(true); |
|
|
|
historyAction->setCheckable(true); |
|
|
@ -283,46 +283,46 @@ void BitcoinGUI::createActions(const NetworkStyle *networkStyle) |
|
|
|
connect(historyAction, SIGNAL(triggered()), this, SLOT(gotoHistoryPage())); |
|
|
|
connect(historyAction, SIGNAL(triggered()), this, SLOT(gotoHistoryPage())); |
|
|
|
#endif // ENABLE_WALLET
|
|
|
|
#endif // ENABLE_WALLET
|
|
|
|
|
|
|
|
|
|
|
|
quitAction = new QAction(QIcon(":/icons/quit"), tr("E&xit"), this); |
|
|
|
quitAction = new QAction(TextColorIcon(":/icons/quit"), tr("E&xit"), this); |
|
|
|
quitAction->setStatusTip(tr("Quit application")); |
|
|
|
quitAction->setStatusTip(tr("Quit application")); |
|
|
|
quitAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_Q)); |
|
|
|
quitAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_Q)); |
|
|
|
quitAction->setMenuRole(QAction::QuitRole); |
|
|
|
quitAction->setMenuRole(QAction::QuitRole); |
|
|
|
aboutAction = new QAction(QIcon(":/icons/about"), tr("&About Bitcoin Core"), this); |
|
|
|
aboutAction = new QAction(TextColorIcon(":/icons/about"), tr("&About Bitcoin Core"), this); |
|
|
|
aboutAction->setStatusTip(tr("Show information about Bitcoin Core")); |
|
|
|
aboutAction->setStatusTip(tr("Show information about Bitcoin Core")); |
|
|
|
aboutAction->setMenuRole(QAction::AboutRole); |
|
|
|
aboutAction->setMenuRole(QAction::AboutRole); |
|
|
|
aboutQtAction = new QAction(QIcon(":/icons/about_qt"), tr("About &Qt"), this); |
|
|
|
aboutQtAction = new QAction(TextColorIcon(":/icons/about_qt"), tr("About &Qt"), this); |
|
|
|
aboutQtAction->setStatusTip(tr("Show information about Qt")); |
|
|
|
aboutQtAction->setStatusTip(tr("Show information about Qt")); |
|
|
|
aboutQtAction->setMenuRole(QAction::AboutQtRole); |
|
|
|
aboutQtAction->setMenuRole(QAction::AboutQtRole); |
|
|
|
optionsAction = new QAction(QIcon(":/icons/options"), tr("&Options..."), this); |
|
|
|
optionsAction = new QAction(TextColorIcon(":/icons/options"), tr("&Options..."), this); |
|
|
|
optionsAction->setStatusTip(tr("Modify configuration options for Bitcoin Core")); |
|
|
|
optionsAction->setStatusTip(tr("Modify configuration options for Bitcoin Core")); |
|
|
|
optionsAction->setMenuRole(QAction::PreferencesRole); |
|
|
|
optionsAction->setMenuRole(QAction::PreferencesRole); |
|
|
|
toggleHideAction = new QAction(QIcon(":/icons/about"), tr("&Show / Hide"), this); |
|
|
|
toggleHideAction = new QAction(TextColorIcon(":/icons/about"), tr("&Show / Hide"), this); |
|
|
|
toggleHideAction->setStatusTip(tr("Show or hide the main Window")); |
|
|
|
toggleHideAction->setStatusTip(tr("Show or hide the main Window")); |
|
|
|
|
|
|
|
|
|
|
|
encryptWalletAction = new QAction(QIcon(":/icons/lock_closed"), tr("&Encrypt Wallet..."), this); |
|
|
|
encryptWalletAction = new QAction(TextColorIcon(":/icons/lock_closed"), tr("&Encrypt Wallet..."), this); |
|
|
|
encryptWalletAction->setStatusTip(tr("Encrypt the private keys that belong to your wallet")); |
|
|
|
encryptWalletAction->setStatusTip(tr("Encrypt the private keys that belong to your wallet")); |
|
|
|
encryptWalletAction->setCheckable(true); |
|
|
|
encryptWalletAction->setCheckable(true); |
|
|
|
backupWalletAction = new QAction(QIcon(":/icons/filesave"), tr("&Backup Wallet..."), this); |
|
|
|
backupWalletAction = new QAction(TextColorIcon(":/icons/filesave"), tr("&Backup Wallet..."), this); |
|
|
|
backupWalletAction->setStatusTip(tr("Backup wallet to another location")); |
|
|
|
backupWalletAction->setStatusTip(tr("Backup wallet to another location")); |
|
|
|
changePassphraseAction = new QAction(QIcon(":/icons/key"), tr("&Change Passphrase..."), this); |
|
|
|
changePassphraseAction = new QAction(TextColorIcon(":/icons/key"), tr("&Change Passphrase..."), this); |
|
|
|
changePassphraseAction->setStatusTip(tr("Change the passphrase used for wallet encryption")); |
|
|
|
changePassphraseAction->setStatusTip(tr("Change the passphrase used for wallet encryption")); |
|
|
|
signMessageAction = new QAction(QIcon(":/icons/edit"), tr("Sign &message..."), this); |
|
|
|
signMessageAction = new QAction(TextColorIcon(":/icons/edit"), tr("Sign &message..."), this); |
|
|
|
signMessageAction->setStatusTip(tr("Sign messages with your Bitcoin addresses to prove you own them")); |
|
|
|
signMessageAction->setStatusTip(tr("Sign messages with your Bitcoin addresses to prove you own them")); |
|
|
|
verifyMessageAction = new QAction(QIcon(":/icons/verify"), tr("&Verify message..."), this); |
|
|
|
verifyMessageAction = new QAction(TextColorIcon(":/icons/verify"), tr("&Verify message..."), this); |
|
|
|
verifyMessageAction->setStatusTip(tr("Verify messages to ensure they were signed with specified Bitcoin addresses")); |
|
|
|
verifyMessageAction->setStatusTip(tr("Verify messages to ensure they were signed with specified Bitcoin addresses")); |
|
|
|
|
|
|
|
|
|
|
|
openRPCConsoleAction = new QAction(QIcon(":/icons/debugwindow"), tr("&Debug window"), this); |
|
|
|
openRPCConsoleAction = new QAction(TextColorIcon(":/icons/debugwindow"), tr("&Debug window"), this); |
|
|
|
openRPCConsoleAction->setStatusTip(tr("Open debugging and diagnostic console")); |
|
|
|
openRPCConsoleAction->setStatusTip(tr("Open debugging and diagnostic console")); |
|
|
|
|
|
|
|
|
|
|
|
usedSendingAddressesAction = new QAction(QIcon(":/icons/address-book"), tr("&Sending addresses..."), this); |
|
|
|
usedSendingAddressesAction = new QAction(TextColorIcon(":/icons/address-book"), tr("&Sending addresses..."), this); |
|
|
|
usedSendingAddressesAction->setStatusTip(tr("Show the list of used sending addresses and labels")); |
|
|
|
usedSendingAddressesAction->setStatusTip(tr("Show the list of used sending addresses and labels")); |
|
|
|
usedReceivingAddressesAction = new QAction(QIcon(":/icons/address-book"), tr("&Receiving addresses..."), this); |
|
|
|
usedReceivingAddressesAction = new QAction(TextColorIcon(":/icons/address-book"), tr("&Receiving addresses..."), this); |
|
|
|
usedReceivingAddressesAction->setStatusTip(tr("Show the list of used receiving addresses and labels")); |
|
|
|
usedReceivingAddressesAction->setStatusTip(tr("Show the list of used receiving addresses and labels")); |
|
|
|
|
|
|
|
|
|
|
|
openAction = new QAction(QIcon(":/icons/open"), tr("Open &URI..."), this); |
|
|
|
openAction = new QAction(TextColorIcon(":/icons/open"), tr("Open &URI..."), this); |
|
|
|
openAction->setStatusTip(tr("Open a bitcoin: URI or payment request")); |
|
|
|
openAction->setStatusTip(tr("Open a bitcoin: URI or payment request")); |
|
|
|
|
|
|
|
|
|
|
|
showHelpMessageAction = new QAction(QIcon(":/icons/info"), tr("&Command-line options"), this); |
|
|
|
showHelpMessageAction = new QAction(TextColorIcon(":/icons/info"), tr("&Command-line options"), this); |
|
|
|
showHelpMessageAction->setStatusTip(tr("Show the Bitcoin Core help message to get a list with possible Bitcoin command-line options")); |
|
|
|
showHelpMessageAction->setStatusTip(tr("Show the Bitcoin Core help message to get a list with possible Bitcoin command-line options")); |
|
|
|
|
|
|
|
|
|
|
|
connect(quitAction, SIGNAL(triggered()), qApp, SLOT(quit())); |
|
|
|
connect(quitAction, SIGNAL(triggered()), qApp, SLOT(quit())); |
|
|
@ -629,7 +629,7 @@ void BitcoinGUI::setNumConnections(int count) |
|
|
|
case 7: case 8: case 9: icon = ":/icons/connect_3"; break; |
|
|
|
case 7: case 8: case 9: icon = ":/icons/connect_3"; break; |
|
|
|
default: icon = ":/icons/connect_4"; break; |
|
|
|
default: icon = ":/icons/connect_4"; break; |
|
|
|
} |
|
|
|
} |
|
|
|
labelConnectionsIcon->setPixmap(QIcon(icon).pixmap(STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE)); |
|
|
|
labelConnectionsIcon->setPixmap(SingleColorIcon(icon).pixmap(STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE)); |
|
|
|
labelConnectionsIcon->setToolTip(tr("%n active connection(s) to Bitcoin network", "", count)); |
|
|
|
labelConnectionsIcon->setToolTip(tr("%n active connection(s) to Bitcoin network", "", count)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -671,7 +671,7 @@ void BitcoinGUI::setNumBlocks(int count) |
|
|
|
if(secs < 90*60) |
|
|
|
if(secs < 90*60) |
|
|
|
{ |
|
|
|
{ |
|
|
|
tooltip = tr("Up to date") + QString(".<br>") + tooltip; |
|
|
|
tooltip = tr("Up to date") + QString(".<br>") + tooltip; |
|
|
|
labelBlocksIcon->setPixmap(QIcon(":/icons/synced").pixmap(STATUSBAR_ICONSIZE, STATUSBAR_ICONSIZE)); |
|
|
|
labelBlocksIcon->setPixmap(SingleColorIcon(":/icons/synced").pixmap(STATUSBAR_ICONSIZE, STATUSBAR_ICONSIZE)); |
|
|
|
|
|
|
|
|
|
|
|
#ifdef ENABLE_WALLET |
|
|
|
#ifdef ENABLE_WALLET |
|
|
|
if(walletFrame) |
|
|
|
if(walletFrame) |
|
|
@ -717,7 +717,7 @@ void BitcoinGUI::setNumBlocks(int count) |
|
|
|
tooltip = tr("Catching up...") + QString("<br>") + tooltip; |
|
|
|
tooltip = tr("Catching up...") + QString("<br>") + tooltip; |
|
|
|
if(count != prevBlocks) |
|
|
|
if(count != prevBlocks) |
|
|
|
{ |
|
|
|
{ |
|
|
|
labelBlocksIcon->setPixmap(QIcon(QString( |
|
|
|
labelBlocksIcon->setPixmap(SingleColorIcon(QString( |
|
|
|
":/movies/spinner-%1").arg(spinnerFrame, 3, 10, QChar('0'))) |
|
|
|
":/movies/spinner-%1").arg(spinnerFrame, 3, 10, QChar('0'))) |
|
|
|
.pixmap(STATUSBAR_ICONSIZE, STATUSBAR_ICONSIZE)); |
|
|
|
.pixmap(STATUSBAR_ICONSIZE, STATUSBAR_ICONSIZE)); |
|
|
|
spinnerFrame = (spinnerFrame + 1) % SPINNER_FRAMES; |
|
|
|
spinnerFrame = (spinnerFrame + 1) % SPINNER_FRAMES; |
|
|
@ -911,7 +911,7 @@ void BitcoinGUI::setEncryptionStatus(int status) |
|
|
|
break; |
|
|
|
break; |
|
|
|
case WalletModel::Unlocked: |
|
|
|
case WalletModel::Unlocked: |
|
|
|
labelEncryptionIcon->show(); |
|
|
|
labelEncryptionIcon->show(); |
|
|
|
labelEncryptionIcon->setPixmap(QIcon(":/icons/lock_open").pixmap(STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE)); |
|
|
|
labelEncryptionIcon->setPixmap(SingleColorIcon(":/icons/lock_open").pixmap(STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE)); |
|
|
|
labelEncryptionIcon->setToolTip(tr("Wallet is <b>encrypted</b> and currently <b>unlocked</b>")); |
|
|
|
labelEncryptionIcon->setToolTip(tr("Wallet is <b>encrypted</b> and currently <b>unlocked</b>")); |
|
|
|
encryptWalletAction->setChecked(true); |
|
|
|
encryptWalletAction->setChecked(true); |
|
|
|
changePassphraseAction->setEnabled(true); |
|
|
|
changePassphraseAction->setEnabled(true); |
|
|
@ -919,7 +919,7 @@ void BitcoinGUI::setEncryptionStatus(int status) |
|
|
|
break; |
|
|
|
break; |
|
|
|
case WalletModel::Locked: |
|
|
|
case WalletModel::Locked: |
|
|
|
labelEncryptionIcon->show(); |
|
|
|
labelEncryptionIcon->show(); |
|
|
|
labelEncryptionIcon->setPixmap(QIcon(":/icons/lock_closed").pixmap(STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE)); |
|
|
|
labelEncryptionIcon->setPixmap(SingleColorIcon(":/icons/lock_closed").pixmap(STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE)); |
|
|
|
labelEncryptionIcon->setToolTip(tr("Wallet is <b>encrypted</b> and currently <b>locked</b>")); |
|
|
|
labelEncryptionIcon->setToolTip(tr("Wallet is <b>encrypted</b> and currently <b>locked</b>")); |
|
|
|
encryptWalletAction->setChecked(true); |
|
|
|
encryptWalletAction->setChecked(true); |
|
|
|
changePassphraseAction->setEnabled(true); |
|
|
|
changePassphraseAction->setEnabled(true); |
|
|
@ -1066,7 +1066,7 @@ void UnitDisplayStatusBarControl::setOptionsModel(OptionsModel *optionsModel) |
|
|
|
/** When Display Units are changed on OptionsModel it will refresh the display text of the control on the status bar */ |
|
|
|
/** When Display Units are changed on OptionsModel it will refresh the display text of the control on the status bar */ |
|
|
|
void UnitDisplayStatusBarControl::updateDisplayUnit(int newUnits) |
|
|
|
void UnitDisplayStatusBarControl::updateDisplayUnit(int newUnits) |
|
|
|
{ |
|
|
|
{ |
|
|
|
setPixmap(QIcon(":/icons/unit_" + BitcoinUnits::id(newUnits)).pixmap(31,STATUSBAR_ICONSIZE)); |
|
|
|
setPixmap(SingleColorIcon(":/icons/unit_" + BitcoinUnits::id(newUnits)).pixmap(31,STATUSBAR_ICONSIZE)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** Shows context menu with Display Unit options by the mouse coordinates */ |
|
|
|
/** Shows context menu with Display Unit options by the mouse coordinates */ |
|
|
|