Merge lp:~nataliabidart/ubuntuone-control-panel/all-ui-from-code into lp:ubuntuone-control-panel

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
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).

To post a comment you must log in.
Revision history for this message
Manuel de la Peña (mandel) wrote :

Tedious work that had to be done +10000000

review: Approve
Revision history for this message
Roberto Alsina (ralsina) wrote :

+1

review: Approve
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
=== modified file 'data/qt/account.ui'
--- data/qt/account.ui 2011-09-06 13:43:25 +0000
+++ data/qt/account.ui 2012-02-22 17:08:18 +0000
@@ -11,7 +11,7 @@
11 </rect>11 </rect>
12 </property>12 </property>
13 <property name="windowTitle">13 <property name="windowTitle">
14 <string>Form</string>14 <string notr="true">Form</string>
15 </property>15 </property>
16 <layout class="QVBoxLayout" name="verticalLayout">16 <layout class="QVBoxLayout" name="verticalLayout">
17 <property name="margin">17 <property name="margin">
@@ -25,14 +25,14 @@
25 <item row="0" column="2">25 <item row="0" column="2">
26 <widget class="GoToWebButton" name="edit_profile_button">26 <widget class="GoToWebButton" name="edit_profile_button">
27 <property name="text">27 <property name="text">
28 <string>Edit personal details online</string>28 <string notr="true">Edit personal details online</string>
29 </property>29 </property>
30 </widget>30 </widget>
31 </item>31 </item>
32 <item row="2" column="0">32 <item row="2" column="0">
33 <widget class="QGroupBox" name="services">33 <widget class="QGroupBox" name="services">
34 <property name="title">34 <property name="title">
35 <string>Your services</string>35 <string notr="true">Your services</string>
36 </property>36 </property>
37 <layout class="QVBoxLayout" name="verticalLayout_3">37 <layout class="QVBoxLayout" name="verticalLayout_3">
38 <property name="leftMargin">38 <property name="leftMargin">
@@ -67,7 +67,7 @@
67 <item row="0" column="0">67 <item row="0" column="0">
68 <widget class="QGroupBox" name="profile_info">68 <widget class="QGroupBox" name="profile_info">
69 <property name="title">69 <property name="title">
70 <string>Personal details</string>70 <string notr="true">Personal details</string>
71 </property>71 </property>
72 <layout class="QVBoxLayout" name="verticalLayout_4">72 <layout class="QVBoxLayout" name="verticalLayout_4">
73 <property name="leftMargin">73 <property name="leftMargin">
@@ -109,7 +109,7 @@
109 <item row="2" column="2">109 <item row="2" column="2">
110 <widget class="GoToWebButton" name="edit_services_button">110 <widget class="GoToWebButton" name="edit_services_button">
111 <property name="text">111 <property name="text">
112 <string>Edit your services online</string>112 <string notr="true">Edit your services online</string>
113 </property>113 </property>
114 </widget>114 </widget>
115 </item>115 </item>
116116
=== modified file 'data/qt/controlpanel.ui'
--- data/qt/controlpanel.ui 2011-09-09 17:16:20 +0000
+++ data/qt/controlpanel.ui 2012-02-22 17:08:18 +0000
@@ -160,7 +160,7 @@
160 <item>160 <item>
161 <widget class="GoToWebButton" name="get_more_space_button">161 <widget class="GoToWebButton" name="get_more_space_button">
162 <property name="text">162 <property name="text">
163 <string>Get more storage</string>163 <string notr="true">Get more storage</string>
164 </property>164 </property>
165 </widget>165 </widget>
166 </item>166 </item>
@@ -235,22 +235,22 @@
235 </property>235 </property>
236 <widget class="FoldersPanel" name="folders_tab">236 <widget class="FoldersPanel" name="folders_tab">
237 <attribute name="title">237 <attribute name="title">
238 <string>Folders</string>238 <string notr="true">Folders</string>
239 </attribute>239 </attribute>
240 </widget>240 </widget>
241 <widget class="DevicesPanel" name="devices_tab">241 <widget class="DevicesPanel" name="devices_tab">
242 <attribute name="title">242 <attribute name="title">
243 <string>Devices</string>243 <string notr="true">Devices</string>
244 </attribute>244 </attribute>
245 </widget>245 </widget>
246 <widget class="PreferencesPanel" name="preferences_tab">246 <widget class="PreferencesPanel" name="preferences_tab">
247 <attribute name="title">247 <attribute name="title">
248 <string>Settings</string>248 <string notr="true">Settings</string>
249 </attribute>249 </attribute>
250 </widget>250 </widget>
251 <widget class="AccountPanel" name="account_tab">251 <widget class="AccountPanel" name="account_tab">
252 <attribute name="title">252 <attribute name="title">
253 <string>Account information</string>253 <string notr="true">Account information</string>
254 </attribute>254 </attribute>
255 </widget>255 </widget>
256 </widget>256 </widget>
@@ -287,7 +287,7 @@
287 <item>287 <item>
288 <widget class="GoToWebButton" name="help_button">288 <widget class="GoToWebButton" name="help_button">
289 <property name="text">289 <property name="text">
290 <string>Get help online</string>290 <string notr="true">Get help online</string>
291 </property>291 </property>
292 </widget>292 </widget>
293 </item>293 </item>
@@ -312,7 +312,7 @@
312 </font>312 </font>
313 </property>313 </property>
314 <property name="text">314 <property name="text">
315 <string>Talk to us</string>315 <string notr="true">Talk to us</string>
316 </property>316 </property>
317 </widget>317 </widget>
318 </item>318 </item>
319319
=== modified file 'data/qt/device.ui'
--- data/qt/device.ui 2011-08-23 16:03:31 +0000
+++ data/qt/device.ui 2012-02-22 17:08:18 +0000
@@ -24,7 +24,7 @@
24 <item>24 <item>
25 <widget class="QLabel" name="device_name_label">25 <widget class="QLabel" name="device_name_label">
26 <property name="text">26 <property name="text">
27 <string>Local device</string>27 <string notr="true">Local device</string>
28 </property>28 </property>
29 </widget>29 </widget>
30 </item>30 </item>
@@ -44,7 +44,7 @@
44 <item>44 <item>
45 <widget class="QPushButton" name="remove_device_button">45 <widget class="QPushButton" name="remove_device_button">
46 <property name="text">46 <property name="text">
47 <string>Remove</string>47 <string notr="true">Remove</string>
48 </property>48 </property>
49 <property name="secondary" stdset="0">49 <property name="secondary" stdset="0">
50 <bool>true</bool>50 <bool>true</bool>
5151
=== modified file 'data/qt/device_remote.ui'
--- data/qt/device_remote.ui 2011-11-28 15:06:18 +0000
+++ data/qt/device_remote.ui 2012-02-22 17:08:18 +0000
@@ -24,7 +24,7 @@
24 <item>24 <item>
25 <widget class="QLabel" name="device_name_label">25 <widget class="QLabel" name="device_name_label">
26 <property name="text">26 <property name="text">
27 <string>Local device</string>27 <string notr="true">Non local device</string>
28 </property>28 </property>
29 </widget>29 </widget>
30 </item>30 </item>
3131
=== modified file 'data/qt/devices.ui'
--- data/qt/devices.ui 2011-08-05 18:07:09 +0000
+++ data/qt/devices.ui 2012-02-22 17:08:18 +0000
@@ -23,7 +23,7 @@
23 <item>23 <item>
24 <widget class="QGroupBox" name="local_device">24 <widget class="QGroupBox" name="local_device">
25 <property name="title">25 <property name="title">
26 <string>This device</string>26 <string notr="true">This device</string>
27 </property>27 </property>
28 <layout class="QVBoxLayout" name="verticalLayout">28 <layout class="QVBoxLayout" name="verticalLayout">
29 <property name="margin">29 <property name="margin">
@@ -36,9 +36,9 @@
36 </widget>36 </widget>
37 </item>37 </item>
38 <item>38 <item>
39 <widget class="QGroupBox" name="oher_devices">39 <widget class="QGroupBox" name="other_devices">
40 <property name="title">40 <property name="title">
41 <string>Other devices</string>41 <string notr="true">Other devices</string>
42 </property>42 </property>
43 <layout class="QVBoxLayout" name="verticalLayout_2">43 <layout class="QVBoxLayout" name="verticalLayout_2">
44 <property name="margin">44 <property name="margin">
@@ -90,7 +90,7 @@
90 <item>90 <item>
91 <widget class="GoToWebButton" name="manage_devices_button">91 <widget class="GoToWebButton" name="manage_devices_button">
92 <property name="text">92 <property name="text">
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>
94 </property>94 </property>
95 </widget>95 </widget>
96 </item>96 </item>
9797
=== modified file 'data/qt/folders.ui'
--- data/qt/folders.ui 2011-08-23 16:03:31 +0000
+++ data/qt/folders.ui 2012-02-22 17:08:18 +0000
@@ -41,7 +41,7 @@
41 </sizepolicy>41 </sizepolicy>
42 </property>42 </property>
43 <property name="text">43 <property name="text">
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>
45 </property>45 </property>
46 </widget>46 </widget>
47 </item>47 </item>
@@ -101,17 +101,17 @@
101 </attribute>101 </attribute>
102 <column>102 <column>
103 <property name="text">103 <property name="text">
104 <string>Name</string>104 <string notr="true">Name</string>
105 </property>105 </property>
106 </column>106 </column>
107 <column>107 <column>
108 <property name="text">108 <property name="text">
109 <string>Sync Locally?</string>109 <string notr="true">Sync Locally?</string>
110 </property>110 </property>
111 </column>111 </column>
112 <column>112 <column>
113 <property name="text">113 <property name="text">
114 <string>Explore</string>114 <string notr="true">Explore</string>
115 </property>115 </property>
116 </column>116 </column>
117 </widget>117 </widget>
@@ -153,7 +153,7 @@
153 </sizepolicy>153 </sizepolicy>
154 </property>154 </property>
155 <property name="text">155 <property name="text">
156 <string>Add a folder from this computer</string>156 <string notr="true">Add a folder from this computer</string>
157 </property>157 </property>
158 </widget>158 </widget>
159 </item>159 </item>
160160
=== modified file 'data/qt/loadingoverlay.ui'
--- data/qt/loadingoverlay.ui 2011-08-05 15:19:12 +0000
+++ data/qt/loadingoverlay.ui 2012-02-22 17:08:18 +0000
@@ -10,9 +10,6 @@
10 <height>230</height>10 <height>230</height>
11 </rect>11 </rect>
12 </property>12 </property>
13 <property name="windowTitle">
14 <string>Frame</string>
15 </property>
16 <layout class="QVBoxLayout" name="verticalLayout">13 <layout class="QVBoxLayout" name="verticalLayout">
17 <property name="topMargin">14 <property name="topMargin">
18 <number>30</number>15 <number>30</number>
@@ -61,7 +58,7 @@
61 </font>58 </font>
62 </property>59 </property>
63 <property name="text">60 <property name="text">
64 <string>Getting information, please wait...</string>61 <string notr="true">Getting information, please wait...</string>
65 </property>62 </property>
66 </widget>63 </widget>
67 </item>64 </item>
6865
=== modified file 'data/qt/mainwindow.ui'
--- data/qt/mainwindow.ui 2011-08-18 22:01:02 +0000
+++ data/qt/mainwindow.ui 2012-02-22 17:08:18 +0000
@@ -23,7 +23,7 @@
23 </size>23 </size>
24 </property>24 </property>
25 <property name="windowTitle">25 <property name="windowTitle">
26 <string>Ubuntu One</string>26 <string notr="true">Ubuntu One</string>
27 </property>27 </property>
28 <property name="windowIcon">28 <property name="windowIcon">
29 <iconset resource="images.qrc">29 <iconset resource="images.qrc">
3030
=== modified file 'data/qt/preferences.ui'
--- data/qt/preferences.ui 2011-09-08 22:22:46 +0000
+++ data/qt/preferences.ui 2012-02-22 17:08:18 +0000
@@ -23,7 +23,7 @@
23 <item>23 <item>
24 <widget class="QGroupBox" name="bandwidth_settings">24 <widget class="QGroupBox" name="bandwidth_settings">
25 <property name="title">25 <property name="title">
26 <string>Bandwidth Settings</string>26 <string notr="true">Bandwidth Settings</string>
27 </property>27 </property>
28 <layout class="QGridLayout" name="gridLayout">28 <layout class="QGridLayout" name="gridLayout">
29 <property name="margin">29 <property name="margin">
@@ -32,7 +32,7 @@
32 <item row="0" column="0">32 <item row="0" column="0">
33 <widget class="QCheckBox" name="limit_uploads_checkbox">33 <widget class="QCheckBox" name="limit_uploads_checkbox">
34 <property name="text">34 <property name="text">
35 <string>Limit upload speed to</string>35 <string notr="true">Limit upload speed to</string>
36 </property>36 </property>
37 </widget>37 </widget>
38 </item>38 </item>
@@ -49,14 +49,14 @@
49 <item row="0" column="2">49 <item row="0" column="2">
50 <widget class="QLabel" name="kbps_label_1">50 <widget class="QLabel" name="kbps_label_1">
51 <property name="text">51 <property name="text">
52 <string>Kilobits per second</string>52 <string notr="true">Kilobits per second</string>
53 </property>53 </property>
54 </widget>54 </widget>
55 </item>55 </item>
56 <item row="2" column="0">56 <item row="2" column="0">
57 <widget class="QCheckBox" name="limit_downloads_checkbox">57 <widget class="QCheckBox" name="limit_downloads_checkbox">
58 <property name="text">58 <property name="text">
59 <string>Limit download speed to</string>59 <string notr="true">Limit download speed to</string>
60 </property>60 </property>
61 </widget>61 </widget>
62 </item>62 </item>
@@ -73,7 +73,7 @@
73 <item row="2" column="2">73 <item row="2" column="2">
74 <widget class="QLabel" name="kbps_label_2">74 <widget class="QLabel" name="kbps_label_2">
75 <property name="text">75 <property name="text">
76 <string>Kilobits per second</string>76 <string notr="true">Kilobits per second</string>
77 </property>77 </property>
78 </widget>78 </widget>
79 </item>79 </item>
@@ -93,7 +93,7 @@
93 <item row="4" column="0" colspan="3">93 <item row="4" column="0" colspan="3">
94 <widget class="QLabel" name="label_2">94 <widget class="QLabel" name="label_2">
95 <property name="text">95 <property name="text">
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>
97 </property>97 </property>
98 <property name="scaledContents">98 <property name="scaledContents">
99 <bool>false</bool>99 <bool>false</bool>
@@ -122,7 +122,7 @@
122 <item>122 <item>
123 <widget class="QGroupBox" name="file_sync_settings">123 <widget class="QGroupBox" name="file_sync_settings">
124 <property name="title">124 <property name="title">
125 <string>File Sync Settings</string>125 <string notr="true">File Sync Settings</string>
126 </property>126 </property>
127 <layout class="QVBoxLayout" name="verticalLayout_1">127 <layout class="QVBoxLayout" name="verticalLayout_1">
128 <property name="margin">128 <property name="margin">
@@ -131,28 +131,28 @@
131 <item>131 <item>
132 <widget class="QCheckBox" name="autoconnect_checkbox">132 <widget class="QCheckBox" name="autoconnect_checkbox">
133 <property name="text">133 <property name="text">
134 <string>Connect automatically when computer starts</string>134 <string notr="true">Connect automatically when computer starts</string>
135 </property>135 </property>
136 </widget>136 </widget>
137 </item>137 </item>
138 <item>138 <item>
139 <widget class="QCheckBox" name="udf_autosubscribe_checkbox">139 <widget class="QCheckBox" name="udf_autosubscribe_checkbox">
140 <property name="text">140 <property name="text">
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>
142 </property>142 </property>
143 </widget>143 </widget>
144 </item>144 </item>
145 <item>145 <item>
146 <widget class="QCheckBox" name="share_autosubscribe_checkbox">146 <widget class="QCheckBox" name="share_autosubscribe_checkbox">
147 <property name="text">147 <property name="text">
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>
149 </property>149 </property>
150 </widget>150 </widget>
151 </item>151 </item>
152 <item>152 <item>
153 <widget class="QCheckBox" name="show_all_notifications_checkbox">153 <widget class="QCheckBox" name="show_all_notifications_checkbox">
154 <property name="text">154 <property name="text">
155 <string>Allow all notifications to this device</string>155 <string notr="true">Allow all notifications to this device</string>
156 </property>156 </property>
157 </widget>157 </widget>
158 </item>158 </item>
@@ -193,14 +193,14 @@
193 <item>193 <item>
194 <widget class="QPushButton" name="apply_changes_button">194 <widget class="QPushButton" name="apply_changes_button">
195 <property name="text">195 <property name="text">
196 <string>Apply these settings</string>196 <string notr="true">Apply these settings</string>
197 </property>197 </property>
198 </widget>198 </widget>
199 </item>199 </item>
200 <item>200 <item>
201 <widget class="QPushButton" name="restore_defaults_button">201 <widget class="QPushButton" name="restore_defaults_button">
202 <property name="text">202 <property name="text">
203 <string>Default settings</string>203 <string notr="true">Default settings</string>
204 </property>204 </property>
205 <property name="secondary" stdset="0">205 <property name="secondary" stdset="0">
206 <bool>true</bool>206 <bool>true</bool>
207207
=== modified file 'data/qt/signin.ui'
--- data/qt/signin.ui 2011-11-14 20:42:04 +0000
+++ data/qt/signin.ui 2012-02-22 17:08:18 +0000
@@ -10,9 +10,6 @@
10 <height>312</height>10 <height>312</height>
11 </rect>11 </rect>
12 </property>12 </property>
13 <property name="windowTitle">
14 <string>Form</string>
15 </property>
16 <layout class="QHBoxLayout" name="horizontalLayout_3">13 <layout class="QHBoxLayout" name="horizontalLayout_3">
17 <property name="margin">14 <property name="margin">
18 <number>0</number>15 <number>0</number>
@@ -29,14 +26,14 @@
29 <item>26 <item>
30 <widget class="QLabel" name="sign_in_label">27 <widget class="QLabel" name="sign_in_label">
31 <property name="text">28 <property name="text">
32 <string>Sign in to Ubuntu One</string>29 <string notr="true">Sign in to Ubuntu One</string>
33 </property>30 </property>
34 </widget>31 </widget>
35 </item>32 </item>
36 <item>33 <item>
37 <widget class="QLabel" name="description_label">34 <widget class="QLabel" name="description_label">
38 <property name="text">35 <property name="text">
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>
40 </property>37 </property>
41 </widget>38 </widget>
42 </item>39 </item>
@@ -55,7 +52,7 @@
55 <item>52 <item>
56 <widget class="QLabel" name="email_label">53 <widget class="QLabel" name="email_label">
57 <property name="text">54 <property name="text">
58 <string>Email address</string>55 <string notr="true">Email address</string>
59 </property>56 </property>
60 </widget>57 </widget>
61 </item>58 </item>
@@ -76,7 +73,7 @@
76 <item>73 <item>
77 <widget class="QLabel" name="password_label">74 <widget class="QLabel" name="password_label">
78 <property name="text">75 <property name="text">
79 <string>Password</string>76 <string notr="true">Password</string>
80 </property>77 </property>
81 </widget>78 </widget>
82 </item>79 </item>
@@ -94,7 +91,7 @@
94 <item>91 <item>
95 <widget class="QPushButton" name="signin_button">92 <widget class="QPushButton" name="signin_button">
96 <property name="text">93 <property name="text">
97 <string>Sign in</string>94 <string notr="true">Sign in</string>
98 </property>95 </property>
99 <property name="default">96 <property name="default">
100 <bool>true</bool>97 <bool>true</bool>
@@ -104,7 +101,7 @@
104 <item>101 <item>
105 <widget class="QPushButton" name="cancel_button">102 <widget class="QPushButton" name="cancel_button">
106 <property name="text">103 <property name="text">
107 <string>Cancel</string>104 <string notr="true">Cancel</string>
108 </property>105 </property>
109 <property name="secondary" stdset="0">106 <property name="secondary" stdset="0">
110 <bool>true</bool>107 <bool>true</bool>
@@ -137,7 +134,7 @@
137 </sizepolicy>134 </sizepolicy>
138 </property>135 </property>
139 <property name="text">136 <property name="text">
140 <string>Forgot your password?</string>137 <string notr="true">Forgot your password?</string>
141 </property>138 </property>
142 </widget>139 </widget>
143 </item>140 </item>
144141
=== modified file 'ubuntuone/controlpanel/gui/__init__.py'
--- ubuntuone/controlpanel/gui/__init__.py 2012-02-22 12:09:28 +0000
+++ ubuntuone/controlpanel/gui/__init__.py 2012-02-22 17:08:18 +0000
@@ -74,7 +74,9 @@
74TWITTER_LINK = u'http://twitter.com/ubuntuone/'74TWITTER_LINK = u'http://twitter.com/ubuntuone/'
7575
76# Undefined variable '_', pylint: disable=E060276# Undefined variable '_', pylint: disable=E0602
77# Translatable strings
7778
79ACCOUNT_LABEL = _('Your services')
78ALWAYS_SUBSCRIBED = _('Always in sync')80ALWAYS_SUBSCRIBED = _('Always in sync')
79CONNECT_BUTTON_LABEL = _('Connect to Ubuntu One')81CONNECT_BUTTON_LABEL = _('Connect to Ubuntu One')
80CONTACTS = _('Thunderbird plug-in')82CONTACTS = _('Thunderbird plug-in')
@@ -93,9 +95,13 @@
93DEVICE_REMOVAL_ERROR = _('The device could not be removed.')95DEVICE_REMOVAL_ERROR = _('The device could not be removed.')
94DEVICES_BUTTON_TOOLTIP = _('Manage devices registered with your personal '96DEVICES_BUTTON_TOOLTIP = _('Manage devices registered with your personal '
95 'cloud')97 'cloud')
98DEVICES_LOCAL_LABEL = _('This device')
99DEVICES_MANAGE_LABEL = _('Go to the web page to manage your other devices')
100DEVICES_REMOTE_LABEL = _('Other devices')
96DEVICES_TITLE = _('The devices connected with your personal cloud are listed '101DEVICES_TITLE = _('The devices connected with your personal cloud are listed '
97 'below.')102 'below.')
98EXPLORE = _('Explore')103EDIT_ACCOUNT_LABEL = _('Edit your services online')
104EDIT_PROFILE_LABEL = _('Edit personal details online')
99FAILED_INSTALL = _('<i>%(package_name)s</i> could not be installed')105FAILED_INSTALL = _('<i>%(package_name)s</i> could not be installed')
100FOLDER_ADD_BUTTON_TEXT = _('Sync another folder with your cloud')106FOLDER_ADD_BUTTON_TEXT = _('Sync another folder with your cloud')
101FOLDER_INVALID_PATH = _('The chosen directory "%(folder_path)s" is not valid. '107FOLDER_INVALID_PATH = _('The chosen directory "%(folder_path)s" is not valid. '
@@ -105,12 +111,18 @@
105 'cloud folder.')111 'cloud folder.')
106FOLDER_OWNED_BY = _('My personal folders')112FOLDER_OWNED_BY = _('My personal folders')
107FOLDER_SHARED_BY = _('Shared by %(other_user_display_name)s')113FOLDER_SHARED_BY = _('Shared by %(other_user_display_name)s')
114FOLDERS_BUTTON_ADD_FOLDER = _('Add a folder from this computer')
115FOLDERS_BUTTON_TOOLTIP = VOLUMES_BUTTON_TOOLTIP = _('Manage your cloud '
116 'folders')
117FOLDERS_COLUMN_EXPLORE = _('Explore')
118FOLDERS_COLUMN_NAME = _('Name')
119FOLDERS_COLUMN_SYNC_LOCALLY = _('Sync Locally?')
108FOLDERS_CONFIRM_MERGE = _('The contents of your cloud folder will be merged '120FOLDERS_CONFIRM_MERGE = _('The contents of your cloud folder will be merged '
109 'with your local folder "%(folder_path)s" when '121 'with your local folder "%(folder_path)s" when '
110 'subscribing.\nDo you want to subscribe to this '122 'subscribing.\nDo you want to subscribe to this '
111 'cloud folder?')123 'cloud folder?')
112FOLDERS_BUTTON_TOOLTIP = VOLUMES_BUTTON_TOOLTIP = _('Manage your cloud '124FOLDERS_MANAGE_LABEL = _('Go to the web for public and private sharing '
113 'folders')125 'options')
114FOLDERS_TITLE = _('Select which folders from your cloud you want to sync with '126FOLDERS_TITLE = _('Select which folders from your cloud you want to sync with '
115 'this computer')127 'this computer')
116FILE_SYNC_CONNECT = _('Connect')128FILE_SYNC_CONNECT = _('Connect')
@@ -139,6 +151,8 @@
139GENERAL_ERROR_TITLE = _('Ubuntu One experienced an error')151GENERAL_ERROR_TITLE = _('Ubuntu One experienced an error')
140GENERAL_ERROR_MSG = _('Sorry, an error has occurred and Ubuntu One '152GENERAL_ERROR_MSG = _('Sorry, an error has occurred and Ubuntu One '
141 'needs to close.')153 'needs to close.')
154GET_HELP_ONLINE = _('Get help online')
155GET_MORE_STORAGE = _('Get more storage')
142GREETING = _('Hi %(user_display_name)s')156GREETING = _('Hi %(user_display_name)s')
143INSTALL_PACKAGE = _('You need to install the package <i>%(package_name)s'157INSTALL_PACKAGE = _('You need to install the package <i>%(package_name)s'
144 '</i> in order to enable more sync services.')158 '</i> in order to enable more sync services.')
@@ -146,11 +160,16 @@
146 '%(service_name)s')160 '%(service_name)s')
147INSTALLING = _('Installation of <i>%(package_name)s</i> in progress')161INSTALLING = _('Installation of <i>%(package_name)s</i> in progress')
148LOADING = _('Loading...')162LOADING = _('Loading...')
163LOADING_OVERLAY = _('Getting information, please wait...')
164MAIN_ACCOUNT_TAB = _('Account information')
165MAIN_DEVICES_TAB = _('Devices')
166MAIN_FOLDERS_TAB = _('Folders')
167MAIN_PREFERENCES_TAB = _('Settings')
149MAIN_WINDOW_TITLE = _('%(app_name)s Control Panel')168MAIN_WINDOW_TITLE = _('%(app_name)s Control Panel')
169MUSIC_DISPLAY_NAME = _('Purchased Music')
170MUSIC_REAL_PATH = '.ubuntuone/Purchased from Ubuntu One'
150MY_FOLDERS = _('My folders')171MY_FOLDERS = _('My folders')
151NAME_NOT_SET = _('[unknown user name]')172NAME_NOT_SET = _('[unknown user name]')
152MUSIC_DISPLAY_NAME = _('Purchased Music')
153MUSIC_REAL_PATH = '.ubuntuone/Purchased from Ubuntu One'
154NETWORK_OFFLINE = _('An internet connection is required to join or sign '173NETWORK_OFFLINE = _('An internet connection is required to join or sign '
155 'in to %(app_name)s.')174 'in to %(app_name)s.')
156NO_DEVICES = _('No devices to show.')175NO_DEVICES = _('No devices to show.')
@@ -158,18 +177,45 @@
158NO_PAIRING_RECORD = _('There is no Ubuntu One pairing record.')177NO_PAIRING_RECORD = _('There is no Ubuntu One pairing record.')
159PERCENTAGE_LABEL = _('%(percentage)s used')178PERCENTAGE_LABEL = _('%(percentage)s used')
160PLEASE_WAIT = _('Please wait')179PLEASE_WAIT = _('Please wait')
180PROFILE_LABEL = _('Personal details')
161QUOTA_LABEL = _('Using %(used)s of %(total)s (%(percentage).0f%%)')181QUOTA_LABEL = _('Using %(used)s of %(total)s (%(percentage).0f%%)')
162USAGE_LABEL = _('%(used)s of %(total)s')182REMOVE_BUTTON = _('Remove')
183RESTORE_LABEL = _('Restore')
163SERVICES_BUTTON_TOOLTIP = _('Manage the sync services')184SERVICES_BUTTON_TOOLTIP = _('Manage the sync services')
164SERVICES_TITLE = _('Enable the sync services for this computer.')185SERVICES_TITLE = _('Enable the sync services for this computer.')
186SETTINGS_ALLOW_NOTIFICATIONS = _('Allow all notifications to this device')
187SETTINGS_AUTO_CONNECT = _('Connect automatically when computer starts')
188SETTINGS_BANDWIDTH = _('Bandwidth Settings')
189SETTINGS_BANDWIDTH_ZERO_WARNING = _('Please note that your files will not '
190 'sync if you set bandwidth to 0')
191SETTINGS_BUTTON_APPLY = _('Apply these settings')
192SETTINGS_BUTTON_DEFAULT = _('Default settings')
165SETTINGS_CHANGE_ERROR = _('The settings could not be changed,\n'193SETTINGS_CHANGE_ERROR = _('The settings could not be changed,\n'
166 'previous values were restored.')194 'previous values were restored.')
195SETTINGS_FILE_SYNC = _('File Sync Settings')
196SETTINGS_KILOBITS_PER_SECOND = _('Kilobits per second')
197SETTINGS_LIMIT_DOWNLOAD = _('Limit download speed to')
198SETTINGS_LIMIT_UPLOAD = _('Limit upload speed to')
199SETTINGS_SYNC_ALL_FOLDERS = _('Automatically sync all new cloud folders '
200 'to this computer')
201SETTINGS_SYNC_ALL_SHARES = _('Automatically sync all folders shared with me '
202 'to this computer')
167SHARES_BUTTON_TOOLTIP = _('Manage the shares offered to others')203SHARES_BUTTON_TOOLTIP = _('Manage the shares offered to others')
168SHARES_TITLE = _('Manage permissions for shares made to other users.')204SHARES_TITLE = _('Manage permissions for shares made to other users.')
205SIGNIN_BUTTON = _('Sign in')
206SIGNIN_CANCEL = _('Cancel')
207SIGNIN_DESCRIPTION = _('Sign in with your existing Ubuntu One '
208 'username and password.')
209SIGNIN_EMAIL = _('Email address')
210SIGNIN_FORGOT_PASSWORD = _('Forgot your password?')
211SIGNIN_PASSWORD = _('Password')
212SIGNIN_TITLE = _('Sign in to Ubuntu One')
169SUCCESS_INSTALL = _('<i>%(package_name)s</i> was successfully installed')213SUCCESS_INSTALL = _('<i>%(package_name)s</i> was successfully installed')
170SYNC_LOCALLY = _('Sync locally?')214TALK_TO_US = _('Talk to us')
171VALUE_ERROR = _('Value could not be retrieved.')215VALUE_ERROR = _('Value could not be retrieved.')
172UNKNOWN_ERROR = _('Unknown error')216UNKNOWN_ERROR = _('Unknown error')
217USAGE_LABEL = _('%(used)s of %(total)s')
218QUIT_LABEL = _('Quit Ubuntu One')
173219
174# pylint: enable=E0602220# pylint: enable=E0602
175221
176222
=== modified file 'ubuntuone/controlpanel/gui/qt/account.py'
--- ubuntuone/controlpanel/gui/qt/account.py 2011-09-07 16:56:39 +0000
+++ ubuntuone/controlpanel/gui/qt/account.py 2012-02-22 17:08:18 +0000
@@ -23,8 +23,12 @@
2323
24from ubuntuone.controlpanel.logger import setup_logging, log_call24from ubuntuone.controlpanel.logger import setup_logging, log_call
25from ubuntuone.controlpanel.gui import (25from ubuntuone.controlpanel.gui import (
26 ACCOUNT_LABEL,
27 EDIT_ACCOUNT_LABEL,
26 EDIT_ACCOUNT_LINK,28 EDIT_ACCOUNT_LINK,
29 EDIT_PROFILE_LABEL,
27 EDIT_PROFILE_LINK,30 EDIT_PROFILE_LINK,
31 PROFILE_LABEL,
28)32)
29from ubuntuone.controlpanel.gui.qt.ubuntuonebin import UbuntuOneBin33from ubuntuone.controlpanel.gui.qt.ubuntuonebin import UbuntuOneBin
30from ubuntuone.controlpanel.gui.qt.ui import account_ui34from ubuntuone.controlpanel.gui.qt.ui import account_ui
@@ -42,8 +46,12 @@
42 def _setup(self):46 def _setup(self):
43 """Do some extra setupping for the UI."""47 """Do some extra setupping for the UI."""
44 super(AccountPanel, self)._setup()48 super(AccountPanel, self)._setup()
49 self.ui.services.setTitle(ACCOUNT_LABEL)
50 self.ui.edit_services_button.setText(EDIT_ACCOUNT_LABEL)
51 self.ui.edit_services_button.uri = EDIT_ACCOUNT_LINK
52 self.ui.edit_profile_button.setText(EDIT_PROFILE_LABEL)
45 self.ui.edit_profile_button.uri = EDIT_PROFILE_LINK53 self.ui.edit_profile_button.uri = EDIT_PROFILE_LINK
46 self.ui.edit_services_button.uri = EDIT_ACCOUNT_LINK54 self.ui.profile_info.setTitle(PROFILE_LABEL)
4755
48 # pylint: disable=E020256 # pylint: disable=E0202
49 @defer.inlineCallbacks57 @defer.inlineCallbacks
5058
=== modified file 'ubuntuone/controlpanel/gui/qt/controlpanel.py'
--- ubuntuone/controlpanel/gui/qt/controlpanel.py 2012-01-31 20:33:22 +0000
+++ ubuntuone/controlpanel/gui/qt/controlpanel.py 2012-02-22 17:08:18 +0000
@@ -24,13 +24,20 @@
24from ubuntuone.controlpanel.backend import AUTOCONNECT_KEY24from ubuntuone.controlpanel.backend import AUTOCONNECT_KEY
25from ubuntuone.controlpanel.logger import setup_logging, log_call25from ubuntuone.controlpanel.logger import setup_logging, log_call
26from ubuntuone.controlpanel.gui import (26from ubuntuone.controlpanel.gui import (
27 humanize,
28 show_quota_warning,
29 EDIT_SERVICES_LINK,27 EDIT_SERVICES_LINK,
30 FACEBOOK_LINK,28 FACEBOOK_LINK,
29 GET_HELP_ONLINE,
30 GET_MORE_STORAGE,
31 GET_SUPPORT_LINK,31 GET_SUPPORT_LINK,
32 GREETING,32 GREETING,
33 humanize,
34 MAIN_ACCOUNT_TAB,
35 MAIN_DEVICES_TAB,
36 MAIN_FOLDERS_TAB,
37 MAIN_PREFERENCES_TAB,
33 PERCENTAGE_LABEL,38 PERCENTAGE_LABEL,
39 show_quota_warning,
40 TALK_TO_US,
34 TWITTER_LINK,41 TWITTER_LINK,
35 USAGE_LABEL,42 USAGE_LABEL,
36)43)
@@ -53,12 +60,28 @@
5360
54 def _setup(self):61 def _setup(self):
55 """Do some extra setupping for the UI."""62 """Do some extra setupping for the UI."""
63 self.ui.get_more_space_button.setText(GET_MORE_STORAGE)
56 self.ui.get_more_space_button.uri = EDIT_SERVICES_LINK64 self.ui.get_more_space_button.uri = EDIT_SERVICES_LINK
65
66 self.ui.help_button.setText(GET_HELP_ONLINE)
57 self.ui.help_button.uri = GET_SUPPORT_LINK67 self.ui.help_button.uri = GET_SUPPORT_LINK
68
69 self.ui.follow_us_label.setText(TALK_TO_US)
70
58 self.ui.devices_tab.localDeviceRemoved.connect(71 self.ui.devices_tab.localDeviceRemoved.connect(
59 self.on_credentials_not_found)72 self.on_credentials_not_found)
60 self.ui.signin.credentialsFound.connect(lambda creds: self.load())73 self.ui.signin.credentialsFound.connect(lambda creds: self.load())
6174
75 self.ui.tab_widget.setTabText(
76 self.ui.tab_widget.indexOf(self.ui.folders_tab), MAIN_FOLDERS_TAB)
77 self.ui.tab_widget.setTabText(
78 self.ui.tab_widget.indexOf(self.ui.devices_tab), MAIN_DEVICES_TAB)
79 self.ui.tab_widget.setTabText(
80 self.ui.tab_widget.indexOf(self.ui.preferences_tab),
81 MAIN_PREFERENCES_TAB)
82 self.ui.tab_widget.setTabText(
83 self.ui.tab_widget.indexOf(self.ui.account_tab), MAIN_ACCOUNT_TAB)
84
62 @defer.inlineCallbacks85 @defer.inlineCallbacks
63 def connect_file_sync(self):86 def connect_file_sync(self):
64 """Connect file sync service if the setting autoconnect is enabled."""87 """Connect file sync service if the setting autoconnect is enabled."""
6588
=== modified file 'ubuntuone/controlpanel/gui/qt/device.py'
--- ubuntuone/controlpanel/gui/qt/device.py 2011-11-28 15:06:18 +0000
+++ ubuntuone/controlpanel/gui/qt/device.py 2012-02-22 17:08:18 +0000
@@ -26,7 +26,10 @@
26 DEVICE_TYPE_PHONE,26 DEVICE_TYPE_PHONE,
27)27)
28from ubuntuone.controlpanel import cache28from ubuntuone.controlpanel import cache
29from ubuntuone.controlpanel.gui import DEVICE_CONFIRM_REMOVE29from ubuntuone.controlpanel.gui import (
30 DEVICE_CONFIRM_REMOVE,
31 REMOVE_BUTTON,
32)
30from ubuntuone.controlpanel.gui.qt import (33from ubuntuone.controlpanel.gui.qt import (
31 handle_errors,34 handle_errors,
32 pixmap_from_name,35 pixmap_from_name,
@@ -68,6 +71,13 @@
68 super(DeviceWidget, self).__init__(*args, **kwargs)71 super(DeviceWidget, self).__init__(*args, **kwargs)
69 self.ui = device_ui.Ui_Form()72 self.ui = device_ui.Ui_Form()
70 self.ui.setupUi(self)73 self.ui.setupUi(self)
74
75 # The following is a hack to avoid having the faked self.ui failing
76 # with AttributeError in the tests. We need to improve the fake so we
77 # don't leak this to the production code.
78 if getattr(self.ui, 'remove_device_button', None) is not None:
79 self.ui.remove_device_button.setText(REMOVE_BUTTON)
80
71 self.id = device_id81 self.id = device_id
7282
73 def update_device_info(self, device_info):83 def update_device_info(self, device_info):
7484
=== modified file 'ubuntuone/controlpanel/gui/qt/devices.py'
--- ubuntuone/controlpanel/gui/qt/devices.py 2012-01-04 18:51:08 +0000
+++ ubuntuone/controlpanel/gui/qt/devices.py 2012-02-22 17:08:18 +0000
@@ -25,7 +25,12 @@
25from twisted.internet import defer25from twisted.internet import defer
2626
27from ubuntuone.controlpanel.logger import setup_logging, log_call27from ubuntuone.controlpanel.logger import setup_logging, log_call
28from ubuntuone.controlpanel.gui import EDIT_DEVICES_LINK28from ubuntuone.controlpanel.gui import (
29 DEVICES_LOCAL_LABEL,
30 DEVICES_MANAGE_LABEL,
31 DEVICES_REMOTE_LABEL,
32 EDIT_DEVICES_LINK,
33)
29from ubuntuone.controlpanel.gui.qt.ui import devices_ui34from ubuntuone.controlpanel.gui.qt.ui import devices_ui
30from ubuntuone.controlpanel.gui.qt.ubuntuonebin import UbuntuOneBin35from ubuntuone.controlpanel.gui.qt.ubuntuonebin import UbuntuOneBin
31from ubuntuone.controlpanel.gui.qt import device36from ubuntuone.controlpanel.gui.qt import device
@@ -45,6 +50,9 @@
45 def _setup(self):50 def _setup(self):
46 """Do some extra setupping for the UI."""51 """Do some extra setupping for the UI."""
47 super(DevicesPanel, self)._setup()52 super(DevicesPanel, self)._setup()
53 self.ui.local_device.setTitle(DEVICES_LOCAL_LABEL)
54 self.ui.other_devices.setTitle(DEVICES_REMOTE_LABEL)
55 self.ui.manage_devices_button.setText(DEVICES_MANAGE_LABEL)
48 self.ui.manage_devices_button.uri = EDIT_DEVICES_LINK56 self.ui.manage_devices_button.uri = EDIT_DEVICES_LINK
4957
50 # pylint: disable=E020258 # pylint: disable=E0202
5159
=== modified file 'ubuntuone/controlpanel/gui/qt/folders.py'
--- ubuntuone/controlpanel/gui/qt/folders.py 2012-02-06 21:10:10 +0000
+++ ubuntuone/controlpanel/gui/qt/folders.py 2012-02-22 17:08:18 +0000
@@ -26,18 +26,21 @@
26from ubuntuone.controlpanel.logger import setup_logging, log_call26from ubuntuone.controlpanel.logger import setup_logging, log_call
27from ubuntuone.controlpanel.gui import (27from ubuntuone.controlpanel.gui import (
28 ALWAYS_SUBSCRIBED,28 ALWAYS_SUBSCRIBED,
29 EXPLORE,
30 FOLDER_ICON_NAME,29 FOLDER_ICON_NAME,
31 FOLDER_OWNED_BY,30 FOLDER_OWNED_BY,
32 FOLDER_SHARED_BY,31 FOLDER_SHARED_BY,
32 FOLDERS_BUTTON_ADD_FOLDER,
33 FOLDERS_COLUMN_EXPLORE,
34 FOLDERS_COLUMN_NAME,
35 FOLDERS_COLUMN_SYNC_LOCALLY,
33 FOLDERS_CONFIRM_MERGE,36 FOLDERS_CONFIRM_MERGE,
37 FOLDERS_MANAGE_LABEL,
34 MANAGE_FILES_LINK,38 MANAGE_FILES_LINK,
35 MUSIC_ICON_NAME,39 MUSIC_ICON_NAME,
36 MUSIC_DISPLAY_NAME,40 MUSIC_DISPLAY_NAME,
37 MUSIC_REAL_PATH,41 MUSIC_REAL_PATH,
38 NAME_NOT_SET,42 NAME_NOT_SET,
39 SHARE_ICON_NAME,43 SHARE_ICON_NAME,
40 SYNC_LOCALLY,
41)44)
42from ubuntuone.controlpanel.gui.qt import uri_hook, icon_from_name45from ubuntuone.controlpanel.gui.qt import uri_hook, icon_from_name
43from ubuntuone.controlpanel.gui.qt.ubuntuonebin import UbuntuOneBin46from ubuntuone.controlpanel.gui.qt.ubuntuonebin import UbuntuOneBin
@@ -68,13 +71,18 @@
68 """Do some extra setupping for the UI."""71 """Do some extra setupping for the UI."""
69 super(FoldersPanel, self)._setup()72 super(FoldersPanel, self)._setup()
70 self.ui.add_folder_button.folderCreated.connect(self.on_folder_created)73 self.ui.add_folder_button.folderCreated.connect(self.on_folder_created)
74 self.ui.add_folder_button.setText(FOLDERS_BUTTON_ADD_FOLDER)
7175
76 self.ui.folders.headerItem().setText(0, FOLDERS_COLUMN_NAME)
77 self.ui.folders.headerItem().setText(1, FOLDERS_COLUMN_SYNC_LOCALLY)
78 self.ui.folders.headerItem().setText(2, FOLDERS_COLUMN_EXPLORE)
72 headers = self.ui.folders.header()79 headers = self.ui.folders.header()
73 headers.setResizeMode(FOLDER_NAME_COL, headers.Stretch)80 headers.setResizeMode(FOLDER_NAME_COL, headers.Stretch)
74 headers.setResizeMode(SUBSCRIPTION_COL, headers.ResizeToContents)81 headers.setResizeMode(SUBSCRIPTION_COL, headers.ResizeToContents)
75 headers.setResizeMode(EXPLORE_COL, headers.ResizeToContents)82 headers.setResizeMode(EXPLORE_COL, headers.ResizeToContents)
76 headers.setStretchLastSection(False)83 headers.setStretchLastSection(False)
7784
85 self.ui.share_publish_button.setText(FOLDERS_MANAGE_LABEL)
78 self.ui.share_publish_button.uri = MANAGE_FILES_LINK86 self.ui.share_publish_button.uri = MANAGE_FILES_LINK
79 icon = icon_from_name('external_icon_orange')87 icon = icon_from_name('external_icon_orange')
80 self.ui.share_publish_button.setIcon(icon)88 self.ui.share_publish_button.setIcon(icon)
@@ -118,7 +126,7 @@
118126
119 item = QtGui.QTreeWidgetItem()127 item = QtGui.QTreeWidgetItem()
120 item.setText(FOLDER_NAME_COL, name)128 item.setText(FOLDER_NAME_COL, name)
121 item.setText(SUBSCRIPTION_COL, SYNC_LOCALLY)129 item.setText(SUBSCRIPTION_COL, FOLDERS_COLUMN_SYNC_LOCALLY)
122 item.setSizeHint(FOLDER_NAME_COL, QtCore.QSize(-1, 20))130 item.setSizeHint(FOLDER_NAME_COL, QtCore.QSize(-1, 20))
123 brush = QtGui.QBrush(QtGui.QColor('#d6d3cf'))131 brush = QtGui.QBrush(QtGui.QColor('#d6d3cf'))
124 for col in (FOLDER_NAME_COL, SUBSCRIPTION_COL, EXPLORE_COL):132 for col in (FOLDER_NAME_COL, SUBSCRIPTION_COL, EXPLORE_COL):
@@ -141,7 +149,7 @@
141 name = self._process_name(volume[u'display_name'])149 name = self._process_name(volume[u'display_name'])
142 child.setText(FOLDER_NAME_COL, name)150 child.setText(FOLDER_NAME_COL, name)
143 child.setToolTip(FOLDER_NAME_COL, name)151 child.setToolTip(FOLDER_NAME_COL, name)
144 child.setToolTip(EXPLORE_COL, EXPLORE)152 child.setToolTip(EXPLORE_COL, FOLDERS_COLUMN_EXPLORE)
145153
146 icon_name = FOLDER_ICON_NAME154 icon_name = FOLDER_ICON_NAME
147 if is_share:155 if is_share:
@@ -170,7 +178,7 @@
170 model_index = self.ui.folders.indexFromItem(child, EXPLORE_COL)178 model_index = self.ui.folders.indexFromItem(child, EXPLORE_COL)
171 button = QtGui.QPushButton(parent=self.ui.folders)179 button = QtGui.QPushButton(parent=self.ui.folders)
172 button.setFlat(True)180 button.setFlat(True)
173 button.setText(EXPLORE)181 button.setText(FOLDERS_COLUMN_EXPLORE)
174 button.setObjectName('explore_folder_button')182 button.setObjectName('explore_folder_button')
175 policy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,183 policy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
176 QtGui.QSizePolicy.Fixed)184 QtGui.QSizePolicy.Fixed)
177185
=== modified file 'ubuntuone/controlpanel/gui/qt/loadingoverlay.py'
--- ubuntuone/controlpanel/gui/qt/loadingoverlay.py 2011-09-02 17:59:39 +0000
+++ ubuntuone/controlpanel/gui/qt/loadingoverlay.py 2012-02-22 17:08:18 +0000
@@ -20,6 +20,7 @@
2020
21from PyQt4 import QtGui, QtCore21from PyQt4 import QtGui, QtCore
2222
23from ubuntuone.controlpanel.gui import LOADING_OVERLAY
23from ubuntuone.controlpanel.gui.qt.ui import loadingoverlay_ui24from ubuntuone.controlpanel.gui.qt.ui import loadingoverlay_ui
2425
2526
@@ -44,6 +45,12 @@
44 self.counter = 045 self.counter = 0
45 self.orientation = False46 self.orientation = False
4647
48 # The following is a hack to avoid having the faked self.ui failing
49 # with AttributeError in the tests. We need to improve the fake so we
50 # don't leak this to the production code.
51 if getattr(self.ui, 'label', None) is not None:
52 self.ui.label.setText(LOADING_OVERLAY)
53
47 # Invalid name "paintEvent"54 # Invalid name "paintEvent"
48 # pylint: disable=C010355 # pylint: disable=C0103
4956
5057
=== modified file 'ubuntuone/controlpanel/gui/qt/preferences.py'
--- ubuntuone/controlpanel/gui/qt/preferences.py 2011-09-07 16:56:39 +0000
+++ ubuntuone/controlpanel/gui/qt/preferences.py 2012-02-22 17:08:18 +0000
@@ -26,7 +26,21 @@
2626
27from ubuntuone.controlpanel import backend27from ubuntuone.controlpanel import backend
28from ubuntuone.controlpanel.logger import setup_logging, log_call28from ubuntuone.controlpanel.logger import setup_logging, log_call
29from ubuntuone.controlpanel.gui import KILOBYTES29from ubuntuone.controlpanel.gui import (
30 KILOBYTES,
31 SETTINGS_ALLOW_NOTIFICATIONS,
32 SETTINGS_AUTO_CONNECT,
33 SETTINGS_BANDWIDTH,
34 SETTINGS_BANDWIDTH_ZERO_WARNING,
35 SETTINGS_BUTTON_APPLY,
36 SETTINGS_BUTTON_DEFAULT,
37 SETTINGS_FILE_SYNC,
38 SETTINGS_KILOBITS_PER_SECOND,
39 SETTINGS_LIMIT_DOWNLOAD,
40 SETTINGS_LIMIT_UPLOAD,
41 SETTINGS_SYNC_ALL_FOLDERS,
42 SETTINGS_SYNC_ALL_SHARES,
43)
30from ubuntuone.controlpanel.gui.qt.ubuntuonebin import UbuntuOneBin44from ubuntuone.controlpanel.gui.qt.ubuntuonebin import UbuntuOneBin
31from ubuntuone.controlpanel.gui.qt.ui import preferences_ui45from ubuntuone.controlpanel.gui.qt.ui import preferences_ui
3246
@@ -64,6 +78,24 @@
64 ui_class = preferences_ui78 ui_class = preferences_ui
65 logger = logger79 logger = logger
6680
81 def _setup(self):
82 """Do some extra setupping for the UI."""
83 super(PreferencesPanel, self)._setup()
84 self.ui.apply_changes_button.setText(SETTINGS_BUTTON_APPLY)
85 self.ui.autoconnect_checkbox.setText(SETTINGS_AUTO_CONNECT)
86 self.ui.bandwidth_settings.setTitle(SETTINGS_BANDWIDTH)
87 self.ui.file_sync_settings.setTitle(SETTINGS_FILE_SYNC)
88 self.ui.kbps_label_1.setText(SETTINGS_KILOBITS_PER_SECOND)
89 self.ui.kbps_label_2.setText(SETTINGS_KILOBITS_PER_SECOND)
90 self.ui.label_2.setText(SETTINGS_BANDWIDTH_ZERO_WARNING)
91 self.ui.limit_uploads_checkbox.setText(SETTINGS_LIMIT_UPLOAD)
92 self.ui.limit_downloads_checkbox.setText(SETTINGS_LIMIT_DOWNLOAD)
93 self.ui.restore_defaults_button.setText(SETTINGS_BUTTON_DEFAULT)
94 self.ui.share_autosubscribe_checkbox.setText(SETTINGS_SYNC_ALL_FOLDERS)
95 self.ui.show_all_notifications_checkbox.setText(
96 SETTINGS_ALLOW_NOTIFICATIONS)
97 self.ui.udf_autosubscribe_checkbox.setText(SETTINGS_SYNC_ALL_SHARES)
98
67 # pylint: disable=E020299 # pylint: disable=E0202
68 @defer.inlineCallbacks100 @defer.inlineCallbacks
69 def load(self):101 def load(self):
70102
=== modified file 'ubuntuone/controlpanel/gui/qt/signin.py'
--- ubuntuone/controlpanel/gui/qt/signin.py 2011-09-08 01:15:15 +0000
+++ ubuntuone/controlpanel/gui/qt/signin.py 2012-02-22 17:08:18 +0000
@@ -1,6 +1,4 @@
1# -*- coding: utf-8 -*-1# -*- coding: utf-8 -*-
2
3# Authors: Natalia B Bidart <natalia.bidart@canonical.com>
4#2#
5# Copyright 2011 Canonical Ltd.3# Copyright 2011 Canonical Ltd.
6#4#
@@ -21,7 +19,16 @@
21from PyQt4 import QtCore19from PyQt4 import QtCore
22from twisted.internet import defer20from twisted.internet import defer
2321
24from ubuntuone.controlpanel.gui import RESET_PASSWORD_LINK22from ubuntuone.controlpanel.gui import (
23 RESET_PASSWORD_LINK,
24 SIGNIN_BUTTON,
25 SIGNIN_CANCEL,
26 SIGNIN_DESCRIPTION,
27 SIGNIN_EMAIL,
28 SIGNIN_FORGOT_PASSWORD,
29 SIGNIN_PASSWORD,
30 SIGNIN_TITLE,
31)
25from ubuntuone.controlpanel.gui.qt import icon_from_name, handle_errors32from ubuntuone.controlpanel.gui.qt import icon_from_name, handle_errors
26from ubuntuone.controlpanel.gui.qt.ubuntuonebin import UbuntuOneBin33from ubuntuone.controlpanel.gui.qt.ubuntuonebin import UbuntuOneBin
27from ubuntuone.controlpanel.gui.qt.ui import signin_ui34from ubuntuone.controlpanel.gui.qt.ui import signin_ui
@@ -43,11 +50,18 @@
43 def _setup(self):50 def _setup(self):
44 """Do some extra setupping for the UI."""51 """Do some extra setupping for the UI."""
45 super(SignInPanel, self)._setup()52 super(SignInPanel, self)._setup()
53 self.ui.cancel_button.setText(SIGNIN_CANCEL)
54 self.ui.description_label.setText(SIGNIN_DESCRIPTION)
55 self.ui.email_label.setText(SIGNIN_EMAIL)
56 self.ui.sign_in_label.setText(SIGNIN_TITLE)
57 self.ui.password_label.setText(SIGNIN_PASSWORD)
4658
59 self.ui.forgot_password_button.setText(SIGNIN_FORGOT_PASSWORD)
47 self.ui.forgot_password_button.uri = RESET_PASSWORD_LINK60 self.ui.forgot_password_button.uri = RESET_PASSWORD_LINK
48 icon = icon_from_name('external_icon_orange')61 icon = icon_from_name('external_icon_orange')
49 self.ui.forgot_password_button.setIcon(icon)62 self.ui.forgot_password_button.setIcon(icon)
5063
64 self.ui.signin_button.setText(SIGNIN_BUTTON)
51 self.ui.signin_button.setEnabled(False)65 self.ui.signin_button.setEnabled(False)
52 for entry in (self.ui.email_entry, self.ui.password_entry):66 for entry in (self.ui.email_entry, self.ui.password_entry):
53 entry.textChanged.connect(self.validate)67 entry.textChanged.connect(self.validate)
5468
=== modified file 'ubuntuone/controlpanel/gui/qt/systray.py'
--- ubuntuone/controlpanel/gui/qt/systray.py 2012-02-06 21:10:10 +0000
+++ ubuntuone/controlpanel/gui/qt/systray.py 2012-02-22 17:08:18 +0000
@@ -20,6 +20,11 @@
2020
21from ubuntuone.platform.tools import SyncDaemonTool21from ubuntuone.platform.tools import SyncDaemonTool
2222
23from ubuntuone.controlpanel.gui import (
24 RESTORE_LABEL,
25 QUIT_LABEL,
26)
27
2328
24class TrayIcon(QtGui.QSystemTrayIcon):29class TrayIcon(QtGui.QSystemTrayIcon):
2530
@@ -32,9 +37,9 @@
32 self.window = window37 self.window = window
33 self.activated.connect(self.on_activated)38 self.activated.connect(self.on_activated)
34 self.context_menu = QtGui.QMenu()39 self.context_menu = QtGui.QMenu()
35 self.restore = QtGui.QAction("Restore", self,40 self.restore = QtGui.QAction(RESTORE_LABEL, self,
36 triggered=self.restore_window)41 triggered=self.restore_window)
37 self.quit = QtGui.QAction("Quit Ubuntu One", self,42 self.quit = QtGui.QAction(QUIT_LABEL, self,
38 triggered=self.stop)43 triggered=self.stop)
39 self.context_menu.addAction(self.restore)44 self.context_menu.addAction(self.restore)
40 self.context_menu.addSeparator()45 self.context_menu.addSeparator()
4146
=== modified file 'ubuntuone/controlpanel/gui/qt/tests/test_folders.py'
--- ubuntuone/controlpanel/gui/qt/tests/test_folders.py 2011-11-23 17:27:13 +0000
+++ ubuntuone/controlpanel/gui/qt/tests/test_folders.py 2012-02-22 17:08:18 +0000
@@ -86,7 +86,8 @@
86 def assert_folder_group_header_correct(self, item, name):86 def assert_folder_group_header_correct(self, item, name):
87 """Check that the folder group header is correct."""87 """Check that the folder group header is correct."""
88 self.assertEqual(item.text(gui.FOLDER_NAME_COL), name)88 self.assertEqual(item.text(gui.FOLDER_NAME_COL), name)
89 self.assertEqual(item.text(gui.SUBSCRIPTION_COL), gui.SYNC_LOCALLY)89 self.assertEqual(item.text(gui.SUBSCRIPTION_COL),
90 gui.FOLDERS_COLUMN_SYNC_LOCALLY)
90 self.assertEqual(item.text(gui.EXPLORE_COL), '')91 self.assertEqual(item.text(gui.EXPLORE_COL), '')
9192
92 @defer.inlineCallbacks93 @defer.inlineCallbacks
@@ -165,7 +166,8 @@
165166
166 # tooltips are correct167 # tooltips are correct
167 self.assertEqual(item.toolTip(gui.FOLDER_NAME_COL), name)168 self.assertEqual(item.toolTip(gui.FOLDER_NAME_COL), name)
168 self.assertEqual(item.toolTip(gui.EXPLORE_COL), gui.EXPLORE)169 self.assertEqual(item.toolTip(gui.EXPLORE_COL),
170 gui.FOLDERS_COLUMN_EXPLORE)
169171
170 # explore button is in place172 # explore button is in place
171 model_index = folders.indexFromItem(item, gui.EXPLORE_COL)173 model_index = folders.indexFromItem(item, gui.EXPLORE_COL)
172174
=== modified file 'ubuntuone/controlpanel/gui/qt/ui/__init__.py'
--- ubuntuone/controlpanel/gui/qt/ui/__init__.py 2011-07-11 11:19:09 +0000
+++ ubuntuone/controlpanel/gui/qt/ui/__init__.py 2012-02-22 17:08:18 +0000
@@ -1,8 +1,6 @@
1# -*- coding: utf-8 -*-1# -*- coding: utf-8 -*-
2
3# Authors: Alejandro J. Cura <alecu@canonical.com>
4#2#
5# Copyright 2011 Canonical Ltd.3# Copyright 2011-2012 Canonical Ltd.
6#4#
7# This program is free software: you can redistribute it and/or modify it5# This program is free software: you can redistribute it and/or modify it
8# under the terms of the GNU General Public License version 3, as published6# under the terms of the GNU General Public License version 3, as published

Subscribers

People subscribed via source and target branches