aboutsummaryrefslogtreecommitdiffstats
path: root/launcher/src/homescreenhandler.h
AgeCommit message (Collapse)AuthorFilesLines
2022-09-10Rework to use launcher wrapper from libqtappfwScott Murray1-53/+0
Switch to using the new app launcher API wrapper from libqtappfw in order to migrate to the new gRPC based API implementation. As well, the copyright headers in the source files have been tweaked to remove the Apache license boilerplate in favour of a SPDX license tag. Bug-AGL: SPEC-4559 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I62cd0a51e9c97b1db3d86ca67b7c92d086d2f1c9
2022-02-18launcher: Enable scrolling for the GridView to display more appsneedlefish_13.93.0needlefish/13.93.013.93.0Marius Vlad1-0/+1
This enables the GridView to allow scrolling and implicitly be able to display more than a dozen of applications. The interactive mode controls whether this is enabled or not, if the items is higher than what the grid can contain (which is 4x3 in our current item cell dimension). If interactive is enabled we use vertical scrolling, with some commented out examples on how to enable horizontal scrolling. In tests, horizontal scrolling caused some animation artefacts while vertical seemed to behave much more reliable. With it, we simplify the QML considerably by removing IconItem. Most of the functionality has been retained, being copy-pasted from IconItem like displaying icons, or using the first letter of the application name in case there's no icon. Note that this change removes The icon movement entirely, which seemed to cause quite a bit of issues while draging/dropping scrolling in the the grid itself. This seems to remove one feature for another, but by just enabling interactive resulted in a jerky inconsistent animation. Bug-AGL: SPEC-3028 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: I64810dbd7ef014ed0473fd92df67807d10cc36ba
2021-12-20launcher: rely on applaunchd for application startupmarlin_12.91.0marlin/12.91.012.91.0Arnaud Ferraris1-1/+6
In the new App FW setup, `launcher` should only instruct `applaunchd` to execute an application. In order to do so, it must first build a list of available applications by looking for and parsing `.desktop` files in relevant folders. Then, when an application must be started, it has to call the corresponding `applaunchd` method through D-Bus, which will then handle the application startup using either command line execution or D-Bus activation. Bug-AGL: SPEC-4159 SPEC-4160 Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com> Change-Id: Ie2f55a5acb64ed90aa6aafb687c927d87f6cc0aa
2021-12-10Remove dependency on old application framework and waylandArnaud Ferraris1-12/+3
As the Application FW is being reworked, drop all related dependencies in order to start with a simpler initial implementation. This commit also drops wayland-related code as it won't be needed anymore with the new framework. Bug-AGL: SPEC-4159 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com> Change-Id: Id268e1feee363c60b85411e822103259c1071a24
2020-06-24homescreenhandler: Add the ability to specify the output based on theMarius Vlad1-1/+1
screen Pass the output when activing the surface in Launcher.qml Bug-AGL: SPEC-3447 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: I4b8f03c90712290f580a570cd2644a4bc44687c5
2020-06-24agl-compositor: New adaptation to using the agl-shell-desktop protoMarius Vlad1-3/+4
Bug-AGL: SPEC-3447 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: I3fc7375a7a8716cc1352658cfc194645bf7f638c
2019-04-01Start app and get runnables list by homescreenwang_zhiqiang1-0/+55
1.only call showWindow when start application. 2.get runnalbes list from homescreen-service. 3.subscribe and deal with Event_AppListChanged. 4.move LICENSE file to top-level directory. 5.sort application by application name with ascending order. Bug-AGL: SPEC-2188 Change-Id: Ic960e25d8de8d063296298a1897865dc3026dee6 Signed-off-by: wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>
2019-03-27Revert "Start app and get runnables list by homescreen"Jan-Simon Moeller1-55/+0
https://gerrit.automotivelinux.org/gerrit/#/c/20559/ and https://gerrit.automotivelinux.org/gerrit/#/c/20223/ caused the launcher not to display any icons. Reverting until resolved. This reverts commit 607fdc0374e76a272455cc010f35693ba8b6894b. Change-Id: I3040f0a44b8cfc449e57c27e32ed631fc98b34fd
2019-03-22Start app and get runnables list by homescreenwang_zhiqiang1-0/+55
1.only call showWindow when start application. 2.get runnalbes list from homescreen-service. 3.subscribe and deal with Event_AppListChanged. 4.move LICENSE file to top-level directory. Bug-AGL: SPEC-2188 Change-Id: If0ce87a2f770b1a06ba72fdb087a24719d92d124 Signed-off-by: wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>