Preferences/ConfigurationPages/NetworkPage.py

changeset 3010
befeff46ec0f
parent 2964
84b65fb9e780
child 3025
67064c71df21
child 3057
10516539f238
equal deleted inserted replaced
3009:bf5ae5d7477d 3010:befeff46ec0f
34 self.setupUi(self) 34 self.setupUi(self)
35 self.setObjectName("NetworkPage") 35 self.setObjectName("NetworkPage")
36 36
37 self.downloadDirCompleter = E5DirCompleter(self.downloadDirEdit) 37 self.downloadDirCompleter = E5DirCompleter(self.downloadDirEdit)
38 38
39 self.ftpProxyTypeCombo.addItem(self.trUtf8("No FTP Proxy"), 39 self.ftpProxyTypeCombo.addItem(
40 E5FtpProxyType.NoProxy) 40 self.trUtf8("No FTP Proxy"), E5FtpProxyType.NoProxy)
41 self.ftpProxyTypeCombo.addItem(self.trUtf8("No Proxy Authentication required"), 41 self.ftpProxyTypeCombo.addItem(
42 E5FtpProxyType.NonAuthorizing) 42 self.trUtf8("No Proxy Authentication required"),
43 self.ftpProxyTypeCombo.addItem(self.trUtf8("User@Server"), 43 E5FtpProxyType.NonAuthorizing)
44 E5FtpProxyType.UserAtServer) 44 self.ftpProxyTypeCombo.addItem(
45 self.ftpProxyTypeCombo.addItem(self.trUtf8("SITE"), 45 self.trUtf8("User@Server"), E5FtpProxyType.UserAtServer)
46 E5FtpProxyType.Site) 46 self.ftpProxyTypeCombo.addItem(
47 self.ftpProxyTypeCombo.addItem(self.trUtf8("OPEN"), 47 self.trUtf8("SITE"), E5FtpProxyType.Site)
48 E5FtpProxyType.Open) 48 self.ftpProxyTypeCombo.addItem(
49 self.ftpProxyTypeCombo.addItem(self.trUtf8("User@Proxyuser@Server"), 49 self.trUtf8("OPEN"), E5FtpProxyType.Open)
50 E5FtpProxyType.UserAtProxyuserAtServer) 50 self.ftpProxyTypeCombo.addItem(
51 self.ftpProxyTypeCombo.addItem(self.trUtf8("Proxyuser@Server"), 51 self.trUtf8("User@Proxyuser@Server"),
52 E5FtpProxyType.ProxyuserAtServer) 52 E5FtpProxyType.UserAtProxyuserAtServer)
53 self.ftpProxyTypeCombo.addItem(self.trUtf8("AUTH and RESP"), 53 self.ftpProxyTypeCombo.addItem(
54 E5FtpProxyType.AuthResp) 54 self.trUtf8("Proxyuser@Server"), E5FtpProxyType.ProxyuserAtServer)
55 self.ftpProxyTypeCombo.addItem(self.trUtf8("Bluecoat Proxy"), 55 self.ftpProxyTypeCombo.addItem(
56 E5FtpProxyType.Bluecoat) 56 self.trUtf8("AUTH and RESP"), E5FtpProxyType.AuthResp)
57 self.ftpProxyTypeCombo.addItem(
58 self.trUtf8("Bluecoat Proxy"), E5FtpProxyType.Bluecoat)
57 59
58 # set initial values 60 # set initial values
59 self.downloadDirEdit.setText(Preferences.getUI("DownloadPath")) 61 self.downloadDirEdit.setText(Preferences.getUI("DownloadPath"))
60 self.requestFilenameCheckBox.setChecked( 62 self.requestFilenameCheckBox.setChecked(
61 Preferences.getUI("RequestDownloadFilename")) 63 Preferences.getUI("RequestDownloadFilename"))
189 """ 191 """
190 proxyType = self.ftpProxyTypeCombo.itemData(index) 192 proxyType = self.ftpProxyTypeCombo.itemData(index)
191 self.ftpProxyHostEdit.setEnabled(proxyType != E5FtpProxyType.NoProxy) 193 self.ftpProxyHostEdit.setEnabled(proxyType != E5FtpProxyType.NoProxy)
192 self.ftpProxyPortSpin.setEnabled(proxyType != E5FtpProxyType.NoProxy) 194 self.ftpProxyPortSpin.setEnabled(proxyType != E5FtpProxyType.NoProxy)
193 self.ftpProxyUserEdit.setEnabled( 195 self.ftpProxyUserEdit.setEnabled(
194 proxyType not in [E5FtpProxyType.NoProxy, E5FtpProxyType.NonAuthorizing]) 196 proxyType not in [E5FtpProxyType.NoProxy,
197 E5FtpProxyType.NonAuthorizing])
195 self.ftpProxyPasswordEdit.setEnabled( 198 self.ftpProxyPasswordEdit.setEnabled(
196 proxyType not in [E5FtpProxyType.NoProxy, E5FtpProxyType.NonAuthorizing]) 199 proxyType not in [E5FtpProxyType.NoProxy,
200 E5FtpProxyType.NonAuthorizing])
197 self.ftpProxyAccountEdit.setEnabled( 201 self.ftpProxyAccountEdit.setEnabled(
198 proxyType not in [E5FtpProxyType.NoProxy, E5FtpProxyType.NonAuthorizing]) 202 proxyType not in [E5FtpProxyType.NoProxy,
203 E5FtpProxyType.NonAuthorizing])
199 204
200 205
201 def create(dlg): 206 def create(dlg):
202 """ 207 """
203 Module function to create the configuration page. 208 Module function to create the configuration page.

eric ide

mercurial