Changeset View
Changeset View
Standalone View
Standalone View
src/qt/bitcoingui.cpp
Show First 20 Lines • Show All 282 Lines • ▼ Show 20 Lines | void BitcoinGUI::createActions() { | ||||
historyAction->setCheckable(true); | historyAction->setCheckable(true); | ||||
historyAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_4)); | historyAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_4)); | ||||
tabGroup->addAction(historyAction); | tabGroup->addAction(historyAction); | ||||
#ifdef ENABLE_WALLET | #ifdef ENABLE_WALLET | ||||
// These showNormalIfMinimized are needed because Send Coins and Receive | // These showNormalIfMinimized are needed because Send Coins and Receive | ||||
// Coins can be triggered from the tray menu, and need to show the GUI to be | // Coins can be triggered from the tray menu, and need to show the GUI to be | ||||
// useful. | // useful. | ||||
connect(overviewAction, &QAction::triggered, this, | connect(overviewAction, &QAction::triggered, | ||||
static_cast<void (BitcoinGUI::*)()>( | [this] { showNormalIfMinimized(); }); | ||||
&BitcoinGUI::showNormalIfMinimized)); | |||||
connect(overviewAction, &QAction::triggered, this, | connect(overviewAction, &QAction::triggered, this, | ||||
&BitcoinGUI::gotoOverviewPage); | &BitcoinGUI::gotoOverviewPage); | ||||
connect(sendCoinsAction, &QAction::triggered, this, | connect(sendCoinsAction, &QAction::triggered, | ||||
static_cast<void (BitcoinGUI::*)()>( | [this] { showNormalIfMinimized(); }); | ||||
&BitcoinGUI::showNormalIfMinimized)); | |||||
connect(sendCoinsAction, &QAction::triggered, | connect(sendCoinsAction, &QAction::triggered, | ||||
[this] { gotoSendCoinsPage(); }); | [this] { gotoSendCoinsPage(); }); | ||||
connect(sendCoinsMenuAction, &QAction::triggered, this, | connect(sendCoinsMenuAction, &QAction::triggered, | ||||
static_cast<void (BitcoinGUI::*)()>( | [this] { showNormalIfMinimized(); }); | ||||
&BitcoinGUI::showNormalIfMinimized)); | |||||
connect(sendCoinsMenuAction, &QAction::triggered, | connect(sendCoinsMenuAction, &QAction::triggered, | ||||
[this] { gotoSendCoinsPage(); }); | [this] { gotoSendCoinsPage(); }); | ||||
connect(receiveCoinsAction, &QAction::triggered, this, | connect(receiveCoinsAction, &QAction::triggered, | ||||
static_cast<void (BitcoinGUI::*)()>( | [this] { showNormalIfMinimized(); }); | ||||
&BitcoinGUI::showNormalIfMinimized)); | |||||
connect(receiveCoinsAction, &QAction::triggered, this, | connect(receiveCoinsAction, &QAction::triggered, this, | ||||
&BitcoinGUI::gotoReceiveCoinsPage); | &BitcoinGUI::gotoReceiveCoinsPage); | ||||
connect(receiveCoinsMenuAction, &QAction::triggered, this, | connect(receiveCoinsMenuAction, &QAction::triggered, | ||||
static_cast<void (BitcoinGUI::*)()>( | [this] { showNormalIfMinimized(); }); | ||||
&BitcoinGUI::showNormalIfMinimized)); | |||||
connect(receiveCoinsMenuAction, &QAction::triggered, this, | connect(receiveCoinsMenuAction, &QAction::triggered, this, | ||||
&BitcoinGUI::gotoReceiveCoinsPage); | &BitcoinGUI::gotoReceiveCoinsPage); | ||||
connect(historyAction, &QAction::triggered, this, | connect(historyAction, &QAction::triggered, | ||||
static_cast<void (BitcoinGUI::*)()>( | [this] { showNormalIfMinimized(); }); | ||||
&BitcoinGUI::showNormalIfMinimized)); | |||||
connect(historyAction, &QAction::triggered, this, | connect(historyAction, &QAction::triggered, this, | ||||
&BitcoinGUI::gotoHistoryPage); | &BitcoinGUI::gotoHistoryPage); | ||||
#endif // ENABLE_WALLET | #endif // ENABLE_WALLET | ||||
quitAction = new QAction(platformStyle->TextColorIcon(":/icons/quit"), | quitAction = new QAction(platformStyle->TextColorIcon(":/icons/quit"), | ||||
tr("E&xit"), this); | 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)); | ||||
▲ Show 20 Lines • Show All 101 Lines • ▼ Show 20 Lines | #ifdef ENABLE_WALLET | ||||
if (walletFrame) { | if (walletFrame) { | ||||
connect(encryptWalletAction, &QAction::triggered, walletFrame, | connect(encryptWalletAction, &QAction::triggered, walletFrame, | ||||
&WalletFrame::encryptWallet); | &WalletFrame::encryptWallet); | ||||
connect(backupWalletAction, &QAction::triggered, walletFrame, | connect(backupWalletAction, &QAction::triggered, walletFrame, | ||||
&WalletFrame::backupWallet); | &WalletFrame::backupWallet); | ||||
connect(changePassphraseAction, &QAction::triggered, walletFrame, | connect(changePassphraseAction, &QAction::triggered, walletFrame, | ||||
&WalletFrame::changePassphrase); | &WalletFrame::changePassphrase); | ||||
connect(signMessageAction, &QAction::triggered, | connect(signMessageAction, &QAction::triggered, | ||||
[this] { showNormalIfMinimized(); }); | |||||
connect(signMessageAction, &QAction::triggered, | |||||
[this] { gotoSignMessageTab(); }); | [this] { gotoSignMessageTab(); }); | ||||
connect(verifyMessageAction, &QAction::triggered, | connect(verifyMessageAction, &QAction::triggered, | ||||
[this] { showNormalIfMinimized(); }); | |||||
connect(verifyMessageAction, &QAction::triggered, | |||||
[this] { gotoVerifyMessageTab(); }); | [this] { gotoVerifyMessageTab(); }); | ||||
connect(usedSendingAddressesAction, &QAction::triggered, walletFrame, | connect(usedSendingAddressesAction, &QAction::triggered, walletFrame, | ||||
&WalletFrame::usedSendingAddresses); | &WalletFrame::usedSendingAddresses); | ||||
connect(usedReceivingAddressesAction, &QAction::triggered, walletFrame, | connect(usedReceivingAddressesAction, &QAction::triggered, walletFrame, | ||||
&WalletFrame::usedReceivingAddresses); | &WalletFrame::usedReceivingAddresses); | ||||
connect(openAction, &QAction::triggered, this, | connect(openAction, &QAction::triggered, this, | ||||
&BitcoinGUI::openClicked); | &BitcoinGUI::openClicked); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 971 Lines • Show Last 20 Lines |