Merge lp:~mzanetti/unity8/disable-hud into lp:unity8

Proposed by Michael Zanetti
Status: Superseded
Proposed branch: lp:~mzanetti/unity8/disable-hud
Merge into: lp:unity8
Diff against target: 268 lines (+3/-168)
5 files modified
plugins/Utils/CMakeLists.txt (+0/-1)
plugins/Utils/bottombarvisibilitycommunicatorshell.cpp (+0/-49)
plugins/Utils/bottombarvisibilitycommunicatorshell.h (+0/-59)
plugins/Utils/plugin.cpp (+0/-10)
qml/Shell.qml (+3/-49)
To merge this branch: bzr merge lp:~mzanetti/unity8/disable-hud
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Needs Fixing
Michał Sawicz Abstain
Albert Astals Cid (community) Needs Fixing
Review via email: mp+209226@code.launchpad.net

This proposal has been superseded by a proposal from 2014-03-06.

Commit message

disable hud and its tests. Not deleting any code yet as we don't know how it will come back.

Description of the change

* Are there any related MPs required for this MP to build/function as expected? Please list.

https://code.launchpad.net/~mzanetti/ubuntu-ui-toolkit/drop-bottombarvisibilitycommunicator/+merge/209446

 * Did you perform an exploratory manual test run of your code change and any related functionality?

Yes

 * If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?

N/A

 * If you changed the UI, has there been a design review?

N/A

To post a comment you must log in.
lp:~mzanetti/unity8/disable-hud updated
749. By Michael Zanetti

completely drop Hud and Bttombar from Shell.qml

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:748
http://jenkins.qa.ubuntu.com/job/unity8-ci/2424/
Executed test runs:
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-trusty/3647
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-trusty-touch/3252/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-trusty/1294
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-trusty-amd64-ci/945
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-trusty-armhf-ci/949
        deb: http://jenkins.qa.ubuntu.com/job/unity8-trusty-armhf-ci/949/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-trusty-i386-ci/945
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/autopilot-testrunner-otto-trusty/3208
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-amd64/3651
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-amd64/3651/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-armhf/3254
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-armhf/3254/artifact/work/output/*zip*/output.zip
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-runner-mako/5629/console
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/4447

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/unity8-ci/2424/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:749
http://jenkins.qa.ubuntu.com/job/unity8-ci/2426/
Executed test runs:
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-trusty/3654
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-trusty-touch/3259/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-trusty/1296
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-trusty-amd64-ci/947
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-trusty-armhf-ci/951
        deb: http://jenkins.qa.ubuntu.com/job/unity8-trusty-armhf-ci/951/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-trusty-i386-ci/947
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/autopilot-testrunner-otto-trusty/3213
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-amd64/3658
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-amd64/3658/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-armhf/3261
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-armhf/3261/artifact/work/output/*zip*/output.zip
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-runner-mako/5635/console
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/4455

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/unity8-ci/2426/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Albert Astals Cid (aacid) wrote :

You probably want to comment out
  ./plugins/Utils/plugin.cpp:71: engine->rootContext()->setContextProperty("bottomBarVisibilityCommunicatorShell", bottomBarVisibilityCommunicator);
and the associated bottomBarVisibilityCommunicator code.

review: Needs Fixing
Revision history for this message
Michał Sawicz (saviq) wrote :
review: Needs Fixing
Revision history for this message
Michał Sawicz (saviq) wrote :

Ah oh well, disabled_ works fine, too...

review: Abstain
lp:~mzanetti/unity8/disable-hud updated
750. By Michael Zanetti

also drop the bottombarvisiblitycommunicatorshell

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:750
http://jenkins.qa.ubuntu.com/job/unity8-ci/2431/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-trusty/3671
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-trusty-touch/3270/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-trusty/1301
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-trusty-amd64-ci/952
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-trusty-armhf-ci/956
        deb: http://jenkins.qa.ubuntu.com/job/unity8-trusty-armhf-ci/956/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-trusty-i386-ci/952
    SUCCESS: http://jenkins.qa.ubuntu.com/job/autopilot-testrunner-otto-trusty/3225
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-amd64/3676
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-amd64/3676/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-armhf/3272
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-armhf/3272/artifact/work/output/*zip*/output.zip
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-runner-mako/5644/console
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/4484

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/unity8-ci/2431/rebuild

review: Needs Fixing (continuous-integration)
lp:~mzanetti/unity8/disable-hud updated
751. By Michael Zanetti

merge upstream branch

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:750
http://jenkins.qa.ubuntu.com/job/unity8-ci/2444/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-trusty/3717
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-trusty-touch/3308/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-trusty/1314
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-trusty-amd64-ci/965
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-trusty-armhf-ci/969
        deb: http://jenkins.qa.ubuntu.com/job/unity8-trusty-armhf-ci/969/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-trusty-i386-ci/965
    SUCCESS: http://jenkins.qa.ubuntu.com/job/autopilot-testrunner-otto-trusty/3267
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-amd64/3722
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-amd64/3722/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-armhf/3310
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-armhf/3310/artifact/work/output/*zip*/output.zip
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-runner-mako/5680/console
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/4533

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/unity8-ci/2444/rebuild

review: Needs Fixing (continuous-integration)

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/Utils/CMakeLists.txt'
2--- plugins/Utils/CMakeLists.txt 2014-02-18 14:39:51 +0000
3+++ plugins/Utils/CMakeLists.txt 2014-03-06 14:25:32 +0000
4@@ -12,7 +12,6 @@
5
6 set(QMLPLUGIN_SRC
7 albumartprovider.cpp
8- bottombarvisibilitycommunicatorshell.cpp
9 mediaartcache.cpp
10 qlimitproxymodelqml.cpp
11 qsortfilterproxymodelqml.cpp
12
13=== removed file 'plugins/Utils/bottombarvisibilitycommunicatorshell.cpp'
14--- plugins/Utils/bottombarvisibilitycommunicatorshell.cpp 2013-11-12 12:13:04 +0000
15+++ plugins/Utils/bottombarvisibilitycommunicatorshell.cpp 1970-01-01 00:00:00 +0000
16@@ -1,49 +0,0 @@
17-/*
18- * Copyright (C) 2012 Canonical, Ltd.
19- *
20- * This program is free software; you can redistribute it and/or modify
21- * it under the terms of the GNU General Public License as published by
22- * the Free Software Foundation; version 3.
23- *
24- * This program is distributed in the hope that it will be useful,
25- * but WITHOUT ANY WARRANTY; without even the implied warranty of
26- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27- * GNU General Public License for more details.
28- *
29- * You should have received a copy of the GNU General Public License
30- * along with this program. If not, see <http://www.gnu.org/licenses/>.
31- */
32-
33-#include "bottombarvisibilitycommunicatorshell.h"
34-
35-BottomBarVisibilityCommunicatorShell::BottomBarVisibilityCommunicatorShell()
36- : m_forceHidden(false),
37- m_position(0)
38-{
39-}
40-
41-bool BottomBarVisibilityCommunicatorShell::forceHidden() const
42-{
43- return m_forceHidden;
44-}
45-
46-double BottomBarVisibilityCommunicatorShell::position() const
47-{
48- return m_position;
49-}
50-
51-void BottomBarVisibilityCommunicatorShell::setForceHidden(bool forceHidden)
52-{
53- if (forceHidden != m_forceHidden) {
54- m_forceHidden = forceHidden;
55- Q_EMIT forceHiddenChanged(forceHidden);
56- }
57-}
58-
59-void BottomBarVisibilityCommunicatorShell::setPosition(double position)
60-{
61- if (position != m_position) {
62- m_position = position;
63- Q_EMIT positionChanged(position);
64- }
65-}
66
67=== removed file 'plugins/Utils/bottombarvisibilitycommunicatorshell.h'
68--- plugins/Utils/bottombarvisibilitycommunicatorshell.h 2013-11-12 12:13:04 +0000
69+++ plugins/Utils/bottombarvisibilitycommunicatorshell.h 1970-01-01 00:00:00 +0000
70@@ -1,59 +0,0 @@
71-/*
72- * Copyright (C) 2012 Canonical, Ltd.
73- *
74- * This program is free software; you can redistribute it and/or modify
75- * it under the terms of the GNU General Public License as published by
76- * the Free Software Foundation; version 3.
77- *
78- * This program is distributed in the hope that it will be useful,
79- * but WITHOUT ANY WARRANTY; without even the implied warranty of
80- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
81- * GNU General Public License for more details.
82- *
83- * You should have received a copy of the GNU General Public License
84- * along with this program. If not, see <http://www.gnu.org/licenses/>.
85- */
86-
87-#ifndef BOTTOMBARVISIBILITYCOMMUNICATORSHELL_H
88-#define BOTTOMBARVISIBILITYCOMMUNICATORSHELL_H
89-
90-#include <QObject>
91-
92-class QDBusInterface;
93-
94-/** This is an internal class used to talk with the bottom bar used by either
95- * applications or the SDK.
96- * There is a method to force the bottom bar to be hidden or otherwise behave as usual
97- */
98-
99-class BottomBarVisibilityCommunicatorShell : public QObject
100-{
101- Q_OBJECT
102- Q_PROPERTY(bool forceHidden READ forceHidden WRITE setForceHidden NOTIFY forceHiddenChanged)
103- Q_PROPERTY(double position READ position WRITE setPosition NOTIFY positionChanged)
104-
105- Q_CLASSINFO("D-Bus Interface", "com.canonical.Shell.BottomBarVisibilityCommunicator")
106-public:
107- static BottomBarVisibilityCommunicatorShell& instance() {
108- static BottomBarVisibilityCommunicatorShell instance;
109- return instance;
110- }
111-
112- bool forceHidden() const;
113- void setForceHidden(bool forceHidden);
114-
115- double position() const;
116- void setPosition(double position);
117-
118-Q_SIGNALS:
119- void forceHiddenChanged(bool forceHidden);
120- void positionChanged(double position);
121-
122-private:
123- BottomBarVisibilityCommunicatorShell();
124-
125- bool m_forceHidden;
126- double m_position;
127-};
128-
129-#endif
130
131=== modified file 'plugins/Utils/plugin.cpp'
132--- plugins/Utils/plugin.cpp 2013-12-10 14:22:43 +0000
133+++ plugins/Utils/plugin.cpp 2014-03-06 14:25:32 +0000
134@@ -27,15 +27,11 @@
135
136 // local
137 #include "albumartprovider.h"
138-#include "bottombarvisibilitycommunicatorshell.h"
139 #include "qlimitproxymodelqml.h"
140 #include "qsortfilterproxymodelqml.h"
141 #include "timeformatter.h"
142 #include "unitymenumodelpaths.h"
143
144-static const char* BOTTOM_BAR_VISIBILITY_COMMUNICATOR_DBUS_PATH = "/BottomBarVisibilityCommunicator";
145-static const char* DBUS_SERVICE = "com.canonical.Shell.BottomBarVisibilityCommunicator";
146-
147 void UtilsPlugin::registerTypes(const char *uri)
148 {
149 Q_ASSERT(uri == QLatin1String("Utils"));
150@@ -45,7 +41,6 @@
151 qmlRegisterType<UnityMenuModelPaths>(uri, 0, 1, "UnityMenuModelPaths");
152 qmlRegisterType<TimeFormatter>(uri, 0, 1, "TimeFormatter");
153 qmlRegisterType<GDateTimeFormatter>(uri, 0, 1, "GDateTimeFormatter");
154- qmlRegisterUncreatableType<BottomBarVisibilityCommunicatorShell>(uri, 0, 1, "BottomBarVisibilityCommunicatorShell", "Can't create BottomBarVisibilityCommunicatorShell");
155 }
156
157 void UtilsPlugin::initializeEngine(QQmlEngine *engine, const char *uri)
158@@ -64,9 +59,4 @@
159 {
160 qWarning() << "Failed to register image provider for albumart (unknown error)";
161 }
162-
163- QDBusConnection::sessionBus().registerService(DBUS_SERVICE);
164- BottomBarVisibilityCommunicatorShell *bottomBarVisibilityCommunicator = &BottomBarVisibilityCommunicatorShell::instance();
165- QDBusConnection::sessionBus().registerObject(BOTTOM_BAR_VISIBILITY_COMMUNICATOR_DBUS_PATH, bottomBarVisibilityCommunicator, QDBusConnection::ExportAllContents);
166- engine->rootContext()->setContextProperty("bottomBarVisibilityCommunicatorShell", bottomBarVisibilityCommunicator);
167 }
168
169=== modified file 'qml/Shell.qml'
170--- qml/Shell.qml 2014-03-04 11:42:38 +0000
171+++ qml/Shell.qml 2014-03-06 14:25:32 +0000
172@@ -28,9 +28,7 @@
173 import "Greeter"
174 import "Launcher"
175 import "Panel"
176-import "Hud"
177 import "Components"
178-import "Bottombar"
179 import "SideStage"
180 import "Notifications"
181 import Unity.Notifications 1.0 as NotificationBackend
182@@ -403,7 +401,7 @@
183
184 readonly property int backgroundTopMargin: -panel.panelHeight
185
186- hides: [launcher, panel.indicators, hud]
187+ hides: [launcher, panel.indicators]
188 shown: false
189 enabled: true
190 showAnimation: StandardAnimation { property: "opacity"; to: 1 }
191@@ -458,7 +456,7 @@
192 objectName: "greeter"
193
194 available: true
195- hides: [launcher, panel.indicators, hud]
196+ hides: [launcher, panel.indicators]
197 shown: true
198
199 defaultBackground: shell.background
200@@ -545,7 +543,7 @@
201 InputFilterArea {
202 anchors.fill: parent
203 blockInput: !applicationFocused || greeter.shown || lockscreen.shown || launcher.shown
204- || panel.indicators.shown || hud.shown
205+ || panel.indicators.shown
206 }
207
208 Connections {
209@@ -607,48 +605,6 @@
210 }
211 }
212
213- Hud {
214- id: hud
215-
216- width: parent.width > units.gu(60) ? units.gu(40) : parent.width
217- height: parent.height
218-
219- available: !greeter.shown && !panel.indicators.shown && !lockscreen.shown && edgeDemo.dashEnabled
220- shown: false
221- showAnimation: StandardAnimation { property: "y"; duration: hud.showableAnimationDuration; to: 0; easing.type: Easing.Linear }
222- hideAnimation: StandardAnimation { property: "y"; duration: hud.showableAnimationDuration; to: hudRevealer.closedValue; easing.type: Easing.Linear }
223-
224- Connections {
225- target: shell.applicationManager
226- onMainStageFocusedApplicationChanged: hud.hide()
227- onSideStageFocusedApplicationChanged: hud.hide()
228- }
229- }
230-
231- Revealer {
232- id: hudRevealer
233-
234- enabled: hud.shown
235- width: hud.width
236- anchors.left: hud.left
237- height: parent.height
238- target: hud.revealerTarget
239- closedValue: height
240- openedValue: 0
241- direction: Qt.RightToLeft
242- orientation: Qt.Vertical
243- handleSize: hud.handleHeight
244- onCloseClicked: target.hide()
245- }
246-
247- Bottombar {
248- id: bottombar
249- theHud: hud
250- anchors.fill: parent
251- enabled: hud.available
252- applicationIsOnForeground: applicationFocused
253- }
254-
255 InputFilterArea {
256 blockInput: launcher.shown
257 anchors {
258@@ -693,8 +649,6 @@
259 onShownChanged: {
260 if (shown) {
261 panel.indicators.hide()
262- hud.hide()
263- bottombar.hide()
264 }
265 }
266 }
267
268=== renamed file 'tests/autopilot/unity8/shell/tests/test_hud.py' => 'tests/autopilot/unity8/shell/tests/disabled_test_hud.py'

Subscribers

People subscribed via source and target branches