Changeset View
Changeset View
Standalone View
Standalone View
src/qt/utilitydialog.cpp
Show All 13 Lines | |||||
#include "clientmodel.h" | #include "clientmodel.h" | ||||
#include "guiconstants.h" | #include "guiconstants.h" | ||||
#include "guiutil.h" | #include "guiutil.h" | ||||
#include "intro.h" | #include "intro.h" | ||||
#include "paymentrequestplus.h" | #include "paymentrequestplus.h" | ||||
#include "clientversion.h" | #include "clientversion.h" | ||||
#include "init.h" | #include "init.h" | ||||
#include "interfaces/node.h" | |||||
#include "util.h" | #include "util.h" | ||||
#include <cstdio> | #include <cstdio> | ||||
#include <QCloseEvent> | #include <QCloseEvent> | ||||
#include <QLabel> | #include <QLabel> | ||||
#include <QRegExp> | #include <QRegExp> | ||||
#include <QTextCursor> | #include <QTextCursor> | ||||
#include <QTextTable> | #include <QTextTable> | ||||
#include <QVBoxLayout> | #include <QVBoxLayout> | ||||
/** "Help message" or "About" dialog box */ | /** "Help message" or "About" dialog box */ | ||||
HelpMessageDialog::HelpMessageDialog(QWidget *parent, bool about) | HelpMessageDialog::HelpMessageDialog(interfaces::Node &node, QWidget *parent, | ||||
bool about) | |||||
: QDialog(parent), ui(new Ui::HelpMessageDialog) { | : QDialog(parent), ui(new Ui::HelpMessageDialog) { | ||||
ui->setupUi(this); | ui->setupUi(this); | ||||
QString version = tr(PACKAGE_NAME) + " " + tr("version") + " " + | QString version = tr(PACKAGE_NAME) + " " + tr("version") + " " + | ||||
QString::fromStdString(FormatFullVersion()); | QString::fromStdString(FormatFullVersion()); | ||||
/** | /** | ||||
* On x86 add a bit specifier to the version so that users can distinguish | * On x86 add a bit specifier to the version so that users can distinguish | ||||
* between 32 and 64 bit builds. On other architectures, 32/64 bit may be more | * between 32 and 64 bit builds. On other architectures, 32/64 bit may be more | ||||
Show All 30 Lines | if (about) { | ||||
tr("command-line options") + "] " + | tr("command-line options") + "] " + | ||||
"\n"; | "\n"; | ||||
QTextCursor cursor(ui->helpMessage->document()); | QTextCursor cursor(ui->helpMessage->document()); | ||||
cursor.insertText(version); | cursor.insertText(version); | ||||
cursor.insertBlock(); | cursor.insertBlock(); | ||||
cursor.insertText(header); | cursor.insertText(header); | ||||
cursor.insertBlock(); | cursor.insertBlock(); | ||||
std::string strUsage = HelpMessage(HelpMessageMode::BITCOIN_QT); | std::string strUsage = node.helpMessage(HelpMessageMode::BITCOIN_QT); | ||||
const bool showDebug = gArgs.GetBoolArg("-help-debug", false); | const bool showDebug = gArgs.GetBoolArg("-help-debug", false); | ||||
strUsage += HelpMessageGroup(tr("UI Options:").toStdString()); | strUsage += HelpMessageGroup(tr("UI Options:").toStdString()); | ||||
if (showDebug) { | if (showDebug) { | ||||
strUsage += HelpMessageOpt( | strUsage += HelpMessageOpt( | ||||
"-allowselfsignedrootcertificates", | "-allowselfsignedrootcertificates", | ||||
strprintf("Allow self signed root certificates (default: %d)", | strprintf("Allow self signed root certificates (default: %d)", | ||||
DEFAULT_SELFSIGNED_ROOTCERTS)); | DEFAULT_SELFSIGNED_ROOTCERTS)); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 120 Lines • Show Last 20 Lines |