Merge lp:~agateau/ubiquity/layout-refresh into lp:ubiquity
- layout-refresh
- Merge into trunk
Proposed by
Aurélien Gâteau
Status: | Superseded |
---|---|
Proposed branch: | lp:~agateau/ubiquity/layout-refresh |
Merge into: | lp:ubiquity |
Diff against target: |
2024 lines (+745/-802) 11 files modified
gui/qt/app.ui (+289/-429) gui/qt/stepLanguage.ui (+91/-59) gui/qt/stepLocation.ui (+67/-29) gui/qt/stepPartMan.ui (+56/-55) gui/qt/style.qss (+51/-99) gui/qt/style_small.qss (+0/-18) ubiquity/frontend/kde_components/Breadcrumb.py (+88/-0) ubiquity/frontend/kde_components/SqueezeLabel.py (+0/-22) ubiquity/frontend/kde_components/Timezone.py (+22/-4) ubiquity/frontend/kde_components/testing/timezonemap.py (+20/-0) ubiquity/frontend/kde_ui.py (+61/-87) |
To merge this branch: | bzr merge lp:~agateau/ubiquity/layout-refresh |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jonathan Riddell | Pending | ||
Review via email: mp+150861@code.launchpad.net |
This proposal supersedes a proposal from 2013-02-22.
This proposal has been superseded by a proposal from 2013-02-27.
Commit message
Description of the change
This branch turns the Ubiquity KDE window into a regular window and rework the layout of widgets to provide more space to the main content. The labels on the left now wrap to the next line if they are too long, ensuring they are never truncated.
To post a comment you must log in.
Unmerged revisions
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'gui/qt/app.ui' | |||
2 | --- gui/qt/app.ui 2010-09-22 13:08:34 +0000 | |||
3 | +++ gui/qt/app.ui 2013-02-27 17:37:28 +0000 | |||
4 | @@ -6,8 +6,8 @@ | |||
5 | 6 | <rect> | 6 | <rect> |
6 | 7 | <x>0</x> | 7 | <x>0</x> |
7 | 8 | <y>0</y> | 8 | <y>0</y> |
10 | 9 | <width>809</width> | 9 | <width>505</width> |
11 | 10 | <height>638</height> | 10 | <height>534</height> |
12 | 11 | </rect> | 11 | </rect> |
13 | 12 | </property> | 12 | </property> |
14 | 13 | <property name="windowTitle"> | 13 | <property name="windowTitle"> |
15 | @@ -15,462 +15,322 @@ | |||
16 | 15 | </property> | 15 | </property> |
17 | 16 | <widget class="QWidget" name="centralwidget"> | 16 | <widget class="QWidget" name="centralwidget"> |
18 | 17 | <layout class="QGridLayout" name="gridLayout"> | 17 | <layout class="QGridLayout" name="gridLayout"> |
49 | 18 | <item row="0" column="1"> | 18 | <property name="margin"> |
50 | 19 | <spacer name="verticalSpacer"> | 19 | <number>0</number> |
51 | 20 | <property name="orientation"> | 20 | </property> |
52 | 21 | <enum>Qt::Vertical</enum> | 21 | <property name="spacing"> |
53 | 22 | </property> | 22 | <number>0</number> |
54 | 23 | <property name="sizeHint" stdset="0"> | 23 | </property> |
55 | 24 | <size> | 24 | <item row="1" column="2"> |
56 | 25 | <width>20</width> | 25 | <widget class="QStackedWidget" name="pageMode"> |
57 | 26 | <height>42</height> | 26 | <property name="sizePolicy"> |
58 | 27 | </size> | 27 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> |
59 | 28 | </property> | 28 | <horstretch>0</horstretch> |
60 | 29 | </spacer> | 29 | <verstretch>0</verstretch> |
61 | 30 | </item> | 30 | </sizepolicy> |
62 | 31 | <item row="1" column="0"> | 31 | </property> |
63 | 32 | <spacer name="horizontalSpacer"> | 32 | <property name="currentIndex"> |
64 | 33 | <property name="orientation"> | 33 | <number>0</number> |
65 | 34 | <enum>Qt::Horizontal</enum> | 34 | </property> |
66 | 35 | </property> | 35 | <widget class="QWidget" name="page_7"> |
67 | 36 | <property name="sizeHint" stdset="0"> | 36 | <layout class="QVBoxLayout" name="verticalLayout_2"> |
68 | 37 | <size> | 37 | <property name="margin"> |
69 | 38 | <width>98</width> | 38 | <number>0</number> |
70 | 39 | <height>20</height> | 39 | </property> |
71 | 40 | </size> | 40 | <item> |
72 | 41 | </property> | 41 | <widget class="QWidget" name="content_widget" native="true"> |
73 | 42 | </spacer> | 42 | <property name="sizePolicy"> |
74 | 43 | </item> | 43 | <sizepolicy hsizetype="Expanding" vsizetype="Preferred"> |
75 | 44 | <item row="1" column="1"> | 44 | <horstretch>0</horstretch> |
76 | 45 | <widget class="QFrame" name="main_frame"> | 45 | <verstretch>0</verstretch> |
77 | 46 | <property name="sizePolicy"> | 46 | </sizepolicy> |
78 | 47 | <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> | 47 | </property> |
79 | 48 | <layout class="QVBoxLayout" name="verticalLayout"> | ||
80 | 49 | <property name="margin"> | ||
81 | 50 | <number>0</number> | ||
82 | 51 | </property> | ||
83 | 52 | <item> | ||
84 | 53 | <widget class="QWidget" name="widgetStack" native="true"> | ||
85 | 54 | <property name="sizePolicy"> | ||
86 | 55 | <sizepolicy hsizetype="Preferred" vsizetype="Expanding"> | ||
87 | 56 | <horstretch>0</horstretch> | ||
88 | 57 | <verstretch>0</verstretch> | ||
89 | 58 | </sizepolicy> | ||
90 | 59 | </property> | ||
91 | 60 | </widget> | ||
92 | 61 | </item> | ||
93 | 62 | </layout> | ||
94 | 63 | </widget> | ||
95 | 64 | </item> | ||
96 | 65 | </layout> | ||
97 | 66 | </widget> | ||
98 | 67 | <widget class="QWidget" name="page_8"> | ||
99 | 68 | <layout class="QVBoxLayout" name="verticalLayout_8"> | ||
100 | 69 | <item> | ||
101 | 70 | <widget class="QWidget" name="content_widget_2" native="true"> | ||
102 | 71 | <property name="sizePolicy"> | ||
103 | 72 | <sizepolicy hsizetype="Expanding" vsizetype="Preferred"> | ||
104 | 73 | <horstretch>0</horstretch> | ||
105 | 74 | <verstretch>0</verstretch> | ||
106 | 75 | </sizepolicy> | ||
107 | 76 | </property> | ||
108 | 77 | <layout class="QVBoxLayout" name="verticalLayout_7"> | ||
109 | 78 | <property name="leftMargin"> | ||
110 | 79 | <number>0</number> | ||
111 | 80 | </property> | ||
112 | 81 | </layout> | ||
113 | 82 | </widget> | ||
114 | 83 | </item> | ||
115 | 84 | </layout> | ||
116 | 85 | </widget> | ||
117 | 86 | </widget> | ||
118 | 87 | </item> | ||
119 | 88 | <item row="0" column="0" rowspan="3"> | ||
120 | 89 | <widget class="QWidget" name="sidebar_widget" native="true"> | ||
121 | 90 | <property name="sizePolicy"> | ||
122 | 91 | <sizepolicy hsizetype="Fixed" vsizetype="Preferred"> | ||
123 | 48 | <horstretch>0</horstretch> | 92 | <horstretch>0</horstretch> |
124 | 49 | <verstretch>0</verstretch> | 93 | <verstretch>0</verstretch> |
125 | 50 | </sizepolicy> | 94 | </sizepolicy> |
126 | 51 | </property> | 95 | </property> |
127 | 52 | <property name="minimumSize"> | 96 | <property name="minimumSize"> |
128 | 53 | <size> | 97 | <size> |
131 | 54 | <width>750</width> | 98 | <width>150</width> |
132 | 55 | <height>550</height> | 99 | <height>0</height> |
133 | 56 | </size> | 100 | </size> |
134 | 57 | </property> | 101 | </property> |
135 | 58 | <property name="maximumSize"> | 102 | <property name="maximumSize"> |
136 | 59 | <size> | 103 | <size> |
139 | 60 | <width>750</width> | 104 | <width>150</width> |
140 | 61 | <height>550</height> | 105 | <height>16777215</height> |
141 | 62 | </size> | 106 | </size> |
142 | 63 | </property> | 107 | </property> |
154 | 64 | <property name="frameShape"> | 108 | <layout class="QVBoxLayout" name="verticalLayout_3"> |
155 | 65 | <enum>QFrame::StyledPanel</enum> | 109 | <property name="spacing"> |
156 | 66 | </property> | 110 | <number>0</number> |
157 | 67 | <property name="frameShadow"> | 111 | </property> |
158 | 68 | <enum>QFrame::Raised</enum> | 112 | <property name="margin"> |
159 | 69 | </property> | 113 | <number>0</number> |
160 | 70 | <layout class="QHBoxLayout" name="horizontalLayout_3"> | 114 | </property> |
161 | 71 | <item> | 115 | <item> |
162 | 72 | <widget class="QWidget" name="main_widget" native="true"> | 116 | <widget class="QFrame" name="sidebar_header_frame"> |
163 | 73 | <layout class="QGridLayout" name="gridLayout_4"> | 117 | <property name="sizePolicy"> |
164 | 74 | <property name="horizontalSpacing"> | 118 | <sizepolicy hsizetype="Preferred" vsizetype="Minimum"> |
165 | 119 | <horstretch>0</horstretch> | ||
166 | 120 | <verstretch>0</verstretch> | ||
167 | 121 | </sizepolicy> | ||
168 | 122 | </property> | ||
169 | 123 | <layout class="QVBoxLayout" name="verticalLayout_4"> | ||
170 | 124 | <item> | ||
171 | 125 | <widget class="QLabel" name="distro_name_label"> | ||
172 | 126 | <property name="text"> | ||
173 | 127 | <string>Kubuntu</string> | ||
174 | 128 | </property> | ||
175 | 129 | <property name="scaledContents"> | ||
176 | 130 | <bool>false</bool> | ||
177 | 131 | </property> | ||
178 | 132 | <property name="alignment"> | ||
179 | 133 | <set>Qt::AlignHCenter|Qt::AlignTop</set> | ||
180 | 134 | </property> | ||
181 | 135 | </widget> | ||
182 | 136 | </item> | ||
183 | 137 | <item> | ||
184 | 138 | <widget class="QLabel" name="distro_release_label"> | ||
185 | 139 | <property name="text"> | ||
186 | 140 | <string>karmic</string> | ||
187 | 141 | </property> | ||
188 | 142 | <property name="alignment"> | ||
189 | 143 | <set>Qt::AlignHCenter|Qt::AlignTop</set> | ||
190 | 144 | </property> | ||
191 | 145 | </widget> | ||
192 | 146 | </item> | ||
193 | 147 | <item> | ||
194 | 148 | <widget class="QLabel" name="install_process_label"> | ||
195 | 149 | <property name="text"> | ||
196 | 150 | <string>Installation Process</string> | ||
197 | 151 | </property> | ||
198 | 152 | <property name="alignment"> | ||
199 | 153 | <set>Qt::AlignHCenter|Qt::AlignTop</set> | ||
200 | 154 | </property> | ||
201 | 155 | </widget> | ||
202 | 156 | </item> | ||
203 | 157 | </layout> | ||
204 | 158 | </widget> | ||
205 | 159 | </item> | ||
206 | 160 | <item> | ||
207 | 161 | <widget class="QWidget" name="steps_widget" native="true"> | ||
208 | 162 | <property name="sizePolicy"> | ||
209 | 163 | <sizepolicy hsizetype="Minimum" vsizetype="Preferred"> | ||
210 | 164 | <horstretch>0</horstretch> | ||
211 | 165 | <verstretch>0</verstretch> | ||
212 | 166 | </sizepolicy> | ||
213 | 167 | </property> | ||
214 | 168 | <layout class="QVBoxLayout" name="verticalLayout_5"> | ||
215 | 169 | <property name="spacing"> | ||
216 | 75 | <number>0</number> | 170 | <number>0</number> |
217 | 76 | </property> | 171 | </property> |
218 | 77 | <property name="margin"> | 172 | <property name="margin"> |
219 | 78 | <number>0</number> | 173 | <number>0</number> |
220 | 79 | </property> | 174 | </property> |
405 | 80 | <item row="0" column="0" colspan="2"> | 175 | <item> |
406 | 81 | <widget class="QWidget" name="widget_4" native="true"> | 176 | <widget class="QWidget" name="steps_filler_widget" native="true"> |
223 | 82 | <layout class="QGridLayout" name="gridLayout_5"> | ||
224 | 83 | <property name="leftMargin"> | ||
225 | 84 | <number>1</number> | ||
226 | 85 | </property> | ||
227 | 86 | <property name="topMargin"> | ||
228 | 87 | <number>0</number> | ||
229 | 88 | </property> | ||
230 | 89 | <property name="rightMargin"> | ||
231 | 90 | <number>0</number> | ||
232 | 91 | </property> | ||
233 | 92 | <property name="bottomMargin"> | ||
234 | 93 | <number>0</number> | ||
235 | 94 | </property> | ||
236 | 95 | <property name="horizontalSpacing"> | ||
237 | 96 | <number>3</number> | ||
238 | 97 | </property> | ||
239 | 98 | <item row="0" column="0"> | ||
240 | 99 | <widget class="QWidget" name="title_widget" native="true"> | ||
241 | 100 | <layout class="QHBoxLayout" name="horizontalLayout_4"> | ||
242 | 101 | <property name="topMargin"> | ||
243 | 102 | <number>0</number> | ||
244 | 103 | </property> | ||
245 | 104 | <property name="bottomMargin"> | ||
246 | 105 | <number>0</number> | ||
247 | 106 | </property> | ||
248 | 107 | <item> | ||
249 | 108 | <widget class="QLabel" name="distro_name_label"> | ||
250 | 109 | <property name="text"> | ||
251 | 110 | <string>Kubuntu</string> | ||
252 | 111 | </property> | ||
253 | 112 | <property name="scaledContents"> | ||
254 | 113 | <bool>false</bool> | ||
255 | 114 | </property> | ||
256 | 115 | <property name="alignment"> | ||
257 | 116 | <set>Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft</set> | ||
258 | 117 | </property> | ||
259 | 118 | <property name="indent"> | ||
260 | 119 | <number>0</number> | ||
261 | 120 | </property> | ||
262 | 121 | </widget> | ||
263 | 122 | </item> | ||
264 | 123 | <item> | ||
265 | 124 | <widget class="QLabel" name="distro_release_label"> | ||
266 | 125 | <property name="text"> | ||
267 | 126 | <string>karmic</string> | ||
268 | 127 | </property> | ||
269 | 128 | <property name="alignment"> | ||
270 | 129 | <set>Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft</set> | ||
271 | 130 | </property> | ||
272 | 131 | <property name="indent"> | ||
273 | 132 | <number>0</number> | ||
274 | 133 | </property> | ||
275 | 134 | </widget> | ||
276 | 135 | </item> | ||
277 | 136 | <item> | ||
278 | 137 | <spacer name="horizontalSpacer_13"> | ||
279 | 138 | <property name="orientation"> | ||
280 | 139 | <enum>Qt::Horizontal</enum> | ||
281 | 140 | </property> | ||
282 | 141 | <property name="sizeHint" stdset="0"> | ||
283 | 142 | <size> | ||
284 | 143 | <width>0</width> | ||
285 | 144 | <height>0</height> | ||
286 | 145 | </size> | ||
287 | 146 | </property> | ||
288 | 147 | </spacer> | ||
289 | 148 | </item> | ||
290 | 149 | <item> | ||
291 | 150 | <widget class="QPushButton" name="minimize_button"> | ||
292 | 151 | <property name="minimumSize"> | ||
293 | 152 | <size> | ||
294 | 153 | <width>14</width> | ||
295 | 154 | <height>14</height> | ||
296 | 155 | </size> | ||
297 | 156 | </property> | ||
298 | 157 | <property name="maximumSize"> | ||
299 | 158 | <size> | ||
300 | 159 | <width>14</width> | ||
301 | 160 | <height>14</height> | ||
302 | 161 | </size> | ||
303 | 162 | </property> | ||
304 | 163 | <property name="cursor"> | ||
305 | 164 | <cursorShape>PointingHandCursor</cursorShape> | ||
306 | 165 | </property> | ||
307 | 166 | <property name="toolTip"> | ||
308 | 167 | <string>minimize</string> | ||
309 | 168 | </property> | ||
310 | 169 | <property name="text"> | ||
311 | 170 | <string/> | ||
312 | 171 | </property> | ||
313 | 172 | <property name="flat"> | ||
314 | 173 | <bool>true</bool> | ||
315 | 174 | </property> | ||
316 | 175 | </widget> | ||
317 | 176 | </item> | ||
318 | 177 | </layout> | ||
319 | 178 | </widget> | ||
320 | 179 | </item> | ||
321 | 180 | <item row="1" column="0"> | ||
322 | 181 | <widget class="QWidget" name="progress_widget" native="true"> | ||
323 | 182 | <layout class="QHBoxLayout" name="horizontalLayout_5"> | ||
324 | 183 | <property name="topMargin"> | ||
325 | 184 | <number>0</number> | ||
326 | 185 | </property> | ||
327 | 186 | <property name="bottomMargin"> | ||
328 | 187 | <number>0</number> | ||
329 | 188 | </property> | ||
330 | 189 | <item> | ||
331 | 190 | <widget class="QLabel" name="install_process_label"> | ||
332 | 191 | <property name="minimumSize"> | ||
333 | 192 | <size> | ||
334 | 193 | <width>0</width> | ||
335 | 194 | <height>20</height> | ||
336 | 195 | </size> | ||
337 | 196 | </property> | ||
338 | 197 | <property name="text"> | ||
339 | 198 | <string>Installation Process</string> | ||
340 | 199 | </property> | ||
341 | 200 | <property name="alignment"> | ||
342 | 201 | <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set> | ||
343 | 202 | </property> | ||
344 | 203 | <property name="indent"> | ||
345 | 204 | <number>0</number> | ||
346 | 205 | </property> | ||
347 | 206 | </widget> | ||
348 | 207 | </item> | ||
349 | 208 | <item> | ||
350 | 209 | <spacer name="horizontalSpacer_3"> | ||
351 | 210 | <property name="orientation"> | ||
352 | 211 | <enum>Qt::Horizontal</enum> | ||
353 | 212 | </property> | ||
354 | 213 | <property name="sizeType"> | ||
355 | 214 | <enum>QSizePolicy::Maximum</enum> | ||
356 | 215 | </property> | ||
357 | 216 | <property name="sizeHint" stdset="0"> | ||
358 | 217 | <size> | ||
359 | 218 | <width>20</width> | ||
360 | 219 | <height>16</height> | ||
361 | 220 | </size> | ||
362 | 221 | </property> | ||
363 | 222 | </spacer> | ||
364 | 223 | </item> | ||
365 | 224 | <item> | ||
366 | 225 | <widget class="QProgressBar" name="progressBar"> | ||
367 | 226 | <property name="maximumSize"> | ||
368 | 227 | <size> | ||
369 | 228 | <width>16777215</width> | ||
370 | 229 | <height>16</height> | ||
371 | 230 | </size> | ||
372 | 231 | </property> | ||
373 | 232 | <property name="value"> | ||
374 | 233 | <number>24</number> | ||
375 | 234 | </property> | ||
376 | 235 | </widget> | ||
377 | 236 | </item> | ||
378 | 237 | <item> | ||
379 | 238 | <widget class="QPushButton" name="progressCancel"> | ||
380 | 239 | <property name="sizePolicy"> | ||
381 | 240 | <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> | ||
382 | 241 | <horstretch>0</horstretch> | ||
383 | 242 | <verstretch>0</verstretch> | ||
384 | 243 | </sizepolicy> | ||
385 | 244 | </property> | ||
386 | 245 | <property name="maximumSize"> | ||
387 | 246 | <size> | ||
388 | 247 | <width>16777215</width> | ||
389 | 248 | <height>20</height> | ||
390 | 249 | </size> | ||
391 | 250 | </property> | ||
392 | 251 | <property name="text"> | ||
393 | 252 | <string>X</string> | ||
394 | 253 | </property> | ||
395 | 254 | </widget> | ||
396 | 255 | </item> | ||
397 | 256 | </layout> | ||
398 | 257 | </widget> | ||
399 | 258 | </item> | ||
400 | 259 | </layout> | ||
401 | 260 | </widget> | ||
402 | 261 | </item> | ||
403 | 262 | <item row="1" column="0"> | ||
404 | 263 | <widget class="QWidget" name="steps_widget" native="true"> | ||
407 | 264 | <property name="sizePolicy"> | 177 | <property name="sizePolicy"> |
409 | 265 | <sizepolicy hsizetype="Minimum" vsizetype="Preferred"> | 178 | <sizepolicy hsizetype="Preferred" vsizetype="Expanding"> |
410 | 266 | <horstretch>0</horstretch> | 179 | <horstretch>0</horstretch> |
411 | 267 | <verstretch>0</verstretch> | 180 | <verstretch>0</verstretch> |
412 | 268 | </sizepolicy> | 181 | </sizepolicy> |
413 | 269 | </property> | 182 | </property> |
415 | 270 | <property name="maximumSize"> | 183 | </widget> |
416 | 184 | </item> | ||
417 | 185 | </layout> | ||
418 | 186 | </widget> | ||
419 | 187 | </item> | ||
420 | 188 | <item> | ||
421 | 189 | <widget class="QFrame" name="sidebar_footer_frame"> | ||
422 | 190 | <property name="sizePolicy"> | ||
423 | 191 | <sizepolicy hsizetype="Preferred" vsizetype="Minimum"> | ||
424 | 192 | <horstretch>0</horstretch> | ||
425 | 193 | <verstretch>0</verstretch> | ||
426 | 194 | </sizepolicy> | ||
427 | 195 | </property> | ||
428 | 196 | <layout class="QHBoxLayout" name="horizontalLayout_7"> | ||
429 | 197 | <property name="margin"> | ||
430 | 198 | <number>0</number> | ||
431 | 199 | </property> | ||
432 | 200 | <item> | ||
433 | 201 | <widget class="QPushButton" name="quit"> | ||
434 | 202 | <property name="text"> | ||
435 | 203 | <string>Quit</string> | ||
436 | 204 | </property> | ||
437 | 205 | <property name="autoDefault"> | ||
438 | 206 | <bool>true</bool> | ||
439 | 207 | </property> | ||
440 | 208 | </widget> | ||
441 | 209 | </item> | ||
442 | 210 | <item> | ||
443 | 211 | <spacer name="horizontalSpacer"> | ||
444 | 212 | <property name="orientation"> | ||
445 | 213 | <enum>Qt::Horizontal</enum> | ||
446 | 214 | </property> | ||
447 | 215 | <property name="sizeHint" stdset="0"> | ||
448 | 271 | <size> | 216 | <size> |
451 | 272 | <width>150</width> | 217 | <width>40</width> |
452 | 273 | <height>16777215</height> | 218 | <height>20</height> |
453 | 274 | </size> | 219 | </size> |
454 | 275 | </property> | 220 | </property> |
642 | 276 | <layout class="QVBoxLayout" name="verticalLayout_5"> | 221 | </spacer> |
643 | 277 | <property name="rightMargin"> | 222 | </item> |
644 | 278 | <number>0</number> | 223 | </layout> |
645 | 279 | </property> | 224 | </widget> |
646 | 280 | <item> | 225 | </item> |
647 | 281 | <widget class="SqueezeLabel" name="breadcrumb_install"> | 226 | </layout> |
648 | 282 | <property name="text"> | 227 | </widget> |
649 | 283 | <string>Install</string> | 228 | </item> |
650 | 284 | </property> | 229 | <item row="2" column="1" colspan="2"> |
651 | 285 | </widget> | 230 | <widget class="QFrame" name="footer_frame"> |
652 | 286 | </item> | 231 | <property name="sizePolicy"> |
653 | 287 | <item> | 232 | <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> |
654 | 288 | <spacer name="verticalSpacer_3"> | 233 | <horstretch>0</horstretch> |
655 | 289 | <property name="orientation"> | 234 | <verstretch>0</verstretch> |
656 | 290 | <enum>Qt::Vertical</enum> | 235 | </sizepolicy> |
657 | 291 | </property> | 236 | </property> |
658 | 292 | <property name="sizeHint" stdset="0"> | 237 | <layout class="QHBoxLayout" name="horizontalLayout"> |
659 | 293 | <size> | 238 | <property name="margin"> |
660 | 294 | <width>20</width> | 239 | <number>0</number> |
661 | 295 | <height>40</height> | 240 | </property> |
662 | 296 | </size> | 241 | <item> |
663 | 297 | </property> | 242 | <widget class="QStackedWidget" name="progress_stack"> |
664 | 298 | </spacer> | 243 | <property name="sizePolicy"> |
665 | 299 | </item> | 244 | <sizepolicy hsizetype="Preferred" vsizetype="Minimum"> |
666 | 300 | </layout> | 245 | <horstretch>0</horstretch> |
667 | 301 | </widget> | 246 | <verstretch>0</verstretch> |
668 | 302 | </item> | 247 | </sizepolicy> |
669 | 303 | <item row="1" column="1"> | 248 | </property> |
670 | 304 | <widget class="QStackedWidget" name="pageMode"> | 249 | <widget class="QWidget" name="progress_widget"> |
671 | 305 | <property name="currentIndex"> | 250 | <layout class="QHBoxLayout" name="horizontalLayout_5"> |
672 | 306 | <number>0</number> | 251 | <property name="margin"> |
673 | 307 | </property> | 252 | <number>0</number> |
674 | 308 | <widget class="QWidget" name="page_7"> | 253 | </property> |
675 | 309 | <layout class="QVBoxLayout" name="verticalLayout_2"> | 254 | <item> |
676 | 310 | <property name="margin"> | 255 | <widget class="QProgressBar" name="progressBar"> |
677 | 311 | <number>0</number> | 256 | <property name="value"> |
678 | 312 | </property> | 257 | <number>24</number> |
679 | 313 | <item> | 258 | </property> |
680 | 314 | <widget class="QWidget" name="content_widget" native="true"> | 259 | </widget> |
681 | 315 | <property name="sizePolicy"> | 260 | </item> |
682 | 316 | <sizepolicy hsizetype="Expanding" vsizetype="Preferred"> | 261 | <item> |
683 | 317 | <horstretch>0</horstretch> | 262 | <widget class="QPushButton" name="progressCancel"> |
684 | 318 | <verstretch>0</verstretch> | 263 | <property name="text"> |
685 | 319 | </sizepolicy> | 264 | <string/> |
686 | 320 | </property> | 265 | </property> |
687 | 321 | <layout class="QVBoxLayout" name="verticalLayout"> | 266 | <property name="icon"> |
688 | 322 | <property name="margin"> | 267 | <iconset theme="dialog-close"> |
689 | 323 | <number>0</number> | 268 | <normaloff/> |
690 | 324 | </property> | 269 | </iconset> |
691 | 325 | <item> | 270 | </property> |
692 | 326 | <widget class="QWidget" name="widgetStack" native="true"> | 271 | </widget> |
693 | 327 | <property name="sizePolicy"> | 272 | </item> |
694 | 328 | <sizepolicy hsizetype="Preferred" vsizetype="Expanding"> | 273 | </layout> |
695 | 329 | <horstretch>0</horstretch> | 274 | </widget> |
696 | 330 | <verstretch>0</verstretch> | 275 | <widget class="QWidget" name="progress_placeholder"> |
697 | 331 | </sizepolicy> | 276 | <layout class="QHBoxLayout" name="horizontalLayout_6"> |
698 | 332 | </property> | 277 | <item> |
699 | 333 | </widget> | 278 | <spacer name="horizontalSpacer_5"> |
700 | 334 | </item> | 279 | <property name="orientation"> |
701 | 335 | <item> | 280 | <enum>Qt::Horizontal</enum> |
702 | 336 | <widget class="QWidget" name="navigation" native="true"> | 281 | </property> |
703 | 337 | <layout class="QHBoxLayout" name="horizontalLayout_2"> | 282 | <property name="sizeHint" stdset="0"> |
704 | 338 | <property name="topMargin"> | 283 | <size> |
705 | 339 | <number>0</number> | 284 | <width>12</width> |
706 | 340 | </property> | 285 | <height>20</height> |
707 | 341 | <property name="bottomMargin"> | 286 | </size> |
708 | 342 | <number>0</number> | 287 | </property> |
709 | 343 | </property> | 288 | </spacer> |
710 | 344 | <item> | 289 | </item> |
711 | 345 | <spacer name="horizontalSpacer_5"> | 290 | </layout> |
712 | 346 | <property name="orientation"> | 291 | </widget> |
713 | 347 | <enum>Qt::Horizontal</enum> | 292 | </widget> |
714 | 348 | </property> | 293 | </item> |
715 | 349 | <property name="sizeHint" stdset="0"> | 294 | <item> |
716 | 350 | <size> | 295 | <widget class="QWidget" name="navigation" native="true"> |
717 | 351 | <width>40</width> | 296 | <layout class="QHBoxLayout" name="horizontalLayout_2"> |
718 | 352 | <height>20</height> | 297 | <property name="margin"> |
719 | 353 | </size> | 298 | <number>0</number> |
720 | 354 | </property> | 299 | </property> |
721 | 355 | </spacer> | 300 | <item> |
722 | 356 | </item> | 301 | <widget class="QPushButton" name="back"> |
723 | 357 | <item> | 302 | <property name="text"> |
724 | 358 | <widget class="QPushButton" name="quit"> | 303 | <string>Back</string> |
725 | 359 | <property name="text"> | 304 | </property> |
726 | 360 | <string>Quit</string> | 305 | <property name="autoDefault"> |
727 | 361 | </property> | 306 | <bool>true</bool> |
728 | 362 | <property name="autoDefault"> | 307 | </property> |
729 | 363 | <bool>true</bool> | 308 | </widget> |
730 | 364 | </property> | 309 | </item> |
731 | 365 | </widget> | 310 | <item> |
732 | 366 | </item> | 311 | <widget class="QPushButton" name="next"> |
733 | 367 | <item> | 312 | <property name="text"> |
734 | 368 | <spacer name="horizontalSpacer_6"> | 313 | <string>Next</string> |
735 | 369 | <property name="orientation"> | 314 | </property> |
736 | 370 | <enum>Qt::Horizontal</enum> | 315 | <property name="autoDefault"> |
737 | 371 | </property> | 316 | <bool>true</bool> |
738 | 372 | <property name="sizeType"> | 317 | </property> |
739 | 373 | <enum>QSizePolicy::Fixed</enum> | 318 | </widget> |
740 | 374 | </property> | 319 | </item> |
741 | 375 | <property name="sizeHint" stdset="0"> | 320 | </layout> |
742 | 376 | <size> | 321 | </widget> |
743 | 377 | <width>20</width> | 322 | </item> |
744 | 378 | <height>20</height> | 323 | </layout> |
745 | 379 | </size> | 324 | </widget> |
559 | 380 | </property> | ||
560 | 381 | </spacer> | ||
561 | 382 | </item> | ||
562 | 383 | <item> | ||
563 | 384 | <widget class="QPushButton" name="back"> | ||
564 | 385 | <property name="text"> | ||
565 | 386 | <string>Back</string> | ||
566 | 387 | </property> | ||
567 | 388 | <property name="autoDefault"> | ||
568 | 389 | <bool>true</bool> | ||
569 | 390 | </property> | ||
570 | 391 | </widget> | ||
571 | 392 | </item> | ||
572 | 393 | <item> | ||
573 | 394 | <widget class="QPushButton" name="next"> | ||
574 | 395 | <property name="text"> | ||
575 | 396 | <string>Next</string> | ||
576 | 397 | </property> | ||
577 | 398 | <property name="autoDefault"> | ||
578 | 399 | <bool>true</bool> | ||
579 | 400 | </property> | ||
580 | 401 | </widget> | ||
581 | 402 | </item> | ||
582 | 403 | </layout> | ||
583 | 404 | </widget> | ||
584 | 405 | </item> | ||
585 | 406 | </layout> | ||
586 | 407 | </widget> | ||
587 | 408 | </item> | ||
588 | 409 | </layout> | ||
589 | 410 | </widget> | ||
590 | 411 | <widget class="QWidget" name="page_8"> | ||
591 | 412 | <layout class="QVBoxLayout" name="verticalLayout_8"> | ||
592 | 413 | <item> | ||
593 | 414 | <widget class="QWidget" name="content_widget_2" native="true"> | ||
594 | 415 | <property name="sizePolicy"> | ||
595 | 416 | <sizepolicy hsizetype="Expanding" vsizetype="Preferred"> | ||
596 | 417 | <horstretch>0</horstretch> | ||
597 | 418 | <verstretch>0</verstretch> | ||
598 | 419 | </sizepolicy> | ||
599 | 420 | </property> | ||
600 | 421 | <layout class="QVBoxLayout" name="verticalLayout_7"> | ||
601 | 422 | <property name="leftMargin"> | ||
602 | 423 | <number>0</number> | ||
603 | 424 | </property> | ||
604 | 425 | </layout> | ||
605 | 426 | </widget> | ||
606 | 427 | </item> | ||
607 | 428 | </layout> | ||
608 | 429 | </widget> | ||
609 | 430 | </widget> | ||
610 | 431 | </item> | ||
611 | 432 | </layout> | ||
612 | 433 | </widget> | ||
613 | 434 | </item> | ||
614 | 435 | </layout> | ||
615 | 436 | </widget> | ||
616 | 437 | </item> | ||
617 | 438 | <item row="1" column="2"> | ||
618 | 439 | <spacer name="horizontalSpacer_2"> | ||
619 | 440 | <property name="orientation"> | ||
620 | 441 | <enum>Qt::Horizontal</enum> | ||
621 | 442 | </property> | ||
622 | 443 | <property name="sizeHint" stdset="0"> | ||
623 | 444 | <size> | ||
624 | 445 | <width>98</width> | ||
625 | 446 | <height>20</height> | ||
626 | 447 | </size> | ||
627 | 448 | </property> | ||
628 | 449 | </spacer> | ||
629 | 450 | </item> | ||
630 | 451 | <item row="2" column="1"> | ||
631 | 452 | <spacer name="verticalSpacer_2"> | ||
632 | 453 | <property name="orientation"> | ||
633 | 454 | <enum>Qt::Vertical</enum> | ||
634 | 455 | </property> | ||
635 | 456 | <property name="sizeHint" stdset="0"> | ||
636 | 457 | <size> | ||
637 | 458 | <width>20</width> | ||
638 | 459 | <height>42</height> | ||
639 | 460 | </size> | ||
640 | 461 | </property> | ||
641 | 462 | </spacer> | ||
746 | 463 | </item> | 325 | </item> |
747 | 464 | </layout> | 326 | </layout> |
748 | 465 | </widget> | 327 | </widget> |
749 | 466 | </widget> | 328 | </widget> |
757 | 467 | <customwidgets> | 329 | <tabstops> |
758 | 468 | <customwidget> | 330 | <tabstop>next</tabstop> |
759 | 469 | <class>SqueezeLabel</class> | 331 | <tabstop>back</tabstop> |
760 | 470 | <extends>QLabel</extends> | 332 | <tabstop>progressCancel</tabstop> |
761 | 471 | <header>ubiquity.frontend.kde_components.SqueezeLabel</header> | 333 | </tabstops> |
755 | 472 | </customwidget> | ||
756 | 473 | </customwidgets> | ||
762 | 474 | <resources/> | 334 | <resources/> |
763 | 475 | <connections/> | 335 | <connections/> |
764 | 476 | </ui> | 336 | </ui> |
765 | 477 | 337 | ||
766 | === added file 'gui/qt/images/background.xcf' | |||
767 | 478 | Binary files gui/qt/images/background.xcf 1970-01-01 00:00:00 +0000 and gui/qt/images/background.xcf 2013-02-27 17:37:28 +0000 differ | 338 | Binary files gui/qt/images/background.xcf 1970-01-01 00:00:00 +0000 and gui/qt/images/background.xcf 2013-02-27 17:37:28 +0000 differ |
768 | === added file 'gui/qt/images/breadcrumb.png' | |||
769 | 479 | Binary files gui/qt/images/breadcrumb.png 1970-01-01 00:00:00 +0000 and gui/qt/images/breadcrumb.png 2013-02-27 17:37:28 +0000 differ | 339 | Binary files gui/qt/images/breadcrumb.png 1970-01-01 00:00:00 +0000 and gui/qt/images/breadcrumb.png 2013-02-27 17:37:28 +0000 differ |
770 | === removed file 'gui/qt/images/content_border.png' | |||
771 | 480 | Binary files gui/qt/images/content_border.png 2010-02-22 17:06:06 +0000 and gui/qt/images/content_border.png 1970-01-01 00:00:00 +0000 differ | 340 | Binary files gui/qt/images/content_border.png 2010-02-22 17:06:06 +0000 and gui/qt/images/content_border.png 1970-01-01 00:00:00 +0000 differ |
772 | === removed file 'gui/qt/images/label_border.png' | |||
773 | 481 | Binary files gui/qt/images/label_border.png 2010-02-22 17:06:06 +0000 and gui/qt/images/label_border.png 1970-01-01 00:00:00 +0000 differ | 341 | Binary files gui/qt/images/label_border.png 2010-02-22 17:06:06 +0000 and gui/qt/images/label_border.png 1970-01-01 00:00:00 +0000 differ |
774 | === added file 'gui/qt/images/main.png' | |||
775 | 482 | Binary files gui/qt/images/main.png 1970-01-01 00:00:00 +0000 and gui/qt/images/main.png 2013-02-27 17:37:28 +0000 differ | 342 | Binary files gui/qt/images/main.png 1970-01-01 00:00:00 +0000 and gui/qt/images/main.png 2013-02-27 17:37:28 +0000 differ |
776 | === removed file 'gui/qt/images/main_frame_border.png' | |||
777 | 483 | Binary files gui/qt/images/main_frame_border.png 2010-02-22 17:06:06 +0000 and gui/qt/images/main_frame_border.png 1970-01-01 00:00:00 +0000 differ | 343 | Binary files gui/qt/images/main_frame_border.png 2010-02-22 17:06:06 +0000 and gui/qt/images/main_frame_border.png 1970-01-01 00:00:00 +0000 differ |
778 | === removed file 'gui/qt/images/minimize.png' | |||
779 | 484 | Binary files gui/qt/images/minimize.png 2012-12-05 13:40:37 +0000 and gui/qt/images/minimize.png 1970-01-01 00:00:00 +0000 differ | 344 | Binary files gui/qt/images/minimize.png 2012-12-05 13:40:37 +0000 and gui/qt/images/minimize.png 1970-01-01 00:00:00 +0000 differ |
780 | === added file 'gui/qt/images/sidebar.png' | |||
781 | 485 | Binary files gui/qt/images/sidebar.png 1970-01-01 00:00:00 +0000 and gui/qt/images/sidebar.png 2013-02-27 17:37:28 +0000 differ | 345 | Binary files gui/qt/images/sidebar.png 1970-01-01 00:00:00 +0000 and gui/qt/images/sidebar.png 2013-02-27 17:37:28 +0000 differ |
782 | === added file 'gui/qt/images/sidebar_shadow.png' | |||
783 | 486 | Binary files gui/qt/images/sidebar_shadow.png 1970-01-01 00:00:00 +0000 and gui/qt/images/sidebar_shadow.png 2013-02-27 17:37:28 +0000 differ | 346 | Binary files gui/qt/images/sidebar_shadow.png 1970-01-01 00:00:00 +0000 and gui/qt/images/sidebar_shadow.png 2013-02-27 17:37:28 +0000 differ |
784 | === removed file 'gui/qt/images/single_pixel.png' | |||
785 | 487 | Binary files gui/qt/images/single_pixel.png 2012-03-19 17:04:20 +0000 and gui/qt/images/single_pixel.png 1970-01-01 00:00:00 +0000 differ | 347 | Binary files gui/qt/images/single_pixel.png 2012-03-19 17:04:20 +0000 and gui/qt/images/single_pixel.png 1970-01-01 00:00:00 +0000 differ |
786 | === modified file 'gui/qt/stepLanguage.ui' | |||
787 | --- gui/qt/stepLanguage.ui 2011-06-18 23:15:08 +0000 | |||
788 | +++ gui/qt/stepLanguage.ui 2013-02-27 17:37:28 +0000 | |||
789 | @@ -6,7 +6,7 @@ | |||
790 | 6 | <rect> | 6 | <rect> |
791 | 7 | <x>0</x> | 7 | <x>0</x> |
792 | 8 | <y>0</y> | 8 | <y>0</y> |
794 | 9 | <width>873</width> | 9 | <width>681</width> |
795 | 10 | <height>513</height> | 10 | <height>513</height> |
796 | 11 | </rect> | 11 | </rect> |
797 | 12 | </property> | 12 | </property> |
798 | @@ -20,23 +20,36 @@ | |||
799 | 20 | <string>Form</string> | 20 | <string>Form</string> |
800 | 21 | </property> | 21 | </property> |
801 | 22 | <layout class="QGridLayout" name="gridLayout"> | 22 | <layout class="QGridLayout" name="gridLayout"> |
803 | 23 | <item row="0" column="0" colspan="2"> | 23 | <item row="0" column="0" colspan="5"> |
804 | 24 | <widget class="QLabel" name="welcome_heading_label"> | 24 | <widget class="QLabel" name="welcome_heading_label"> |
805 | 25 | <property name="text"> | 25 | <property name="text"> |
806 | 26 | <string>Welcome</string> | 26 | <string>Welcome</string> |
807 | 27 | </property> | 27 | </property> |
808 | 28 | </widget> | 28 | </widget> |
809 | 29 | </item> | 29 | </item> |
814 | 30 | <item row="1" column="0" colspan="5"> | 30 | <item row="11" column="0" colspan="5"> |
815 | 31 | <widget class="Line" name="line_2"> | 31 | <widget class="QLabel" name="oem_id_label"> |
816 | 32 | <property name="orientation"> | 32 | <property name="text"> |
817 | 33 | <enum>Qt::Horizontal</enum> | 33 | <string>You are installing in system manufacturer mode. Please enter a unique name for this batch of systems. This name will be saved on the installed system and can be used to help with bug reports.</string> |
818 | 34 | </property> | ||
819 | 35 | <property name="wordWrap"> | ||
820 | 36 | <bool>true</bool> | ||
821 | 37 | </property> | ||
822 | 38 | </widget> | ||
823 | 39 | </item> | ||
824 | 40 | <item row="8" column="0" colspan="5"> | ||
825 | 41 | <widget class="QLabel" name="try_install_text_label"> | ||
826 | 42 | <property name="text"> | ||
827 | 43 | <string>You can try ${RELEASE} without making any changes to your system, or install alongside or instead of your current operating system.</string> | ||
828 | 44 | </property> | ||
829 | 45 | <property name="wordWrap"> | ||
830 | 46 | <bool>true</bool> | ||
831 | 34 | </property> | 47 | </property> |
832 | 35 | </widget> | 48 | </widget> |
833 | 36 | </item> | 49 | </item> |
834 | 37 | <item row="2" column="0" rowspan="2" colspan="5"> | 50 | <item row="2" column="0" rowspan="2" colspan="5"> |
835 | 38 | <widget class="QLabel" name="select_language_label"> | 51 | <widget class="QLabel" name="select_language_label"> |
837 | 39 | <property name="sizePolicy"> | 52 | <property name="sizePolicy"> |
838 | 40 | <sizepolicy hsizetype="Preferred" vsizetype="MinimumExpanding"> | 53 | <sizepolicy hsizetype="Preferred" vsizetype="MinimumExpanding"> |
839 | 41 | <horstretch>0</horstretch> | 54 | <horstretch>0</horstretch> |
840 | 42 | <verstretch>0</verstretch> | 55 | <verstretch>0</verstretch> |
841 | @@ -63,6 +76,22 @@ | |||
842 | 63 | </property> | 76 | </property> |
843 | 64 | </spacer> | 77 | </spacer> |
844 | 65 | </item> | 78 | </item> |
845 | 79 | <item row="12" column="0" colspan="2"> | ||
846 | 80 | <widget class="QLineEdit" name="oem_id_entry"/> | ||
847 | 81 | </item> | ||
848 | 82 | <item row="4" column="3" colspan="2"> | ||
849 | 83 | <spacer name="horizontalSpacer_3"> | ||
850 | 84 | <property name="orientation"> | ||
851 | 85 | <enum>Qt::Horizontal</enum> | ||
852 | 86 | </property> | ||
853 | 87 | <property name="sizeHint" stdset="0"> | ||
854 | 88 | <size> | ||
855 | 89 | <width>293</width> | ||
856 | 90 | <height>20</height> | ||
857 | 91 | </size> | ||
858 | 92 | </property> | ||
859 | 93 | </spacer> | ||
860 | 94 | </item> | ||
861 | 66 | <item row="4" column="2"> | 95 | <item row="4" column="2"> |
862 | 67 | <widget class="QComboBox" name="language_combobox"> | 96 | <widget class="QComboBox" name="language_combobox"> |
863 | 68 | <property name="editable"> | 97 | <property name="editable"> |
864 | @@ -90,32 +119,45 @@ | |||
865 | 90 | </item> | 119 | </item> |
866 | 91 | </widget> | 120 | </widget> |
867 | 92 | </item> | 121 | </item> |
868 | 93 | <item row="4" column="3" colspan="2"> | ||
869 | 94 | <spacer name="horizontalSpacer_3"> | ||
870 | 95 | <property name="orientation"> | ||
871 | 96 | <enum>Qt::Horizontal</enum> | ||
872 | 97 | </property> | ||
873 | 98 | <property name="sizeHint" stdset="0"> | ||
874 | 99 | <size> | ||
875 | 100 | <width>293</width> | ||
876 | 101 | <height>20</height> | ||
877 | 102 | </size> | ||
878 | 103 | </property> | ||
879 | 104 | </spacer> | ||
880 | 105 | </item> | ||
881 | 106 | <item row="5" column="2"> | 122 | <item row="5" column="2"> |
882 | 107 | <spacer name="verticalSpacer_11"> | 123 | <spacer name="verticalSpacer_11"> |
883 | 108 | <property name="orientation"> | 124 | <property name="orientation"> |
884 | 109 | <enum>Qt::Vertical</enum> | 125 | <enum>Qt::Vertical</enum> |
885 | 110 | </property> | 126 | </property> |
886 | 127 | <property name="sizeType"> | ||
887 | 128 | <enum>QSizePolicy::Fixed</enum> | ||
888 | 129 | </property> | ||
889 | 130 | <property name="sizeHint" stdset="0"> | ||
890 | 131 | <size> | ||
891 | 132 | <width>0</width> | ||
892 | 133 | <height>60</height> | ||
893 | 134 | </size> | ||
894 | 135 | </property> | ||
895 | 136 | </spacer> | ||
896 | 137 | </item> | ||
897 | 138 | <item row="13" column="2"> | ||
898 | 139 | <spacer name="verticalSpacer"> | ||
899 | 140 | <property name="orientation"> | ||
900 | 141 | <enum>Qt::Vertical</enum> | ||
901 | 142 | </property> | ||
902 | 111 | <property name="sizeHint" stdset="0"> | 143 | <property name="sizeHint" stdset="0"> |
903 | 112 | <size> | 144 | <size> |
904 | 113 | <width>20</width> | 145 | <width>20</width> |
906 | 114 | <height>238</height> | 146 | <height>40</height> |
907 | 115 | </size> | 147 | </size> |
908 | 116 | </property> | 148 | </property> |
909 | 117 | </spacer> | 149 | </spacer> |
910 | 118 | </item> | 150 | </item> |
911 | 151 | <item row="10" column="0" colspan="5"> | ||
912 | 152 | <widget class="QLabel" name="release_notes_label"> | ||
913 | 153 | <property name="text"> | ||
914 | 154 | <string>If you have Internet access, read the release notes for information on problems that may affect you.</string> | ||
915 | 155 | </property> | ||
916 | 156 | <property name="wordWrap"> | ||
917 | 157 | <bool>true</bool> | ||
918 | 158 | </property> | ||
919 | 159 | </widget> | ||
920 | 160 | </item> | ||
921 | 119 | <item row="6" column="0" colspan="5"> | 161 | <item row="6" column="0" colspan="5"> |
922 | 120 | <layout class="QHBoxLayout" name="horizontalLayout"> | 162 | <layout class="QHBoxLayout" name="horizontalLayout"> |
923 | 121 | <item> | 163 | <item> |
924 | @@ -145,10 +187,7 @@ | |||
925 | 145 | <string/> | 187 | <string/> |
926 | 146 | </property> | 188 | </property> |
927 | 147 | <property name="alignment"> | 189 | <property name="alignment"> |
932 | 148 | <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> | 190 | <set>Qt::AlignCenter</set> |
929 | 149 | </property> | ||
930 | 150 | <property name="wordWrap"> | ||
931 | 151 | <bool>false</bool> | ||
933 | 152 | </property> | 191 | </property> |
934 | 153 | </widget> | 192 | </widget> |
935 | 154 | </item> | 193 | </item> |
936 | @@ -173,9 +212,12 @@ | |||
937 | 173 | <property name="orientation"> | 212 | <property name="orientation"> |
938 | 174 | <enum>Qt::Horizontal</enum> | 213 | <enum>Qt::Horizontal</enum> |
939 | 175 | </property> | 214 | </property> |
940 | 215 | <property name="sizeType"> | ||
941 | 216 | <enum>QSizePolicy::Fixed</enum> | ||
942 | 217 | </property> | ||
943 | 176 | <property name="sizeHint" stdset="0"> | 218 | <property name="sizeHint" stdset="0"> |
944 | 177 | <size> | 219 | <size> |
946 | 178 | <width>100</width> | 220 | <width>80</width> |
947 | 179 | <height>20</height> | 221 | <height>20</height> |
948 | 180 | </size> | 222 | </size> |
949 | 181 | </property> | 223 | </property> |
950 | @@ -186,7 +228,7 @@ | |||
951 | 186 | <item> | 228 | <item> |
952 | 187 | <widget class="QLabel" name="image2"> | 229 | <widget class="QLabel" name="image2"> |
953 | 188 | <property name="sizePolicy"> | 230 | <property name="sizePolicy"> |
955 | 189 | <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding"> | 231 | <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> |
956 | 190 | <horstretch>2</horstretch> | 232 | <horstretch>2</horstretch> |
957 | 191 | <verstretch>2</verstretch> | 233 | <verstretch>2</verstretch> |
958 | 192 | </sizepolicy> | 234 | </sizepolicy> |
959 | @@ -194,8 +236,8 @@ | |||
960 | 194 | <property name="text"> | 236 | <property name="text"> |
961 | 195 | <string/> | 237 | <string/> |
962 | 196 | </property> | 238 | </property> |
965 | 197 | <property name="wordWrap"> | 239 | <property name="alignment"> |
966 | 198 | <bool>true</bool> | 240 | <set>Qt::AlignCenter</set> |
967 | 199 | </property> | 241 | </property> |
968 | 200 | </widget> | 242 | </widget> |
969 | 201 | </item> | 243 | </item> |
970 | @@ -230,17 +272,14 @@ | |||
971 | 230 | </item> | 272 | </item> |
972 | 231 | </layout> | 273 | </layout> |
973 | 232 | </item> | 274 | </item> |
981 | 233 | <item row="7" column="0" colspan="5"> | 275 | <item row="1" column="0" colspan="5"> |
982 | 234 | <widget class="QLabel" name="try_install_text_label"> | 276 | <widget class="Line" name="line_2"> |
983 | 235 | <property name="text"> | 277 | <property name="orientation"> |
984 | 236 | <string>You can try ${RELEASE} without making any changes to your system, or install alongside or instead of your current operating system.</string> | 278 | <enum>Qt::Horizontal</enum> |
978 | 237 | </property> | ||
979 | 238 | <property name="wordWrap"> | ||
980 | 239 | <bool>true</bool> | ||
985 | 240 | </property> | 279 | </property> |
986 | 241 | </widget> | 280 | </widget> |
987 | 242 | </item> | 281 | </item> |
989 | 243 | <item row="8" column="0" colspan="5"> | 282 | <item row="9" column="0" colspan="5"> |
990 | 244 | <widget class="QLabel" name="alpha_warning_label"> | 283 | <widget class="QLabel" name="alpha_warning_label"> |
991 | 245 | <property name="text"> | 284 | <property name="text"> |
992 | 246 | <string>alpha_warning_label</string> | 285 | <string>alpha_warning_label</string> |
993 | @@ -250,28 +289,21 @@ | |||
994 | 250 | </property> | 289 | </property> |
995 | 251 | </widget> | 290 | </widget> |
996 | 252 | </item> | 291 | </item> |
1019 | 253 | <item row="9" column="0" colspan="5"> | 292 | <item row="7" column="2"> |
1020 | 254 | <widget class="QLabel" name="release_notes_label"> | 293 | <spacer name="verticalSpacer_3"> |
1021 | 255 | <property name="text"> | 294 | <property name="orientation"> |
1022 | 256 | <string>If you have Internet access, read the release notes for information on problems that may affect you.</string> | 295 | <enum>Qt::Vertical</enum> |
1023 | 257 | </property> | 296 | </property> |
1024 | 258 | <property name="wordWrap"> | 297 | <property name="sizeType"> |
1025 | 259 | <bool>true</bool> | 298 | <enum>QSizePolicy::Fixed</enum> |
1026 | 260 | </property> | 299 | </property> |
1027 | 261 | </widget> | 300 | <property name="sizeHint" stdset="0"> |
1028 | 262 | </item> | 301 | <size> |
1029 | 263 | <item row="10" column="0" colspan="5"> | 302 | <width>20</width> |
1030 | 264 | <widget class="QLabel" name="oem_id_label"> | 303 | <height>60</height> |
1031 | 265 | <property name="text"> | 304 | </size> |
1032 | 266 | <string>You are installing in system manufacturer mode. Please enter a unique name for this batch of systems. This name will be saved on the installed system and can be used to help with bug reports.</string> | 305 | </property> |
1033 | 267 | </property> | 306 | </spacer> |
1012 | 268 | <property name="wordWrap"> | ||
1013 | 269 | <bool>true</bool> | ||
1014 | 270 | </property> | ||
1015 | 271 | </widget> | ||
1016 | 272 | </item> | ||
1017 | 273 | <item row="11" column="0" colspan="2"> | ||
1018 | 274 | <widget class="QLineEdit" name="oem_id_entry"/> | ||
1034 | 275 | </item> | 307 | </item> |
1035 | 276 | </layout> | 308 | </layout> |
1036 | 277 | </widget> | 309 | </widget> |
1037 | 278 | 310 | ||
1038 | === modified file 'gui/qt/stepLocation.ui' | |||
1039 | --- gui/qt/stepLocation.ui 2009-12-30 23:08:51 +0000 | |||
1040 | +++ gui/qt/stepLocation.ui 2013-02-27 17:37:28 +0000 | |||
1041 | @@ -7,7 +7,7 @@ | |||
1042 | 7 | <x>0</x> | 7 | <x>0</x> |
1043 | 8 | <y>0</y> | 8 | <y>0</y> |
1044 | 9 | <width>579</width> | 9 | <width>579</width> |
1046 | 10 | <height>462</height> | 10 | <height>170</height> |
1047 | 11 | </rect> | 11 | </rect> |
1048 | 12 | </property> | 12 | </property> |
1049 | 13 | <property name="windowTitle"> | 13 | <property name="windowTitle"> |
1050 | @@ -39,38 +39,63 @@ | |||
1051 | 39 | </widget> | 39 | </widget> |
1052 | 40 | </item> | 40 | </item> |
1053 | 41 | <item> | 41 | <item> |
1082 | 42 | <widget class="QFrame" name="map_frame"> | 42 | <layout class="QHBoxLayout" name="horizontalLayout"> |
1083 | 43 | <property name="sizePolicy"> | 43 | <item> |
1084 | 44 | <sizepolicy hsizetype="Preferred" vsizetype="Expanding"> | 44 | <spacer name="horizontalSpacer_4"> |
1085 | 45 | <horstretch>0</horstretch> | 45 | <property name="orientation"> |
1086 | 46 | <verstretch>2</verstretch> | 46 | <enum>Qt::Horizontal</enum> |
1087 | 47 | </sizepolicy> | 47 | </property> |
1088 | 48 | </property> | 48 | <property name="sizeHint" stdset="0"> |
1089 | 49 | <property name="minimumSize"> | 49 | <size> |
1090 | 50 | <size> | 50 | <width>40</width> |
1091 | 51 | <width>0</width> | 51 | <height>20</height> |
1092 | 52 | <height>280</height> | 52 | </size> |
1093 | 53 | </size> | 53 | </property> |
1094 | 54 | </property> | 54 | </spacer> |
1095 | 55 | <property name="maximumSize"> | 55 | </item> |
1096 | 56 | <size> | 56 | <item> |
1097 | 57 | <width>16777215</width> | 57 | <widget class="QFrame" name="map_frame"> |
1098 | 58 | <height>280</height> | 58 | <property name="frameShape"> |
1099 | 59 | </size> | 59 | <enum>QFrame::StyledPanel</enum> |
1100 | 60 | </property> | 60 | </property> |
1101 | 61 | <property name="frameShape"> | 61 | <layout class="QVBoxLayout" name="verticalLayout_10"> |
1102 | 62 | <enum>QFrame::StyledPanel</enum> | 62 | <property name="margin"> |
1103 | 63 | </property> | 63 | <number>2</number> |
1104 | 64 | <layout class="QVBoxLayout" name="verticalLayout_10"> | 64 | </property> |
1105 | 65 | <property name="margin"> | 65 | </layout> |
1106 | 66 | <number>2</number> | 66 | </widget> |
1107 | 67 | </property> | 67 | </item> |
1108 | 68 | </layout> | 68 | <item> |
1109 | 69 | </widget> | 69 | <spacer name="horizontalSpacer_3"> |
1110 | 70 | <property name="orientation"> | ||
1111 | 71 | <enum>Qt::Horizontal</enum> | ||
1112 | 72 | </property> | ||
1113 | 73 | <property name="sizeHint" stdset="0"> | ||
1114 | 74 | <size> | ||
1115 | 75 | <width>40</width> | ||
1116 | 76 | <height>20</height> | ||
1117 | 77 | </size> | ||
1118 | 78 | </property> | ||
1119 | 79 | </spacer> | ||
1120 | 80 | </item> | ||
1121 | 81 | </layout> | ||
1122 | 70 | </item> | 82 | </item> |
1123 | 71 | <item> | 83 | <item> |
1124 | 72 | <layout class="QHBoxLayout" name="horizontalLayout_4"> | 84 | <layout class="QHBoxLayout" name="horizontalLayout_4"> |
1125 | 73 | <item> | 85 | <item> |
1126 | 86 | <spacer name="horizontalSpacer"> | ||
1127 | 87 | <property name="orientation"> | ||
1128 | 88 | <enum>Qt::Horizontal</enum> | ||
1129 | 89 | </property> | ||
1130 | 90 | <property name="sizeHint" stdset="0"> | ||
1131 | 91 | <size> | ||
1132 | 92 | <width>40</width> | ||
1133 | 93 | <height>20</height> | ||
1134 | 94 | </size> | ||
1135 | 95 | </property> | ||
1136 | 96 | </spacer> | ||
1137 | 97 | </item> | ||
1138 | 98 | <item> | ||
1139 | 74 | <widget class="QLabel" name="timezone_zone_label"> | 99 | <widget class="QLabel" name="timezone_zone_label"> |
1140 | 75 | <property name="text"> | 100 | <property name="text"> |
1141 | 76 | <string>Region:</string> | 101 | <string>Region:</string> |
1142 | @@ -120,6 +145,19 @@ | |||
1143 | 120 | </property> | 145 | </property> |
1144 | 121 | </widget> | 146 | </widget> |
1145 | 122 | </item> | 147 | </item> |
1146 | 148 | <item> | ||
1147 | 149 | <spacer name="horizontalSpacer_2"> | ||
1148 | 150 | <property name="orientation"> | ||
1149 | 151 | <enum>Qt::Horizontal</enum> | ||
1150 | 152 | </property> | ||
1151 | 153 | <property name="sizeHint" stdset="0"> | ||
1152 | 154 | <size> | ||
1153 | 155 | <width>40</width> | ||
1154 | 156 | <height>20</height> | ||
1155 | 157 | </size> | ||
1156 | 158 | </property> | ||
1157 | 159 | </spacer> | ||
1158 | 160 | </item> | ||
1159 | 123 | </layout> | 161 | </layout> |
1160 | 124 | </item> | 162 | </item> |
1161 | 125 | <item> | 163 | <item> |
1162 | 126 | 164 | ||
1163 | === modified file 'gui/qt/stepPartMan.ui' | |||
1164 | --- gui/qt/stepPartMan.ui 2011-01-31 12:05:44 +0000 | |||
1165 | +++ gui/qt/stepPartMan.ui 2013-02-27 17:37:28 +0000 | |||
1166 | @@ -74,7 +74,7 @@ | |||
1167 | 74 | <item> | 74 | <item> |
1168 | 75 | <widget class="QTreeView" name="partition_list_treeview"> | 75 | <widget class="QTreeView" name="partition_list_treeview"> |
1169 | 76 | <property name="sizePolicy"> | 76 | <property name="sizePolicy"> |
1171 | 77 | <sizepolicy hsizetype="Expanding" vsizetype="Preferred"> | 77 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> |
1172 | 78 | <horstretch>0</horstretch> | 78 | <horstretch>0</horstretch> |
1173 | 79 | <verstretch>0</verstretch> | 79 | <verstretch>0</verstretch> |
1174 | 80 | </sizepolicy> | 80 | </sizepolicy> |
1175 | @@ -164,60 +164,61 @@ | |||
1176 | 164 | </widget> | 164 | </widget> |
1177 | 165 | </item> | 165 | </item> |
1178 | 166 | <item> | 166 | <item> |
1233 | 167 | <widget class="QScrollArea" name="scrollArea"> | 167 | <spacer name="verticalSpacer"> |
1234 | 168 | <property name="widgetResizable"> | 168 | <property name="orientation"> |
1235 | 169 | <bool>true</bool> | 169 | <enum>Qt::Vertical</enum> |
1236 | 170 | </property> | 170 | </property> |
1237 | 171 | <widget class="QWidget" name="scrollAreaWidgetContents"> | 171 | <property name="sizeType"> |
1238 | 172 | <property name="geometry"> | 172 | <enum>QSizePolicy::Fixed</enum> |
1239 | 173 | <rect> | 173 | </property> |
1240 | 174 | <x>0</x> | 174 | <property name="sizeHint" stdset="0"> |
1241 | 175 | <y>0</y> | 175 | <size> |
1242 | 176 | <width>825</width> | 176 | <width>20</width> |
1243 | 177 | <height>103</height> | 177 | <height>12</height> |
1244 | 178 | </rect> | 178 | </size> |
1245 | 179 | </property> | 179 | </property> |
1246 | 180 | <layout class="QGridLayout" name="gridLayout"> | 180 | </spacer> |
1247 | 181 | <item row="0" column="0"> | 181 | </item> |
1248 | 182 | <widget class="QWidget" name="part_advanced_bootloader_frame" native="true"> | 182 | <item> |
1249 | 183 | <layout class="QVBoxLayout" name="verticalLayout_3"> | 183 | <widget class="QFrame" name="part_advanced_bootloader_frame"> |
1250 | 184 | <item> | 184 | <layout class="QGridLayout" name="gridLayout"> |
1251 | 185 | <widget class="QLabel" name="bootloader_group_label"> | 185 | <item row="1" column="2"> |
1252 | 186 | <property name="sizePolicy"> | 186 | <spacer name="horizontalSpacer"> |
1253 | 187 | <sizepolicy hsizetype="MinimumExpanding" vsizetype="Maximum"> | 187 | <property name="orientation"> |
1254 | 188 | <horstretch>0</horstretch> | 188 | <enum>Qt::Horizontal</enum> |
1255 | 189 | <verstretch>0</verstretch> | 189 | </property> |
1256 | 190 | </sizepolicy> | 190 | <property name="sizeHint" stdset="0"> |
1257 | 191 | </property> | 191 | <size> |
1258 | 192 | <property name="text"> | 192 | <width>40</width> |
1259 | 193 | <string><strong>Boot loader</strong></string> | 193 | <height>20</height> |
1260 | 194 | </property> | 194 | </size> |
1261 | 195 | </widget> | 195 | </property> |
1262 | 196 | </item> | 196 | </spacer> |
1263 | 197 | <item> | 197 | </item> |
1264 | 198 | <widget class="QLabel" name="grub_device_label"> | 198 | <item row="1" column="1"> |
1265 | 199 | <property name="sizePolicy"> | 199 | <widget class="QComboBox" name="grub_device_entry"/> |
1266 | 200 | <sizepolicy hsizetype="Expanding" vsizetype="Preferred"> | 200 | </item> |
1267 | 201 | <horstretch>0</horstretch> | 201 | <item row="1" column="0"> |
1268 | 202 | <verstretch>0</verstretch> | 202 | <widget class="QLabel" name="grub_device_label"> |
1269 | 203 | </sizepolicy> | 203 | <property name="text"> |
1270 | 204 | </property> | 204 | <string>Help for GRUB device selection goes here.</string> |
1271 | 205 | <property name="text"> | 205 | </property> |
1272 | 206 | <string>Help for GRUB device selection goes here.</string> | 206 | </widget> |
1273 | 207 | </property> | 207 | </item> |
1274 | 208 | <property name="wordWrap"> | 208 | <item row="0" column="0" colspan="3"> |
1275 | 209 | <bool>true</bool> | 209 | <widget class="QLabel" name="part_advanced_bootloader_label"> |
1276 | 210 | </property> | 210 | <property name="font"> |
1277 | 211 | </widget> | 211 | <font> |
1278 | 212 | </item> | 212 | <weight>75</weight> |
1279 | 213 | <item> | 213 | <bold>true</bold> |
1280 | 214 | <widget class="QComboBox" name="grub_device_entry"/> | 214 | </font> |
1281 | 215 | </item> | 215 | </property> |
1282 | 216 | </layout> | 216 | <property name="text"> |
1283 | 217 | </widget> | 217 | <string>Boot loader</string> |
1284 | 218 | </item> | 218 | </property> |
1285 | 219 | </layout> | 219 | </widget> |
1286 | 220 | </widget> | 220 | </item> |
1287 | 221 | </layout> | ||
1288 | 221 | </widget> | 222 | </widget> |
1289 | 222 | </item> | 223 | </item> |
1290 | 223 | </layout> | 224 | </layout> |
1291 | 224 | 225 | ||
1292 | === modified file 'gui/qt/style.qss' | |||
1293 | --- gui/qt/style.qss 2012-03-19 17:04:20 +0000 | |||
1294 | +++ gui/qt/style.qss 2013-02-27 17:37:28 +0000 | |||
1295 | @@ -1,87 +1,52 @@ | |||
1325 | 1 | /** main stylesheet */ | 1 | /*- Backgrounds -----------------------------*/ |
1326 | 2 | 2 | QMainWindow { | |
1327 | 3 | #centralwidget { | 3 | /* repeat horizontally, stretch vertically */ |
1328 | 4 | } | 4 | border-image: url(/usr/share/ubiquity/qt/images/sidebar.png) 0 repeat stretch; |
1329 | 5 | 5 | } | |
1330 | 6 | #minimize_button { | 6 | |
1331 | 7 | background-image: url(/usr/share/ubiquity/qt/images/minimize.png); | 7 | #pageMode, |
1332 | 8 | background-position: center center; | 8 | #footer_frame { |
1333 | 9 | background-repeat: no-repeat; | 9 | background-image: url(/usr/share/ubiquity/qt/images/main.png); |
1334 | 10 | 10 | } | |
1335 | 11 | border: none; | 11 | |
1336 | 12 | } | 12 | #sidebar_header_frame, |
1337 | 13 | 13 | #steps_filler_widget, | |
1338 | 14 | #main_frame { | 14 | QFrame[isBreadcrumb="true"], |
1339 | 15 | border-width: 13px; | 15 | #sidebar_footer_frame { |
1340 | 16 | border-image: url(/usr/share/ubiquity/qt/images/main_frame_border.png) 13px; | 16 | background-image: url(/usr/share/ubiquity/qt/images/sidebar_shadow.png); |
1341 | 17 | 17 | } | |
1342 | 18 | background-image: url(/usr/share/ubiquity/qt/images/single_pixel.png); | 18 | |
1343 | 19 | background-repeat: no-repeat; | 19 | #sidebar_header_frame { |
1344 | 20 | background-position: bottom left; | 20 | padding-bottom: 24px; |
1345 | 21 | background-origin: border; | 21 | } |
1346 | 22 | 22 | ||
1347 | 23 | padding: 0px; | 23 | /*- Footer ----------------------------------*/ |
1348 | 24 | padding-bottom: 0px; | 24 | #footer_frame, |
1349 | 25 | } | 25 | #sidebar_footer_frame { |
1350 | 26 | 26 | padding: 6px; | |
1351 | 27 | #main_widget { | 27 | } |
1352 | 28 | } | 28 | |
1353 | 29 | 29 | /*- Sidebar header --------------------------*/ | |
1354 | 30 | #distro_name_label, | 30 | #distro_name_label, |
1355 | 31 | #distro_release_label, | ||
1356 | 32 | #install_process_label { | ||
1357 | 33 | font-family: sans-serif; | ||
1358 | 34 | } | ||
1359 | 35 | |||
1360 | 36 | #distro_name_label { | ||
1361 | 37 | color: #00aad4; | ||
1362 | 38 | font-size: 12pt; | ||
1363 | 39 | } | ||
1364 | 40 | |||
1365 | 41 | #distro_release_label { | 31 | #distro_release_label { |
1367 | 42 | color: #00ccff; | 32 | color: #fff; |
1368 | 43 | font-size: 12pt; | 33 | font-size: 12pt; |
1369 | 44 | } | 34 | } |
1370 | 45 | 35 | ||
1371 | 46 | #install_process_label { | 36 | #install_process_label { |
1373 | 47 | color: #006680; | 37 | color: #fff; |
1374 | 48 | font-size: 8pt; | 38 | font-size: 8pt; |
1375 | 49 | padding-left: 1px; | ||
1376 | 50 | } | 39 | } |
1377 | 51 | 40 | ||
1378 | 41 | /*- Sidebar steps ---------------------------*/ | ||
1379 | 52 | #steps_widget { | 42 | #steps_widget { |
1380 | 53 | } | 43 | } |
1381 | 54 | 44 | ||
1382 | 55 | #steps_widget QLabel { | 45 | #steps_widget QLabel { |
1412 | 56 | qproperty-alignment: AlignLeft; | 46 | color: #ddd; |
1413 | 57 | font-family: sans-serif; | 47 | } |
1414 | 58 | font-size: 12pt; | 48 | |
1415 | 59 | color: #666666; | 49 | /*- Errors ----------------------------------*/ |
1387 | 60 | margin: 5px; | ||
1388 | 61 | margin-left: 0px; | ||
1389 | 62 | margin-right: 0px; | ||
1390 | 63 | } | ||
1391 | 64 | |||
1392 | 65 | /* | ||
1393 | 66 | #steps_widget #dummy_active_step { | ||
1394 | 67 | color: #666666; | ||
1395 | 68 | } | ||
1396 | 69 | |||
1397 | 70 | #steps_widget #dummy_inactive_step { | ||
1398 | 71 | color: #b3b3b3; | ||
1399 | 72 | } | ||
1400 | 73 | |||
1401 | 74 | #steps_widget #dummy_current_step { | ||
1402 | 75 | color: #0088aa; | ||
1403 | 76 | } | ||
1404 | 77 | */ | ||
1405 | 78 | |||
1406 | 79 | #widgetStack QLabel, QRadioButton { | ||
1407 | 80 | font-size: 10pt; | ||
1408 | 81 | color: #4d4d4d; | ||
1409 | 82 | margin: 1px; | ||
1410 | 83 | } | ||
1411 | 84 | |||
1416 | 85 | #widgetStack #fullname_error_reason, | 50 | #widgetStack #fullname_error_reason, |
1417 | 86 | #widgetStack #username_error_reason, | 51 | #widgetStack #username_error_reason, |
1418 | 87 | #widgetStack #password_error_reason, | 52 | #widgetStack #password_error_reason, |
1419 | @@ -91,6 +56,7 @@ | |||
1420 | 91 | color: #ff5555; | 56 | color: #ff5555; |
1421 | 92 | } | 57 | } |
1422 | 93 | 58 | ||
1423 | 59 | /*- Headings --------------------------------*/ | ||
1424 | 94 | #widgetStack #welcome_heading_label, | 60 | #widgetStack #welcome_heading_label, |
1425 | 95 | #widgetStack #prepare_heading_label, | 61 | #widgetStack #prepare_heading_label, |
1426 | 96 | #widgetStack #timezone_heading_label, | 62 | #widgetStack #timezone_heading_label, |
1427 | @@ -105,42 +71,28 @@ | |||
1428 | 105 | qproperty-alignment: AlignCenter; | 71 | qproperty-alignment: AlignCenter; |
1429 | 106 | } | 72 | } |
1430 | 107 | 73 | ||
1437 | 108 | #content_widget | 74 | /*- Content ---------------------------------*/ |
1438 | 109 | { | 75 | #widgetStack QLabel, QRadioButton { |
1439 | 110 | } | 76 | font-size: 10pt; |
1440 | 111 | 77 | color: #4d4d4d; | |
1441 | 112 | #widgetStack QWidget | 78 | margin: 1px; |
1442 | 113 | { | 79 | } |
1443 | 80 | |||
1444 | 81 | #content_widget { | ||
1445 | 82 | } | ||
1446 | 83 | |||
1447 | 84 | #widgetStack QWidget { | ||
1448 | 114 | font-size: 10pt; | 85 | font-size: 10pt; |
1449 | 115 | } | 86 | } |
1450 | 116 | 87 | ||
1461 | 117 | #widgetStack { | 88 | #content_frame QLabel { |
1452 | 118 | padding: 5px; | ||
1453 | 119 | padding-top: 0px; | ||
1454 | 120 | padding-bottom: 0px; | ||
1455 | 121 | |||
1456 | 122 | border-width: 6px; | ||
1457 | 123 | border-image: url(/usr/share/ubiquity/qt/images/content_border.png) 6px; | ||
1458 | 124 | } | ||
1459 | 125 | |||
1460 | 126 | #content_frame QLabel { | ||
1462 | 127 | } | 89 | } |
1463 | 128 | 90 | ||
1464 | 129 | #map_frame, | 91 | #map_frame, |
1466 | 130 | #keyboard_frame | 92 | #keyboard_frame |
1467 | 131 | { | 93 | { |
1468 | 132 | border-radius: 5px; | 94 | border-radius: 5px; |
1469 | 133 | border: 1px solid #bac8d1; | 95 | border: 1px solid #bac8d1; |
1470 | 134 | } | 96 | } |
1471 | 135 | 97 | ||
1483 | 136 | #progressBar { | 98 | /* vim: set ft=css: */ |
1473 | 137 | background-color: #b0bfc2; | ||
1474 | 138 | border-radius: 3px; | ||
1475 | 139 | border: 1px solid grey; | ||
1476 | 140 | text-align: center; | ||
1477 | 141 | } | ||
1478 | 142 | |||
1479 | 143 | #progressBar::chunk { | ||
1480 | 144 | border-radius: 3px; | ||
1481 | 145 | background-color: #94a7ac; | ||
1482 | 146 | } | ||
1484 | 147 | 99 | ||
1485 | === removed file 'gui/qt/style_small.qss' | |||
1486 | --- gui/qt/style_small.qss 2010-02-21 16:37:12 +0000 | |||
1487 | +++ gui/qt/style_small.qss 1970-01-01 00:00:00 +0000 | |||
1488 | @@ -1,18 +0,0 @@ | |||
1489 | 1 | /* stylesheet for smaller screens | ||
1490 | 2 | apply after main stylesheet */ | ||
1491 | 3 | |||
1492 | 4 | #widgetStack QWidget | ||
1493 | 5 | { | ||
1494 | 6 | font-size: 9pt; | ||
1495 | 7 | } | ||
1496 | 8 | |||
1497 | 9 | #widgetStack #welcome_heading_label, | ||
1498 | 10 | #widgetStack #timezone_heading_label, | ||
1499 | 11 | #widgetStack #keyboard_heading_label, | ||
1500 | 12 | #widgetStack #part_auto_heading_label, | ||
1501 | 13 | #widgetStack #part_advanced_heading_label, | ||
1502 | 14 | #widgetStack #userinfo_heading_label, | ||
1503 | 15 | #widgetStack #reading_heading_label | ||
1504 | 16 | { | ||
1505 | 17 | font-size: 8pt; | ||
1506 | 18 | } | ||
1507 | 19 | \ No newline at end of file | 0 | \ No newline at end of file |
1508 | 20 | 1 | ||
1509 | === added file 'ubiquity/frontend/kde_components/Breadcrumb.py' | |||
1510 | --- ubiquity/frontend/kde_components/Breadcrumb.py 1970-01-01 00:00:00 +0000 | |||
1511 | +++ ubiquity/frontend/kde_components/Breadcrumb.py 2013-02-27 17:37:28 +0000 | |||
1512 | @@ -0,0 +1,88 @@ | |||
1513 | 1 | # -*- coding: utf-8; Mode: Python; indent-tabs-mode: nil; tab-width: 4 -*- | ||
1514 | 2 | # | ||
1515 | 3 | # Copyright (C) 2013 Canonical Ltd. | ||
1516 | 4 | # | ||
1517 | 5 | # Author: | ||
1518 | 6 | # Aurélien Gâteau <agateau@kde.org> | ||
1519 | 7 | # | ||
1520 | 8 | # This file is part of Ubiquity. | ||
1521 | 9 | # | ||
1522 | 10 | # Ubiquity is free software; you can redistribute it and/or modify it under | ||
1523 | 11 | # the terms of the GNU General Public License as published by the Free | ||
1524 | 12 | # Software Foundation; either version 2 of the License, or at your option) | ||
1525 | 13 | # any later version. | ||
1526 | 14 | # | ||
1527 | 15 | # Ubiquity is distributed in the hope that it will be useful, but WITHOUT | ||
1528 | 16 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
1529 | 17 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
1530 | 18 | # more details. | ||
1531 | 19 | # | ||
1532 | 20 | # You should have received a copy of the GNU General Public License along | ||
1533 | 21 | # with Ubiquity; if not, write to the Free Software Foundation, Inc., 51 | ||
1534 | 22 | # Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
1535 | 23 | |||
1536 | 24 | from PyQt4 import QtCore, QtGui | ||
1537 | 25 | from PyQt4.QtCore import Qt | ||
1538 | 26 | |||
1539 | 27 | __all__ = ["Breadcrumb"] | ||
1540 | 28 | |||
1541 | 29 | |||
1542 | 30 | class Breadcrumb(QtGui.QFrame): | ||
1543 | 31 | TODO = 0 | ||
1544 | 32 | CURRENT = 1 | ||
1545 | 33 | DONE = 2 | ||
1546 | 34 | |||
1547 | 35 | def __init__(self, parent=None): | ||
1548 | 36 | QtGui.QFrame.__init__(self, parent) | ||
1549 | 37 | self.setProperty("isBreadcrumb", True) | ||
1550 | 38 | |||
1551 | 39 | self._tickLabel = QtGui.QLabel() | ||
1552 | 40 | fm = self._tickLabel.fontMetrics() | ||
1553 | 41 | self._tickLabel.setFixedWidth(fm.width(" M ")) | ||
1554 | 42 | self._tickLabel.setAlignment(Qt.AlignTop | Qt.AlignRight) | ||
1555 | 43 | |||
1556 | 44 | self._mainLabel = QtGui.QLabel() | ||
1557 | 45 | self._mainLabel.setAlignment(Qt.AlignTop | Qt.AlignLeft) | ||
1558 | 46 | self._mainLabel.setWordWrap(True) | ||
1559 | 47 | |||
1560 | 48 | layout = QtGui.QHBoxLayout(self) | ||
1561 | 49 | layout.addWidget(self._tickLabel) | ||
1562 | 50 | layout.addWidget(self._mainLabel) | ||
1563 | 51 | |||
1564 | 52 | self.setState(Breadcrumb.TODO) | ||
1565 | 53 | |||
1566 | 54 | def setState(self, state): | ||
1567 | 55 | self._tickLabel.setText(_TICK_DICT[state]) | ||
1568 | 56 | self.setStyleSheet(_CSS_DICT[state]) | ||
1569 | 57 | |||
1570 | 58 | def setText(self, text): | ||
1571 | 59 | self._mainLabel.setText(text) | ||
1572 | 60 | |||
1573 | 61 | def text(self): | ||
1574 | 62 | return self._mainLabel.text() | ||
1575 | 63 | |||
1576 | 64 | |||
1577 | 65 | _TICK_DICT = { | ||
1578 | 66 | Breadcrumb.TODO: "•", | ||
1579 | 67 | Breadcrumb.CURRENT: "‣", | ||
1580 | 68 | Breadcrumb.DONE: "✓", | ||
1581 | 69 | } | ||
1582 | 70 | |||
1583 | 71 | |||
1584 | 72 | _CSS_DICT = { | ||
1585 | 73 | Breadcrumb.TODO: "", | ||
1586 | 74 | Breadcrumb.CURRENT: """ | ||
1587 | 75 | QFrame { | ||
1588 | 76 | border-top-width: 10px; | ||
1589 | 77 | border-bottom-width: 10px; | ||
1590 | 78 | background-image: none; | ||
1591 | 79 | border-image: url(/usr/share/ubiquity/qt/images/breadcrumb.png) 10px; | ||
1592 | 80 | } | ||
1593 | 81 | .QLabel { | ||
1594 | 82 | color: #333; | ||
1595 | 83 | border-width: 0px; | ||
1596 | 84 | border-image: none; | ||
1597 | 85 | } | ||
1598 | 86 | """, | ||
1599 | 87 | Breadcrumb.DONE: "", | ||
1600 | 88 | } | ||
1601 | 0 | 89 | ||
1602 | === removed file 'ubiquity/frontend/kde_components/SqueezeLabel.py' | |||
1603 | --- ubiquity/frontend/kde_components/SqueezeLabel.py 2012-07-16 14:29:13 +0000 | |||
1604 | +++ ubiquity/frontend/kde_components/SqueezeLabel.py 1970-01-01 00:00:00 +0000 | |||
1605 | @@ -1,22 +0,0 @@ | |||
1606 | 1 | # -*- coding: utf-8 -*- | ||
1607 | 2 | |||
1608 | 3 | from PyQt4 import QtGui, QtCore | ||
1609 | 4 | |||
1610 | 5 | |||
1611 | 6 | # idea from | ||
1612 | 7 | # http://trac.transmissionbt.com/browser/trunk/qt/squeezelabel.cc | ||
1613 | 8 | class SqueezeLabel(QtGui.QLabel): | ||
1614 | 9 | def __init__(self, parent=None): | ||
1615 | 10 | QtGui.QLabel.__init__(self, parent) | ||
1616 | 11 | |||
1617 | 12 | def paintEvent(self, pe): | ||
1618 | 13 | fm = self.fontMetrics() | ||
1619 | 14 | if fm.width(self.text()) > self.contentsRect().width(): | ||
1620 | 15 | oldText = self.text() | ||
1621 | 16 | elided = fm.elidedText(oldText, QtCore.Qt.ElideRight, self.width()) | ||
1622 | 17 | self.setText(elided) | ||
1623 | 18 | self.setToolTip(oldText) | ||
1624 | 19 | QtGui.QLabel.paintEvent(self, pe) | ||
1625 | 20 | self.setText(oldText) | ||
1626 | 21 | else: | ||
1627 | 22 | QtGui.QLabel.paintEvent(self, pe) | ||
1628 | 23 | 0 | ||
1629 | === modified file 'ubiquity/frontend/kde_components/Timezone.py' | |||
1630 | --- ubiquity/frontend/kde_components/Timezone.py 2012-11-22 16:27:21 +0000 | |||
1631 | +++ ubiquity/frontend/kde_components/Timezone.py 2013-02-27 17:37:28 +0000 | |||
1632 | @@ -34,6 +34,13 @@ | |||
1633 | 34 | # load background pixmap | 34 | # load background pixmap |
1634 | 35 | self.imagePath = "/usr/share/ubiquity/pixmaps/timezone" | 35 | self.imagePath = "/usr/share/ubiquity/pixmaps/timezone" |
1635 | 36 | self.pixmap = QtGui.QPixmap("%s/bg.png" % self.imagePath) | 36 | self.pixmap = QtGui.QPixmap("%s/bg.png" % self.imagePath) |
1636 | 37 | self.setMinimumSize(self.pixmap.size() / 2) | ||
1637 | 38 | self.setMaximumSize(self.pixmap.size()) | ||
1638 | 39 | policy = QtGui.QSizePolicy( | ||
1639 | 40 | QtGui.QSizePolicy.Preferred, | ||
1640 | 41 | QtGui.QSizePolicy.Preferred) | ||
1641 | 42 | policy.setHeightForWidth(True) | ||
1642 | 43 | self.setSizePolicy(policy) | ||
1643 | 37 | 44 | ||
1644 | 38 | # redraw timer for selected city time | 45 | # redraw timer for selected city time |
1645 | 39 | self.timer = QtCore.QTimer(self) | 46 | self.timer = QtCore.QTimer(self) |
1646 | @@ -116,6 +123,15 @@ | |||
1647 | 116 | y = y * (self.height() * 1.2) | 123 | y = y * (self.height() * 1.2) |
1648 | 117 | return y | 124 | return y |
1649 | 118 | 125 | ||
1650 | 126 | def sizeHint(self): | ||
1651 | 127 | return self.pixmap.size() | ||
1652 | 128 | |||
1653 | 129 | def heightForWidth(self, w): | ||
1654 | 130 | size = self.pixmap.size() | ||
1655 | 131 | if w > size.width(): | ||
1656 | 132 | w = size.width() | ||
1657 | 133 | return w * size.height() / size.width() | ||
1658 | 134 | |||
1659 | 119 | def paintEvent(self, unused_paintEvent): | 135 | def paintEvent(self, unused_paintEvent): |
1660 | 120 | painter = QtGui.QPainter(self) | 136 | painter = QtGui.QPainter(self) |
1661 | 121 | painter.setRenderHint(QtGui.QPainter.Antialiasing) | 137 | painter.setRenderHint(QtGui.QPainter.Antialiasing) |
1662 | @@ -186,6 +202,8 @@ | |||
1663 | 186 | # @return pixel coordinate of a latitude and longitude for self | 202 | # @return pixel coordinate of a latitude and longitude for self |
1664 | 187 | # map uses Miller Projection, but is also clipped | 203 | # map uses Miller Projection, but is also clipped |
1665 | 188 | def getPosition(self, la, lo): | 204 | def getPosition(self, la, lo): |
1666 | 205 | width = min(self.width(), self.pixmap.width()) | ||
1667 | 206 | height = min(self.height(), self.pixmap.height()) | ||
1668 | 189 | # need to add/sub magic numbers because the map doesn't actually go | 207 | # need to add/sub magic numbers because the map doesn't actually go |
1669 | 190 | # from -180...180, -90...90 thus the upper corner is not -180, -90 | 208 | # from -180...180, -90...90 thus the upper corner is not -180, -90 |
1670 | 191 | # and we have to compensate | 209 | # and we have to compensate |
1671 | @@ -195,9 +213,9 @@ | |||
1672 | 195 | # the 180 - 360 accounts for the fact that the map does not span the | 213 | # the 180 - 360 accounts for the fact that the map does not span the |
1673 | 196 | # entire -90 to 90 the map does span the entire 360 though, just | 214 | # entire -90 to 90 the map does span the entire 360 though, just |
1674 | 197 | # offset | 215 | # offset |
1678 | 198 | x = ((self.width() * (180.0 + lo) / 360.0) + | 216 | x = ((width * (180.0 + lo) / 360.0) + |
1679 | 199 | (self.width() * xdeg_offset / 180.0)) | 217 | (width * xdeg_offset / 180.0)) |
1680 | 200 | x = x % self.width() | 218 | x = x % width |
1681 | 201 | 219 | ||
1682 | 202 | # top and bottom clipping latitudes | 220 | # top and bottom clipping latitudes |
1683 | 203 | topLat = 81 | 221 | topLat = 81 |
1684 | @@ -223,7 +241,7 @@ | |||
1685 | 223 | y = y / mapRange | 241 | y = y / mapRange |
1686 | 224 | 242 | ||
1687 | 225 | # this then becomes the percentage of the height | 243 | # this then becomes the percentage of the height |
1689 | 226 | y = y * self.height() | 244 | y = y * height |
1690 | 227 | 245 | ||
1691 | 228 | return QtCore.QPoint(int(x), int(y)) | 246 | return QtCore.QPoint(int(x), int(y)) |
1692 | 229 | 247 | ||
1693 | 230 | 248 | ||
1694 | === added file 'ubiquity/frontend/kde_components/testing/timezonemap.py' | |||
1695 | --- ubiquity/frontend/kde_components/testing/timezonemap.py 1970-01-01 00:00:00 +0000 | |||
1696 | +++ ubiquity/frontend/kde_components/testing/timezonemap.py 2013-02-27 17:37:28 +0000 | |||
1697 | @@ -0,0 +1,20 @@ | |||
1698 | 1 | # -*- coding: utf-8 -*- | ||
1699 | 2 | |||
1700 | 3 | import sys | ||
1701 | 4 | |||
1702 | 5 | from PyQt4 import QtGui, uic | ||
1703 | 6 | from ubiquity.frontend.kde_components.Timezone import TimezoneMap | ||
1704 | 7 | |||
1705 | 8 | |||
1706 | 9 | if __name__ == "__main__": | ||
1707 | 10 | app = QtGui.QApplication(sys.argv) | ||
1708 | 11 | QtGui.QApplication.setStyle("Oxygen") | ||
1709 | 12 | qss = open("/usr/share/ubiquity/qt/style.qss").read() | ||
1710 | 13 | app.setStyleSheet(qss) | ||
1711 | 14 | |||
1712 | 15 | page = uic.loadUi('/usr/share/ubiquity/qt/stepLocation.ui') | ||
1713 | 16 | tzmap = TimezoneMap(page.map_frame) | ||
1714 | 17 | page.map_frame.layout().addWidget(tzmap) | ||
1715 | 18 | page.show() | ||
1716 | 19 | |||
1717 | 20 | sys.exit(app.exec_()) | ||
1718 | 0 | 21 | ||
1719 | === modified file 'ubiquity/frontend/kde_ui.py' | |||
1720 | --- ubiquity/frontend/kde_ui.py 2013-02-19 11:33:07 +0000 | |||
1721 | +++ ubiquity/frontend/kde_ui.py 2013-02-27 17:37:28 +0000 | |||
1722 | @@ -45,7 +45,8 @@ | |||
1723 | 45 | from ubiquity.components import partman_commit, install, plugininstall | 45 | from ubiquity.components import partman_commit, install, plugininstall |
1724 | 46 | import ubiquity.frontend.base | 46 | import ubiquity.frontend.base |
1725 | 47 | from ubiquity.frontend.base import BaseFrontend | 47 | from ubiquity.frontend.base import BaseFrontend |
1727 | 48 | from ubiquity.frontend.kde_components import ProgressDialog, SqueezeLabel | 48 | from ubiquity.frontend.kde_components import ProgressDialog |
1728 | 49 | from ubiquity.frontend.kde_components.Breadcrumb import Breadcrumb | ||
1729 | 49 | from ubiquity.plugin import Plugin | 50 | from ubiquity.plugin import Plugin |
1730 | 50 | import ubiquity.progressposition | 51 | import ubiquity.progressposition |
1731 | 51 | 52 | ||
1732 | @@ -87,25 +88,8 @@ | |||
1733 | 87 | self.distro_name_label.setText(distro_name) | 88 | self.distro_name_label.setText(distro_name) |
1734 | 88 | self.distro_release_label.setText(distro_release) | 89 | self.distro_release_label.setText(distro_release) |
1735 | 89 | 90 | ||
1736 | 90 | self.minimize_button.clicked.connect(self.showMinimized) | ||
1737 | 91 | |||
1738 | 92 | self.setWindowTitle("%s %s" % (distro_name, distro_release)) | 91 | self.setWindowTitle("%s %s" % (distro_name, distro_release)) |
1739 | 93 | 92 | ||
1740 | 94 | # don't use stylesheet cause we want to scale the wallpaper for various | ||
1741 | 95 | # screen sizes as well as support larger screens | ||
1742 | 96 | self.bgImage = QtGui.QImage("/usr/share/wallpapers/kde-default.png") | ||
1743 | 97 | self.scaledBgImage = self.bgImage | ||
1744 | 98 | |||
1745 | 99 | def paintEvent(self, pe): | ||
1746 | 100 | p = QtGui.QPainter(self) | ||
1747 | 101 | p.drawImage(0, 0, self.scaledBgImage) | ||
1748 | 102 | |||
1749 | 103 | def resizeEvent(self, re): | ||
1750 | 104 | self.scaledBgImage = self.bgImage.scaled( | ||
1751 | 105 | self.width(), self.height(), | ||
1752 | 106 | QtCore.Qt.KeepAspectRatioByExpanding, | ||
1753 | 107 | QtCore.Qt.SmoothTransformation) | ||
1754 | 108 | |||
1755 | 109 | def setWizard(self, wizardRef): | 93 | def setWizard(self, wizardRef): |
1756 | 110 | self.wizard = wizardRef | 94 | self.wizard = wizardRef |
1757 | 111 | 95 | ||
1758 | @@ -180,31 +164,16 @@ | |||
1759 | 180 | 164 | ||
1760 | 181 | self.ui = UbiquityUI() | 165 | self.ui = UbiquityUI() |
1761 | 182 | 166 | ||
1762 | 183 | # handle smaller screens (old school eee pc | ||
1763 | 184 | if (QtGui.QApplication.desktop().screenGeometry().height() < 560): | ||
1764 | 185 | self.ui.main_frame.setFixedHeight(470) | ||
1765 | 186 | with open(os.path.join(UIDIR, "style_small.qss")) as style: | ||
1766 | 187 | self.ui.main_frame.setStyleSheet(style.read()) | ||
1767 | 188 | |||
1768 | 189 | # initially the steps widget is not visible | 167 | # initially the steps widget is not visible |
1769 | 190 | # it becomes visible once the first step becomes active | 168 | # it becomes visible once the first step becomes active |
1770 | 191 | self.ui.steps_widget.setVisible(False) | 169 | self.ui.steps_widget.setVisible(False) |
1771 | 192 | self.ui.content_widget.setVisible(False) | 170 | self.ui.content_widget.setVisible(False) |
1772 | 193 | 171 | ||
1773 | 194 | if 'UBIQUITY_GREETER' in os.environ: | 172 | if 'UBIQUITY_GREETER' in os.environ: |
1778 | 195 | self.ui.minimize_button.hide() | 173 | self.ui.setWindowState( |
1779 | 196 | 174 | self.ui.windowState() ^ QtCore.Qt.WindowFullScreen) | |
1776 | 197 | self.ui.setWindowState( | ||
1777 | 198 | self.ui.windowState() ^ QtCore.Qt.WindowFullScreen) | ||
1780 | 199 | 175 | ||
1781 | 200 | self.ui.setWizard(self) | 176 | self.ui.setWizard(self) |
1782 | 201 | # self.ui.setWindowFlags(QtCore.Qt.Window | | ||
1783 | 202 | # QtCore.Qt.CustomizeWindowHint | QtCore.Qt.WindowTitleHint | | ||
1784 | 203 | # QtCore.Qt.WindowMinMaxButtonsHint) | ||
1785 | 204 | |||
1786 | 205 | #hide the minimize button if in "install only" mode | ||
1787 | 206 | if 'UBIQUITY_ONLY' in os.environ or 'UBIQUITY_GREETER' in os.environ: | ||
1788 | 207 | self.ui.minimize_button.setVisible(False) | ||
1789 | 208 | 177 | ||
1790 | 209 | self.stackLayout = QtGui.QStackedLayout(self.ui.widgetStack) | 178 | self.stackLayout = QtGui.QStackedLayout(self.ui.widgetStack) |
1791 | 210 | 179 | ||
1792 | @@ -218,7 +187,8 @@ | |||
1793 | 218 | mod.ui = mod.ui_class(mod.controller) | 187 | mod.ui = mod.ui_class(mod.controller) |
1794 | 219 | widgets = mod.ui.get('plugin_widgets') | 188 | widgets = mod.ui.get('plugin_widgets') |
1795 | 220 | optional_widgets = mod.ui.get('plugin_optional_widgets') | 189 | optional_widgets = mod.ui.get('plugin_optional_widgets') |
1797 | 221 | breadcrumb = mod.ui.get('plugin_breadcrumb') | 190 | # Use a placeholder for breadcrumb if none defined |
1798 | 191 | breadcrumb = mod.ui.get('plugin_breadcrumb') or '------' | ||
1799 | 222 | if widgets or optional_widgets: | 192 | if widgets or optional_widgets: |
1800 | 223 | def fill_out(widget_list): | 193 | def fill_out(widget_list): |
1801 | 224 | rv = [] | 194 | rv = [] |
1802 | @@ -237,24 +207,16 @@ | |||
1803 | 237 | return rv | 207 | return rv |
1804 | 238 | mod.widgets = fill_out(widgets) | 208 | mod.widgets = fill_out(widgets) |
1805 | 239 | mod.optional_widgets = fill_out(optional_widgets) | 209 | mod.optional_widgets = fill_out(optional_widgets) |
1820 | 240 | if not hasattr(mod.ui, 'plugin_breadcrumb'): | 210 | |
1821 | 241 | breadcrumb = '------' # just a placeholder | 211 | mod.breadcrumb_question = breadcrumb |
1822 | 242 | if breadcrumb: | 212 | mod.breadcrumb = self._create_breadcrumb(breadcrumb) |
1823 | 243 | mod.breadcrumb_question = breadcrumb | 213 | |
1810 | 244 | mod.breadcrumb = SqueezeLabel.SqueezeLabel() | ||
1811 | 245 | mod.breadcrumb.setObjectName(mod.breadcrumb_question) | ||
1812 | 246 | # Room for install crumb. | ||
1813 | 247 | label_index = self.ui.steps_widget.layout().count() - 2 | ||
1814 | 248 | self.ui.steps_widget.layout().insertWidget( | ||
1815 | 249 | label_index, mod.breadcrumb) | ||
1816 | 250 | else: | ||
1817 | 251 | mod.breadcrumb_question = None | ||
1818 | 252 | # Page intentionally didn't want a label (intro). | ||
1819 | 253 | mod.breadcrumb = None | ||
1824 | 254 | self.pageslen += 1 | 214 | self.pageslen += 1 |
1825 | 255 | self.pages.append(mod) | 215 | self.pages.append(mod) |
1826 | 256 | self.user_pageslen = self.pageslen | 216 | self.user_pageslen = self.pageslen |
1827 | 257 | 217 | ||
1828 | 218 | self.breadcrumb_install = self._create_breadcrumb('breadcrumb_install') | ||
1829 | 219 | |||
1830 | 258 | # declare attributes | 220 | # declare attributes |
1831 | 259 | self.language_questions = ( | 221 | self.language_questions = ( |
1832 | 260 | 'live_installer', | 222 | 'live_installer', |
1833 | @@ -305,9 +267,6 @@ | |||
1834 | 305 | "/usr/share/icons/hicolor/128x128/apps/ubiquity.png")) | 267 | "/usr/share/icons/hicolor/128x128/apps/ubiquity.png")) |
1835 | 306 | self.allow_go_backward(False) | 268 | self.allow_go_backward(False) |
1836 | 307 | 269 | ||
1837 | 308 | if not 'UBIQUITY_AUTOMATIC' in os.environ: | ||
1838 | 309 | self.ui.show() | ||
1839 | 310 | |||
1840 | 311 | self.stop_debconf() | 270 | self.stop_debconf() |
1841 | 312 | self.translate_widgets(reget=True) | 271 | self.translate_widgets(reget=True) |
1842 | 313 | 272 | ||
1843 | @@ -327,7 +286,7 @@ | |||
1844 | 327 | self.ui.quit.hide() | 286 | self.ui.quit.hide() |
1845 | 328 | # TODO cjwatson 2010-04-07: provide alternative strings instead | 287 | # TODO cjwatson 2010-04-07: provide alternative strings instead |
1846 | 329 | self.ui.install_process_label.hide() | 288 | self.ui.install_process_label.hide() |
1848 | 330 | self.ui.breadcrumb_install.hide() | 289 | self.breadcrumb_install.hide() |
1849 | 331 | 290 | ||
1850 | 332 | self.forwardIcon = QtGui.QIcon( | 291 | self.forwardIcon = QtGui.QIcon( |
1851 | 333 | "/usr/share/icons/oxygen/128x128/actions/go-next.png") | 292 | "/usr/share/icons/oxygen/128x128/actions/go-next.png") |
1852 | @@ -345,11 +304,25 @@ | |||
1853 | 345 | "/usr/share/icons/oxygen/48x48/actions/dialog-close.png") | 304 | "/usr/share/icons/oxygen/48x48/actions/dialog-close.png") |
1854 | 346 | self.ui.quit.setIcon(quitIcon) | 305 | self.ui.quit.setIcon(quitIcon) |
1855 | 347 | 306 | ||
1858 | 348 | self.ui.progressBar.hide() | 307 | self._show_progress_bar(False) |
1857 | 349 | self.ui.progressCancel.hide() | ||
1859 | 350 | 308 | ||
1860 | 351 | misc.add_connection_watch(self.network_change) | 309 | misc.add_connection_watch(self.network_change) |
1861 | 352 | 310 | ||
1862 | 311 | def _show_progress_bar(self, show): | ||
1863 | 312 | if show: | ||
1864 | 313 | widget = self.ui.progress_widget | ||
1865 | 314 | else: | ||
1866 | 315 | widget = self.ui.progress_placeholder | ||
1867 | 316 | self.ui.progress_stack.setCurrentWidget(widget) | ||
1868 | 317 | |||
1869 | 318 | def _create_breadcrumb(self, name): | ||
1870 | 319 | widget = Breadcrumb() | ||
1871 | 320 | widget.setObjectName(name) | ||
1872 | 321 | layout = self.ui.steps_widget.layout() | ||
1873 | 322 | # "- 1" to insert before the bottom spacer | ||
1874 | 323 | layout.insertWidget(layout.count() - 1, widget) | ||
1875 | 324 | return widget | ||
1876 | 325 | |||
1877 | 353 | def excepthook(self, exctype, excvalue, exctb): | 326 | def excepthook(self, exctype, excvalue, exctb): |
1878 | 354 | """Crash handler.""" | 327 | """Crash handler.""" |
1879 | 355 | 328 | ||
1880 | @@ -438,6 +411,11 @@ | |||
1881 | 438 | # Start the interface | 411 | # Start the interface |
1882 | 439 | self.set_current_page(0) | 412 | self.set_current_page(0) |
1883 | 440 | 413 | ||
1884 | 414 | if not 'UBIQUITY_AUTOMATIC' in os.environ: | ||
1885 | 415 | # Only show now so that the window does not show empty, then resize | ||
1886 | 416 | # itself and show content | ||
1887 | 417 | self.ui.show() | ||
1888 | 418 | |||
1889 | 441 | while(self.pagesindex < self.pageslen): | 419 | while(self.pagesindex < self.pageslen): |
1890 | 442 | if self.current_page is None: | 420 | if self.current_page is None: |
1891 | 443 | break | 421 | break |
1892 | @@ -491,15 +469,7 @@ | |||
1893 | 491 | self.app.processEvents() | 469 | self.app.processEvents() |
1894 | 492 | 470 | ||
1895 | 493 | if self.current_page is not None: | 471 | if self.current_page is not None: |
1905 | 494 | borderCSS = ( | 472 | self._update_breadcrumbs('__install') |
1897 | 495 | "border-width: 6px; border-image: " | ||
1898 | 496 | "url(/usr/share/ubiquity/qt/images/label_border.png) 6px;") | ||
1899 | 497 | currentSS = "%s color: %s; " % (borderCSS, "#0088aa") | ||
1900 | 498 | inactiveSS = "color: %s; " % "#b3b3b3" | ||
1901 | 499 | for page in self.pages: | ||
1902 | 500 | if page.breadcrumb: | ||
1903 | 501 | page.breadcrumb.setStyleSheet(inactiveSS) | ||
1904 | 502 | self.ui.breadcrumb_install.setStyleSheet(currentSS) | ||
1906 | 503 | self.start_slideshow() | 473 | self.start_slideshow() |
1907 | 504 | self.run_main_loop() | 474 | self.run_main_loop() |
1908 | 505 | 475 | ||
1909 | @@ -545,6 +515,25 @@ | |||
1910 | 545 | 515 | ||
1911 | 546 | return self.returncode | 516 | return self.returncode |
1912 | 547 | 517 | ||
1913 | 518 | def _update_breadcrumbs(self, active_page_name): | ||
1914 | 519 | done = True | ||
1915 | 520 | for page in self.pages: | ||
1916 | 521 | if not page.breadcrumb: | ||
1917 | 522 | continue | ||
1918 | 523 | if page.module.NAME == active_page_name: | ||
1919 | 524 | page.breadcrumb.setState(Breadcrumb.CURRENT) | ||
1920 | 525 | done = False | ||
1921 | 526 | else: | ||
1922 | 527 | if done: | ||
1923 | 528 | page.breadcrumb.setState(Breadcrumb.DONE) | ||
1924 | 529 | else: | ||
1925 | 530 | page.breadcrumb.setState(Breadcrumb.TODO) | ||
1926 | 531 | |||
1927 | 532 | if active_page_name == '__install': | ||
1928 | 533 | page.breadcrumb.setState(Breadcrumb.CURRENT) | ||
1929 | 534 | else: | ||
1930 | 535 | page.breadcrumb.setState(Breadcrumb.TODO) | ||
1931 | 536 | |||
1932 | 548 | def start_slideshow(self): | 537 | def start_slideshow(self): |
1933 | 549 | slideshow_dir = '/usr/share/ubiquity-slideshow' | 538 | slideshow_dir = '/usr/share/ubiquity-slideshow' |
1934 | 550 | slideshow_locale = self.slideshow_get_available_locale(slideshow_dir, | 539 | slideshow_locale = self.slideshow_get_available_locale(slideshow_dir, |
1935 | @@ -581,6 +570,7 @@ | |||
1936 | 581 | webView.setFixedSize(700, 420) | 570 | webView.setFixedSize(700, 420) |
1937 | 582 | webView.load(QtCore.QUrl(slides)) | 571 | webView.load(QtCore.QUrl(slides)) |
1938 | 583 | 572 | ||
1939 | 573 | self.ui.navigation.hide() | ||
1940 | 584 | self.ui.pageMode.setCurrentIndex(1) | 574 | self.ui.pageMode.setCurrentIndex(1) |
1941 | 585 | self.ui.pageMode.widget(1).layout().addWidget(webView) | 575 | self.ui.pageMode.widget(1).layout().addWidget(webView) |
1942 | 586 | webView.show() | 576 | webView.show() |
1943 | @@ -718,7 +708,7 @@ | |||
1944 | 718 | if text is None: | 708 | if text is None: |
1945 | 719 | return | 709 | return |
1946 | 720 | 710 | ||
1948 | 721 | if isinstance(widget, QtGui.QLabel): | 711 | if isinstance(widget, (QtGui.QLabel, Breadcrumb)): |
1949 | 722 | if name == 'select_language_label' and self.oem_user_config: | 712 | if name == 'select_language_label' and self.oem_user_config: |
1950 | 723 | text = self.get_string( | 713 | text = self.get_string( |
1951 | 724 | 'select_language_oem_user_label', lang, prefix) | 714 | 'select_language_oem_user_label', lang, prefix) |
1952 | @@ -828,18 +818,10 @@ | |||
1953 | 828 | self.run_automation_error_cmd() | 818 | self.run_automation_error_cmd() |
1954 | 829 | self.ui.show() | 819 | self.ui.show() |
1955 | 830 | 820 | ||
1956 | 831 | borderCSS = ( | ||
1957 | 832 | "border-width: 6px; border-image: " | ||
1958 | 833 | "url(/usr/share/ubiquity/qt/images/label_border.png) 6px;") | ||
1959 | 834 | activeSS = "color: %s; " % "#666666" | ||
1960 | 835 | inactiveSS = "color: %s; " % "#b3b3b3" | ||
1961 | 836 | currentSS = "%s color: %s; " % (borderCSS, "#0088aa") | ||
1962 | 837 | |||
1963 | 838 | #set all the steps active | 821 | #set all the steps active |
1964 | 839 | #each step will set its previous ones as inactive | 822 | #each step will set its previous ones as inactive |
1965 | 840 | #this handles the ability to go back | 823 | #this handles the ability to go back |
1966 | 841 | 824 | ||
1967 | 842 | found = False | ||
1968 | 843 | is_install = False | 825 | is_install = False |
1969 | 844 | for page in self.pages: | 826 | for page in self.pages: |
1970 | 845 | if page.module.NAME == n: | 827 | if page.module.NAME == n: |
1971 | @@ -855,16 +837,8 @@ | |||
1972 | 855 | index = self.stackLayout.indexOf(cur) | 837 | index = self.stackLayout.indexOf(cur) |
1973 | 856 | self.add_history(page, cur) | 838 | self.add_history(page, cur) |
1974 | 857 | self.set_current_page(index) | 839 | self.set_current_page(index) |
1975 | 858 | if page.breadcrumb: | ||
1976 | 859 | page.breadcrumb.setStyleSheet(currentSS) | ||
1977 | 860 | found = True | ||
1978 | 861 | is_install = page.ui.get('plugin_is_install') | 840 | is_install = page.ui.get('plugin_is_install') |
1985 | 862 | elif page.breadcrumb: | 841 | self._update_breadcrumbs(n) |
1980 | 863 | if found: | ||
1981 | 864 | page.breadcrumb.setStyleSheet(activeSS) | ||
1982 | 865 | else: | ||
1983 | 866 | page.breadcrumb.setStyleSheet(inactiveSS) | ||
1984 | 867 | self.ui.breadcrumb_install.setStyleSheet(activeSS) | ||
1986 | 868 | 842 | ||
1987 | 869 | if is_install: | 843 | if is_install: |
1988 | 870 | self.ui.next.setText( | 844 | self.ui.next.setText( |
1989 | @@ -1210,7 +1184,7 @@ | |||
1990 | 1210 | self.finished_pages = True | 1184 | self.finished_pages = True |
1991 | 1211 | if self.finished_installing or self.oem_user_config: | 1185 | if self.finished_installing or self.oem_user_config: |
1992 | 1212 | self.debconf_progress_info('') | 1186 | self.debconf_progress_info('') |
1994 | 1213 | self.ui.progressBar.show() | 1187 | self._show_progress_bar(True) |
1995 | 1214 | dbfilter = plugininstall.Install(self) | 1188 | dbfilter = plugininstall.Install(self) |
1996 | 1215 | dbfilter.start(auto_process=True) | 1189 | dbfilter.start(auto_process=True) |
1997 | 1216 | 1190 | ||
1998 | @@ -1219,7 +1193,7 @@ | |||
1999 | 1219 | # starts, it does so with the most recent changes. | 1193 | # starts, it does so with the most recent changes. |
2000 | 1220 | self.stop_debconf() | 1194 | self.stop_debconf() |
2001 | 1221 | self.start_debconf() | 1195 | self.start_debconf() |
2003 | 1222 | self.ui.progressBar.show() | 1196 | self._show_progress_bar(True) |
2004 | 1223 | self.installing = True | 1197 | self.installing = True |
2005 | 1224 | from ubiquity.debconfcommunicator import DebconfCommunicator | 1198 | from ubiquity.debconfcommunicator import DebconfCommunicator |
2006 | 1225 | if self.parallel_db is not None: | 1199 | if self.parallel_db is not None: |
2007 | @@ -1245,7 +1219,7 @@ | |||
2008 | 1245 | dbfilter = plugininstall.Install(self) | 1219 | dbfilter = plugininstall.Install(self) |
2009 | 1246 | dbfilter.start(auto_process=True) | 1220 | dbfilter.start(auto_process=True) |
2010 | 1247 | else: | 1221 | else: |
2012 | 1248 | self.ui.progressBar.hide() | 1222 | self._show_progress_bar(False) |
2013 | 1249 | 1223 | ||
2014 | 1250 | elif finished_step == 'ubiquity.components.plugininstall': | 1224 | elif finished_step == 'ubiquity.components.plugininstall': |
2015 | 1251 | self.installing = False | 1225 | self.installing = False |
2016 | @@ -1281,7 +1255,7 @@ | |||
2017 | 1281 | self.ui.next.setIcon(self.forwardIcon) | 1255 | self.ui.next.setIcon(self.forwardIcon) |
2018 | 1282 | self.translate_widget(self.ui.next) | 1256 | self.translate_widget(self.ui.next) |
2019 | 1283 | self.installing = False | 1257 | self.installing = False |
2021 | 1284 | self.ui.progressBar.hide() | 1258 | self._show_progress_bar(False) |
2022 | 1285 | self.ui.quit.show() | 1259 | self.ui.quit.show() |
2023 | 1286 | 1260 | ||
2024 | 1287 | def error_dialog(self, title, msg, fatal=True): | 1261 | def error_dialog(self, title, msg, fatal=True): |