author | andyq <andyq> | 2002-12-12 00:18:40 (UTC) |
---|---|---|
committer | andyq <andyq> | 2002-12-12 00:18:40 (UTC) |
commit | 1d044ba4d276240b60bc98d18365a80183960751 (patch) (unidiff) | |
tree | 98f69f03bb7ff4a904c02322be6480c54b6a7e08 | |
parent | fe063bdf069cd33def6347777624798e4f3a7059 (diff) | |
download | opie-1d044ba4d276240b60bc98d18365a80183960751.zip opie-1d044ba4d276240b60bc98d18365a80183960751.tar.gz opie-1d044ba4d276240b60bc98d18365a80183960751.tar.bz2 |
Added proxy support
-rw-r--r-- | noncore/settings/aqpkg/datamgr.cpp | 28 | ||||
-rw-r--r-- | noncore/settings/aqpkg/datamgr.h | 18 | ||||
-rw-r--r-- | noncore/settings/aqpkg/settings.ui | 1135 | ||||
-rw-r--r-- | noncore/settings/aqpkg/settingsimpl.cpp | 21 | ||||
-rw-r--r-- | noncore/settings/aqpkg/settingsimpl.h | 2 |
5 files changed, 743 insertions, 461 deletions
diff --git a/noncore/settings/aqpkg/datamgr.cpp b/noncore/settings/aqpkg/datamgr.cpp index 96c28c0..3933a22 100644 --- a/noncore/settings/aqpkg/datamgr.cpp +++ b/noncore/settings/aqpkg/datamgr.cpp | |||
@@ -121,33 +121,45 @@ void DataManager :: loadServers() | |||
121 | sscanf( lineStr, "%*[^ ] %s %s", alias, path ); | 121 | sscanf( lineStr, "%*[^ ] %s %s", alias, path ); |
122 | Destination d( alias, path ); | 122 | Destination d( alias, path ); |
123 | bool linkToRoot = true; | 123 | bool linkToRoot = true; |
124 | #ifdef QWS | 124 | #ifdef QWS |
125 | QString key = alias; | 125 | QString key = alias; |
126 | key += "_linkToRoot"; | 126 | key += "_linkToRoot"; |
127 | linkToRoot = cfg.readBoolEntry( key, true ); | 127 | linkToRoot = cfg.readBoolEntry( key, true ); |
128 | #endif | 128 | #endif |
129 | d.linkToRoot( linkToRoot ); | 129 | d.linkToRoot( linkToRoot ); |
130 | 130 | ||
131 | destList.push_back( d ); | 131 | destList.push_back( d ); |
132 | } | 132 | } |
133 | else if ( lineStr.startsWith( "option" ) ) | 133 | else if ( lineStr.startsWith( "option" ) || lineStr.startsWith( "#option" ) ) |
134 | { | 134 | { |
135 | char type[20]; | 135 | char type[20]; |
136 | char val[100]; | 136 | char val[100]; |
137 | sscanf( lineStr, "%*[^ ] %s %s", type, val ); | 137 | sscanf( lineStr, "%*[^ ] %s %s", type, val ); |
138 | if ( stricmp( type, "http_proxy" ) == 0 ) | 138 | if ( stricmp( type, "http_proxy" ) == 0 ) |
139 | { | ||
139 | httpProxy = val; | 140 | httpProxy = val; |
141 | if ( lineStr.startsWith( "#" ) ) | ||
142 | httpProxyEnabled = false; | ||
143 | else | ||
144 | httpProxyEnabled = true; | ||
145 | } | ||
140 | if ( stricmp( type, "ftp_proxy" ) == 0 ) | 146 | if ( stricmp( type, "ftp_proxy" ) == 0 ) |
147 | { | ||
141 | ftpProxy = val; | 148 | ftpProxy = val; |
149 | if ( lineStr.startsWith( "#" ) ) | ||
150 | ftpProxyEnabled = false; | ||
151 | else | ||
152 | ftpProxyEnabled = true; | ||
153 | } | ||
142 | if ( stricmp( type, "proxy_username" ) == 0 ) | 154 | if ( stricmp( type, "proxy_username" ) == 0 ) |
143 | proxyUsername = val; | 155 | proxyUsername = val; |
144 | if ( stricmp( type, "proxy_password" ) == 0 ) | 156 | if ( stricmp( type, "proxy_password" ) == 0 ) |
145 | proxyPassword = val; | 157 | proxyPassword = val; |
146 | } | 158 | } |
147 | } | 159 | } |
148 | } | 160 | } |
149 | fclose( fp ); | 161 | fclose( fp ); |
150 | 162 | ||
151 | reloadServerData( ); | 163 | reloadServerData( ); |
152 | } | 164 | } |
153 | 165 | ||
@@ -209,36 +221,44 @@ void DataManager :: writeOutIpkgConf() | |||
209 | } | 221 | } |
210 | 222 | ||
211 | out << endl; | 223 | out << endl; |
212 | 224 | ||
213 | // Write out destinations | 225 | // Write out destinations |
214 | vector<Destination>::iterator it2 = destList.begin(); | 226 | vector<Destination>::iterator it2 = destList.begin(); |
215 | while ( it2 != destList.end() ) | 227 | while ( it2 != destList.end() ) |
216 | { | 228 | { |
217 | out << "dest " << it2->getDestinationName() << " " << it2->getDestinationPath() << endl; | 229 | out << "dest " << it2->getDestinationName() << " " << it2->getDestinationPath() << endl; |
218 | it2++; | 230 | it2++; |
219 | } | 231 | } |
220 | 232 | ||
233 | out << endl; | ||
221 | out << "# Proxy Support" << endl; | 234 | out << "# Proxy Support" << endl; |
222 | out << "#" << endl; | ||
223 | 235 | ||
224 | if ( httpProxy == "" ) | 236 | if ( !httpProxyEnabled && httpProxy == "" ) |
225 | out << "#option http_proxy http://proxy.tld:3128" << endl; | 237 | out << "#option http_proxy http://proxy.tld:3128" << endl; |
226 | else | 238 | else |
239 | { | ||
240 | if ( !httpProxyEnabled ) | ||
241 | out << "#"; | ||
227 | out << "option http_proxy " << httpProxy << endl; | 242 | out << "option http_proxy " << httpProxy << endl; |
243 | } | ||
228 | 244 | ||
229 | if ( ftpProxy == "" ) | 245 | if ( !ftpProxyEnabled && ftpProxy == "" ) |
230 | out << "#option ftp_proxy http://proxy.tld:3128" << endl; | 246 | out << "#option ftp_proxy http://proxy.tld:3128" << endl; |
231 | else | 247 | else |
248 | { | ||
249 | if ( !ftpProxyEnabled ) | ||
250 | out << "#"; | ||
232 | out << "option ftp_proxy " << ftpProxy << endl; | 251 | out << "option ftp_proxy " << ftpProxy << endl; |
252 | } | ||
233 | if ( proxyUsername == "" ) | 253 | if ( proxyUsername == "" ) |
234 | out << "#option proxy_username <username>" << endl; | 254 | out << "#option proxy_username <username>" << endl; |
235 | else | 255 | else |
236 | out << "option proxy_username " << proxyUsername << endl; | 256 | out << "option proxy_username " << proxyUsername << endl; |
237 | if ( proxyPassword == "" ) | 257 | if ( proxyPassword == "" ) |
238 | out << "#option proxy_password <password>" << endl << endl; | 258 | out << "#option proxy_password <password>" << endl << endl; |
239 | else | 259 | else |
240 | out << "option proxy_password " << proxyPassword << endl<< endl; | 260 | out << "option proxy_password " << proxyPassword << endl<< endl; |
241 | 261 | ||
242 | out << "# Offline mode (for use in constructing flash images offline)" << endl; | 262 | out << "# Offline mode (for use in constructing flash images offline)" << endl; |
243 | out << "#option offline_root target" << endl; | 263 | out << "#option offline_root target" << endl; |
244 | 264 | ||
diff --git a/noncore/settings/aqpkg/datamgr.h b/noncore/settings/aqpkg/datamgr.h index 41833df..0a7467f 100644 --- a/noncore/settings/aqpkg/datamgr.h +++ b/noncore/settings/aqpkg/datamgr.h | |||
@@ -49,25 +49,43 @@ public: | |||
49 | 49 | ||
50 | vector<Destination> &getDestinationList() { return destList; } | 50 | vector<Destination> &getDestinationList() { return destList; } |
51 | vector<Destination>::iterator getDestination( const char *name ); | 51 | vector<Destination>::iterator getDestination( const char *name ); |
52 | 52 | ||
53 | void loadServers(); | 53 | void loadServers(); |
54 | void reloadServerData( ); | 54 | void reloadServerData( ); |
55 | 55 | ||
56 | void writeOutIpkgConf(); | 56 | void writeOutIpkgConf(); |
57 | 57 | ||
58 | static QString getAvailableCategories() { return availableCategories; } | 58 | static QString getAvailableCategories() { return availableCategories; } |
59 | static void setAvailableCategories( QString section ); | 59 | static void setAvailableCategories( QString section ); |
60 | 60 | ||
61 | QString getHttpProxy() { return httpProxy; } | ||
62 | QString getFtpProxy() { return ftpProxy; } | ||
63 | QString getProxyUsername() { return proxyUsername; } | ||
64 | QString getProxyPassword() { return proxyPassword; } | ||
65 | |||
66 | bool getHttpProxyEnabled() { return httpProxyEnabled; } | ||
67 | bool getFtpProxyEnabled() { return ftpProxyEnabled; } | ||
68 | |||
69 | void setHttpProxy( QString proxy ) { httpProxy = proxy; } | ||
70 | void setFtpProxy( QString proxy ) { ftpProxy = proxy; } | ||
71 | void setProxyUsername( QString name ) { proxyUsername = name; } | ||
72 | void setProxyPassword( QString pword ) { proxyPassword = pword; } | ||
73 | |||
74 | void setHttpProxyEnabled( bool val ) { httpProxyEnabled = val; } | ||
75 | void setFtpProxyEnabled( bool val ) { ftpProxyEnabled = val; } | ||
61 | private: | 76 | private: |
62 | static QString availableCategories; | 77 | static QString availableCategories; |
63 | QString activeServer; | 78 | QString activeServer; |
64 | QString httpProxy; | 79 | QString httpProxy; |
65 | QString ftpProxy; | 80 | QString ftpProxy; |
66 | QString proxyUsername; | 81 | QString proxyUsername; |
67 | QString proxyPassword; | 82 | QString proxyPassword; |
68 | 83 | ||
84 | bool httpProxyEnabled; | ||
85 | bool ftpProxyEnabled; | ||
86 | |||
69 | vector<Server> serverList; | 87 | vector<Server> serverList; |
70 | vector<Destination> destList; | 88 | vector<Destination> destList; |
71 | }; | 89 | }; |
72 | 90 | ||
73 | #endif | 91 | #endif |
diff --git a/noncore/settings/aqpkg/settings.ui b/noncore/settings/aqpkg/settings.ui index 44e8fd9..b39d358 100644 --- a/noncore/settings/aqpkg/settings.ui +++ b/noncore/settings/aqpkg/settings.ui | |||
@@ -2,563 +2,777 @@ | |||
2 | <class>SettingsBase</class> | 2 | <class>SettingsBase</class> |
3 | <widget> | 3 | <widget> |
4 | <class>QDialog</class> | 4 | <class>QDialog</class> |
5 | <property stdset="1"> | 5 | <property stdset="1"> |
6 | <name>name</name> | 6 | <name>name</name> |
7 | <cstring>Settings</cstring> | 7 | <cstring>Settings</cstring> |
8 | </property> | 8 | </property> |
9 | <property stdset="1"> | 9 | <property stdset="1"> |
10 | <name>geometry</name> | 10 | <name>geometry</name> |
11 | <rect> | 11 | <rect> |
12 | <x>0</x> | 12 | <x>0</x> |
13 | <y>0</y> | 13 | <y>0</y> |
14 | <width>235</width> | 14 | <width>211</width> |
15 | <height>390</height> | 15 | <height>390</height> |
16 | </rect> | 16 | </rect> |
17 | </property> | 17 | </property> |
18 | <property stdset="1"> | 18 | <property stdset="1"> |
19 | <name>caption</name> | 19 | <name>caption</name> |
20 | <string>Package Servers</string> | 20 | <string>Package Servers</string> |
21 | </property> | 21 | </property> |
22 | <property> | 22 | <property> |
23 | <name>layoutMargin</name> | 23 | <name>layoutMargin</name> |
24 | </property> | 24 | </property> |
25 | <property> | 25 | <property> |
26 | <name>layoutSpacing</name> | 26 | <name>layoutSpacing</name> |
27 | </property> | 27 | </property> |
28 | <grid> | 28 | <widget> |
29 | <class>QTabWidget</class> | ||
29 | <property stdset="1"> | 30 | <property stdset="1"> |
30 | <name>margin</name> | 31 | <name>name</name> |
31 | <number>11</number> | 32 | <cstring>TabWidget</cstring> |
32 | </property> | 33 | </property> |
33 | <property stdset="1"> | 34 | <property stdset="1"> |
34 | <name>spacing</name> | 35 | <name>enabled</name> |
35 | <number>6</number> | 36 | <bool>true</bool> |
36 | </property> | 37 | </property> |
37 | <widget row="0" column="0" > | 38 | <property stdset="1"> |
38 | <class>QTabWidget</class> | 39 | <name>geometry</name> |
40 | <rect> | ||
41 | <x>11</x> | ||
42 | <y>11</y> | ||
43 | <width>209</width> | ||
44 | <height>368</height> | ||
45 | </rect> | ||
46 | </property> | ||
47 | <property> | ||
48 | <name>layoutMargin</name> | ||
49 | </property> | ||
50 | <property> | ||
51 | <name>layoutSpacing</name> | ||
52 | </property> | ||
53 | <widget> | ||
54 | <class>QWidget</class> | ||
39 | <property stdset="1"> | 55 | <property stdset="1"> |
40 | <name>name</name> | 56 | <name>name</name> |
41 | <cstring>TabWidget</cstring> | 57 | <cstring>tab</cstring> |
42 | </property> | ||
43 | <property stdset="1"> | ||
44 | <name>enabled</name> | ||
45 | <bool>true</bool> | ||
46 | </property> | 58 | </property> |
47 | <property> | 59 | <attribute> |
48 | <name>layoutMargin</name> | 60 | <name>title</name> |
49 | </property> | 61 | <string>Servers</string> |
50 | <property> | 62 | </attribute> |
51 | <name>layoutSpacing</name> | 63 | <grid> |
52 | </property> | ||
53 | <widget> | ||
54 | <class>QWidget</class> | ||
55 | <property stdset="1"> | 64 | <property stdset="1"> |
56 | <name>name</name> | 65 | <name>margin</name> |
57 | <cstring>tab</cstring> | 66 | <number>11</number> |
58 | </property> | 67 | </property> |
59 | <attribute> | 68 | <property stdset="1"> |
60 | <name>title</name> | 69 | <name>spacing</name> |
61 | <string>Servers</string> | 70 | <number>6</number> |
62 | </attribute> | 71 | </property> |
63 | <grid> | 72 | <widget row="0" column="0" > |
64 | <property stdset="1"> | 73 | <class>QLayoutWidget</class> |
65 | <name>margin</name> | ||
66 | <number>11</number> | ||
67 | </property> | ||
68 | <property stdset="1"> | 74 | <property stdset="1"> |
69 | <name>spacing</name> | 75 | <name>name</name> |
70 | <number>6</number> | 76 | <cstring>Layout2</cstring> |
71 | </property> | 77 | </property> |
72 | <widget row="0" column="0" > | 78 | <hbox> |
73 | <class>QLayoutWidget</class> | 79 | <property stdset="1"> |
80 | <name>margin</name> | ||
81 | <number>0</number> | ||
82 | </property> | ||
74 | <property stdset="1"> | 83 | <property stdset="1"> |
75 | <name>name</name> | 84 | <name>spacing</name> |
76 | <cstring>Layout2</cstring> | 85 | <number>6</number> |
77 | </property> | 86 | </property> |
78 | <hbox> | 87 | <widget> |
88 | <class>QLabel</class> | ||
79 | <property stdset="1"> | 89 | <property stdset="1"> |
80 | <name>margin</name> | 90 | <name>name</name> |
81 | <number>0</number> | 91 | <cstring>Servers</cstring> |
82 | </property> | 92 | </property> |
83 | <property stdset="1"> | 93 | <property stdset="1"> |
84 | <name>spacing</name> | 94 | <name>text</name> |
85 | <number>6</number> | 95 | <string>Servers</string> |
86 | </property> | 96 | </property> |
87 | <widget> | 97 | </widget> |
88 | <class>QLabel</class> | 98 | <spacer> |
89 | <property stdset="1"> | 99 | <property> |
90 | <name>name</name> | 100 | <name>name</name> |
91 | <cstring>Servers</cstring> | 101 | <cstring>Spacer2</cstring> |
92 | </property> | 102 | </property> |
93 | <property stdset="1"> | 103 | <property stdset="1"> |
94 | <name>text</name> | 104 | <name>orientation</name> |
95 | <string>Servers</string> | 105 | <enum>Horizontal</enum> |
96 | </property> | 106 | </property> |
97 | </widget> | 107 | <property stdset="1"> |
98 | <spacer> | 108 | <name>sizeType</name> |
99 | <property> | 109 | <enum>Expanding</enum> |
100 | <name>name</name> | 110 | </property> |
101 | <cstring>Spacer2</cstring> | 111 | <property> |
102 | </property> | 112 | <name>sizeHint</name> |
103 | <property stdset="1"> | 113 | <size> |
104 | <name>orientation</name> | 114 | <width>20</width> |
105 | <enum>Horizontal</enum> | 115 | <height>20</height> |
106 | </property> | 116 | </size> |
107 | <property stdset="1"> | 117 | </property> |
108 | <name>sizeType</name> | 118 | </spacer> |
109 | <enum>Expanding</enum> | 119 | </hbox> |
110 | </property> | 120 | </widget> |
111 | <property> | 121 | <widget row="1" column="0" > |
112 | <name>sizeHint</name> | 122 | <class>QLayoutWidget</class> |
113 | <size> | 123 | <property stdset="1"> |
114 | <width>20</width> | 124 | <name>name</name> |
115 | <height>20</height> | 125 | <cstring>Layout8</cstring> |
116 | </size> | 126 | </property> |
117 | </property> | 127 | <grid> |
118 | </spacer> | 128 | <property stdset="1"> |
119 | </hbox> | 129 | <name>margin</name> |
120 | </widget> | 130 | <number>0</number> |
121 | <widget row="1" column="0" > | 131 | </property> |
122 | <class>QLayoutWidget</class> | ||
123 | <property stdset="1"> | 132 | <property stdset="1"> |
124 | <name>name</name> | 133 | <name>spacing</name> |
125 | <cstring>Layout8</cstring> | 134 | <number>6</number> |
126 | </property> | 135 | </property> |
127 | <grid> | 136 | <widget row="0" column="0" rowspan="1" colspan="2" > |
137 | <class>QListBox</class> | ||
128 | <property stdset="1"> | 138 | <property stdset="1"> |
129 | <name>margin</name> | 139 | <name>name</name> |
130 | <number>0</number> | 140 | <cstring>servers</cstring> |
131 | </property> | 141 | </property> |
132 | <property stdset="1"> | 142 | <property stdset="1"> |
133 | <name>spacing</name> | 143 | <name>selectionMode</name> |
134 | <number>6</number> | 144 | <enum>Extended</enum> |
135 | </property> | 145 | </property> |
136 | <widget row="0" column="0" rowspan="1" colspan="2" > | 146 | </widget> |
137 | <class>QListBox</class> | 147 | <widget row="2" column="0" rowspan="1" colspan="2" > |
138 | <property stdset="1"> | 148 | <class>QLayoutWidget</class> |
139 | <name>name</name> | 149 | <property stdset="1"> |
140 | <cstring>servers</cstring> | 150 | <name>name</name> |
141 | </property> | 151 | <cstring>Layout6</cstring> |
152 | </property> | ||
153 | <grid> | ||
142 | <property stdset="1"> | 154 | <property stdset="1"> |
143 | <name>selectionMode</name> | 155 | <name>margin</name> |
144 | <enum>Extended</enum> | 156 | <number>0</number> |
145 | </property> | 157 | </property> |
146 | </widget> | ||
147 | <widget row="2" column="0" rowspan="1" colspan="2" > | ||
148 | <class>QLayoutWidget</class> | ||
149 | <property stdset="1"> | 158 | <property stdset="1"> |
150 | <name>name</name> | 159 | <name>spacing</name> |
151 | <cstring>Layout6</cstring> | 160 | <number>6</number> |
152 | </property> | 161 | </property> |
153 | <grid> | 162 | <widget row="2" column="1" > |
163 | <class>QCheckBox</class> | ||
154 | <property stdset="1"> | 164 | <property stdset="1"> |
155 | <name>margin</name> | 165 | <name>name</name> |
156 | <number>0</number> | 166 | <cstring>active</cstring> |
157 | </property> | 167 | </property> |
158 | <property stdset="1"> | 168 | <property stdset="1"> |
159 | <name>spacing</name> | 169 | <name>text</name> |
160 | <number>6</number> | 170 | <string>Active Server</string> |
161 | </property> | 171 | </property> |
162 | <widget row="2" column="1" > | 172 | </widget> |
163 | <class>QCheckBox</class> | 173 | <widget row="0" column="0" > |
164 | <property stdset="1"> | 174 | <class>QLabel</class> |
165 | <name>name</name> | 175 | <property stdset="1"> |
166 | <cstring>active</cstring> | 176 | <name>name</name> |
167 | </property> | 177 | <cstring>TextLabel1_3</cstring> |
168 | <property stdset="1"> | 178 | </property> |
169 | <name>text</name> | 179 | <property stdset="1"> |
170 | <string>Active Server</string> | 180 | <name>text</name> |
171 | </property> | 181 | <string>Name:</string> |
172 | </widget> | 182 | </property> |
173 | <widget row="0" column="0" > | 183 | </widget> |
174 | <class>QLabel</class> | 184 | <widget row="1" column="0" > |
175 | <property stdset="1"> | 185 | <class>QLabel</class> |
176 | <name>name</name> | 186 | <property stdset="1"> |
177 | <cstring>TextLabel1_3</cstring> | 187 | <name>name</name> |
178 | </property> | 188 | <cstring>TextLabel2_3</cstring> |
179 | <property stdset="1"> | 189 | </property> |
180 | <name>text</name> | 190 | <property stdset="1"> |
181 | <string>Name:</string> | 191 | <name>text</name> |
182 | </property> | 192 | <string>URL:</string> |
183 | </widget> | 193 | </property> |
184 | <widget row="1" column="0" > | 194 | </widget> |
185 | <class>QLabel</class> | 195 | <widget row="0" column="1" > |
186 | <property stdset="1"> | 196 | <class>QLineEdit</class> |
187 | <name>name</name> | 197 | <property stdset="1"> |
188 | <cstring>TextLabel2_3</cstring> | 198 | <name>name</name> |
189 | </property> | 199 | <cstring>servername</cstring> |
190 | <property stdset="1"> | 200 | </property> |
191 | <name>text</name> | 201 | </widget> |
192 | <string>URL:</string> | 202 | <widget row="1" column="1" > |
193 | </property> | 203 | <class>QLineEdit</class> |
194 | </widget> | 204 | <property stdset="1"> |
195 | <widget row="0" column="1" > | 205 | <name>name</name> |
196 | <class>QLineEdit</class> | 206 | <cstring>serverurl</cstring> |
197 | <property stdset="1"> | 207 | </property> |
198 | <name>name</name> | 208 | </widget> |
199 | <cstring>servername</cstring> | 209 | <widget row="3" column="1" > |
200 | </property> | 210 | <class>QPushButton</class> |
201 | </widget> | 211 | <property stdset="1"> |
202 | <widget row="1" column="1" > | 212 | <name>name</name> |
203 | <class>QLineEdit</class> | 213 | <cstring>btnChangeServer</cstring> |
204 | <property stdset="1"> | 214 | </property> |
205 | <name>name</name> | 215 | <property stdset="1"> |
206 | <cstring>serverurl</cstring> | 216 | <name>text</name> |
207 | </property> | 217 | <string>Change</string> |
208 | </widget> | 218 | </property> |
209 | <widget row="3" column="1" > | 219 | </widget> |
210 | <class>QPushButton</class> | 220 | </grid> |
211 | <property stdset="1"> | 221 | </widget> |
212 | <name>name</name> | 222 | <widget row="1" column="1" > |
213 | <cstring>btnChangeServer</cstring> | 223 | <class>QPushButton</class> |
214 | </property> | 224 | <property stdset="1"> |
215 | <property stdset="1"> | 225 | <name>name</name> |
216 | <name>text</name> | 226 | <cstring>removeserver</cstring> |
217 | <string>Change</string> | 227 | </property> |
218 | </property> | 228 | <property stdset="1"> |
219 | </widget> | 229 | <name>enabled</name> |
220 | </grid> | 230 | <bool>true</bool> |
221 | </widget> | 231 | </property> |
222 | <widget row="1" column="1" > | 232 | <property stdset="1"> |
223 | <class>QPushButton</class> | 233 | <name>text</name> |
224 | <property stdset="1"> | 234 | <string>Remove</string> |
225 | <name>name</name> | 235 | </property> |
226 | <cstring>removeserver</cstring> | 236 | <property stdset="1"> |
227 | </property> | 237 | <name>autoDefault</name> |
228 | <property stdset="1"> | 238 | <bool>false</bool> |
229 | <name>enabled</name> | 239 | </property> |
230 | <bool>true</bool> | 240 | </widget> |
231 | </property> | 241 | <widget row="1" column="0" > |
232 | <property stdset="1"> | 242 | <class>QPushButton</class> |
233 | <name>text</name> | 243 | <property stdset="1"> |
234 | <string>Remove</string> | 244 | <name>name</name> |
235 | </property> | 245 | <cstring>newserver</cstring> |
236 | <property stdset="1"> | 246 | </property> |
237 | <name>autoDefault</name> | 247 | <property stdset="1"> |
238 | <bool>false</bool> | 248 | <name>enabled</name> |
239 | </property> | 249 | <bool>true</bool> |
240 | </widget> | 250 | </property> |
241 | <widget row="1" column="0" > | 251 | <property stdset="1"> |
242 | <class>QPushButton</class> | 252 | <name>text</name> |
243 | <property stdset="1"> | 253 | <string>New</string> |
244 | <name>name</name> | 254 | </property> |
245 | <cstring>newserver</cstring> | 255 | <property stdset="1"> |
246 | </property> | 256 | <name>autoDefault</name> |
247 | <property stdset="1"> | 257 | <bool>false</bool> |
248 | <name>enabled</name> | 258 | </property> |
249 | <bool>true</bool> | 259 | </widget> |
250 | </property> | 260 | </grid> |
251 | <property stdset="1"> | 261 | </widget> |
252 | <name>text</name> | 262 | </grid> |
253 | <string>New</string> | 263 | </widget> |
254 | </property> | 264 | <widget> |
255 | <property stdset="1"> | 265 | <class>QWidget</class> |
256 | <name>autoDefault</name> | 266 | <property stdset="1"> |
257 | <bool>false</bool> | 267 | <name>name</name> |
258 | </property> | 268 | <cstring>tab</cstring> |
259 | </widget> | 269 | </property> |
260 | </grid> | 270 | <attribute> |
261 | </widget> | 271 | <name>title</name> |
262 | </grid> | 272 | <string>Destinations</string> |
263 | </widget> | 273 | </attribute> |
264 | <widget> | 274 | <grid> |
265 | <class>QWidget</class> | ||
266 | <property stdset="1"> | 275 | <property stdset="1"> |
267 | <name>name</name> | 276 | <name>margin</name> |
268 | <cstring>tab</cstring> | 277 | <number>11</number> |
269 | </property> | 278 | </property> |
270 | <attribute> | 279 | <property stdset="1"> |
271 | <name>title</name> | 280 | <name>spacing</name> |
272 | <string>Destinations</string> | 281 | <number>6</number> |
273 | </attribute> | 282 | </property> |
274 | <grid> | 283 | <widget row="0" column="0" > |
275 | <property stdset="1"> | 284 | <class>QLayoutWidget</class> |
276 | <name>margin</name> | ||
277 | <number>11</number> | ||
278 | </property> | ||
279 | <property stdset="1"> | 285 | <property stdset="1"> |
280 | <name>spacing</name> | 286 | <name>name</name> |
281 | <number>6</number> | 287 | <cstring>Layout3</cstring> |
282 | </property> | 288 | </property> |
283 | <widget row="0" column="0" > | 289 | <hbox> |
284 | <class>QLayoutWidget</class> | 290 | <property stdset="1"> |
291 | <name>margin</name> | ||
292 | <number>0</number> | ||
293 | </property> | ||
285 | <property stdset="1"> | 294 | <property stdset="1"> |
286 | <name>name</name> | 295 | <name>spacing</name> |
287 | <cstring>Layout3</cstring> | 296 | <number>6</number> |
288 | </property> | 297 | </property> |
289 | <hbox> | 298 | <widget> |
299 | <class>QLabel</class> | ||
290 | <property stdset="1"> | 300 | <property stdset="1"> |
291 | <name>margin</name> | 301 | <name>name</name> |
292 | <number>0</number> | 302 | <cstring>Destinations</cstring> |
293 | </property> | 303 | </property> |
294 | <property stdset="1"> | 304 | <property stdset="1"> |
295 | <name>spacing</name> | 305 | <name>text</name> |
296 | <number>6</number> | 306 | <string>Destinations</string> |
307 | </property> | ||
308 | </widget> | ||
309 | <spacer> | ||
310 | <property> | ||
311 | <name>name</name> | ||
312 | <cstring>Spacer2_2</cstring> | ||
297 | </property> | 313 | </property> |
298 | <widget> | ||
299 | <class>QLabel</class> | ||
300 | <property stdset="1"> | ||
301 | <name>name</name> | ||
302 | <cstring>Destinations</cstring> | ||
303 | </property> | ||
304 | <property stdset="1"> | ||
305 | <name>text</name> | ||
306 | <string>Destinations</string> | ||
307 | </property> | ||
308 | </widget> | ||
309 | <spacer> | ||
310 | <property> | ||
311 | <name>name</name> | ||
312 | <cstring>Spacer2_2</cstring> | ||
313 | </property> | ||
314 | <property stdset="1"> | ||
315 | <name>orientation</name> | ||
316 | <enum>Horizontal</enum> | ||
317 | </property> | ||
318 | <property stdset="1"> | ||
319 | <name>sizeType</name> | ||
320 | <enum>Expanding</enum> | ||
321 | </property> | ||
322 | <property> | ||
323 | <name>sizeHint</name> | ||
324 | <size> | ||
325 | <width>20</width> | ||
326 | <height>20</height> | ||
327 | </size> | ||
328 | </property> | ||
329 | </spacer> | ||
330 | </hbox> | ||
331 | </widget> | ||
332 | <widget row="2" column="0" > | ||
333 | <class>QLayoutWidget</class> | ||
334 | <property stdset="1"> | ||
335 | <name>name</name> | ||
336 | <cstring>Layout5</cstring> | ||
337 | </property> | ||
338 | <hbox> | ||
339 | <property stdset="1"> | 314 | <property stdset="1"> |
340 | <name>margin</name> | 315 | <name>orientation</name> |
341 | <number>0</number> | 316 | <enum>Horizontal</enum> |
342 | </property> | 317 | </property> |
343 | <property stdset="1"> | 318 | <property stdset="1"> |
344 | <name>spacing</name> | 319 | <name>sizeType</name> |
345 | <number>6</number> | 320 | <enum>Expanding</enum> |
346 | </property> | 321 | </property> |
347 | <widget> | 322 | <property> |
348 | <class>QPushButton</class> | 323 | <name>sizeHint</name> |
349 | <property stdset="1"> | 324 | <size> |
350 | <name>name</name> | 325 | <width>20</width> |
351 | <cstring>newdestination</cstring> | 326 | <height>20</height> |
352 | </property> | 327 | </size> |
353 | <property stdset="1"> | 328 | </property> |
354 | <name>enabled</name> | 329 | </spacer> |
355 | <bool>true</bool> | 330 | </hbox> |
356 | </property> | 331 | </widget> |
357 | <property stdset="1"> | 332 | <widget row="2" column="0" > |
358 | <name>text</name> | 333 | <class>QLayoutWidget</class> |
359 | <string>New</string> | 334 | <property stdset="1"> |
360 | </property> | 335 | <name>name</name> |
361 | <property stdset="1"> | 336 | <cstring>Layout5</cstring> |
362 | <name>autoDefault</name> | 337 | </property> |
363 | <bool>false</bool> | 338 | <hbox> |
364 | </property> | ||
365 | </widget> | ||
366 | <widget> | ||
367 | <class>QPushButton</class> | ||
368 | <property stdset="1"> | ||
369 | <name>name</name> | ||
370 | <cstring>removedestination</cstring> | ||
371 | </property> | ||
372 | <property stdset="1"> | ||
373 | <name>enabled</name> | ||
374 | <bool>true</bool> | ||
375 | </property> | ||
376 | <property stdset="1"> | ||
377 | <name>text</name> | ||
378 | <string>Remove</string> | ||
379 | </property> | ||
380 | <property stdset="1"> | ||
381 | <name>autoDefault</name> | ||
382 | <bool>false</bool> | ||
383 | </property> | ||
384 | </widget> | ||
385 | </hbox> | ||
386 | </widget> | ||
387 | <spacer row="0" column="0" > | ||
388 | <property> | ||
389 | <name>name</name> | ||
390 | <cstring>Spacer3</cstring> | ||
391 | </property> | ||
392 | <property stdset="1"> | ||
393 | <name>orientation</name> | ||
394 | <enum>Horizontal</enum> | ||
395 | </property> | ||
396 | <property stdset="1"> | ||
397 | <name>sizeType</name> | ||
398 | <enum>Expanding</enum> | ||
399 | </property> | ||
400 | <property> | ||
401 | <name>sizeHint</name> | ||
402 | <size> | ||
403 | <width>20</width> | ||
404 | <height>20</height> | ||
405 | </size> | ||
406 | </property> | ||
407 | </spacer> | ||
408 | <widget row="1" column="0" > | ||
409 | <class>QListBox</class> | ||
410 | <property stdset="1"> | ||
411 | <name>name</name> | ||
412 | <cstring>destinations</cstring> | ||
413 | </property> | ||
414 | <property stdset="1"> | 339 | <property stdset="1"> |
415 | <name>selectionMode</name> | 340 | <name>margin</name> |
416 | <enum>Single</enum> | 341 | <number>0</number> |
417 | </property> | 342 | </property> |
418 | </widget> | ||
419 | <widget row="3" column="0" > | ||
420 | <class>QLayoutWidget</class> | ||
421 | <property stdset="1"> | 343 | <property stdset="1"> |
422 | <name>name</name> | 344 | <name>spacing</name> |
423 | <cstring>Layout13</cstring> | 345 | <number>6</number> |
424 | </property> | 346 | </property> |
425 | <grid> | 347 | <widget> |
348 | <class>QPushButton</class> | ||
426 | <property stdset="1"> | 349 | <property stdset="1"> |
427 | <name>margin</name> | 350 | <name>name</name> |
428 | <number>0</number> | 351 | <cstring>newdestination</cstring> |
429 | </property> | 352 | </property> |
430 | <property stdset="1"> | 353 | <property stdset="1"> |
431 | <name>spacing</name> | 354 | <name>enabled</name> |
432 | <number>6</number> | 355 | <bool>true</bool> |
433 | </property> | 356 | </property> |
434 | <widget row="1" column="0" > | 357 | <property stdset="1"> |
435 | <class>QLabel</class> | 358 | <name>text</name> |
436 | <property stdset="1"> | 359 | <string>New</string> |
437 | <name>name</name> | 360 | </property> |
438 | <cstring>TextLabel1_3_2_2</cstring> | 361 | <property stdset="1"> |
439 | </property> | 362 | <name>autoDefault</name> |
440 | <property stdset="1"> | 363 | <bool>false</bool> |
441 | <name>text</name> | 364 | </property> |
442 | <string>URL:</string> | 365 | </widget> |
443 | </property> | 366 | <widget> |
444 | </widget> | 367 | <class>QPushButton</class> |
445 | <widget row="3" column="1" > | 368 | <property stdset="1"> |
446 | <class>QPushButton</class> | 369 | <name>name</name> |
447 | <property stdset="1"> | 370 | <cstring>removedestination</cstring> |
448 | <name>name</name> | 371 | </property> |
449 | <cstring>btnChangeDest</cstring> | 372 | <property stdset="1"> |
450 | </property> | 373 | <name>enabled</name> |
451 | <property stdset="1"> | 374 | <bool>true</bool> |
452 | <name>text</name> | 375 | </property> |
453 | <string>Change</string> | 376 | <property stdset="1"> |
454 | </property> | 377 | <name>text</name> |
455 | </widget> | 378 | <string>Remove</string> |
456 | <widget row="0" column="1" > | 379 | </property> |
457 | <class>QLineEdit</class> | 380 | <property stdset="1"> |
458 | <property stdset="1"> | 381 | <name>autoDefault</name> |
459 | <name>name</name> | 382 | <bool>false</bool> |
460 | <cstring>destinationname</cstring> | 383 | </property> |
461 | </property> | 384 | </widget> |
462 | </widget> | 385 | </hbox> |
463 | <widget row="0" column="0" > | 386 | </widget> |
464 | <class>QLabel</class> | 387 | <spacer row="0" column="0" > |
465 | <property stdset="1"> | 388 | <property> |
466 | <name>name</name> | ||
467 | <cstring>TextLabel1_3_2</cstring> | ||
468 | </property> | ||
469 | <property stdset="1"> | ||
470 | <name>text</name> | ||
471 | <string>Name:</string> | ||
472 | </property> | ||
473 | </widget> | ||
474 | <widget row="2" column="1" > | ||
475 | <class>QCheckBox</class> | ||
476 | <property stdset="1"> | ||
477 | <name>name</name> | ||
478 | <cstring>linkToRoot</cstring> | ||
479 | </property> | ||
480 | <property stdset="1"> | ||
481 | <name>text</name> | ||
482 | <string>Link To Root</string> | ||
483 | </property> | ||
484 | <property stdset="1"> | ||
485 | <name>checked</name> | ||
486 | <bool>true</bool> | ||
487 | </property> | ||
488 | </widget> | ||
489 | <widget row="1" column="1" > | ||
490 | <class>QLineEdit</class> | ||
491 | <property stdset="1"> | ||
492 | <name>name</name> | ||
493 | <cstring>destinationurl</cstring> | ||
494 | </property> | ||
495 | </widget> | ||
496 | </grid> | ||
497 | </widget> | ||
498 | </grid> | ||
499 | </widget> | ||
500 | <widget> | ||
501 | <class>QWidget</class> | ||
502 | <property stdset="1"> | ||
503 | <name>name</name> | ||
504 | <cstring>tab</cstring> | ||
505 | </property> | ||
506 | <attribute> | ||
507 | <name>title</name> | ||
508 | <string>General</string> | ||
509 | </attribute> | ||
510 | <widget> | ||
511 | <class>QLabel</class> | ||
512 | <property stdset="1"> | ||
513 | <name>name</name> | 389 | <name>name</name> |
514 | <cstring>TextLabel1</cstring> | 390 | <cstring>Spacer3</cstring> |
515 | </property> | 391 | </property> |
516 | <property stdset="1"> | 392 | <property stdset="1"> |
517 | <name>geometry</name> | 393 | <name>orientation</name> |
518 | <rect> | 394 | <enum>Horizontal</enum> |
519 | <x>20</x> | ||
520 | <y>30</y> | ||
521 | <width>150</width> | ||
522 | <height>20</height> | ||
523 | </rect> | ||
524 | </property> | 395 | </property> |
525 | <property stdset="1"> | 396 | <property stdset="1"> |
526 | <name>text</name> | 397 | <name>sizeType</name> |
527 | <string>(Will take effect on restart)</string> | 398 | <enum>Expanding</enum> |
528 | </property> | 399 | </property> |
529 | </widget> | 400 | <property> |
530 | <widget> | 401 | <name>sizeHint</name> |
531 | <class>QCheckBox</class> | 402 | <size> |
403 | <width>20</width> | ||
404 | <height>20</height> | ||
405 | </size> | ||
406 | </property> | ||
407 | </spacer> | ||
408 | <widget row="1" column="0" > | ||
409 | <class>QListBox</class> | ||
532 | <property stdset="1"> | 410 | <property stdset="1"> |
533 | <name>name</name> | 411 | <name>name</name> |
534 | <cstring>jumpTo</cstring> | 412 | <cstring>destinations</cstring> |
535 | </property> | 413 | </property> |
536 | <property stdset="1"> | 414 | <property stdset="1"> |
537 | <name>geometry</name> | 415 | <name>selectionMode</name> |
538 | <rect> | 416 | <enum>Single</enum> |
539 | <x>17</x> | ||
540 | <y>14</y> | ||
541 | <width>150</width> | ||
542 | <height>20</height> | ||
543 | </rect> | ||
544 | </property> | 417 | </property> |
418 | </widget> | ||
419 | <widget row="3" column="0" > | ||
420 | <class>QLayoutWidget</class> | ||
545 | <property stdset="1"> | 421 | <property stdset="1"> |
546 | <name>text</name> | 422 | <name>name</name> |
547 | <string>Show Jump To Letters</string> | 423 | <cstring>Layout13</cstring> |
548 | </property> | 424 | </property> |
425 | <grid> | ||
426 | <property stdset="1"> | ||
427 | <name>margin</name> | ||
428 | <number>0</number> | ||
429 | </property> | ||
430 | <property stdset="1"> | ||
431 | <name>spacing</name> | ||
432 | <number>6</number> | ||
433 | </property> | ||
434 | <widget row="1" column="0" > | ||
435 | <class>QLabel</class> | ||
436 | <property stdset="1"> | ||
437 | <name>name</name> | ||
438 | <cstring>TextLabel1_3_2_2</cstring> | ||
439 | </property> | ||
440 | <property stdset="1"> | ||
441 | <name>text</name> | ||
442 | <string>URL:</string> | ||
443 | </property> | ||
444 | </widget> | ||
445 | <widget row="3" column="1" > | ||
446 | <class>QPushButton</class> | ||
447 | <property stdset="1"> | ||
448 | <name>name</name> | ||
449 | <cstring>btnChangeDest</cstring> | ||
450 | </property> | ||
451 | <property stdset="1"> | ||
452 | <name>text</name> | ||
453 | <string>Change</string> | ||
454 | </property> | ||
455 | </widget> | ||
456 | <widget row="0" column="1" > | ||
457 | <class>QLineEdit</class> | ||
458 | <property stdset="1"> | ||
459 | <name>name</name> | ||
460 | <cstring>destinationname</cstring> | ||
461 | </property> | ||
462 | </widget> | ||
463 | <widget row="0" column="0" > | ||
464 | <class>QLabel</class> | ||
465 | <property stdset="1"> | ||
466 | <name>name</name> | ||
467 | <cstring>TextLabel1_3_2</cstring> | ||
468 | </property> | ||
469 | <property stdset="1"> | ||
470 | <name>text</name> | ||
471 | <string>Name:</string> | ||
472 | </property> | ||
473 | </widget> | ||
474 | <widget row="2" column="1" > | ||
475 | <class>QCheckBox</class> | ||
476 | <property stdset="1"> | ||
477 | <name>name</name> | ||
478 | <cstring>linkToRoot</cstring> | ||
479 | </property> | ||
480 | <property stdset="1"> | ||
481 | <name>text</name> | ||
482 | <string>Link To Root</string> | ||
483 | </property> | ||
484 | <property stdset="1"> | ||
485 | <name>checked</name> | ||
486 | <bool>true</bool> | ||
487 | </property> | ||
488 | </widget> | ||
489 | <widget row="1" column="1" > | ||
490 | <class>QLineEdit</class> | ||
491 | <property stdset="1"> | ||
492 | <name>name</name> | ||
493 | <cstring>destinationurl</cstring> | ||
494 | </property> | ||
495 | </widget> | ||
496 | </grid> | ||
549 | </widget> | 497 | </widget> |
498 | </grid> | ||
499 | </widget> | ||
500 | <widget> | ||
501 | <class>QWidget</class> | ||
502 | <property stdset="1"> | ||
503 | <name>name</name> | ||
504 | <cstring>tab</cstring> | ||
505 | </property> | ||
506 | <attribute> | ||
507 | <name>title</name> | ||
508 | <string>Proxys</string> | ||
509 | </attribute> | ||
510 | <widget> | ||
511 | <class>QLabel</class> | ||
512 | <property stdset="1"> | ||
513 | <name>name</name> | ||
514 | <cstring>TextLabel1_2</cstring> | ||
515 | </property> | ||
516 | <property stdset="1"> | ||
517 | <name>geometry</name> | ||
518 | <rect> | ||
519 | <x>1</x> | ||
520 | <y>19</y> | ||
521 | <width>67</width> | ||
522 | <height>22</height> | ||
523 | </rect> | ||
524 | </property> | ||
525 | <property stdset="1"> | ||
526 | <name>text</name> | ||
527 | <string>HTTP Proxy</string> | ||
528 | </property> | ||
529 | </widget> | ||
530 | <widget> | ||
531 | <class>QLineEdit</class> | ||
532 | <property stdset="1"> | ||
533 | <name>name</name> | ||
534 | <cstring>txtFtpProxy</cstring> | ||
535 | </property> | ||
536 | <property stdset="1"> | ||
537 | <name>geometry</name> | ||
538 | <rect> | ||
539 | <x>74</x> | ||
540 | <y>72</y> | ||
541 | <width>110</width> | ||
542 | <height>22</height> | ||
543 | </rect> | ||
544 | </property> | ||
545 | </widget> | ||
546 | <widget> | ||
547 | <class>QLineEdit</class> | ||
548 | <property stdset="1"> | ||
549 | <name>name</name> | ||
550 | <cstring>txtHttpProxy</cstring> | ||
551 | </property> | ||
552 | <property stdset="1"> | ||
553 | <name>geometry</name> | ||
554 | <rect> | ||
555 | <x>74</x> | ||
556 | <y>19</y> | ||
557 | <width>110</width> | ||
558 | <height>22</height> | ||
559 | </rect> | ||
560 | </property> | ||
561 | </widget> | ||
562 | <widget> | ||
563 | <class>QLabel</class> | ||
564 | <property stdset="1"> | ||
565 | <name>name</name> | ||
566 | <cstring>TextLabel4</cstring> | ||
567 | </property> | ||
568 | <property stdset="1"> | ||
569 | <name>geometry</name> | ||
570 | <rect> | ||
571 | <x>1</x> | ||
572 | <y>153</y> | ||
573 | <width>67</width> | ||
574 | <height>22</height> | ||
575 | </rect> | ||
576 | </property> | ||
577 | <property stdset="1"> | ||
578 | <name>text</name> | ||
579 | <string>Password</string> | ||
580 | </property> | ||
581 | </widget> | ||
582 | <widget> | ||
583 | <class>QLineEdit</class> | ||
584 | <property stdset="1"> | ||
585 | <name>name</name> | ||
586 | <cstring>txtUsername</cstring> | ||
587 | </property> | ||
588 | <property stdset="1"> | ||
589 | <name>geometry</name> | ||
590 | <rect> | ||
591 | <x>74</x> | ||
592 | <y>125</y> | ||
593 | <width>110</width> | ||
594 | <height>22</height> | ||
595 | </rect> | ||
596 | </property> | ||
597 | </widget> | ||
598 | <widget> | ||
599 | <class>QLineEdit</class> | ||
600 | <property stdset="1"> | ||
601 | <name>name</name> | ||
602 | <cstring>txtPassword</cstring> | ||
603 | </property> | ||
604 | <property stdset="1"> | ||
605 | <name>geometry</name> | ||
606 | <rect> | ||
607 | <x>74</x> | ||
608 | <y>153</y> | ||
609 | <width>110</width> | ||
610 | <height>22</height> | ||
611 | </rect> | ||
612 | </property> | ||
613 | </widget> | ||
614 | <widget> | ||
615 | <class>QCheckBox</class> | ||
616 | <property stdset="1"> | ||
617 | <name>name</name> | ||
618 | <cstring>chkFtpProxyEnabled</cstring> | ||
619 | </property> | ||
620 | <property stdset="1"> | ||
621 | <name>geometry</name> | ||
622 | <rect> | ||
623 | <x>74</x> | ||
624 | <y>100</y> | ||
625 | <width>110</width> | ||
626 | <height>19</height> | ||
627 | </rect> | ||
628 | </property> | ||
629 | <property stdset="1"> | ||
630 | <name>text</name> | ||
631 | <string>Enabled</string> | ||
632 | </property> | ||
633 | </widget> | ||
634 | <widget> | ||
635 | <class>QLabel</class> | ||
636 | <property stdset="1"> | ||
637 | <name>name</name> | ||
638 | <cstring>TextLabel2</cstring> | ||
639 | </property> | ||
640 | <property stdset="1"> | ||
641 | <name>geometry</name> | ||
642 | <rect> | ||
643 | <x>1</x> | ||
644 | <y>72</y> | ||
645 | <width>67</width> | ||
646 | <height>22</height> | ||
647 | </rect> | ||
648 | </property> | ||
649 | <property stdset="1"> | ||
650 | <name>text</name> | ||
651 | <string>FTP Proxy</string> | ||
652 | </property> | ||
653 | </widget> | ||
654 | <widget> | ||
655 | <class>QLabel</class> | ||
656 | <property stdset="1"> | ||
657 | <name>name</name> | ||
658 | <cstring>TextLabel3</cstring> | ||
659 | </property> | ||
660 | <property stdset="1"> | ||
661 | <name>geometry</name> | ||
662 | <rect> | ||
663 | <x>1</x> | ||
664 | <y>125</y> | ||
665 | <width>67</width> | ||
666 | <height>22</height> | ||
667 | </rect> | ||
668 | </property> | ||
669 | <property stdset="1"> | ||
670 | <name>text</name> | ||
671 | <string>Username</string> | ||
672 | </property> | ||
673 | </widget> | ||
674 | <widget> | ||
675 | <class>QCheckBox</class> | ||
676 | <property stdset="1"> | ||
677 | <name>name</name> | ||
678 | <cstring>chkHttpProxyEnabled</cstring> | ||
679 | </property> | ||
680 | <property stdset="1"> | ||
681 | <name>geometry</name> | ||
682 | <rect> | ||
683 | <x>74</x> | ||
684 | <y>47</y> | ||
685 | <width>110</width> | ||
686 | <height>19</height> | ||
687 | </rect> | ||
688 | </property> | ||
689 | <property stdset="1"> | ||
690 | <name>text</name> | ||
691 | <string>Enabled</string> | ||
692 | </property> | ||
693 | </widget> | ||
694 | <widget> | ||
695 | <class>QPushButton</class> | ||
696 | <property stdset="1"> | ||
697 | <name>name</name> | ||
698 | <cstring>btnProxyApply</cstring> | ||
699 | </property> | ||
700 | <property stdset="1"> | ||
701 | <name>geometry</name> | ||
702 | <rect> | ||
703 | <x>74</x> | ||
704 | <y>181</y> | ||
705 | <width>110</width> | ||
706 | <height>28</height> | ||
707 | </rect> | ||
708 | </property> | ||
709 | <property stdset="1"> | ||
710 | <name>text</name> | ||
711 | <string>&Apply</string> | ||
712 | </property> | ||
713 | </widget> | ||
714 | </widget> | ||
715 | <widget> | ||
716 | <class>QWidget</class> | ||
717 | <property stdset="1"> | ||
718 | <name>name</name> | ||
719 | <cstring>tab</cstring> | ||
720 | </property> | ||
721 | <attribute> | ||
722 | <name>title</name> | ||
723 | <string>General</string> | ||
724 | </attribute> | ||
725 | <widget> | ||
726 | <class>QLabel</class> | ||
727 | <property stdset="1"> | ||
728 | <name>name</name> | ||
729 | <cstring>TextLabel1</cstring> | ||
730 | </property> | ||
731 | <property stdset="1"> | ||
732 | <name>geometry</name> | ||
733 | <rect> | ||
734 | <x>20</x> | ||
735 | <y>30</y> | ||
736 | <width>150</width> | ||
737 | <height>20</height> | ||
738 | </rect> | ||
739 | </property> | ||
740 | <property stdset="1"> | ||
741 | <name>text</name> | ||
742 | <string>(Will take effect on restart)</string> | ||
743 | </property> | ||
744 | </widget> | ||
745 | <widget> | ||
746 | <class>QCheckBox</class> | ||
747 | <property stdset="1"> | ||
748 | <name>name</name> | ||
749 | <cstring>jumpTo</cstring> | ||
750 | </property> | ||
751 | <property stdset="1"> | ||
752 | <name>geometry</name> | ||
753 | <rect> | ||
754 | <x>17</x> | ||
755 | <y>14</y> | ||
756 | <width>150</width> | ||
757 | <height>20</height> | ||
758 | </rect> | ||
759 | </property> | ||
760 | <property stdset="1"> | ||
761 | <name>text</name> | ||
762 | <string>Show Jump To Letters</string> | ||
763 | </property> | ||
550 | </widget> | 764 | </widget> |
551 | </widget> | 765 | </widget> |
552 | </grid> | 766 | </widget> |
553 | </widget> | 767 | </widget> |
554 | <connections> | 768 | <connections> |
555 | <connection> | 769 | <connection> |
556 | <sender>newserver</sender> | 770 | <sender>newserver</sender> |
557 | <signal>clicked()</signal> | 771 | <signal>clicked()</signal> |
558 | <receiver>Settings</receiver> | 772 | <receiver>Settings</receiver> |
559 | <slot>newServer()</slot> | 773 | <slot>newServer()</slot> |
560 | </connection> | 774 | </connection> |
561 | <connection> | 775 | <connection> |
562 | <sender>removeserver</sender> | 776 | <sender>removeserver</sender> |
563 | <signal>clicked()</signal> | 777 | <signal>clicked()</signal> |
564 | <receiver>Settings</receiver> | 778 | <receiver>Settings</receiver> |
@@ -597,38 +811,45 @@ | |||
597 | <connection> | 811 | <connection> |
598 | <sender>btnChangeDest</sender> | 812 | <sender>btnChangeDest</sender> |
599 | <signal>clicked()</signal> | 813 | <signal>clicked()</signal> |
600 | <receiver>Settings</receiver> | 814 | <receiver>Settings</receiver> |
601 | <slot>changeDestinationDetails()</slot> | 815 | <slot>changeDestinationDetails()</slot> |
602 | </connection> | 816 | </connection> |
603 | <connection> | 817 | <connection> |
604 | <sender>jumpTo</sender> | 818 | <sender>jumpTo</sender> |
605 | <signal>toggled(bool)</signal> | 819 | <signal>toggled(bool)</signal> |
606 | <receiver>Settings</receiver> | 820 | <receiver>Settings</receiver> |
607 | <slot>toggleJumpTo(bool)</slot> | 821 | <slot>toggleJumpTo(bool)</slot> |
608 | </connection> | 822 | </connection> |
823 | <connection> | ||
824 | <sender>btnProxyApply</sender> | ||
825 | <signal>clicked()</signal> | ||
826 | <receiver>Settings</receiver> | ||
827 | <slot>proxyApplyChanges()</slot> | ||
828 | </connection> | ||
609 | <slot access="public">activeServerChanged()</slot> | 829 | <slot access="public">activeServerChanged()</slot> |
610 | <slot access="public">changeDestinationDetails()</slot> | 830 | <slot access="public">changeDestinationDetails()</slot> |
611 | <slot access="public">changeServerDetails()</slot> | 831 | <slot access="public">changeServerDetails()</slot> |
612 | <slot access="public">createLinksToDest()</slot> | 832 | <slot access="public">createLinksToDest()</slot> |
613 | <slot access="public">destNameChanged(const QString&)</slot> | 833 | <slot access="public">destNameChanged(const QString&)</slot> |
614 | <slot access="public">destUrlChanged(const QString&)</slot> | 834 | <slot access="public">destUrlChanged(const QString&)</slot> |
615 | <slot access="public">editDestination(int)</slot> | 835 | <slot access="public">editDestination(int)</slot> |
616 | <slot access="public">editServer(int)</slot> | 836 | <slot access="public">editServer(int)</slot> |
617 | <slot access="public">installationSettingChange(int)</slot> | 837 | <slot access="public">installationSettingChange(int)</slot> |
618 | <slot access="public">installationSettingSetName(const QString &)</slot> | 838 | <slot access="public">installationSettingSetName(const QString &)</slot> |
619 | <slot access="public">linkEnabled(bool)</slot> | 839 | <slot access="public">linkEnabled(bool)</slot> |
620 | <slot access="public">newDestination()</slot> | 840 | <slot access="public">newDestination()</slot> |
621 | <slot access="public">newInstallationSetting()</slot> | 841 | <slot access="public">newInstallationSetting()</slot> |
622 | <slot access="public">newServer()</slot> | 842 | <slot access="public">newServer()</slot> |
843 | <slot access="public">proxyApplyChanges()</slot> | ||
623 | <slot access="public">removeDestination()</slot> | 844 | <slot access="public">removeDestination()</slot> |
624 | <slot access="public">removeInstallationSetting()</slot> | 845 | <slot access="public">removeInstallationSetting()</slot> |
625 | <slot access="public">removeLinksToDest()</slot> | 846 | <slot access="public">removeLinksToDest()</slot> |
626 | <slot access="public">removeServer()</slot> | 847 | <slot access="public">removeServer()</slot> |
627 | <slot access="public">renameInstallationSetting()</slot> | 848 | <slot access="public">renameInstallationSetting()</slot> |
628 | <slot access="public">serverNameChanged(const QString&)</slot> | 849 | <slot access="public">serverNameChanged(const QString&)</slot> |
629 | <slot access="public">serverUrlChanged(const QString&)</slot> | 850 | <slot access="public">serverUrlChanged(const QString&)</slot> |
630 | <slot access="public">toggleJumpTo(bool)</slot> | 851 | <slot access="public">toggleJumpTo(bool)</slot> |
631 | </connections> | 852 | </connections> |
632 | <tabstops> | 853 | <tabstops> |
633 | <tabstop>servers</tabstop> | 854 | <tabstop>servers</tabstop> |
634 | <tabstop>newserver</tabstop> | 855 | <tabstop>newserver</tabstop> |
diff --git a/noncore/settings/aqpkg/settingsimpl.cpp b/noncore/settings/aqpkg/settingsimpl.cpp index 9dd2206..4bb928a 100644 --- a/noncore/settings/aqpkg/settingsimpl.cpp +++ b/noncore/settings/aqpkg/settingsimpl.cpp | |||
@@ -69,31 +69,40 @@ void SettingsImpl :: setupData() | |||
69 | { | 69 | { |
70 | if ( it->getServerName() == LOCAL_SERVER || it->getServerName() == LOCAL_IPKGS ) | 70 | if ( it->getServerName() == LOCAL_SERVER || it->getServerName() == LOCAL_IPKGS ) |
71 | continue; | 71 | continue; |
72 | 72 | ||
73 | servers->insertItem( it->getServerName() ); | 73 | servers->insertItem( it->getServerName() ); |
74 | } | 74 | } |
75 | 75 | ||
76 | // add destinations | 76 | // add destinations |
77 | vector<Destination>::iterator it2; | 77 | vector<Destination>::iterator it2; |
78 | for ( it2 = dataMgr->getDestinationList().begin() ; it2 != dataMgr->getDestinationList().end() ; ++it2 ) | 78 | for ( it2 = dataMgr->getDestinationList().begin() ; it2 != dataMgr->getDestinationList().end() ; ++it2 ) |
79 | destinations->insertItem( it2->getDestinationName() ); | 79 | destinations->insertItem( it2->getDestinationName() ); |
80 | 80 | ||
81 | // setup general tab | ||
81 | #ifdef QWS | 82 | #ifdef QWS |
82 | Config cfg( "aqpkg" ); | 83 | Config cfg( "aqpkg" ); |
83 | cfg.setGroup( "settings" ); | 84 | cfg.setGroup( "settings" ); |
84 | jumpTo->setChecked( cfg.readBoolEntry( "showJumpTo", "true" ) ); | 85 | jumpTo->setChecked( cfg.readBoolEntry( "showJumpTo", "true" ) ); |
85 | #else | 86 | #else |
86 | jumpTo->setChecked( true ); | 87 | jumpTo->setChecked( true ); |
87 | #endif | 88 | #endif |
89 | |||
90 | // setup proxy tab | ||
91 | txtHttpProxy->setText( dataMgr->getHttpProxy() ); | ||
92 | txtFtpProxy->setText( dataMgr->getFtpProxy() ); | ||
93 | txtUsername->setText( dataMgr->getProxyUsername() ); | ||
94 | txtPassword->setText( dataMgr->getProxyPassword() ); | ||
95 | chkHttpProxyEnabled->setChecked( dataMgr->getHttpProxyEnabled() ); | ||
96 | chkFtpProxyEnabled->setChecked( dataMgr->getFtpProxyEnabled() ); | ||
88 | } | 97 | } |
89 | 98 | ||
90 | //------------------ Servers tab ---------------------- | 99 | //------------------ Servers tab ---------------------- |
91 | 100 | ||
92 | void SettingsImpl :: editServer( int sel ) | 101 | void SettingsImpl :: editServer( int sel ) |
93 | { | 102 | { |
94 | currentSelectedServer = sel; | 103 | currentSelectedServer = sel; |
95 | vector<Server>::iterator s = dataMgr->getServer( servers->currentText() ); | 104 | vector<Server>::iterator s = dataMgr->getServer( servers->currentText() ); |
96 | serverName = s->getServerName(); | 105 | serverName = s->getServerName(); |
97 | servername->setText( s->getServerName() ); | 106 | servername->setText( s->getServerName() ); |
98 | serverurl->setText( s->getServerUrl() ); | 107 | serverurl->setText( s->getServerUrl() ); |
99 | active->setChecked( s->isServerActive() ); | 108 | active->setChecked( s->isServerActive() ); |
@@ -235,12 +244,24 @@ void SettingsImpl :: changeDestinationDetails() | |||
235 | 244 | ||
236 | //------------------ General tab ---------------------- | 245 | //------------------ General tab ---------------------- |
237 | 246 | ||
238 | void SettingsImpl :: toggleJumpTo( bool val ) | 247 | void SettingsImpl :: toggleJumpTo( bool val ) |
239 | { | 248 | { |
240 | #ifdef QWS | 249 | #ifdef QWS |
241 | Config cfg( "aqpkg" ); | 250 | Config cfg( "aqpkg" ); |
242 | cfg.setGroup( "settings" ); | 251 | cfg.setGroup( "settings" ); |
243 | cfg.writeEntry( "showJumpTo", val ); | 252 | cfg.writeEntry( "showJumpTo", val ); |
244 | #endif | 253 | #endif |
245 | } | 254 | } |
246 | 255 | ||
256 | //------------------ Proxy tab ---------------------- | ||
257 | void SettingsImpl :: proxyApplyChanges() | ||
258 | { | ||
259 | changed = true; | ||
260 | dataMgr->setHttpProxy( txtHttpProxy->text() ); | ||
261 | dataMgr->setFtpProxy( txtFtpProxy->text() ); | ||
262 | dataMgr->setProxyUsername( txtUsername->text() ); | ||
263 | dataMgr->setProxyPassword( txtPassword->text() ); | ||
264 | |||
265 | dataMgr->setHttpProxyEnabled( chkHttpProxyEnabled->isChecked() ); | ||
266 | dataMgr->setFtpProxyEnabled( chkFtpProxyEnabled->isChecked() ); | ||
267 | } | ||
diff --git a/noncore/settings/aqpkg/settingsimpl.h b/noncore/settings/aqpkg/settingsimpl.h index 971516b..bb027dc 100644 --- a/noncore/settings/aqpkg/settingsimpl.h +++ b/noncore/settings/aqpkg/settingsimpl.h | |||
@@ -42,13 +42,15 @@ private: | |||
42 | 42 | ||
43 | void editServer( int s ); | 43 | void editServer( int s ); |
44 | void changeServerDetails(); | 44 | void changeServerDetails(); |
45 | void newServer(); | 45 | void newServer(); |
46 | void removeServer(); | 46 | void removeServer(); |
47 | 47 | ||
48 | void editDestination( int s ); | 48 | void editDestination( int s ); |
49 | void changeDestinationDetails(); | 49 | void changeDestinationDetails(); |
50 | void newDestination(); | 50 | void newDestination(); |
51 | void removeDestination(); | 51 | void removeDestination(); |
52 | 52 | ||
53 | void toggleJumpTo( bool val ); | 53 | void toggleJumpTo( bool val ); |
54 | |||
55 | void proxyApplyChanges(); | ||
54 | }; | 56 | }; |