From bbac79c030da0335dcd2f7f6ce394822b0fe4191 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Mon, 24 May 2010 18:57:44 +0000 Subject: [PATCH] FEATURE: Add Check/Uncheck all feature in Web UI --- Changelog | 1 + src/Icons/3-state-checkbox.gif | Bin 0 -> 322 bytes src/Icons/L.gif | Bin 0 -> 66 bytes src/icons.qrc | 2 + src/webui/css/style.css | 15 +++++ src/webui/prop-files.html | 105 ++++++++++++++++++++++++++++++--- 6 files changed, 115 insertions(+), 8 deletions(-) create mode 100644 src/Icons/3-state-checkbox.gif create mode 100644 src/Icons/L.gif diff --git a/Changelog b/Changelog index 0c9aafeee..8774e607b 100644 --- a/Changelog +++ b/Changelog @@ -9,6 +9,7 @@ - FEATURE: Several torrents can be moved at once - FEATURE: Added error state for torrents (error is displayed in a tooltip) - FEATURE: Added filter for paused/error torrents + - FEATURE: Add Check/Uncheck all feature in Web UI - COSMETIC: Display peers country name in tooltip - COSMETIC: Display number of torrents in transfers tab label diff --git a/src/Icons/3-state-checkbox.gif b/src/Icons/3-state-checkbox.gif new file mode 100644 index 0000000000000000000000000000000000000000..f7918e84ce2f365bce7eab1f632432240dfe871a GIT binary patch literal 322 zcmV-I0lof5Nk%w1VGRH$0E7ns98rKFp&{|{@9*#I`T6+l?CJCK@&Et-_xJYo_4MWC z;^^q*`}_L-{{GzD*W%*d;NaW+{rukE+4}nV{QUdk;@#)x<>le^_4EDx{o~`` z|NsC0|NsC0|NsC0EC2ui01W^q000HYARvw;>6{YuC`&O2BC4{kV8rR#zD6SEG+qKB zn(b^uf=E~EAqWgn5cy<8L`Nqy(hxP1*2Y03ta1-y0Cg)ym)`KWs6yXhESKiIV#hZ# zbA5R)0U1O9f;9mFPa<~#ii-pjB6y1eivg1qB6*pT6BHU=grK5b06ZC*p&DW$Hinz7 zZU6?dt!-&?yl^KDKu0ma5XD(ID#Z{&KQqcyMJo!^1l83`3ZI!!QVZIWR{%#5Icons/sphere2.png Icons/downarrow.png Icons/url.png + Icons/3-state-checkbox.gif Icons/loading.png Icons/slow.png Icons/magnet.png Icons/sphere.png + Icons/L.gif Icons/slow_off.png Icons/uparrow.png Icons/rss16.png diff --git a/src/webui/css/style.css b/src/webui/css/style.css index 7d43eb9d1..3591a73cf 100644 --- a/src/webui/css/style.css +++ b/src/webui/css/style.css @@ -248,3 +248,18 @@ a.propButton img { padding-right: 3px; } +/* Tri-state checkbox */ +a.tristate { + background: url(../images/3-state-checkbox.gif) 0 0 no-repeat; + display: block; + float: left; + height: 13px; + margin: .15em 8px 5px 0px; + overflow: hidden; + text-indent: -999em; + width: 13px; +} +a.checked { background-position: 0 -13px; } +a.partial { background-position: 0 -26px; } + + diff --git a/src/webui/prop-files.html b/src/webui/prop-files.html index 2efdcd7c1..05115495f 100644 --- a/src/webui/prop-files.html +++ b/src/webui/prop-files.html @@ -2,7 +2,7 @@ - + @@ -16,10 +16,85 @@
_(Downloaded)  _(Downloaded) _(Name) _(Size) _(Progress)