summaryrefslogtreecommitdiff
path: root/src/gui/setup_other.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-04-01 18:48:02 +0300
committerAndrei Karas <akaras@inbox.ru>2012-04-01 18:48:02 +0300
commit8b1922e8e7a227090cf01b05e65209076dec9df5 (patch)
treeba3c487dff6da52c6cca10e925b2b5a77f073742 /src/gui/setup_other.cpp
parenteb119ecb58cce24813b37108fce4c0f343bdc2ab (diff)
downloadmv-8b1922e8e7a227090cf01b05e65209076dec9df5.tar.gz
mv-8b1922e8e7a227090cf01b05e65209076dec9df5.tar.bz2
mv-8b1922e8e7a227090cf01b05e65209076dec9df5.tar.xz
mv-8b1922e8e7a227090cf01b05e65209076dec9df5.zip
Add support form different proxy types in download process.
Diffstat (limited to 'src/gui/setup_other.cpp')
-rw-r--r--src/gui/setup_other.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/gui/setup_other.cpp b/src/gui/setup_other.cpp
index 02ad9ae5e..602f94fcb 100644
--- a/src/gui/setup_other.cpp
+++ b/src/gui/setup_other.cpp
@@ -167,6 +167,25 @@ Setup_Other::Setup_Other()
new SetupItemCheckBox(_("Auto hide shortcuts buttons."), "",
"autohideButtons", this, "autohideButtonsEvent");
+
+ new SetupItemLabel(_("Proxy server"), "", this);
+
+ mProxyTypeList = new SetupItemNames();
+ mProxyTypeList->push_back(_("System proxy"));
+ mProxyTypeList->push_back(_("Direct connection"));
+ mProxyTypeList->push_back("HTTP");
+ mProxyTypeList->push_back("HTTP 1.0");
+ mProxyTypeList->push_back("SOCKS4");
+ mProxyTypeList->push_back("SOCKS4A");
+ mProxyTypeList->push_back("SOCKS5");
+ mProxyTypeList->push_back(_("SOCKS5 hostname"));
+ new SetupItemSlider2(_("Proxy type"), "", "downloadProxyType", this,
+ "downloadProxyTypeEvent", 0, 7, mProxyTypeList);
+
+ new SetupItemTextField(_("Proxy address:port"), "",
+ "downloadProxy", this, "downloadProxyEvent");
+
+
new SetupItemLabel(_("Other"), "", this);
new SetupItemCheckBox(_("Enable server side attack"), "",
@@ -199,6 +218,12 @@ Setup_Other::Setup_Other()
setDimension(gcn::Rectangle(0, 0, 550, 350));
}
+Setup_Other::~Setup_Other()
+{
+ delete mProxyTypeList;
+ mProxyTypeList = nullptr;
+}
+
void Setup_Other::apply()
{
SetupTabScroll::apply();