Changeset View
Changeset View
Standalone View
Standalone View
src/qt/bitcoingui.cpp
Show First 20 Lines • Show All 259 Lines • ▼ Show 20 Lines | void BitcoinGUI::createActions() { | ||||
sendCoinsMenuAction->setStatusTip(sendCoinsAction->statusTip()); | sendCoinsMenuAction->setStatusTip(sendCoinsAction->statusTip()); | ||||
sendCoinsMenuAction->setToolTip(sendCoinsMenuAction->statusTip()); | sendCoinsMenuAction->setToolTip(sendCoinsMenuAction->statusTip()); | ||||
receiveCoinsAction = new QAction( | receiveCoinsAction = new QAction( | ||||
platformStyle->SingleColorIcon(":/icons/receiving_addresses"), | platformStyle->SingleColorIcon(":/icons/receiving_addresses"), | ||||
tr("&Receive"), this); | tr("&Receive"), this); | ||||
receiveCoinsAction->setStatusTip( | receiveCoinsAction->setStatusTip( | ||||
tr("Request payments (generates QR codes and %1: URIs)") | tr("Request payments (generates QR codes and %1: URIs)") | ||||
.arg(GUIUtil::bitcoinURIScheme(*config))); | .arg(QString::fromStdString( | ||||
config->GetChainParams().CashAddrPrefix()))); | |||||
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); | ||||
receiveCoinsMenuAction = | receiveCoinsMenuAction = | ||||
new QAction(platformStyle->TextColorIcon(":/icons/receiving_addresses"), | new QAction(platformStyle->TextColorIcon(":/icons/receiving_addresses"), | ||||
receiveCoinsAction->text(), this); | receiveCoinsAction->text(), this); | ||||
▲ Show 20 Lines • Show All 108 Lines • ▼ Show 20 Lines | #endif // ENABLE_WALLET | ||||
usedReceivingAddressesAction = | usedReceivingAddressesAction = | ||||
new QAction(platformStyle->TextColorIcon(":/icons/address-book"), | new QAction(platformStyle->TextColorIcon(":/icons/address-book"), | ||||
tr("&Receiving addresses..."), this); | tr("&Receiving addresses..."), this); | ||||
usedReceivingAddressesAction->setStatusTip( | usedReceivingAddressesAction->setStatusTip( | ||||
tr("Show the list of used receiving addresses and labels")); | tr("Show the list of used receiving addresses and labels")); | ||||
openAction = new QAction(platformStyle->TextColorIcon(":/icons/open"), | openAction = new QAction(platformStyle->TextColorIcon(":/icons/open"), | ||||
tr("Open &URI..."), this); | tr("Open &URI..."), this); | ||||
openAction->setStatusTip(tr("Open a %1: URI or payment request") | openAction->setStatusTip( | ||||
.arg(GUIUtil::bitcoinURIScheme(*config))); | tr("Open a %1: URI or payment request") | ||||
.arg(QString::fromStdString( | |||||
config->GetChainParams().CashAddrPrefix()))); | |||||
showHelpMessageAction = | showHelpMessageAction = | ||||
new QAction(platformStyle->TextColorIcon(":/icons/info"), | new QAction(platformStyle->TextColorIcon(":/icons/info"), | ||||
tr("&Command-line options"), this); | tr("&Command-line options"), this); | ||||
showHelpMessageAction->setMenuRole(QAction::NoRole); | showHelpMessageAction->setMenuRole(QAction::NoRole); | ||||
showHelpMessageAction->setStatusTip( | showHelpMessageAction->setStatusTip( | ||||
tr("Show the %1 help message to get a list with possible Bitcoin " | tr("Show the %1 help message to get a list with possible Bitcoin " | ||||
"command-line options") | "command-line options") | ||||
▲ Show 20 Lines • Show All 397 Lines • ▼ Show 20 Lines | |||||
void BitcoinGUI::setNetworkActive(bool networkActive) { | void BitcoinGUI::setNetworkActive(bool networkActive) { | ||||
updateNetworkState(); | updateNetworkState(); | ||||
} | } | ||||
void BitcoinGUI::updateHeadersSyncProgressLabel() { | void BitcoinGUI::updateHeadersSyncProgressLabel() { | ||||
int64_t headersTipTime = clientModel->getHeaderTipTime(); | int64_t headersTipTime = clientModel->getHeaderTipTime(); | ||||
int headersTipHeight = clientModel->getHeaderTipHeight(); | int headersTipHeight = clientModel->getHeaderTipHeight(); | ||||
int estHeadersLeft = (GetTime() - headersTipTime) / | int estHeadersLeft = | ||||
Params().GetConsensus().nPowTargetSpacing; | (GetTime() - headersTipTime) / | ||||
config->GetChainParams().GetConsensus().nPowTargetSpacing; | |||||
if (estHeadersLeft > HEADER_HEIGHT_DELTA_SYNC) { | if (estHeadersLeft > HEADER_HEIGHT_DELTA_SYNC) { | ||||
progressBarLabel->setText( | progressBarLabel->setText( | ||||
tr("Syncing Headers (%1%)...") | tr("Syncing Headers (%1%)...") | ||||
.arg(QString::number(100.0 / | .arg(QString::number(100.0 / | ||||
(headersTipHeight + estHeadersLeft) * | (headersTipHeight + estHeadersLeft) * | ||||
headersTipHeight, | headersTipHeight, | ||||
'f', 1))); | 'f', 1))); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 519 Lines • Show Last 20 Lines |