From d79cd07d50426848ca8cec028d78d67c8335f02a Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Thu, 26 Nov 2009 08:29:06 +0000 Subject: [PATCH] - Still working on program preferences in Web UI (not functional yet) --- src/httpconnection.cpp | 2 +- src/webui/preferences.html | 55 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 src/webui/preferences.html diff --git a/src/httpconnection.cpp b/src/httpconnection.cpp index b12c68b09..1f23338f0 100644 --- a/src/httpconnection.cpp +++ b/src/httpconnection.cpp @@ -108,7 +108,7 @@ QString HttpConnection::translateDocument(QString data) { bool found = false; do { found = false; - QRegExp regex("_\\(([\\w\\s?!:\\/\\.]+)\\)"); + QRegExp regex("_\\(([\\w\\s?!:\\/\\(\\)\\.]+)\\)"); i = regex.indexIn(data, i); if(i >= 0) { //qDebug("Found translatable string: %s", regex.cap(1).toUtf8().data()); diff --git a/src/webui/preferences.html b/src/webui/preferences.html new file mode 100644 index 000000000..f536ae199 --- /dev/null +++ b/src/webui/preferences.html @@ -0,0 +1,55 @@ + + + + + _(Download from URL) + + + + + + +
+ _(Global bandwidth limiting) +
+ + + + + + + +
_(Upload:)  _(KiB/s)
_(Download:)  _(KiB/s)
+
+
+
+
+ _(Connections limit) +
+ + + + + + + + + + +
_(Global maximum number of connections:)
_(Maximum number of connections per torrent:)
_(Maximum number of upload slots per torrent:)
+
+
+
+
+ _(Bittorrent features) +
+ + + + +
_(Enable DHT network (decentralized))
+
+
+ + + \ No newline at end of file