Changeset View
Changeset View
Standalone View
Standalone View
src/qt/bitcoingui.cpp
Show First 20 Lines • Show All 262 Lines • ▼ Show 20 Lines | void BitcoinGUI::createActions() { | ||||
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( | sendCoinsAction = new QAction( | ||||
platformStyle->SingleColorIcon(":/icons/send"), tr("&Send"), this); | platformStyle->SingleColorIcon(":/icons/send"), tr("&Send"), this); | ||||
sendCoinsAction->setStatusTip(tr("Send coins to a Bitcoin address")); | sendCoinsAction->setStatusTip(tr("Send coins to a Bitcoin Cash 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); | ||||
sendCoinsMenuAction = | sendCoinsMenuAction = | ||||
new QAction(platformStyle->TextColorIcon(":/icons/send"), | new QAction(platformStyle->TextColorIcon(":/icons/send"), | ||||
sendCoinsAction->text(), this); | sendCoinsAction->text(), this); | ||||
▲ Show 20 Lines • Show All 95 Lines • ▼ Show 20 Lines | #endif // ENABLE_WALLET | ||||
changePassphraseAction = | changePassphraseAction = | ||||
new QAction(platformStyle->TextColorIcon(":/icons/key"), | new QAction(platformStyle->TextColorIcon(":/icons/key"), | ||||
tr("&Change Passphrase..."), this); | tr("&Change Passphrase..."), this); | ||||
changePassphraseAction->setStatusTip( | changePassphraseAction->setStatusTip( | ||||
tr("Change the passphrase used for wallet encryption")); | tr("Change the passphrase used for wallet encryption")); | ||||
signMessageAction = | signMessageAction = | ||||
new QAction(platformStyle->TextColorIcon(":/icons/edit"), | new QAction(platformStyle->TextColorIcon(":/icons/edit"), | ||||
tr("Sign &message..."), this); | tr("Sign &message..."), this); | ||||
signMessageAction->setStatusTip( | signMessageAction->setStatusTip(tr("Sign messages with your Bitcoin Cash " | ||||
tr("Sign messages with your Bitcoin addresses to prove you own them")); | "addresses to prove you own them")); | ||||
verifyMessageAction = | verifyMessageAction = | ||||
new QAction(platformStyle->TextColorIcon(":/icons/verify"), | new QAction(platformStyle->TextColorIcon(":/icons/verify"), | ||||
tr("&Verify message..."), this); | tr("&Verify message..."), this); | ||||
verifyMessageAction->setStatusTip( | verifyMessageAction->setStatusTip(tr("Verify messages to ensure they were " | ||||
tr("Verify messages to ensure they were signed with specified Bitcoin " | "signed with specified Bitcoin Cash " | ||||
"addresses")); | "addresses")); | ||||
openRPCConsoleAction = | openRPCConsoleAction = | ||||
new QAction(platformStyle->TextColorIcon(":/icons/debugwindow"), | new QAction(platformStyle->TextColorIcon(":/icons/debugwindow"), | ||||
tr("&Debug window"), this); | tr("&Debug window"), this); | ||||
openRPCConsoleAction->setStatusTip( | openRPCConsoleAction->setStatusTip( | ||||
tr("Open debugging and diagnostic console")); | tr("Open debugging and diagnostic console")); | ||||
// initially disable the debug window menu item | // initially disable the debug window menu item | ||||
openRPCConsoleAction->setEnabled(false); | openRPCConsoleAction->setEnabled(false); | ||||
Show All 14 Lines | #endif // ENABLE_WALLET | ||||
openAction->setStatusTip(tr("Open a %1: URI or payment request") | openAction->setStatusTip(tr("Open a %1: URI or payment request") | ||||
.arg(GUIUtil::bitcoinURIScheme(*cfg))); | .arg(GUIUtil::bitcoinURIScheme(*cfg))); | ||||
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 Cash " | ||||
"command-line options") | "command-line options") | ||||
.arg(tr(PACKAGE_NAME))); | .arg(tr(PACKAGE_NAME))); | ||||
connect(quitAction, SIGNAL(triggered()), qApp, SLOT(quit())); | connect(quitAction, SIGNAL(triggered()), qApp, SLOT(quit())); | ||||
connect(aboutAction, SIGNAL(triggered()), this, SLOT(aboutClicked())); | connect(aboutAction, SIGNAL(triggered()), this, SLOT(aboutClicked())); | ||||
connect(aboutQtAction, SIGNAL(triggered()), qApp, SLOT(aboutQt())); | connect(aboutQtAction, SIGNAL(triggered()), qApp, SLOT(aboutQt())); | ||||
connect(optionsAction, SIGNAL(triggered()), this, SLOT(optionsClicked())); | connect(optionsAction, SIGNAL(triggered()), this, SLOT(optionsClicked())); | ||||
connect(toggleHideAction, SIGNAL(triggered()), this, SLOT(toggleHidden())); | connect(toggleHideAction, SIGNAL(triggered()), this, SLOT(toggleHidden())); | ||||
▲ Show 20 Lines • Show All 491 Lines • ▼ Show 20 Lines | #endif // ENABLE_WALLET | ||||
labelBlocksIcon->setToolTip(tooltip); | labelBlocksIcon->setToolTip(tooltip); | ||||
progressBarLabel->setToolTip(tooltip); | progressBarLabel->setToolTip(tooltip); | ||||
progressBar->setToolTip(tooltip); | progressBar->setToolTip(tooltip); | ||||
} | } | ||||
void BitcoinGUI::message(const QString &title, const QString &message, | void BitcoinGUI::message(const QString &title, const QString &message, | ||||
unsigned int style, bool *ret) { | unsigned int style, bool *ret) { | ||||
// default title | // default title | ||||
QString strTitle = tr("Bitcoin"); | QString strTitle = tr("Bitcoin Cash"); | ||||
// Default to information icon | // Default to information icon | ||||
int nMBoxIcon = QMessageBox::Information; | int nMBoxIcon = QMessageBox::Information; | ||||
int nNotifyIcon = Notificator::Information; | int nNotifyIcon = Notificator::Information; | ||||
QString msgType; | QString msgType; | ||||
// Prefer supplied title over style based title | // Prefer supplied title over style based title | ||||
if (!title.isEmpty()) { | if (!title.isEmpty()) { | ||||
▲ Show 20 Lines • Show All 361 Lines • Show Last 20 Lines |