From 7e195e8459ad741368db6bb574981fccb1707268 Mon Sep 17 00:00:00 2001 From: Philip Kaufmann Date: Tue, 3 Dec 2013 09:10:10 +0100 Subject: [Qt] massive options/settings rework (no core changes) - add new options for database cache and script verification threads - add label which displays options that are overridden by command-line parameters - proxy settings are not applied on-the-fly anymore and require a client restart (ApplyProxySettings() was removed and was not working very well anyway) - re-work options reset and require a client shutdown (as it is much easier to do it this way without having to mess with what can be changed on-the-fly and what needs a restart anyway) - options reset now writes default values for every single option - when changing an option which requires a client restart display a 10 second warning message in statusLabel (via a QTimer) - when applying the changes via ok change that to a persistent message, which is displayed even after closing optionsdialog and re-open it, when no client restart was made - remove dialog boxes used when changing language or proxy settings - add setRestartRequired() and isRestartRequired() to OptionsModel and use the set function when updating options to signal OptionsDialog when a restart is needed - resize optionsdialog a little and add some min sizes for certain GUI elements - remove apply button from optionsdialog - save and restore optionsdialog window position - update nTransactionFee in QSettings with a set -paytxfee value when opening optionsdialog (I'm not sure about this yet, perhaps revert to not updating QSettings and just display current -paytxfee value in optionsdialog.) --- src/qt/forms/optionsdialog.ui | 219 +++++++++++++++++++++++++++++++++--------- 1 file changed, 175 insertions(+), 44 deletions(-) (limited to 'src/qt/forms/optionsdialog.ui') diff --git a/src/qt/forms/optionsdialog.ui b/src/qt/forms/optionsdialog.ui index 28b629b38c..9056ab7696 100644 --- a/src/qt/forms/optionsdialog.ui +++ b/src/qt/forms/optionsdialog.ui @@ -6,8 +6,8 @@ 0 0 - 540 - 380 + 560 + 400 @@ -19,9 +19,6 @@ - - QTabWidget::North - 0 @@ -86,21 +83,44 @@ - - - - Qt::Vertical - - - - 20 - 40 - - - - + + + + Size of &database cache + + + Qt::PlainText + + + databaseCache + + + + + + + Set database cache size in megabytes (default: 25) + + + 1024 + + + 25 + + + + + + + MB + + + Qt::PlainText + + + @@ -114,21 +134,64 @@ + + + + + + + + Number of script &verification threads + + + Qt::PlainText + + + threadsScriptVerif + + + - + - Reset all client options to default. + Set the number of script verification threads (up to 16, 0 = auto, <0 = leave that many cores free, default: 0) - - &Reset Options + + -16 - - false + + 16 + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + @@ -149,15 +212,15 @@ - Connect to the Bitcoin network through a SOCKS proxy (e.g. when connecting through Tor). + Connect to the Bitcoin network through a SOCKS proxy. - &Connect through SOCKS proxy: + &Connect through SOCKS proxy (default proxy): - + @@ -173,6 +236,12 @@ + + + 140 + 0 + + 140 @@ -180,7 +249,7 @@ - IP address of the proxy (e.g. 127.0.0.1) + IP address of the proxy (e.g. IPv4: 127.0.0.1 / IPv6: ::1) @@ -199,6 +268,12 @@ + + + 55 + 0 + + 55 @@ -231,7 +306,7 @@ - + Qt::Horizontal @@ -390,8 +465,67 @@ + + + + + + + + + Active command-line options that override above options: + + + Qt::PlainText + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + + Qt::PlainText + + + true + + + + + + + + + + Reset all client options to default. + + + &Reset Options + + + false + + + @@ -407,6 +541,12 @@ + + + 200 + 0 + + 75 @@ -454,16 +594,6 @@ - - - - &Apply - - - false - - - @@ -473,17 +603,18 @@ BitcoinAmountField QLineEdit
bitcoinamountfield.h
- - - QValueComboBox - QComboBox -
qvaluecombobox.h
+ 1
QValidatedLineEdit QLineEdit
qvalidatedlineedit.h
+ + QValueComboBox + QComboBox +
qvaluecombobox.h
+
-- cgit v1.2.3