Changeset View
Changeset View
Standalone View
Standalone View
src/qt/utilitydialog.cpp
Show First 20 Lines • Show All 71 Lines • ▼ Show 20 Lines | if (about) { | ||||
QString header = | QString header = | ||||
"Usage: bitcoin-qt [command-line options] \n"; | "Usage: bitcoin-qt [command-line options] \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 = node.helpMessage(HelpMessageMode::BITCOIN_QT); | std::string strUsage = gArgs.GetHelpMessage(); | ||||
const bool showDebug = gArgs.GetBoolArg("-help-debug", false); | |||||
strUsage += HelpMessageGroup(tr("UI Options:").toStdString()); | |||||
if (showDebug) { | |||||
strUsage += HelpMessageOpt( | |||||
"-allowselfsignedrootcertificates", | |||||
strprintf("Allow self signed root certificates (default: %d)", | |||||
DEFAULT_SELFSIGNED_ROOTCERTS)); | |||||
} | |||||
strUsage += HelpMessageOpt( | |||||
"-choosedatadir", | |||||
strprintf(tr("Choose data directory on startup (default: %d)") | |||||
.toStdString(), | |||||
DEFAULT_CHOOSE_DATADIR)); | |||||
strUsage += HelpMessageOpt( | |||||
"-lang=<lang>", | |||||
tr("Set language, for example \"de_DE\" (default: system locale)") | |||||
.toStdString()); | |||||
strUsage += HelpMessageOpt("-min", tr("Start minimized").toStdString()); | |||||
strUsage += HelpMessageOpt("-rootcertificates=<file>", | |||||
tr("Set SSL root certificates for payment " | |||||
"request (default: -system-)") | |||||
.toStdString()); | |||||
strUsage += HelpMessageOpt( | |||||
"-splash", | |||||
strprintf( | |||||
tr("Show splash screen on startup (default: %d)").toStdString(), | |||||
DEFAULT_SPLASHSCREEN)); | |||||
strUsage += HelpMessageOpt( | |||||
"-resetguisettings", | |||||
tr("Reset all settings changed in the GUI").toStdString()); | |||||
if (showDebug) { | |||||
strUsage += HelpMessageOpt( | |||||
"-uiplatform", | |||||
strprintf("Select platform to customize UI for (one of " | |||||
"windows, macosx, other; default: %s)", | |||||
BitcoinGUI::DEFAULT_UIPLATFORM)); | |||||
} | |||||
QString coreOptions = QString::fromStdString(strUsage); | QString coreOptions = QString::fromStdString(strUsage); | ||||
text = version + "\n\n" + header + "\n" + coreOptions; | text = version + "\n\n" + header + "\n" + coreOptions; | ||||
QTextTableFormat tf; | QTextTableFormat tf; | ||||
tf.setBorderStyle(QTextFrameFormat::BorderStyle_None); | tf.setBorderStyle(QTextFrameFormat::BorderStyle_None); | ||||
tf.setCellPadding(2); | tf.setCellPadding(2); | ||||
QVector<QTextLength> widths; | QVector<QTextLength> widths; | ||||
widths << QTextLength(QTextLength::PercentageLength, 35); | widths << QTextLength(QTextLength::PercentageLength, 35); | ||||
▲ Show 20 Lines • Show All 83 Lines • Show Last 20 Lines |