Merge lp:~nataliabidart/ubuntuone-control-panel/all-ui-from-code into lp:ubuntuone-control-panel
- all-ui-from-code
- Merge into trunk
Proposed by
Natalia Bidart
Status: | Merged |
---|---|
Approved by: | Natalia Bidart |
Approved revision: | 268 |
Merged at revision: | 264 |
Proposed branch: | lp:~nataliabidart/ubuntuone-control-panel/all-ui-from-code |
Merge into: | lp:ubuntuone-control-panel |
Prerequisite: | lp:~nataliabidart/ubuntuone-control-panel/unicode-gettext |
Diff against target: |
989 lines (+243/-88) 22 files modified
data/qt/account.ui (+5/-5) data/qt/controlpanel.ui (+7/-7) data/qt/device.ui (+2/-2) data/qt/device_remote.ui (+1/-1) data/qt/devices.ui (+4/-4) data/qt/folders.ui (+13/-13) data/qt/loadingoverlay.ui (+1/-4) data/qt/mainwindow.ui (+1/-1) data/qt/preferences.ui (+13/-13) data/qt/signin.ui (+7/-10) ubuntuone/controlpanel/gui/__init__.py (+53/-7) ubuntuone/controlpanel/gui/qt/account.py (+9/-1) ubuntuone/controlpanel/gui/qt/controlpanel.py (+25/-2) ubuntuone/controlpanel/gui/qt/device.py (+11/-1) ubuntuone/controlpanel/gui/qt/devices.py (+9/-1) ubuntuone/controlpanel/gui/qt/folders.py (+13/-5) ubuntuone/controlpanel/gui/qt/loadingoverlay.py (+7/-0) ubuntuone/controlpanel/gui/qt/preferences.py (+33/-1) ubuntuone/controlpanel/gui/qt/signin.py (+17/-3) ubuntuone/controlpanel/gui/qt/systray.py (+7/-2) ubuntuone/controlpanel/gui/qt/tests/test_folders.py (+4/-2) ubuntuone/controlpanel/gui/qt/ui/__init__.py (+1/-3) |
To merge this branch: | bzr merge lp:~nataliabidart/ubuntuone-control-panel/all-ui-from-code |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Roberto Alsina (community) | Approve | ||
Manuel de la Peña (community) | Approve | ||
Review via email: mp+94220@code.launchpad.net |
Commit message
- No more strings coming up from the Designer ui files (LP: #938626).
Description of the change
To post a comment you must log in.
- 268. By Natalia Bidart
-
Added disclaimer for hacks when accessing self.ui attrs.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'data/qt/account.ui' | |||
2 | --- data/qt/account.ui 2011-09-06 13:43:25 +0000 | |||
3 | +++ data/qt/account.ui 2012-02-22 17:08:18 +0000 | |||
4 | @@ -11,7 +11,7 @@ | |||
5 | 11 | </rect> | 11 | </rect> |
6 | 12 | </property> | 12 | </property> |
7 | 13 | <property name="windowTitle"> | 13 | <property name="windowTitle"> |
9 | 14 | <string>Form</string> | 14 | <string notr="true">Form</string> |
10 | 15 | </property> | 15 | </property> |
11 | 16 | <layout class="QVBoxLayout" name="verticalLayout"> | 16 | <layout class="QVBoxLayout" name="verticalLayout"> |
12 | 17 | <property name="margin"> | 17 | <property name="margin"> |
13 | @@ -25,14 +25,14 @@ | |||
14 | 25 | <item row="0" column="2"> | 25 | <item row="0" column="2"> |
15 | 26 | <widget class="GoToWebButton" name="edit_profile_button"> | 26 | <widget class="GoToWebButton" name="edit_profile_button"> |
16 | 27 | <property name="text"> | 27 | <property name="text"> |
18 | 28 | <string>Edit personal details online</string> | 28 | <string notr="true">Edit personal details online</string> |
19 | 29 | </property> | 29 | </property> |
20 | 30 | </widget> | 30 | </widget> |
21 | 31 | </item> | 31 | </item> |
22 | 32 | <item row="2" column="0"> | 32 | <item row="2" column="0"> |
23 | 33 | <widget class="QGroupBox" name="services"> | 33 | <widget class="QGroupBox" name="services"> |
24 | 34 | <property name="title"> | 34 | <property name="title"> |
26 | 35 | <string>Your services</string> | 35 | <string notr="true">Your services</string> |
27 | 36 | </property> | 36 | </property> |
28 | 37 | <layout class="QVBoxLayout" name="verticalLayout_3"> | 37 | <layout class="QVBoxLayout" name="verticalLayout_3"> |
29 | 38 | <property name="leftMargin"> | 38 | <property name="leftMargin"> |
30 | @@ -67,7 +67,7 @@ | |||
31 | 67 | <item row="0" column="0"> | 67 | <item row="0" column="0"> |
32 | 68 | <widget class="QGroupBox" name="profile_info"> | 68 | <widget class="QGroupBox" name="profile_info"> |
33 | 69 | <property name="title"> | 69 | <property name="title"> |
35 | 70 | <string>Personal details</string> | 70 | <string notr="true">Personal details</string> |
36 | 71 | </property> | 71 | </property> |
37 | 72 | <layout class="QVBoxLayout" name="verticalLayout_4"> | 72 | <layout class="QVBoxLayout" name="verticalLayout_4"> |
38 | 73 | <property name="leftMargin"> | 73 | <property name="leftMargin"> |
39 | @@ -109,7 +109,7 @@ | |||
40 | 109 | <item row="2" column="2"> | 109 | <item row="2" column="2"> |
41 | 110 | <widget class="GoToWebButton" name="edit_services_button"> | 110 | <widget class="GoToWebButton" name="edit_services_button"> |
42 | 111 | <property name="text"> | 111 | <property name="text"> |
44 | 112 | <string>Edit your services online</string> | 112 | <string notr="true">Edit your services online</string> |
45 | 113 | </property> | 113 | </property> |
46 | 114 | </widget> | 114 | </widget> |
47 | 115 | </item> | 115 | </item> |
48 | 116 | 116 | ||
49 | === modified file 'data/qt/controlpanel.ui' | |||
50 | --- data/qt/controlpanel.ui 2011-09-09 17:16:20 +0000 | |||
51 | +++ data/qt/controlpanel.ui 2012-02-22 17:08:18 +0000 | |||
52 | @@ -160,7 +160,7 @@ | |||
53 | 160 | <item> | 160 | <item> |
54 | 161 | <widget class="GoToWebButton" name="get_more_space_button"> | 161 | <widget class="GoToWebButton" name="get_more_space_button"> |
55 | 162 | <property name="text"> | 162 | <property name="text"> |
57 | 163 | <string>Get more storage</string> | 163 | <string notr="true">Get more storage</string> |
58 | 164 | </property> | 164 | </property> |
59 | 165 | </widget> | 165 | </widget> |
60 | 166 | </item> | 166 | </item> |
61 | @@ -235,22 +235,22 @@ | |||
62 | 235 | </property> | 235 | </property> |
63 | 236 | <widget class="FoldersPanel" name="folders_tab"> | 236 | <widget class="FoldersPanel" name="folders_tab"> |
64 | 237 | <attribute name="title"> | 237 | <attribute name="title"> |
66 | 238 | <string>Folders</string> | 238 | <string notr="true">Folders</string> |
67 | 239 | </attribute> | 239 | </attribute> |
68 | 240 | </widget> | 240 | </widget> |
69 | 241 | <widget class="DevicesPanel" name="devices_tab"> | 241 | <widget class="DevicesPanel" name="devices_tab"> |
70 | 242 | <attribute name="title"> | 242 | <attribute name="title"> |
72 | 243 | <string>Devices</string> | 243 | <string notr="true">Devices</string> |
73 | 244 | </attribute> | 244 | </attribute> |
74 | 245 | </widget> | 245 | </widget> |
75 | 246 | <widget class="PreferencesPanel" name="preferences_tab"> | 246 | <widget class="PreferencesPanel" name="preferences_tab"> |
76 | 247 | <attribute name="title"> | 247 | <attribute name="title"> |
78 | 248 | <string>Settings</string> | 248 | <string notr="true">Settings</string> |
79 | 249 | </attribute> | 249 | </attribute> |
80 | 250 | </widget> | 250 | </widget> |
81 | 251 | <widget class="AccountPanel" name="account_tab"> | 251 | <widget class="AccountPanel" name="account_tab"> |
82 | 252 | <attribute name="title"> | 252 | <attribute name="title"> |
84 | 253 | <string>Account information</string> | 253 | <string notr="true">Account information</string> |
85 | 254 | </attribute> | 254 | </attribute> |
86 | 255 | </widget> | 255 | </widget> |
87 | 256 | </widget> | 256 | </widget> |
88 | @@ -287,7 +287,7 @@ | |||
89 | 287 | <item> | 287 | <item> |
90 | 288 | <widget class="GoToWebButton" name="help_button"> | 288 | <widget class="GoToWebButton" name="help_button"> |
91 | 289 | <property name="text"> | 289 | <property name="text"> |
93 | 290 | <string>Get help online</string> | 290 | <string notr="true">Get help online</string> |
94 | 291 | </property> | 291 | </property> |
95 | 292 | </widget> | 292 | </widget> |
96 | 293 | </item> | 293 | </item> |
97 | @@ -312,7 +312,7 @@ | |||
98 | 312 | </font> | 312 | </font> |
99 | 313 | </property> | 313 | </property> |
100 | 314 | <property name="text"> | 314 | <property name="text"> |
102 | 315 | <string>Talk to us</string> | 315 | <string notr="true">Talk to us</string> |
103 | 316 | </property> | 316 | </property> |
104 | 317 | </widget> | 317 | </widget> |
105 | 318 | </item> | 318 | </item> |
106 | 319 | 319 | ||
107 | === modified file 'data/qt/device.ui' | |||
108 | --- data/qt/device.ui 2011-08-23 16:03:31 +0000 | |||
109 | +++ data/qt/device.ui 2012-02-22 17:08:18 +0000 | |||
110 | @@ -24,7 +24,7 @@ | |||
111 | 24 | <item> | 24 | <item> |
112 | 25 | <widget class="QLabel" name="device_name_label"> | 25 | <widget class="QLabel" name="device_name_label"> |
113 | 26 | <property name="text"> | 26 | <property name="text"> |
115 | 27 | <string>Local device</string> | 27 | <string notr="true">Local device</string> |
116 | 28 | </property> | 28 | </property> |
117 | 29 | </widget> | 29 | </widget> |
118 | 30 | </item> | 30 | </item> |
119 | @@ -44,7 +44,7 @@ | |||
120 | 44 | <item> | 44 | <item> |
121 | 45 | <widget class="QPushButton" name="remove_device_button"> | 45 | <widget class="QPushButton" name="remove_device_button"> |
122 | 46 | <property name="text"> | 46 | <property name="text"> |
124 | 47 | <string>Remove</string> | 47 | <string notr="true">Remove</string> |
125 | 48 | </property> | 48 | </property> |
126 | 49 | <property name="secondary" stdset="0"> | 49 | <property name="secondary" stdset="0"> |
127 | 50 | <bool>true</bool> | 50 | <bool>true</bool> |
128 | 51 | 51 | ||
129 | === modified file 'data/qt/device_remote.ui' | |||
130 | --- data/qt/device_remote.ui 2011-11-28 15:06:18 +0000 | |||
131 | +++ data/qt/device_remote.ui 2012-02-22 17:08:18 +0000 | |||
132 | @@ -24,7 +24,7 @@ | |||
133 | 24 | <item> | 24 | <item> |
134 | 25 | <widget class="QLabel" name="device_name_label"> | 25 | <widget class="QLabel" name="device_name_label"> |
135 | 26 | <property name="text"> | 26 | <property name="text"> |
137 | 27 | <string>Local device</string> | 27 | <string notr="true">Non local device</string> |
138 | 28 | </property> | 28 | </property> |
139 | 29 | </widget> | 29 | </widget> |
140 | 30 | </item> | 30 | </item> |
141 | 31 | 31 | ||
142 | === modified file 'data/qt/devices.ui' | |||
143 | --- data/qt/devices.ui 2011-08-05 18:07:09 +0000 | |||
144 | +++ data/qt/devices.ui 2012-02-22 17:08:18 +0000 | |||
145 | @@ -23,7 +23,7 @@ | |||
146 | 23 | <item> | 23 | <item> |
147 | 24 | <widget class="QGroupBox" name="local_device"> | 24 | <widget class="QGroupBox" name="local_device"> |
148 | 25 | <property name="title"> | 25 | <property name="title"> |
150 | 26 | <string>This device</string> | 26 | <string notr="true">This device</string> |
151 | 27 | </property> | 27 | </property> |
152 | 28 | <layout class="QVBoxLayout" name="verticalLayout"> | 28 | <layout class="QVBoxLayout" name="verticalLayout"> |
153 | 29 | <property name="margin"> | 29 | <property name="margin"> |
154 | @@ -36,9 +36,9 @@ | |||
155 | 36 | </widget> | 36 | </widget> |
156 | 37 | </item> | 37 | </item> |
157 | 38 | <item> | 38 | <item> |
159 | 39 | <widget class="QGroupBox" name="oher_devices"> | 39 | <widget class="QGroupBox" name="other_devices"> |
160 | 40 | <property name="title"> | 40 | <property name="title"> |
162 | 41 | <string>Other devices</string> | 41 | <string notr="true">Other devices</string> |
163 | 42 | </property> | 42 | </property> |
164 | 43 | <layout class="QVBoxLayout" name="verticalLayout_2"> | 43 | <layout class="QVBoxLayout" name="verticalLayout_2"> |
165 | 44 | <property name="margin"> | 44 | <property name="margin"> |
166 | @@ -90,7 +90,7 @@ | |||
167 | 90 | <item> | 90 | <item> |
168 | 91 | <widget class="GoToWebButton" name="manage_devices_button"> | 91 | <widget class="GoToWebButton" name="manage_devices_button"> |
169 | 92 | <property name="text"> | 92 | <property name="text"> |
171 | 93 | <string>Go to the web page to manage your other devices</string> | 93 | <string notr="true">Go to the web page to manage your other devices</string> |
172 | 94 | </property> | 94 | </property> |
173 | 95 | </widget> | 95 | </widget> |
174 | 96 | </item> | 96 | </item> |
175 | 97 | 97 | ||
176 | === modified file 'data/qt/folders.ui' | |||
177 | --- data/qt/folders.ui 2011-08-23 16:03:31 +0000 | |||
178 | +++ data/qt/folders.ui 2012-02-22 17:08:18 +0000 | |||
179 | @@ -41,7 +41,7 @@ | |||
180 | 41 | </sizepolicy> | 41 | </sizepolicy> |
181 | 42 | </property> | 42 | </property> |
182 | 43 | <property name="text"> | 43 | <property name="text"> |
184 | 44 | <string>Go to the web for public and private sharing options</string> | 44 | <string notr="true">Go to the web for public and private sharing options</string> |
185 | 45 | </property> | 45 | </property> |
186 | 46 | </widget> | 46 | </widget> |
187 | 47 | </item> | 47 | </item> |
188 | @@ -101,17 +101,17 @@ | |||
189 | 101 | </attribute> | 101 | </attribute> |
190 | 102 | <column> | 102 | <column> |
191 | 103 | <property name="text"> | 103 | <property name="text"> |
203 | 104 | <string>Name</string> | 104 | <string notr="true">Name</string> |
204 | 105 | </property> | 105 | </property> |
205 | 106 | </column> | 106 | </column> |
206 | 107 | <column> | 107 | <column> |
207 | 108 | <property name="text"> | 108 | <property name="text"> |
208 | 109 | <string>Sync Locally?</string> | 109 | <string notr="true">Sync Locally?</string> |
209 | 110 | </property> | 110 | </property> |
210 | 111 | </column> | 111 | </column> |
211 | 112 | <column> | 112 | <column> |
212 | 113 | <property name="text"> | 113 | <property name="text"> |
213 | 114 | <string>Explore</string> | 114 | <string notr="true">Explore</string> |
214 | 115 | </property> | 115 | </property> |
215 | 116 | </column> | 116 | </column> |
216 | 117 | </widget> | 117 | </widget> |
217 | @@ -153,7 +153,7 @@ | |||
218 | 153 | </sizepolicy> | 153 | </sizepolicy> |
219 | 154 | </property> | 154 | </property> |
220 | 155 | <property name="text"> | 155 | <property name="text"> |
222 | 156 | <string>Add a folder from this computer</string> | 156 | <string notr="true">Add a folder from this computer</string> |
223 | 157 | </property> | 157 | </property> |
224 | 158 | </widget> | 158 | </widget> |
225 | 159 | </item> | 159 | </item> |
226 | 160 | 160 | ||
227 | === modified file 'data/qt/loadingoverlay.ui' | |||
228 | --- data/qt/loadingoverlay.ui 2011-08-05 15:19:12 +0000 | |||
229 | +++ data/qt/loadingoverlay.ui 2012-02-22 17:08:18 +0000 | |||
230 | @@ -10,9 +10,6 @@ | |||
231 | 10 | <height>230</height> | 10 | <height>230</height> |
232 | 11 | </rect> | 11 | </rect> |
233 | 12 | </property> | 12 | </property> |
234 | 13 | <property name="windowTitle"> | ||
235 | 14 | <string>Frame</string> | ||
236 | 15 | </property> | ||
237 | 16 | <layout class="QVBoxLayout" name="verticalLayout"> | 13 | <layout class="QVBoxLayout" name="verticalLayout"> |
238 | 17 | <property name="topMargin"> | 14 | <property name="topMargin"> |
239 | 18 | <number>30</number> | 15 | <number>30</number> |
240 | @@ -61,7 +58,7 @@ | |||
241 | 61 | </font> | 58 | </font> |
242 | 62 | </property> | 59 | </property> |
243 | 63 | <property name="text"> | 60 | <property name="text"> |
245 | 64 | <string>Getting information, please wait...</string> | 61 | <string notr="true">Getting information, please wait...</string> |
246 | 65 | </property> | 62 | </property> |
247 | 66 | </widget> | 63 | </widget> |
248 | 67 | </item> | 64 | </item> |
249 | 68 | 65 | ||
250 | === modified file 'data/qt/mainwindow.ui' | |||
251 | --- data/qt/mainwindow.ui 2011-08-18 22:01:02 +0000 | |||
252 | +++ data/qt/mainwindow.ui 2012-02-22 17:08:18 +0000 | |||
253 | @@ -23,7 +23,7 @@ | |||
254 | 23 | </size> | 23 | </size> |
255 | 24 | </property> | 24 | </property> |
256 | 25 | <property name="windowTitle"> | 25 | <property name="windowTitle"> |
258 | 26 | <string>Ubuntu One</string> | 26 | <string notr="true">Ubuntu One</string> |
259 | 27 | </property> | 27 | </property> |
260 | 28 | <property name="windowIcon"> | 28 | <property name="windowIcon"> |
261 | 29 | <iconset resource="images.qrc"> | 29 | <iconset resource="images.qrc"> |
262 | 30 | 30 | ||
263 | === modified file 'data/qt/preferences.ui' | |||
264 | --- data/qt/preferences.ui 2011-09-08 22:22:46 +0000 | |||
265 | +++ data/qt/preferences.ui 2012-02-22 17:08:18 +0000 | |||
266 | @@ -23,7 +23,7 @@ | |||
267 | 23 | <item> | 23 | <item> |
268 | 24 | <widget class="QGroupBox" name="bandwidth_settings"> | 24 | <widget class="QGroupBox" name="bandwidth_settings"> |
269 | 25 | <property name="title"> | 25 | <property name="title"> |
271 | 26 | <string>Bandwidth Settings</string> | 26 | <string notr="true">Bandwidth Settings</string> |
272 | 27 | </property> | 27 | </property> |
273 | 28 | <layout class="QGridLayout" name="gridLayout"> | 28 | <layout class="QGridLayout" name="gridLayout"> |
274 | 29 | <property name="margin"> | 29 | <property name="margin"> |
275 | @@ -32,7 +32,7 @@ | |||
276 | 32 | <item row="0" column="0"> | 32 | <item row="0" column="0"> |
277 | 33 | <widget class="QCheckBox" name="limit_uploads_checkbox"> | 33 | <widget class="QCheckBox" name="limit_uploads_checkbox"> |
278 | 34 | <property name="text"> | 34 | <property name="text"> |
280 | 35 | <string>Limit upload speed to</string> | 35 | <string notr="true">Limit upload speed to</string> |
281 | 36 | </property> | 36 | </property> |
282 | 37 | </widget> | 37 | </widget> |
283 | 38 | </item> | 38 | </item> |
284 | @@ -49,14 +49,14 @@ | |||
285 | 49 | <item row="0" column="2"> | 49 | <item row="0" column="2"> |
286 | 50 | <widget class="QLabel" name="kbps_label_1"> | 50 | <widget class="QLabel" name="kbps_label_1"> |
287 | 51 | <property name="text"> | 51 | <property name="text"> |
289 | 52 | <string>Kilobits per second</string> | 52 | <string notr="true">Kilobits per second</string> |
290 | 53 | </property> | 53 | </property> |
291 | 54 | </widget> | 54 | </widget> |
292 | 55 | </item> | 55 | </item> |
293 | 56 | <item row="2" column="0"> | 56 | <item row="2" column="0"> |
294 | 57 | <widget class="QCheckBox" name="limit_downloads_checkbox"> | 57 | <widget class="QCheckBox" name="limit_downloads_checkbox"> |
295 | 58 | <property name="text"> | 58 | <property name="text"> |
297 | 59 | <string>Limit download speed to</string> | 59 | <string notr="true">Limit download speed to</string> |
298 | 60 | </property> | 60 | </property> |
299 | 61 | </widget> | 61 | </widget> |
300 | 62 | </item> | 62 | </item> |
301 | @@ -73,7 +73,7 @@ | |||
302 | 73 | <item row="2" column="2"> | 73 | <item row="2" column="2"> |
303 | 74 | <widget class="QLabel" name="kbps_label_2"> | 74 | <widget class="QLabel" name="kbps_label_2"> |
304 | 75 | <property name="text"> | 75 | <property name="text"> |
306 | 76 | <string>Kilobits per second</string> | 76 | <string notr="true">Kilobits per second</string> |
307 | 77 | </property> | 77 | </property> |
308 | 78 | </widget> | 78 | </widget> |
309 | 79 | </item> | 79 | </item> |
310 | @@ -93,7 +93,7 @@ | |||
311 | 93 | <item row="4" column="0" colspan="3"> | 93 | <item row="4" column="0" colspan="3"> |
312 | 94 | <widget class="QLabel" name="label_2"> | 94 | <widget class="QLabel" name="label_2"> |
313 | 95 | <property name="text"> | 95 | <property name="text"> |
315 | 96 | <string>Please note that your files will not sync if you set bandwidth to 0</string> | 96 | <string notr="true">Please note that your files will not sync if you set bandwidth to 0</string> |
316 | 97 | </property> | 97 | </property> |
317 | 98 | <property name="scaledContents"> | 98 | <property name="scaledContents"> |
318 | 99 | <bool>false</bool> | 99 | <bool>false</bool> |
319 | @@ -122,7 +122,7 @@ | |||
320 | 122 | <item> | 122 | <item> |
321 | 123 | <widget class="QGroupBox" name="file_sync_settings"> | 123 | <widget class="QGroupBox" name="file_sync_settings"> |
322 | 124 | <property name="title"> | 124 | <property name="title"> |
324 | 125 | <string>File Sync Settings</string> | 125 | <string notr="true">File Sync Settings</string> |
325 | 126 | </property> | 126 | </property> |
326 | 127 | <layout class="QVBoxLayout" name="verticalLayout_1"> | 127 | <layout class="QVBoxLayout" name="verticalLayout_1"> |
327 | 128 | <property name="margin"> | 128 | <property name="margin"> |
328 | @@ -131,28 +131,28 @@ | |||
329 | 131 | <item> | 131 | <item> |
330 | 132 | <widget class="QCheckBox" name="autoconnect_checkbox"> | 132 | <widget class="QCheckBox" name="autoconnect_checkbox"> |
331 | 133 | <property name="text"> | 133 | <property name="text"> |
333 | 134 | <string>Connect automatically when computer starts</string> | 134 | <string notr="true">Connect automatically when computer starts</string> |
334 | 135 | </property> | 135 | </property> |
335 | 136 | </widget> | 136 | </widget> |
336 | 137 | </item> | 137 | </item> |
337 | 138 | <item> | 138 | <item> |
338 | 139 | <widget class="QCheckBox" name="udf_autosubscribe_checkbox"> | 139 | <widget class="QCheckBox" name="udf_autosubscribe_checkbox"> |
339 | 140 | <property name="text"> | 140 | <property name="text"> |
341 | 141 | <string>Automatically sync all new cloud folders to this computer</string> | 141 | <string notr="true">Automatically sync all new cloud folders to this computer</string> |
342 | 142 | </property> | 142 | </property> |
343 | 143 | </widget> | 143 | </widget> |
344 | 144 | </item> | 144 | </item> |
345 | 145 | <item> | 145 | <item> |
346 | 146 | <widget class="QCheckBox" name="share_autosubscribe_checkbox"> | 146 | <widget class="QCheckBox" name="share_autosubscribe_checkbox"> |
347 | 147 | <property name="text"> | 147 | <property name="text"> |
349 | 148 | <string>Automatically sync all folders shared with me to this computer</string> | 148 | <string notr="true">Automatically sync all folders shared with me to this computer</string> |
350 | 149 | </property> | 149 | </property> |
351 | 150 | </widget> | 150 | </widget> |
352 | 151 | </item> | 151 | </item> |
353 | 152 | <item> | 152 | <item> |
354 | 153 | <widget class="QCheckBox" name="show_all_notifications_checkbox"> | 153 | <widget class="QCheckBox" name="show_all_notifications_checkbox"> |
355 | 154 | <property name="text"> | 154 | <property name="text"> |
357 | 155 | <string>Allow all notifications to this device</string> | 155 | <string notr="true">Allow all notifications to this device</string> |
358 | 156 | </property> | 156 | </property> |
359 | 157 | </widget> | 157 | </widget> |
360 | 158 | </item> | 158 | </item> |
361 | @@ -193,14 +193,14 @@ | |||
362 | 193 | <item> | 193 | <item> |
363 | 194 | <widget class="QPushButton" name="apply_changes_button"> | 194 | <widget class="QPushButton" name="apply_changes_button"> |
364 | 195 | <property name="text"> | 195 | <property name="text"> |
366 | 196 | <string>Apply these settings</string> | 196 | <string notr="true">Apply these settings</string> |
367 | 197 | </property> | 197 | </property> |
368 | 198 | </widget> | 198 | </widget> |
369 | 199 | </item> | 199 | </item> |
370 | 200 | <item> | 200 | <item> |
371 | 201 | <widget class="QPushButton" name="restore_defaults_button"> | 201 | <widget class="QPushButton" name="restore_defaults_button"> |
372 | 202 | <property name="text"> | 202 | <property name="text"> |
374 | 203 | <string>Default settings</string> | 203 | <string notr="true">Default settings</string> |
375 | 204 | </property> | 204 | </property> |
376 | 205 | <property name="secondary" stdset="0"> | 205 | <property name="secondary" stdset="0"> |
377 | 206 | <bool>true</bool> | 206 | <bool>true</bool> |
378 | 207 | 207 | ||
379 | === modified file 'data/qt/signin.ui' | |||
380 | --- data/qt/signin.ui 2011-11-14 20:42:04 +0000 | |||
381 | +++ data/qt/signin.ui 2012-02-22 17:08:18 +0000 | |||
382 | @@ -10,9 +10,6 @@ | |||
383 | 10 | <height>312</height> | 10 | <height>312</height> |
384 | 11 | </rect> | 11 | </rect> |
385 | 12 | </property> | 12 | </property> |
386 | 13 | <property name="windowTitle"> | ||
387 | 14 | <string>Form</string> | ||
388 | 15 | </property> | ||
389 | 16 | <layout class="QHBoxLayout" name="horizontalLayout_3"> | 13 | <layout class="QHBoxLayout" name="horizontalLayout_3"> |
390 | 17 | <property name="margin"> | 14 | <property name="margin"> |
391 | 18 | <number>0</number> | 15 | <number>0</number> |
392 | @@ -29,14 +26,14 @@ | |||
393 | 29 | <item> | 26 | <item> |
394 | 30 | <widget class="QLabel" name="sign_in_label"> | 27 | <widget class="QLabel" name="sign_in_label"> |
395 | 31 | <property name="text"> | 28 | <property name="text"> |
397 | 32 | <string>Sign in to Ubuntu One</string> | 29 | <string notr="true">Sign in to Ubuntu One</string> |
398 | 33 | </property> | 30 | </property> |
399 | 34 | </widget> | 31 | </widget> |
400 | 35 | </item> | 32 | </item> |
401 | 36 | <item> | 33 | <item> |
402 | 37 | <widget class="QLabel" name="description_label"> | 34 | <widget class="QLabel" name="description_label"> |
403 | 38 | <property name="text"> | 35 | <property name="text"> |
405 | 39 | <string>Sign in with your existing Ubuntu One username and password.</string> | 36 | <string notr="true">Sign in with your existing Ubuntu One username and password.</string> |
406 | 40 | </property> | 37 | </property> |
407 | 41 | </widget> | 38 | </widget> |
408 | 42 | </item> | 39 | </item> |
409 | @@ -55,7 +52,7 @@ | |||
410 | 55 | <item> | 52 | <item> |
411 | 56 | <widget class="QLabel" name="email_label"> | 53 | <widget class="QLabel" name="email_label"> |
412 | 57 | <property name="text"> | 54 | <property name="text"> |
414 | 58 | <string>Email address</string> | 55 | <string notr="true">Email address</string> |
415 | 59 | </property> | 56 | </property> |
416 | 60 | </widget> | 57 | </widget> |
417 | 61 | </item> | 58 | </item> |
418 | @@ -76,7 +73,7 @@ | |||
419 | 76 | <item> | 73 | <item> |
420 | 77 | <widget class="QLabel" name="password_label"> | 74 | <widget class="QLabel" name="password_label"> |
421 | 78 | <property name="text"> | 75 | <property name="text"> |
423 | 79 | <string>Password</string> | 76 | <string notr="true">Password</string> |
424 | 80 | </property> | 77 | </property> |
425 | 81 | </widget> | 78 | </widget> |
426 | 82 | </item> | 79 | </item> |
427 | @@ -94,7 +91,7 @@ | |||
428 | 94 | <item> | 91 | <item> |
429 | 95 | <widget class="QPushButton" name="signin_button"> | 92 | <widget class="QPushButton" name="signin_button"> |
430 | 96 | <property name="text"> | 93 | <property name="text"> |
432 | 97 | <string>Sign in</string> | 94 | <string notr="true">Sign in</string> |
433 | 98 | </property> | 95 | </property> |
434 | 99 | <property name="default"> | 96 | <property name="default"> |
435 | 100 | <bool>true</bool> | 97 | <bool>true</bool> |
436 | @@ -104,7 +101,7 @@ | |||
437 | 104 | <item> | 101 | <item> |
438 | 105 | <widget class="QPushButton" name="cancel_button"> | 102 | <widget class="QPushButton" name="cancel_button"> |
439 | 106 | <property name="text"> | 103 | <property name="text"> |
441 | 107 | <string>Cancel</string> | 104 | <string notr="true">Cancel</string> |
442 | 108 | </property> | 105 | </property> |
443 | 109 | <property name="secondary" stdset="0"> | 106 | <property name="secondary" stdset="0"> |
444 | 110 | <bool>true</bool> | 107 | <bool>true</bool> |
445 | @@ -137,7 +134,7 @@ | |||
446 | 137 | </sizepolicy> | 134 | </sizepolicy> |
447 | 138 | </property> | 135 | </property> |
448 | 139 | <property name="text"> | 136 | <property name="text"> |
450 | 140 | <string>Forgot your password?</string> | 137 | <string notr="true">Forgot your password?</string> |
451 | 141 | </property> | 138 | </property> |
452 | 142 | </widget> | 139 | </widget> |
453 | 143 | </item> | 140 | </item> |
454 | 144 | 141 | ||
455 | === modified file 'ubuntuone/controlpanel/gui/__init__.py' | |||
456 | --- ubuntuone/controlpanel/gui/__init__.py 2012-02-22 12:09:28 +0000 | |||
457 | +++ ubuntuone/controlpanel/gui/__init__.py 2012-02-22 17:08:18 +0000 | |||
458 | @@ -74,7 +74,9 @@ | |||
459 | 74 | TWITTER_LINK = u'http://twitter.com/ubuntuone/' | 74 | TWITTER_LINK = u'http://twitter.com/ubuntuone/' |
460 | 75 | 75 | ||
461 | 76 | # Undefined variable '_', pylint: disable=E0602 | 76 | # Undefined variable '_', pylint: disable=E0602 |
462 | 77 | # Translatable strings | ||
463 | 77 | 78 | ||
464 | 79 | ACCOUNT_LABEL = _('Your services') | ||
465 | 78 | ALWAYS_SUBSCRIBED = _('Always in sync') | 80 | ALWAYS_SUBSCRIBED = _('Always in sync') |
466 | 79 | CONNECT_BUTTON_LABEL = _('Connect to Ubuntu One') | 81 | CONNECT_BUTTON_LABEL = _('Connect to Ubuntu One') |
467 | 80 | CONTACTS = _('Thunderbird plug-in') | 82 | CONTACTS = _('Thunderbird plug-in') |
468 | @@ -93,9 +95,13 @@ | |||
469 | 93 | DEVICE_REMOVAL_ERROR = _('The device could not be removed.') | 95 | DEVICE_REMOVAL_ERROR = _('The device could not be removed.') |
470 | 94 | DEVICES_BUTTON_TOOLTIP = _('Manage devices registered with your personal ' | 96 | DEVICES_BUTTON_TOOLTIP = _('Manage devices registered with your personal ' |
471 | 95 | 'cloud') | 97 | 'cloud') |
472 | 98 | DEVICES_LOCAL_LABEL = _('This device') | ||
473 | 99 | DEVICES_MANAGE_LABEL = _('Go to the web page to manage your other devices') | ||
474 | 100 | DEVICES_REMOTE_LABEL = _('Other devices') | ||
475 | 96 | DEVICES_TITLE = _('The devices connected with your personal cloud are listed ' | 101 | DEVICES_TITLE = _('The devices connected with your personal cloud are listed ' |
476 | 97 | 'below.') | 102 | 'below.') |
478 | 98 | EXPLORE = _('Explore') | 103 | EDIT_ACCOUNT_LABEL = _('Edit your services online') |
479 | 104 | EDIT_PROFILE_LABEL = _('Edit personal details online') | ||
480 | 99 | FAILED_INSTALL = _('<i>%(package_name)s</i> could not be installed') | 105 | FAILED_INSTALL = _('<i>%(package_name)s</i> could not be installed') |
481 | 100 | FOLDER_ADD_BUTTON_TEXT = _('Sync another folder with your cloud') | 106 | FOLDER_ADD_BUTTON_TEXT = _('Sync another folder with your cloud') |
482 | 101 | FOLDER_INVALID_PATH = _('The chosen directory "%(folder_path)s" is not valid. ' | 107 | FOLDER_INVALID_PATH = _('The chosen directory "%(folder_path)s" is not valid. ' |
483 | @@ -105,12 +111,18 @@ | |||
484 | 105 | 'cloud folder.') | 111 | 'cloud folder.') |
485 | 106 | FOLDER_OWNED_BY = _('My personal folders') | 112 | FOLDER_OWNED_BY = _('My personal folders') |
486 | 107 | FOLDER_SHARED_BY = _('Shared by %(other_user_display_name)s') | 113 | FOLDER_SHARED_BY = _('Shared by %(other_user_display_name)s') |
487 | 114 | FOLDERS_BUTTON_ADD_FOLDER = _('Add a folder from this computer') | ||
488 | 115 | FOLDERS_BUTTON_TOOLTIP = VOLUMES_BUTTON_TOOLTIP = _('Manage your cloud ' | ||
489 | 116 | 'folders') | ||
490 | 117 | FOLDERS_COLUMN_EXPLORE = _('Explore') | ||
491 | 118 | FOLDERS_COLUMN_NAME = _('Name') | ||
492 | 119 | FOLDERS_COLUMN_SYNC_LOCALLY = _('Sync Locally?') | ||
493 | 108 | FOLDERS_CONFIRM_MERGE = _('The contents of your cloud folder will be merged ' | 120 | FOLDERS_CONFIRM_MERGE = _('The contents of your cloud folder will be merged ' |
494 | 109 | 'with your local folder "%(folder_path)s" when ' | 121 | 'with your local folder "%(folder_path)s" when ' |
495 | 110 | 'subscribing.\nDo you want to subscribe to this ' | 122 | 'subscribing.\nDo you want to subscribe to this ' |
496 | 111 | 'cloud folder?') | 123 | 'cloud folder?') |
499 | 112 | FOLDERS_BUTTON_TOOLTIP = VOLUMES_BUTTON_TOOLTIP = _('Manage your cloud ' | 124 | FOLDERS_MANAGE_LABEL = _('Go to the web for public and private sharing ' |
500 | 113 | 'folders') | 125 | 'options') |
501 | 114 | FOLDERS_TITLE = _('Select which folders from your cloud you want to sync with ' | 126 | FOLDERS_TITLE = _('Select which folders from your cloud you want to sync with ' |
502 | 115 | 'this computer') | 127 | 'this computer') |
503 | 116 | FILE_SYNC_CONNECT = _('Connect') | 128 | FILE_SYNC_CONNECT = _('Connect') |
504 | @@ -139,6 +151,8 @@ | |||
505 | 139 | GENERAL_ERROR_TITLE = _('Ubuntu One experienced an error') | 151 | GENERAL_ERROR_TITLE = _('Ubuntu One experienced an error') |
506 | 140 | GENERAL_ERROR_MSG = _('Sorry, an error has occurred and Ubuntu One ' | 152 | GENERAL_ERROR_MSG = _('Sorry, an error has occurred and Ubuntu One ' |
507 | 141 | 'needs to close.') | 153 | 'needs to close.') |
508 | 154 | GET_HELP_ONLINE = _('Get help online') | ||
509 | 155 | GET_MORE_STORAGE = _('Get more storage') | ||
510 | 142 | GREETING = _('Hi %(user_display_name)s') | 156 | GREETING = _('Hi %(user_display_name)s') |
511 | 143 | INSTALL_PACKAGE = _('You need to install the package <i>%(package_name)s' | 157 | INSTALL_PACKAGE = _('You need to install the package <i>%(package_name)s' |
512 | 144 | '</i> in order to enable more sync services.') | 158 | '</i> in order to enable more sync services.') |
513 | @@ -146,11 +160,16 @@ | |||
514 | 146 | '%(service_name)s') | 160 | '%(service_name)s') |
515 | 147 | INSTALLING = _('Installation of <i>%(package_name)s</i> in progress') | 161 | INSTALLING = _('Installation of <i>%(package_name)s</i> in progress') |
516 | 148 | LOADING = _('Loading...') | 162 | LOADING = _('Loading...') |
517 | 163 | LOADING_OVERLAY = _('Getting information, please wait...') | ||
518 | 164 | MAIN_ACCOUNT_TAB = _('Account information') | ||
519 | 165 | MAIN_DEVICES_TAB = _('Devices') | ||
520 | 166 | MAIN_FOLDERS_TAB = _('Folders') | ||
521 | 167 | MAIN_PREFERENCES_TAB = _('Settings') | ||
522 | 149 | MAIN_WINDOW_TITLE = _('%(app_name)s Control Panel') | 168 | MAIN_WINDOW_TITLE = _('%(app_name)s Control Panel') |
523 | 169 | MUSIC_DISPLAY_NAME = _('Purchased Music') | ||
524 | 170 | MUSIC_REAL_PATH = '.ubuntuone/Purchased from Ubuntu One' | ||
525 | 150 | MY_FOLDERS = _('My folders') | 171 | MY_FOLDERS = _('My folders') |
526 | 151 | NAME_NOT_SET = _('[unknown user name]') | 172 | NAME_NOT_SET = _('[unknown user name]') |
527 | 152 | MUSIC_DISPLAY_NAME = _('Purchased Music') | ||
528 | 153 | MUSIC_REAL_PATH = '.ubuntuone/Purchased from Ubuntu One' | ||
529 | 154 | NETWORK_OFFLINE = _('An internet connection is required to join or sign ' | 173 | NETWORK_OFFLINE = _('An internet connection is required to join or sign ' |
530 | 155 | 'in to %(app_name)s.') | 174 | 'in to %(app_name)s.') |
531 | 156 | NO_DEVICES = _('No devices to show.') | 175 | NO_DEVICES = _('No devices to show.') |
532 | @@ -158,18 +177,45 @@ | |||
533 | 158 | NO_PAIRING_RECORD = _('There is no Ubuntu One pairing record.') | 177 | NO_PAIRING_RECORD = _('There is no Ubuntu One pairing record.') |
534 | 159 | PERCENTAGE_LABEL = _('%(percentage)s used') | 178 | PERCENTAGE_LABEL = _('%(percentage)s used') |
535 | 160 | PLEASE_WAIT = _('Please wait') | 179 | PLEASE_WAIT = _('Please wait') |
536 | 180 | PROFILE_LABEL = _('Personal details') | ||
537 | 161 | QUOTA_LABEL = _('Using %(used)s of %(total)s (%(percentage).0f%%)') | 181 | QUOTA_LABEL = _('Using %(used)s of %(total)s (%(percentage).0f%%)') |
539 | 162 | USAGE_LABEL = _('%(used)s of %(total)s') | 182 | REMOVE_BUTTON = _('Remove') |
540 | 183 | RESTORE_LABEL = _('Restore') | ||
541 | 163 | SERVICES_BUTTON_TOOLTIP = _('Manage the sync services') | 184 | SERVICES_BUTTON_TOOLTIP = _('Manage the sync services') |
542 | 164 | SERVICES_TITLE = _('Enable the sync services for this computer.') | 185 | SERVICES_TITLE = _('Enable the sync services for this computer.') |
543 | 186 | SETTINGS_ALLOW_NOTIFICATIONS = _('Allow all notifications to this device') | ||
544 | 187 | SETTINGS_AUTO_CONNECT = _('Connect automatically when computer starts') | ||
545 | 188 | SETTINGS_BANDWIDTH = _('Bandwidth Settings') | ||
546 | 189 | SETTINGS_BANDWIDTH_ZERO_WARNING = _('Please note that your files will not ' | ||
547 | 190 | 'sync if you set bandwidth to 0') | ||
548 | 191 | SETTINGS_BUTTON_APPLY = _('Apply these settings') | ||
549 | 192 | SETTINGS_BUTTON_DEFAULT = _('Default settings') | ||
550 | 165 | SETTINGS_CHANGE_ERROR = _('The settings could not be changed,\n' | 193 | SETTINGS_CHANGE_ERROR = _('The settings could not be changed,\n' |
551 | 166 | 'previous values were restored.') | 194 | 'previous values were restored.') |
552 | 195 | SETTINGS_FILE_SYNC = _('File Sync Settings') | ||
553 | 196 | SETTINGS_KILOBITS_PER_SECOND = _('Kilobits per second') | ||
554 | 197 | SETTINGS_LIMIT_DOWNLOAD = _('Limit download speed to') | ||
555 | 198 | SETTINGS_LIMIT_UPLOAD = _('Limit upload speed to') | ||
556 | 199 | SETTINGS_SYNC_ALL_FOLDERS = _('Automatically sync all new cloud folders ' | ||
557 | 200 | 'to this computer') | ||
558 | 201 | SETTINGS_SYNC_ALL_SHARES = _('Automatically sync all folders shared with me ' | ||
559 | 202 | 'to this computer') | ||
560 | 167 | SHARES_BUTTON_TOOLTIP = _('Manage the shares offered to others') | 203 | SHARES_BUTTON_TOOLTIP = _('Manage the shares offered to others') |
561 | 168 | SHARES_TITLE = _('Manage permissions for shares made to other users.') | 204 | SHARES_TITLE = _('Manage permissions for shares made to other users.') |
562 | 205 | SIGNIN_BUTTON = _('Sign in') | ||
563 | 206 | SIGNIN_CANCEL = _('Cancel') | ||
564 | 207 | SIGNIN_DESCRIPTION = _('Sign in with your existing Ubuntu One ' | ||
565 | 208 | 'username and password.') | ||
566 | 209 | SIGNIN_EMAIL = _('Email address') | ||
567 | 210 | SIGNIN_FORGOT_PASSWORD = _('Forgot your password?') | ||
568 | 211 | SIGNIN_PASSWORD = _('Password') | ||
569 | 212 | SIGNIN_TITLE = _('Sign in to Ubuntu One') | ||
570 | 169 | SUCCESS_INSTALL = _('<i>%(package_name)s</i> was successfully installed') | 213 | SUCCESS_INSTALL = _('<i>%(package_name)s</i> was successfully installed') |
572 | 170 | SYNC_LOCALLY = _('Sync locally?') | 214 | TALK_TO_US = _('Talk to us') |
573 | 171 | VALUE_ERROR = _('Value could not be retrieved.') | 215 | VALUE_ERROR = _('Value could not be retrieved.') |
574 | 172 | UNKNOWN_ERROR = _('Unknown error') | 216 | UNKNOWN_ERROR = _('Unknown error') |
575 | 217 | USAGE_LABEL = _('%(used)s of %(total)s') | ||
576 | 218 | QUIT_LABEL = _('Quit Ubuntu One') | ||
577 | 173 | 219 | ||
578 | 174 | # pylint: enable=E0602 | 220 | # pylint: enable=E0602 |
579 | 175 | 221 | ||
580 | 176 | 222 | ||
581 | === modified file 'ubuntuone/controlpanel/gui/qt/account.py' | |||
582 | --- ubuntuone/controlpanel/gui/qt/account.py 2011-09-07 16:56:39 +0000 | |||
583 | +++ ubuntuone/controlpanel/gui/qt/account.py 2012-02-22 17:08:18 +0000 | |||
584 | @@ -23,8 +23,12 @@ | |||
585 | 23 | 23 | ||
586 | 24 | from ubuntuone.controlpanel.logger import setup_logging, log_call | 24 | from ubuntuone.controlpanel.logger import setup_logging, log_call |
587 | 25 | from ubuntuone.controlpanel.gui import ( | 25 | from ubuntuone.controlpanel.gui import ( |
588 | 26 | ACCOUNT_LABEL, | ||
589 | 27 | EDIT_ACCOUNT_LABEL, | ||
590 | 26 | EDIT_ACCOUNT_LINK, | 28 | EDIT_ACCOUNT_LINK, |
591 | 29 | EDIT_PROFILE_LABEL, | ||
592 | 27 | EDIT_PROFILE_LINK, | 30 | EDIT_PROFILE_LINK, |
593 | 31 | PROFILE_LABEL, | ||
594 | 28 | ) | 32 | ) |
595 | 29 | from ubuntuone.controlpanel.gui.qt.ubuntuonebin import UbuntuOneBin | 33 | from ubuntuone.controlpanel.gui.qt.ubuntuonebin import UbuntuOneBin |
596 | 30 | from ubuntuone.controlpanel.gui.qt.ui import account_ui | 34 | from ubuntuone.controlpanel.gui.qt.ui import account_ui |
597 | @@ -42,8 +46,12 @@ | |||
598 | 42 | def _setup(self): | 46 | def _setup(self): |
599 | 43 | """Do some extra setupping for the UI.""" | 47 | """Do some extra setupping for the UI.""" |
600 | 44 | super(AccountPanel, self)._setup() | 48 | super(AccountPanel, self)._setup() |
601 | 49 | self.ui.services.setTitle(ACCOUNT_LABEL) | ||
602 | 50 | self.ui.edit_services_button.setText(EDIT_ACCOUNT_LABEL) | ||
603 | 51 | self.ui.edit_services_button.uri = EDIT_ACCOUNT_LINK | ||
604 | 52 | self.ui.edit_profile_button.setText(EDIT_PROFILE_LABEL) | ||
605 | 45 | self.ui.edit_profile_button.uri = EDIT_PROFILE_LINK | 53 | self.ui.edit_profile_button.uri = EDIT_PROFILE_LINK |
607 | 46 | self.ui.edit_services_button.uri = EDIT_ACCOUNT_LINK | 54 | self.ui.profile_info.setTitle(PROFILE_LABEL) |
608 | 47 | 55 | ||
609 | 48 | # pylint: disable=E0202 | 56 | # pylint: disable=E0202 |
610 | 49 | @defer.inlineCallbacks | 57 | @defer.inlineCallbacks |
611 | 50 | 58 | ||
612 | === modified file 'ubuntuone/controlpanel/gui/qt/controlpanel.py' | |||
613 | --- ubuntuone/controlpanel/gui/qt/controlpanel.py 2012-01-31 20:33:22 +0000 | |||
614 | +++ ubuntuone/controlpanel/gui/qt/controlpanel.py 2012-02-22 17:08:18 +0000 | |||
615 | @@ -24,13 +24,20 @@ | |||
616 | 24 | from ubuntuone.controlpanel.backend import AUTOCONNECT_KEY | 24 | from ubuntuone.controlpanel.backend import AUTOCONNECT_KEY |
617 | 25 | from ubuntuone.controlpanel.logger import setup_logging, log_call | 25 | from ubuntuone.controlpanel.logger import setup_logging, log_call |
618 | 26 | from ubuntuone.controlpanel.gui import ( | 26 | from ubuntuone.controlpanel.gui import ( |
619 | 27 | humanize, | ||
620 | 28 | show_quota_warning, | ||
621 | 29 | EDIT_SERVICES_LINK, | 27 | EDIT_SERVICES_LINK, |
622 | 30 | FACEBOOK_LINK, | 28 | FACEBOOK_LINK, |
623 | 29 | GET_HELP_ONLINE, | ||
624 | 30 | GET_MORE_STORAGE, | ||
625 | 31 | GET_SUPPORT_LINK, | 31 | GET_SUPPORT_LINK, |
626 | 32 | GREETING, | 32 | GREETING, |
627 | 33 | humanize, | ||
628 | 34 | MAIN_ACCOUNT_TAB, | ||
629 | 35 | MAIN_DEVICES_TAB, | ||
630 | 36 | MAIN_FOLDERS_TAB, | ||
631 | 37 | MAIN_PREFERENCES_TAB, | ||
632 | 33 | PERCENTAGE_LABEL, | 38 | PERCENTAGE_LABEL, |
633 | 39 | show_quota_warning, | ||
634 | 40 | TALK_TO_US, | ||
635 | 34 | TWITTER_LINK, | 41 | TWITTER_LINK, |
636 | 35 | USAGE_LABEL, | 42 | USAGE_LABEL, |
637 | 36 | ) | 43 | ) |
638 | @@ -53,12 +60,28 @@ | |||
639 | 53 | 60 | ||
640 | 54 | def _setup(self): | 61 | def _setup(self): |
641 | 55 | """Do some extra setupping for the UI.""" | 62 | """Do some extra setupping for the UI.""" |
642 | 63 | self.ui.get_more_space_button.setText(GET_MORE_STORAGE) | ||
643 | 56 | self.ui.get_more_space_button.uri = EDIT_SERVICES_LINK | 64 | self.ui.get_more_space_button.uri = EDIT_SERVICES_LINK |
644 | 65 | |||
645 | 66 | self.ui.help_button.setText(GET_HELP_ONLINE) | ||
646 | 57 | self.ui.help_button.uri = GET_SUPPORT_LINK | 67 | self.ui.help_button.uri = GET_SUPPORT_LINK |
647 | 68 | |||
648 | 69 | self.ui.follow_us_label.setText(TALK_TO_US) | ||
649 | 70 | |||
650 | 58 | self.ui.devices_tab.localDeviceRemoved.connect( | 71 | self.ui.devices_tab.localDeviceRemoved.connect( |
651 | 59 | self.on_credentials_not_found) | 72 | self.on_credentials_not_found) |
652 | 60 | self.ui.signin.credentialsFound.connect(lambda creds: self.load()) | 73 | self.ui.signin.credentialsFound.connect(lambda creds: self.load()) |
653 | 61 | 74 | ||
654 | 75 | self.ui.tab_widget.setTabText( | ||
655 | 76 | self.ui.tab_widget.indexOf(self.ui.folders_tab), MAIN_FOLDERS_TAB) | ||
656 | 77 | self.ui.tab_widget.setTabText( | ||
657 | 78 | self.ui.tab_widget.indexOf(self.ui.devices_tab), MAIN_DEVICES_TAB) | ||
658 | 79 | self.ui.tab_widget.setTabText( | ||
659 | 80 | self.ui.tab_widget.indexOf(self.ui.preferences_tab), | ||
660 | 81 | MAIN_PREFERENCES_TAB) | ||
661 | 82 | self.ui.tab_widget.setTabText( | ||
662 | 83 | self.ui.tab_widget.indexOf(self.ui.account_tab), MAIN_ACCOUNT_TAB) | ||
663 | 84 | |||
664 | 62 | @defer.inlineCallbacks | 85 | @defer.inlineCallbacks |
665 | 63 | def connect_file_sync(self): | 86 | def connect_file_sync(self): |
666 | 64 | """Connect file sync service if the setting autoconnect is enabled.""" | 87 | """Connect file sync service if the setting autoconnect is enabled.""" |
667 | 65 | 88 | ||
668 | === modified file 'ubuntuone/controlpanel/gui/qt/device.py' | |||
669 | --- ubuntuone/controlpanel/gui/qt/device.py 2011-11-28 15:06:18 +0000 | |||
670 | +++ ubuntuone/controlpanel/gui/qt/device.py 2012-02-22 17:08:18 +0000 | |||
671 | @@ -26,7 +26,10 @@ | |||
672 | 26 | DEVICE_TYPE_PHONE, | 26 | DEVICE_TYPE_PHONE, |
673 | 27 | ) | 27 | ) |
674 | 28 | from ubuntuone.controlpanel import cache | 28 | from ubuntuone.controlpanel import cache |
676 | 29 | from ubuntuone.controlpanel.gui import DEVICE_CONFIRM_REMOVE | 29 | from ubuntuone.controlpanel.gui import ( |
677 | 30 | DEVICE_CONFIRM_REMOVE, | ||
678 | 31 | REMOVE_BUTTON, | ||
679 | 32 | ) | ||
680 | 30 | from ubuntuone.controlpanel.gui.qt import ( | 33 | from ubuntuone.controlpanel.gui.qt import ( |
681 | 31 | handle_errors, | 34 | handle_errors, |
682 | 32 | pixmap_from_name, | 35 | pixmap_from_name, |
683 | @@ -68,6 +71,13 @@ | |||
684 | 68 | super(DeviceWidget, self).__init__(*args, **kwargs) | 71 | super(DeviceWidget, self).__init__(*args, **kwargs) |
685 | 69 | self.ui = device_ui.Ui_Form() | 72 | self.ui = device_ui.Ui_Form() |
686 | 70 | self.ui.setupUi(self) | 73 | self.ui.setupUi(self) |
687 | 74 | |||
688 | 75 | # The following is a hack to avoid having the faked self.ui failing | ||
689 | 76 | # with AttributeError in the tests. We need to improve the fake so we | ||
690 | 77 | # don't leak this to the production code. | ||
691 | 78 | if getattr(self.ui, 'remove_device_button', None) is not None: | ||
692 | 79 | self.ui.remove_device_button.setText(REMOVE_BUTTON) | ||
693 | 80 | |||
694 | 71 | self.id = device_id | 81 | self.id = device_id |
695 | 72 | 82 | ||
696 | 73 | def update_device_info(self, device_info): | 83 | def update_device_info(self, device_info): |
697 | 74 | 84 | ||
698 | === modified file 'ubuntuone/controlpanel/gui/qt/devices.py' | |||
699 | --- ubuntuone/controlpanel/gui/qt/devices.py 2012-01-04 18:51:08 +0000 | |||
700 | +++ ubuntuone/controlpanel/gui/qt/devices.py 2012-02-22 17:08:18 +0000 | |||
701 | @@ -25,7 +25,12 @@ | |||
702 | 25 | from twisted.internet import defer | 25 | from twisted.internet import defer |
703 | 26 | 26 | ||
704 | 27 | from ubuntuone.controlpanel.logger import setup_logging, log_call | 27 | from ubuntuone.controlpanel.logger import setup_logging, log_call |
706 | 28 | from ubuntuone.controlpanel.gui import EDIT_DEVICES_LINK | 28 | from ubuntuone.controlpanel.gui import ( |
707 | 29 | DEVICES_LOCAL_LABEL, | ||
708 | 30 | DEVICES_MANAGE_LABEL, | ||
709 | 31 | DEVICES_REMOTE_LABEL, | ||
710 | 32 | EDIT_DEVICES_LINK, | ||
711 | 33 | ) | ||
712 | 29 | from ubuntuone.controlpanel.gui.qt.ui import devices_ui | 34 | from ubuntuone.controlpanel.gui.qt.ui import devices_ui |
713 | 30 | from ubuntuone.controlpanel.gui.qt.ubuntuonebin import UbuntuOneBin | 35 | from ubuntuone.controlpanel.gui.qt.ubuntuonebin import UbuntuOneBin |
714 | 31 | from ubuntuone.controlpanel.gui.qt import device | 36 | from ubuntuone.controlpanel.gui.qt import device |
715 | @@ -45,6 +50,9 @@ | |||
716 | 45 | def _setup(self): | 50 | def _setup(self): |
717 | 46 | """Do some extra setupping for the UI.""" | 51 | """Do some extra setupping for the UI.""" |
718 | 47 | super(DevicesPanel, self)._setup() | 52 | super(DevicesPanel, self)._setup() |
719 | 53 | self.ui.local_device.setTitle(DEVICES_LOCAL_LABEL) | ||
720 | 54 | self.ui.other_devices.setTitle(DEVICES_REMOTE_LABEL) | ||
721 | 55 | self.ui.manage_devices_button.setText(DEVICES_MANAGE_LABEL) | ||
722 | 48 | self.ui.manage_devices_button.uri = EDIT_DEVICES_LINK | 56 | self.ui.manage_devices_button.uri = EDIT_DEVICES_LINK |
723 | 49 | 57 | ||
724 | 50 | # pylint: disable=E0202 | 58 | # pylint: disable=E0202 |
725 | 51 | 59 | ||
726 | === modified file 'ubuntuone/controlpanel/gui/qt/folders.py' | |||
727 | --- ubuntuone/controlpanel/gui/qt/folders.py 2012-02-06 21:10:10 +0000 | |||
728 | +++ ubuntuone/controlpanel/gui/qt/folders.py 2012-02-22 17:08:18 +0000 | |||
729 | @@ -26,18 +26,21 @@ | |||
730 | 26 | from ubuntuone.controlpanel.logger import setup_logging, log_call | 26 | from ubuntuone.controlpanel.logger import setup_logging, log_call |
731 | 27 | from ubuntuone.controlpanel.gui import ( | 27 | from ubuntuone.controlpanel.gui import ( |
732 | 28 | ALWAYS_SUBSCRIBED, | 28 | ALWAYS_SUBSCRIBED, |
733 | 29 | EXPLORE, | ||
734 | 30 | FOLDER_ICON_NAME, | 29 | FOLDER_ICON_NAME, |
735 | 31 | FOLDER_OWNED_BY, | 30 | FOLDER_OWNED_BY, |
736 | 32 | FOLDER_SHARED_BY, | 31 | FOLDER_SHARED_BY, |
737 | 32 | FOLDERS_BUTTON_ADD_FOLDER, | ||
738 | 33 | FOLDERS_COLUMN_EXPLORE, | ||
739 | 34 | FOLDERS_COLUMN_NAME, | ||
740 | 35 | FOLDERS_COLUMN_SYNC_LOCALLY, | ||
741 | 33 | FOLDERS_CONFIRM_MERGE, | 36 | FOLDERS_CONFIRM_MERGE, |
742 | 37 | FOLDERS_MANAGE_LABEL, | ||
743 | 34 | MANAGE_FILES_LINK, | 38 | MANAGE_FILES_LINK, |
744 | 35 | MUSIC_ICON_NAME, | 39 | MUSIC_ICON_NAME, |
745 | 36 | MUSIC_DISPLAY_NAME, | 40 | MUSIC_DISPLAY_NAME, |
746 | 37 | MUSIC_REAL_PATH, | 41 | MUSIC_REAL_PATH, |
747 | 38 | NAME_NOT_SET, | 42 | NAME_NOT_SET, |
748 | 39 | SHARE_ICON_NAME, | 43 | SHARE_ICON_NAME, |
749 | 40 | SYNC_LOCALLY, | ||
750 | 41 | ) | 44 | ) |
751 | 42 | from ubuntuone.controlpanel.gui.qt import uri_hook, icon_from_name | 45 | from ubuntuone.controlpanel.gui.qt import uri_hook, icon_from_name |
752 | 43 | from ubuntuone.controlpanel.gui.qt.ubuntuonebin import UbuntuOneBin | 46 | from ubuntuone.controlpanel.gui.qt.ubuntuonebin import UbuntuOneBin |
753 | @@ -68,13 +71,18 @@ | |||
754 | 68 | """Do some extra setupping for the UI.""" | 71 | """Do some extra setupping for the UI.""" |
755 | 69 | super(FoldersPanel, self)._setup() | 72 | super(FoldersPanel, self)._setup() |
756 | 70 | self.ui.add_folder_button.folderCreated.connect(self.on_folder_created) | 73 | self.ui.add_folder_button.folderCreated.connect(self.on_folder_created) |
757 | 74 | self.ui.add_folder_button.setText(FOLDERS_BUTTON_ADD_FOLDER) | ||
758 | 71 | 75 | ||
759 | 76 | self.ui.folders.headerItem().setText(0, FOLDERS_COLUMN_NAME) | ||
760 | 77 | self.ui.folders.headerItem().setText(1, FOLDERS_COLUMN_SYNC_LOCALLY) | ||
761 | 78 | self.ui.folders.headerItem().setText(2, FOLDERS_COLUMN_EXPLORE) | ||
762 | 72 | headers = self.ui.folders.header() | 79 | headers = self.ui.folders.header() |
763 | 73 | headers.setResizeMode(FOLDER_NAME_COL, headers.Stretch) | 80 | headers.setResizeMode(FOLDER_NAME_COL, headers.Stretch) |
764 | 74 | headers.setResizeMode(SUBSCRIPTION_COL, headers.ResizeToContents) | 81 | headers.setResizeMode(SUBSCRIPTION_COL, headers.ResizeToContents) |
765 | 75 | headers.setResizeMode(EXPLORE_COL, headers.ResizeToContents) | 82 | headers.setResizeMode(EXPLORE_COL, headers.ResizeToContents) |
766 | 76 | headers.setStretchLastSection(False) | 83 | headers.setStretchLastSection(False) |
767 | 77 | 84 | ||
768 | 85 | self.ui.share_publish_button.setText(FOLDERS_MANAGE_LABEL) | ||
769 | 78 | self.ui.share_publish_button.uri = MANAGE_FILES_LINK | 86 | self.ui.share_publish_button.uri = MANAGE_FILES_LINK |
770 | 79 | icon = icon_from_name('external_icon_orange') | 87 | icon = icon_from_name('external_icon_orange') |
771 | 80 | self.ui.share_publish_button.setIcon(icon) | 88 | self.ui.share_publish_button.setIcon(icon) |
772 | @@ -118,7 +126,7 @@ | |||
773 | 118 | 126 | ||
774 | 119 | item = QtGui.QTreeWidgetItem() | 127 | item = QtGui.QTreeWidgetItem() |
775 | 120 | item.setText(FOLDER_NAME_COL, name) | 128 | item.setText(FOLDER_NAME_COL, name) |
777 | 121 | item.setText(SUBSCRIPTION_COL, SYNC_LOCALLY) | 129 | item.setText(SUBSCRIPTION_COL, FOLDERS_COLUMN_SYNC_LOCALLY) |
778 | 122 | item.setSizeHint(FOLDER_NAME_COL, QtCore.QSize(-1, 20)) | 130 | item.setSizeHint(FOLDER_NAME_COL, QtCore.QSize(-1, 20)) |
779 | 123 | brush = QtGui.QBrush(QtGui.QColor('#d6d3cf')) | 131 | brush = QtGui.QBrush(QtGui.QColor('#d6d3cf')) |
780 | 124 | for col in (FOLDER_NAME_COL, SUBSCRIPTION_COL, EXPLORE_COL): | 132 | for col in (FOLDER_NAME_COL, SUBSCRIPTION_COL, EXPLORE_COL): |
781 | @@ -141,7 +149,7 @@ | |||
782 | 141 | name = self._process_name(volume[u'display_name']) | 149 | name = self._process_name(volume[u'display_name']) |
783 | 142 | child.setText(FOLDER_NAME_COL, name) | 150 | child.setText(FOLDER_NAME_COL, name) |
784 | 143 | child.setToolTip(FOLDER_NAME_COL, name) | 151 | child.setToolTip(FOLDER_NAME_COL, name) |
786 | 144 | child.setToolTip(EXPLORE_COL, EXPLORE) | 152 | child.setToolTip(EXPLORE_COL, FOLDERS_COLUMN_EXPLORE) |
787 | 145 | 153 | ||
788 | 146 | icon_name = FOLDER_ICON_NAME | 154 | icon_name = FOLDER_ICON_NAME |
789 | 147 | if is_share: | 155 | if is_share: |
790 | @@ -170,7 +178,7 @@ | |||
791 | 170 | model_index = self.ui.folders.indexFromItem(child, EXPLORE_COL) | 178 | model_index = self.ui.folders.indexFromItem(child, EXPLORE_COL) |
792 | 171 | button = QtGui.QPushButton(parent=self.ui.folders) | 179 | button = QtGui.QPushButton(parent=self.ui.folders) |
793 | 172 | button.setFlat(True) | 180 | button.setFlat(True) |
795 | 173 | button.setText(EXPLORE) | 181 | button.setText(FOLDERS_COLUMN_EXPLORE) |
796 | 174 | button.setObjectName('explore_folder_button') | 182 | button.setObjectName('explore_folder_button') |
797 | 175 | policy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, | 183 | policy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, |
798 | 176 | QtGui.QSizePolicy.Fixed) | 184 | QtGui.QSizePolicy.Fixed) |
799 | 177 | 185 | ||
800 | === modified file 'ubuntuone/controlpanel/gui/qt/loadingoverlay.py' | |||
801 | --- ubuntuone/controlpanel/gui/qt/loadingoverlay.py 2011-09-02 17:59:39 +0000 | |||
802 | +++ ubuntuone/controlpanel/gui/qt/loadingoverlay.py 2012-02-22 17:08:18 +0000 | |||
803 | @@ -20,6 +20,7 @@ | |||
804 | 20 | 20 | ||
805 | 21 | from PyQt4 import QtGui, QtCore | 21 | from PyQt4 import QtGui, QtCore |
806 | 22 | 22 | ||
807 | 23 | from ubuntuone.controlpanel.gui import LOADING_OVERLAY | ||
808 | 23 | from ubuntuone.controlpanel.gui.qt.ui import loadingoverlay_ui | 24 | from ubuntuone.controlpanel.gui.qt.ui import loadingoverlay_ui |
809 | 24 | 25 | ||
810 | 25 | 26 | ||
811 | @@ -44,6 +45,12 @@ | |||
812 | 44 | self.counter = 0 | 45 | self.counter = 0 |
813 | 45 | self.orientation = False | 46 | self.orientation = False |
814 | 46 | 47 | ||
815 | 48 | # The following is a hack to avoid having the faked self.ui failing | ||
816 | 49 | # with AttributeError in the tests. We need to improve the fake so we | ||
817 | 50 | # don't leak this to the production code. | ||
818 | 51 | if getattr(self.ui, 'label', None) is not None: | ||
819 | 52 | self.ui.label.setText(LOADING_OVERLAY) | ||
820 | 53 | |||
821 | 47 | # Invalid name "paintEvent" | 54 | # Invalid name "paintEvent" |
822 | 48 | # pylint: disable=C0103 | 55 | # pylint: disable=C0103 |
823 | 49 | 56 | ||
824 | 50 | 57 | ||
825 | === modified file 'ubuntuone/controlpanel/gui/qt/preferences.py' | |||
826 | --- ubuntuone/controlpanel/gui/qt/preferences.py 2011-09-07 16:56:39 +0000 | |||
827 | +++ ubuntuone/controlpanel/gui/qt/preferences.py 2012-02-22 17:08:18 +0000 | |||
828 | @@ -26,7 +26,21 @@ | |||
829 | 26 | 26 | ||
830 | 27 | from ubuntuone.controlpanel import backend | 27 | from ubuntuone.controlpanel import backend |
831 | 28 | from ubuntuone.controlpanel.logger import setup_logging, log_call | 28 | from ubuntuone.controlpanel.logger import setup_logging, log_call |
833 | 29 | from ubuntuone.controlpanel.gui import KILOBYTES | 29 | from ubuntuone.controlpanel.gui import ( |
834 | 30 | KILOBYTES, | ||
835 | 31 | SETTINGS_ALLOW_NOTIFICATIONS, | ||
836 | 32 | SETTINGS_AUTO_CONNECT, | ||
837 | 33 | SETTINGS_BANDWIDTH, | ||
838 | 34 | SETTINGS_BANDWIDTH_ZERO_WARNING, | ||
839 | 35 | SETTINGS_BUTTON_APPLY, | ||
840 | 36 | SETTINGS_BUTTON_DEFAULT, | ||
841 | 37 | SETTINGS_FILE_SYNC, | ||
842 | 38 | SETTINGS_KILOBITS_PER_SECOND, | ||
843 | 39 | SETTINGS_LIMIT_DOWNLOAD, | ||
844 | 40 | SETTINGS_LIMIT_UPLOAD, | ||
845 | 41 | SETTINGS_SYNC_ALL_FOLDERS, | ||
846 | 42 | SETTINGS_SYNC_ALL_SHARES, | ||
847 | 43 | ) | ||
848 | 30 | from ubuntuone.controlpanel.gui.qt.ubuntuonebin import UbuntuOneBin | 44 | from ubuntuone.controlpanel.gui.qt.ubuntuonebin import UbuntuOneBin |
849 | 31 | from ubuntuone.controlpanel.gui.qt.ui import preferences_ui | 45 | from ubuntuone.controlpanel.gui.qt.ui import preferences_ui |
850 | 32 | 46 | ||
851 | @@ -64,6 +78,24 @@ | |||
852 | 64 | ui_class = preferences_ui | 78 | ui_class = preferences_ui |
853 | 65 | logger = logger | 79 | logger = logger |
854 | 66 | 80 | ||
855 | 81 | def _setup(self): | ||
856 | 82 | """Do some extra setupping for the UI.""" | ||
857 | 83 | super(PreferencesPanel, self)._setup() | ||
858 | 84 | self.ui.apply_changes_button.setText(SETTINGS_BUTTON_APPLY) | ||
859 | 85 | self.ui.autoconnect_checkbox.setText(SETTINGS_AUTO_CONNECT) | ||
860 | 86 | self.ui.bandwidth_settings.setTitle(SETTINGS_BANDWIDTH) | ||
861 | 87 | self.ui.file_sync_settings.setTitle(SETTINGS_FILE_SYNC) | ||
862 | 88 | self.ui.kbps_label_1.setText(SETTINGS_KILOBITS_PER_SECOND) | ||
863 | 89 | self.ui.kbps_label_2.setText(SETTINGS_KILOBITS_PER_SECOND) | ||
864 | 90 | self.ui.label_2.setText(SETTINGS_BANDWIDTH_ZERO_WARNING) | ||
865 | 91 | self.ui.limit_uploads_checkbox.setText(SETTINGS_LIMIT_UPLOAD) | ||
866 | 92 | self.ui.limit_downloads_checkbox.setText(SETTINGS_LIMIT_DOWNLOAD) | ||
867 | 93 | self.ui.restore_defaults_button.setText(SETTINGS_BUTTON_DEFAULT) | ||
868 | 94 | self.ui.share_autosubscribe_checkbox.setText(SETTINGS_SYNC_ALL_FOLDERS) | ||
869 | 95 | self.ui.show_all_notifications_checkbox.setText( | ||
870 | 96 | SETTINGS_ALLOW_NOTIFICATIONS) | ||
871 | 97 | self.ui.udf_autosubscribe_checkbox.setText(SETTINGS_SYNC_ALL_SHARES) | ||
872 | 98 | |||
873 | 67 | # pylint: disable=E0202 | 99 | # pylint: disable=E0202 |
874 | 68 | @defer.inlineCallbacks | 100 | @defer.inlineCallbacks |
875 | 69 | def load(self): | 101 | def load(self): |
876 | 70 | 102 | ||
877 | === modified file 'ubuntuone/controlpanel/gui/qt/signin.py' | |||
878 | --- ubuntuone/controlpanel/gui/qt/signin.py 2011-09-08 01:15:15 +0000 | |||
879 | +++ ubuntuone/controlpanel/gui/qt/signin.py 2012-02-22 17:08:18 +0000 | |||
880 | @@ -1,6 +1,4 @@ | |||
881 | 1 | # -*- coding: utf-8 -*- | 1 | # -*- coding: utf-8 -*- |
882 | 2 | |||
883 | 3 | # Authors: Natalia B Bidart <natalia.bidart@canonical.com> | ||
884 | 4 | # | 2 | # |
885 | 5 | # Copyright 2011 Canonical Ltd. | 3 | # Copyright 2011 Canonical Ltd. |
886 | 6 | # | 4 | # |
887 | @@ -21,7 +19,16 @@ | |||
888 | 21 | from PyQt4 import QtCore | 19 | from PyQt4 import QtCore |
889 | 22 | from twisted.internet import defer | 20 | from twisted.internet import defer |
890 | 23 | 21 | ||
892 | 24 | from ubuntuone.controlpanel.gui import RESET_PASSWORD_LINK | 22 | from ubuntuone.controlpanel.gui import ( |
893 | 23 | RESET_PASSWORD_LINK, | ||
894 | 24 | SIGNIN_BUTTON, | ||
895 | 25 | SIGNIN_CANCEL, | ||
896 | 26 | SIGNIN_DESCRIPTION, | ||
897 | 27 | SIGNIN_EMAIL, | ||
898 | 28 | SIGNIN_FORGOT_PASSWORD, | ||
899 | 29 | SIGNIN_PASSWORD, | ||
900 | 30 | SIGNIN_TITLE, | ||
901 | 31 | ) | ||
902 | 25 | from ubuntuone.controlpanel.gui.qt import icon_from_name, handle_errors | 32 | from ubuntuone.controlpanel.gui.qt import icon_from_name, handle_errors |
903 | 26 | from ubuntuone.controlpanel.gui.qt.ubuntuonebin import UbuntuOneBin | 33 | from ubuntuone.controlpanel.gui.qt.ubuntuonebin import UbuntuOneBin |
904 | 27 | from ubuntuone.controlpanel.gui.qt.ui import signin_ui | 34 | from ubuntuone.controlpanel.gui.qt.ui import signin_ui |
905 | @@ -43,11 +50,18 @@ | |||
906 | 43 | def _setup(self): | 50 | def _setup(self): |
907 | 44 | """Do some extra setupping for the UI.""" | 51 | """Do some extra setupping for the UI.""" |
908 | 45 | super(SignInPanel, self)._setup() | 52 | super(SignInPanel, self)._setup() |
909 | 53 | self.ui.cancel_button.setText(SIGNIN_CANCEL) | ||
910 | 54 | self.ui.description_label.setText(SIGNIN_DESCRIPTION) | ||
911 | 55 | self.ui.email_label.setText(SIGNIN_EMAIL) | ||
912 | 56 | self.ui.sign_in_label.setText(SIGNIN_TITLE) | ||
913 | 57 | self.ui.password_label.setText(SIGNIN_PASSWORD) | ||
914 | 46 | 58 | ||
915 | 59 | self.ui.forgot_password_button.setText(SIGNIN_FORGOT_PASSWORD) | ||
916 | 47 | self.ui.forgot_password_button.uri = RESET_PASSWORD_LINK | 60 | self.ui.forgot_password_button.uri = RESET_PASSWORD_LINK |
917 | 48 | icon = icon_from_name('external_icon_orange') | 61 | icon = icon_from_name('external_icon_orange') |
918 | 49 | self.ui.forgot_password_button.setIcon(icon) | 62 | self.ui.forgot_password_button.setIcon(icon) |
919 | 50 | 63 | ||
920 | 64 | self.ui.signin_button.setText(SIGNIN_BUTTON) | ||
921 | 51 | self.ui.signin_button.setEnabled(False) | 65 | self.ui.signin_button.setEnabled(False) |
922 | 52 | for entry in (self.ui.email_entry, self.ui.password_entry): | 66 | for entry in (self.ui.email_entry, self.ui.password_entry): |
923 | 53 | entry.textChanged.connect(self.validate) | 67 | entry.textChanged.connect(self.validate) |
924 | 54 | 68 | ||
925 | === modified file 'ubuntuone/controlpanel/gui/qt/systray.py' | |||
926 | --- ubuntuone/controlpanel/gui/qt/systray.py 2012-02-06 21:10:10 +0000 | |||
927 | +++ ubuntuone/controlpanel/gui/qt/systray.py 2012-02-22 17:08:18 +0000 | |||
928 | @@ -20,6 +20,11 @@ | |||
929 | 20 | 20 | ||
930 | 21 | from ubuntuone.platform.tools import SyncDaemonTool | 21 | from ubuntuone.platform.tools import SyncDaemonTool |
931 | 22 | 22 | ||
932 | 23 | from ubuntuone.controlpanel.gui import ( | ||
933 | 24 | RESTORE_LABEL, | ||
934 | 25 | QUIT_LABEL, | ||
935 | 26 | ) | ||
936 | 27 | |||
937 | 23 | 28 | ||
938 | 24 | class TrayIcon(QtGui.QSystemTrayIcon): | 29 | class TrayIcon(QtGui.QSystemTrayIcon): |
939 | 25 | 30 | ||
940 | @@ -32,9 +37,9 @@ | |||
941 | 32 | self.window = window | 37 | self.window = window |
942 | 33 | self.activated.connect(self.on_activated) | 38 | self.activated.connect(self.on_activated) |
943 | 34 | self.context_menu = QtGui.QMenu() | 39 | self.context_menu = QtGui.QMenu() |
945 | 35 | self.restore = QtGui.QAction("Restore", self, | 40 | self.restore = QtGui.QAction(RESTORE_LABEL, self, |
946 | 36 | triggered=self.restore_window) | 41 | triggered=self.restore_window) |
948 | 37 | self.quit = QtGui.QAction("Quit Ubuntu One", self, | 42 | self.quit = QtGui.QAction(QUIT_LABEL, self, |
949 | 38 | triggered=self.stop) | 43 | triggered=self.stop) |
950 | 39 | self.context_menu.addAction(self.restore) | 44 | self.context_menu.addAction(self.restore) |
951 | 40 | self.context_menu.addSeparator() | 45 | self.context_menu.addSeparator() |
952 | 41 | 46 | ||
953 | === modified file 'ubuntuone/controlpanel/gui/qt/tests/test_folders.py' | |||
954 | --- ubuntuone/controlpanel/gui/qt/tests/test_folders.py 2011-11-23 17:27:13 +0000 | |||
955 | +++ ubuntuone/controlpanel/gui/qt/tests/test_folders.py 2012-02-22 17:08:18 +0000 | |||
956 | @@ -86,7 +86,8 @@ | |||
957 | 86 | def assert_folder_group_header_correct(self, item, name): | 86 | def assert_folder_group_header_correct(self, item, name): |
958 | 87 | """Check that the folder group header is correct.""" | 87 | """Check that the folder group header is correct.""" |
959 | 88 | self.assertEqual(item.text(gui.FOLDER_NAME_COL), name) | 88 | self.assertEqual(item.text(gui.FOLDER_NAME_COL), name) |
961 | 89 | self.assertEqual(item.text(gui.SUBSCRIPTION_COL), gui.SYNC_LOCALLY) | 89 | self.assertEqual(item.text(gui.SUBSCRIPTION_COL), |
962 | 90 | gui.FOLDERS_COLUMN_SYNC_LOCALLY) | ||
963 | 90 | self.assertEqual(item.text(gui.EXPLORE_COL), '') | 91 | self.assertEqual(item.text(gui.EXPLORE_COL), '') |
964 | 91 | 92 | ||
965 | 92 | @defer.inlineCallbacks | 93 | @defer.inlineCallbacks |
966 | @@ -165,7 +166,8 @@ | |||
967 | 165 | 166 | ||
968 | 166 | # tooltips are correct | 167 | # tooltips are correct |
969 | 167 | self.assertEqual(item.toolTip(gui.FOLDER_NAME_COL), name) | 168 | self.assertEqual(item.toolTip(gui.FOLDER_NAME_COL), name) |
971 | 168 | self.assertEqual(item.toolTip(gui.EXPLORE_COL), gui.EXPLORE) | 169 | self.assertEqual(item.toolTip(gui.EXPLORE_COL), |
972 | 170 | gui.FOLDERS_COLUMN_EXPLORE) | ||
973 | 169 | 171 | ||
974 | 170 | # explore button is in place | 172 | # explore button is in place |
975 | 171 | model_index = folders.indexFromItem(item, gui.EXPLORE_COL) | 173 | model_index = folders.indexFromItem(item, gui.EXPLORE_COL) |
976 | 172 | 174 | ||
977 | === modified file 'ubuntuone/controlpanel/gui/qt/ui/__init__.py' | |||
978 | --- ubuntuone/controlpanel/gui/qt/ui/__init__.py 2011-07-11 11:19:09 +0000 | |||
979 | +++ ubuntuone/controlpanel/gui/qt/ui/__init__.py 2012-02-22 17:08:18 +0000 | |||
980 | @@ -1,8 +1,6 @@ | |||
981 | 1 | # -*- coding: utf-8 -*- | 1 | # -*- coding: utf-8 -*- |
982 | 2 | |||
983 | 3 | # Authors: Alejandro J. Cura <alecu@canonical.com> | ||
984 | 4 | # | 2 | # |
986 | 5 | # Copyright 2011 Canonical Ltd. | 3 | # Copyright 2011-2012 Canonical Ltd. |
987 | 6 | # | 4 | # |
988 | 7 | # This program is free software: you can redistribute it and/or modify it | 5 | # This program is free software: you can redistribute it and/or modify it |
989 | 8 | # under the terms of the GNU General Public License version 3, as published | 6 | # under the terms of the GNU General Public License version 3, as published |
Tedious work that had to be done +10000000