From cd14f5c43a348817fd3cc7ada2514cd3db08f70d Mon Sep 17 00:00:00 2001 From: fsb4000 Date: Tue, 6 Jan 2015 20:05:00 +0600 Subject: [PATCH] add BerkeleyDB version info to RPCConsole https://github.com/bitcoin/bitcoin/commit/fe6bff2eaec35c3dc292af883a6e82397e440c22 --- src/qt/forms/rpcconsole.ui | 68 +++++++++++++++++++++++++++++------------- src/qt/locale/bitcoin_ru.ts | 5 +++ src/qt/rpcconsole.cpp | 4 ++- 3 files changed, 55 insertions(+), 22 deletions(-) diff --git a/src/qt/forms/rpcconsole.ui b/src/qt/forms/rpcconsole.ui index 30e1468..afe3cd6 100644 --- a/src/qt/forms/rpcconsole.ui +++ b/src/qt/forms/rpcconsole.ui @@ -113,13 +113,39 @@ + + + Using BerkeleyDB version + + + 10 + + + + + + + IBeamCursor + + + N/A + + + Qt::PlainText + + + Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse + + + + Build date - + IBeamCursor @@ -135,14 +161,14 @@ - + Startup time - + IBeamCursor @@ -158,7 +184,7 @@ - + @@ -171,14 +197,14 @@ - + Number of connections - + IBeamCursor @@ -194,14 +220,14 @@ - + On testnet - + false @@ -211,7 +237,7 @@ - + @@ -224,14 +250,14 @@ - + Current number of blocks - + IBeamCursor @@ -247,14 +273,14 @@ - + Estimated total blocks - + IBeamCursor @@ -270,14 +296,14 @@ - + Last block time - + IBeamCursor @@ -293,7 +319,7 @@ - + Qt::Vertical @@ -306,7 +332,7 @@ - + @@ -319,7 +345,7 @@ - + Open the NovaCoin debug log file from the current data directory. This can take a few seconds for large log files. @@ -332,7 +358,7 @@ - + @@ -345,7 +371,7 @@ - + Show the NovaCoin-Qt help message to get a list with possible NovaCoin command-line options. @@ -358,7 +384,7 @@ - + Qt::Vertical diff --git a/src/qt/locale/bitcoin_ru.ts b/src/qt/locale/bitcoin_ru.ts index 100be1e..c1e3383 100644 --- a/src/qt/locale/bitcoin_ru.ts +++ b/src/qt/locale/bitcoin_ru.ts @@ -2079,6 +2079,11 @@ This label turns red, if the priority is smaller than "medium". RPCConsole + + Using BerkeleyDB version + Используется версия BerkeleyDB + + Received: Получено: diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp index ce71379..95a45b3 100644 --- a/src/qt/rpcconsole.cpp +++ b/src/qt/rpcconsole.cpp @@ -15,6 +15,7 @@ #include #include +#include // TODO: make it possible to filter out categories (esp debug messages when implemented) // TODO: receive errors and debug messages through ClientModel @@ -207,8 +208,9 @@ RPCConsole::RPCConsole(QWidget *parent) : connect(ui->clearButton, SIGNAL(clicked()), this, SLOT(clear())); connect(ui->btnClearTrafficGraph, SIGNAL(clicked()), ui->trafficGraph, SLOT(clear())); - // set OpenSSL version label + // set library version labels ui->openSSLVersion->setText(SSLeay_version(SSLEAY_VERSION)); + ui->berkeleyDBVersion->setText(DbEnv::version(0, 0, 0)); startExecutor(); setTrafficGraphRange(INITIAL_TRAFFIC_GRAPH_MINS); -- 1.7.1