Merge lp:~diegosarmentero/ubuntuone-windows-installer/titles-on-pages into lp:ubuntuone-windows-installer

Proposed by Diego Sarmentero
Status: Merged
Approved by: Diego Sarmentero
Approved revision: 32
Merged at revision: 26
Proposed branch: lp:~diegosarmentero/ubuntuone-windows-installer/titles-on-pages
Merge into: lp:ubuntuone-windows-installer
Prerequisite: lp:~ralsina/ubuntuone-windows-installer/ui-come-back-to-installer
Diff against target: 245 lines (+26/-67)
7 files modified
data/qt/choose_sign_in.ui (+2/-18)
data/qt/local_folders.ui (+1/-1)
data/qt/setup_account.ui (+2/-2)
data/qt/ubuntuone.qss (+4/-0)
ubuntuone_installer/gui/qt/gui.py (+11/-38)
ubuntuone_installer/gui/qt/local_folders.py (+6/-4)
ubuntuone_installer/gui/qt/tests/test_gui.py (+0/-4)
To merge this branch: bzr merge lp:~diegosarmentero/ubuntuone-windows-installer/titles-on-pages
Reviewer Review Type Date Requested Status
Natalia Bidart (community) Approve
Review via email: mp+70169@code.launchpad.net

This proposal supersedes a proposal from 2011-08-02.

Commit message

Move all the Titles and Subtitles into the Wizard Pages

Description of the change

Move all the Titles and Subtitles into the Wizard Pages

To post a comment you must log in.
Revision history for this message
Diego Sarmentero (diegosarmentero) wrote : Posted in a previous version of this proposal

Both of the revisions says merge, but the first one is:
"Add Title and Subtitle labels into the UI to avoid the resizing of the SideWidget"

Revision history for this message
John Lenton (chipaca) wrote : Posted in a previous version of this proposal

are the changes to 'bin/ubuntuone-installer-qt' kosher?

Revision history for this message
Diego Sarmentero (diegosarmentero) wrote : Posted in a previous version of this proposal

That changes are really from Roberto's branch, but his branch is already merge with mine because they are related.
I'm waiting for his branch to be approved to merge mine.

Revision history for this message
John Lenton (chipaca) wrote : Posted in a previous version of this proposal

On Tue, 02 Aug 2011 14:24:34 -0000, Diego Sarmentero <email address hidden> wrote:
> That changes are really from Roberto's branch, but his branch is already merge with mine because they are related.
> I'm waiting for his branch to be approved to merge mine.

that's what the 'prerequisite branch' field is for in merge
proposals :)

26. By Diego Sarmentero

adding word wrap mode to title and subtitles.

27. By Diego Sarmentero

Installer modified to allow the pages to work with setTitle and setSubTitle.

28. By Diego Sarmentero

tests modified to use the new setTitle and setSubtitle

29. By Diego Sarmentero

modifying ui to add a header in all the pages dinamically.

30. By Diego Sarmentero

merge

31. By Diego Sarmentero

removing __init__ with just super.

32. By Diego Sarmentero

reverting changes in setup_account.py

Revision history for this message
Natalia Bidart (nataliabidart) wrote :

Looks good!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'data/qt/choose_sign_in.ui'
2--- data/qt/choose_sign_in.ui 2011-07-27 15:17:31 +0000
3+++ data/qt/choose_sign_in.ui 2011-08-05 13:50:36 +0000
4@@ -6,8 +6,8 @@
5 <rect>
6 <x>0</x>
7 <y>0</y>
8- <width>541</width>
9- <height>365</height>
10+ <width>432</width>
11+ <height>387</height>
12 </rect>
13 </property>
14 <property name="windowTitle">
15@@ -15,22 +15,6 @@
16 </property>
17 <layout class="QVBoxLayout" name="verticalLayout_2">
18 <item>
19- <spacer name="verticalSpacer">
20- <property name="orientation">
21- <enum>Qt::Vertical</enum>
22- </property>
23- <property name="sizeType">
24- <enum>QSizePolicy::Preferred</enum>
25- </property>
26- <property name="sizeHint" stdset="0">
27- <size>
28- <width>10</width>
29- <height>30</height>
30- </size>
31- </property>
32- </spacer>
33- </item>
34- <item>
35 <layout class="QHBoxLayout" name="horizontalLayout_2">
36 <item>
37 <spacer name="horizontalSpacer_3">
38
39=== modified file 'data/qt/local_folders.ui'
40--- data/qt/local_folders.ui 2011-07-31 12:09:11 +0000
41+++ data/qt/local_folders.ui 2011-08-05 13:50:36 +0000
42@@ -6,7 +6,7 @@
43 <rect>
44 <x>0</x>
45 <y>0</y>
46- <width>460</width>
47+ <width>519</width>
48 <height>536</height>
49 </rect>
50 </property>
51
52=== modified file 'data/qt/setup_account.ui'
53--- data/qt/setup_account.ui 2011-07-28 18:24:58 +0000
54+++ data/qt/setup_account.ui 2011-08-05 13:50:36 +0000
55@@ -6,7 +6,7 @@
56 <rect>
57 <x>0</x>
58 <y>0</y>
59- <width>569</width>
60+ <width>575</width>
61 <height>521</height>
62 </rect>
63 </property>
64@@ -15,7 +15,7 @@
65 </property>
66 <layout class="QVBoxLayout" name="verticalLayout">
67 <property name="rightMargin">
68- <number>0</number>
69+ <number>6</number>
70 </property>
71 <item>
72 <layout class="QGridLayout" name="gridLayout" columnminimumwidth="300,250">
73
74=== modified file 'data/qt/ubuntuone.qss'
75--- data/qt/ubuntuone.qss 2011-07-28 18:24:58 +0000
76+++ data/qt/ubuntuone.qss 2011-08-05 13:50:36 +0000
77@@ -122,3 +122,7 @@
78 QFrame#frm_box > QLabel{
79 font-size: 24px;
80 }
81+
82+QLabel#title_label{
83+ font-size: 20px;
84+}
85
86=== modified file 'ubuntuone_installer/gui/qt/gui.py'
87--- ubuntuone_installer/gui/qt/gui.py 2011-08-02 21:01:10 +0000
88+++ ubuntuone_installer/gui/qt/gui.py 2011-08-05 13:50:36 +0000
89@@ -28,6 +28,7 @@
90 from PyQt4 import QtGui, QtCore
91
92 from ubuntu_sso.qt.gui import (
93+ SSOWizardPage,
94 EmailVerificationPage,
95 ErrorPage,
96 ForgottenPasswordPage,
97@@ -95,14 +96,12 @@
98 # pylint: enable=C0103
99
100
101-class LicensePage(QtGui.QWizardPage):
102+class LicensePage(SSOWizardPage):
103 """Wizard Page that displays the license info and links to the GPL."""
104
105 def __init__(self, parent=None):
106- super(LicensePage, self).__init__(parent)
107- self.ui = license_ui.Ui_Form()
108- self.ui.setupUi(self)
109- self._next_id = None
110+ super(LicensePage, self).__init__(license_ui.Ui_Form(), None, parent)
111+ self.header.setVisible(False)
112
113 # Invalid names of Qt-inherited methods
114 # pylint: disable=C0103
115@@ -155,17 +154,9 @@
116 return self._next_id
117
118
119-class SignInPage(QtGui.QWizardPage):
120+class SignInPage(SSOWizardPage):
121 """Wizard Page that lets the user Sign into Ubuntu One."""
122
123- def __init__(self, ui=None, controller=None, parent=None):
124- super(SignInPage, self).__init__(parent)
125- self.ui = ui
126- self.ui.setupUi(self)
127- self.controller = controller
128- self.controller.setupUi(self)
129- self.next = -1
130-
131 # Invalid names of Qt-inherited methods
132 # pylint: disable=C0103
133
134@@ -192,17 +183,9 @@
135 return self.next
136
137
138-class CurrentUserSignInPage(QtGui.QWizardPage):
139+class CurrentUserSignInPage(SSOWizardPage):
140 """Wizard Page that lets a current user Sign into Ubuntu One."""
141
142- def __init__(self, ui=None, controller=None, parent=None):
143- super(CurrentUserSignInPage, self).__init__(parent)
144- self.ui = ui
145- self.ui.setupUi(self)
146- self.controller = controller
147- self.controller.setupUi(self)
148- self.next = -1
149-
150 # Invalid names of Qt-inherited methods
151 # pylint: disable=C0103
152
153@@ -228,17 +211,9 @@
154 self.ui.sign_in_button)
155
156
157-class SuccessPage(QtGui.QWizardPage):
158+class SuccessPage(SSOWizardPage):
159 """Shown after SSO login, before setup."""
160
161- def __init__(self, ui=None, controller=None, parent=None):
162- super(SuccessPage, self).__init__(parent)
163- self.ui = ui
164- self.ui.setupUi(self)
165- self.controller = controller
166- self.controller.setupUi(self)
167- self.next = -1
168-
169 # Invalid names of Qt-inherited methods
170 # pylint: disable=C0103
171
172@@ -256,13 +231,12 @@
173 return self.next
174
175
176-class CongratulationsPage(QtGui.QWizardPage):
177+class CongratulationsPage(SSOWizardPage):
178 """Final page of the wizard."""
179
180 def __init__(self, parent=None):
181- super(CongratulationsPage, self).__init__(parent)
182- self.ui = congratulations_ui.Ui_Form()
183- self.ui.setupUi(self)
184+ super(CongratulationsPage, self).__init__(
185+ congratulations_ui.Ui_Form(), None, parent)
186 self.setFinalPage(True)
187
188 # Invalid names of Qt-inherited methods
189@@ -324,8 +298,7 @@
190
191 self.setWindowTitle(APP_NAME)
192 self.setMinimumHeight(630)
193- self.setMinimumWidth(820)
194- self.setTitleFormat(QtCore.Qt.RichText)
195+ self.setMinimumWidth(800)
196 self.setWizardStyle(self.ModernStyle)
197 self.close_callback = close_callback
198
199
200=== modified file 'ubuntuone_installer/gui/qt/local_folders.py'
201--- ubuntuone_installer/gui/qt/local_folders.py 2011-07-31 12:08:39 +0000
202+++ ubuntuone_installer/gui/qt/local_folders.py 2011-08-05 13:50:36 +0000
203@@ -28,6 +28,8 @@
204
205 from ubuntuone.controlpanel.gui import humanize
206
207+from ubuntu_sso.qt.gui import SSOWizardPage
208+
209 from ubuntuone_installer.gui.qt.ui import local_folders_ui
210 from ubuntuone_installer.gui import (
211 LOCAL_FOLDERS_TITLE,
212@@ -65,14 +67,14 @@
213 self.queue.put([self.path_name, total_size])
214
215
216-class LocalFoldersPage(QtGui.QWizardPage):
217+class LocalFoldersPage(SSOWizardPage):
218 """Wizard page to create UDFs in the Windows Installer."""
219
220 def __init__(self, parent=None):
221- super(LocalFoldersPage, self).__init__(parent)
222+ super(LocalFoldersPage, self).__init__(
223+ local_folders_ui.Ui_Form(), None, parent)
224 self.setTitle(LOCAL_FOLDERS_TITLE)
225- self.ui = local_folders_ui.Ui_Form()
226- self.ui.setupUi(self)
227+ self.setSubTitle()
228
229 header_view = self.ui.folder_list.header()
230 header_view.setResizeMode(0, header_view.Stretch)
231
232=== modified file 'ubuntuone_installer/gui/qt/tests/test_gui.py'
233--- ubuntuone_installer/gui/qt/tests/test_gui.py 2011-08-02 21:01:10 +0000
234+++ ubuntuone_installer/gui/qt/tests/test_gui.py 2011-08-05 13:50:36 +0000
235@@ -372,10 +372,6 @@
236
237 def test_license_next(self):
238 """Test what's the license page's nextID."""
239- self.assertEqual(self.ui.LICENSE_PAGE.nextId(), self.ui.SIGNIN_PAGE)
240-
241- def test_license_next_with_creds(self):
242- """Test what's the license page's nextID."""
243 self.ui.creds_cb("fakecreds")
244 self.assertEqual(self.ui.LICENSE_PAGE.nextId(),
245 self.ui.local_folders_page_id)

Subscribers

People subscribed via source and target branches