|
|
@ -308,11 +308,15 @@ void BitcoinGUI::createActions(bool fIsTestnet) |
|
|
|
openAction = new QAction(QApplication::style()->standardIcon(QStyle::SP_FileIcon), tr("Open &URI..."), this); |
|
|
|
openAction = new QAction(QApplication::style()->standardIcon(QStyle::SP_FileIcon), 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(QApplication::style()->standardIcon(QStyle::SP_MessageBoxInformation), tr("&Command-line options"), this); |
|
|
|
|
|
|
|
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())); |
|
|
|
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())); |
|
|
|
|
|
|
|
connect(showHelpMessageAction, SIGNAL(triggered()), this, SLOT(showHelpMessageClicked())); |
|
|
|
#ifdef ENABLE_WALLET |
|
|
|
#ifdef ENABLE_WALLET |
|
|
|
if(walletFrame) |
|
|
|
if(walletFrame) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -366,8 +370,9 @@ void BitcoinGUI::createMenuBar() |
|
|
|
if(walletFrame) |
|
|
|
if(walletFrame) |
|
|
|
{ |
|
|
|
{ |
|
|
|
help->addAction(openRPCConsoleAction); |
|
|
|
help->addAction(openRPCConsoleAction); |
|
|
|
help->addSeparator(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
help->addAction(showHelpMessageAction); |
|
|
|
|
|
|
|
help->addSeparator(); |
|
|
|
help->addAction(aboutAction); |
|
|
|
help->addAction(aboutAction); |
|
|
|
help->addAction(aboutQtAction); |
|
|
|
help->addAction(aboutQtAction); |
|
|
|
} |
|
|
|
} |
|
|
@ -546,6 +551,13 @@ void BitcoinGUI::aboutClicked() |
|
|
|
dlg.exec(); |
|
|
|
dlg.exec(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void BitcoinGUI::showHelpMessageClicked() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
HelpMessageDialog *help = new HelpMessageDialog(this); |
|
|
|
|
|
|
|
help->setAttribute(Qt::WA_DeleteOnClose); |
|
|
|
|
|
|
|
help->show(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#ifdef ENABLE_WALLET |
|
|
|
#ifdef ENABLE_WALLET |
|
|
|
void BitcoinGUI::openClicked() |
|
|
|
void BitcoinGUI::openClicked() |
|
|
|
{ |
|
|
|
{ |
|
|
|