aboutsummaryrefslogtreecommitdiffstats
path: root/launcher/qml/Launcher.qml
AgeCommit message (Collapse)AuthorFilesLines
2022-09-10Rework to use launcher wrapper from libqtappfwScott Murray1-18/+5
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-63/+107
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-2/+1
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-5/+5
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-24Launcher.qml: Use Window widths/heights instead of using the ScreenMarius Vlad1-2/+2
Bug-AGL: SPEC-3379 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: Ie6ef5238953ad28de2b53476a61a5c547a7ecc9c
2020-06-24homescreenhandler: Add the ability to specify the output based on theMarius Vlad1-1/+7
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/+5
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-8/+17
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-17/+8
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-8/+17
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>
2018-11-06use appid instead of appname in "tap_shortcut"halibut_7.90.0halibut/7.90.0guppy_6.99.4guppy_6.99.3guppy_6.99.2guppy_6.99.1guppy/6.99.4guppy/6.99.3guppy/6.99.2guppy/6.99.17.90.06.99.46.99.36.99.26.99.1wang_zhiqiang1-1/+1
Now In homescreen-service used application_id to identify different application, so use appid instead of appname in "tap_shortcut" parameter. Bug-AGL: SPEC-1764 Change-Id: Ia7004dbbc9851e95f959e551e0427c9dc308eb9b Signed-off-by: wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>
2018-10-13fix issue,call tap_shortcut carelesslywang_zhiqiang1-1/+4
the scenes as below not call tap_shortcut 1)when touch blank 2)long press or move icon Change-Id: I13f2d1833af323da19ce2521cd2be6188fe1bb7a Signed-off-by: wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>
2018-08-24Revert "Use appid between homescreen-service and apps"guppy_6.90.0guppy/6.90.0flounder_5.99.6flounder_5.99.5flounder_5.99.4flounder/5.99.6flounder/5.99.5flounder/5.99.46.90.05.99.65.99.55.99.4Tadao Tanikawa1-1/+1
This reverts commit 5fbb59e80e4f870a1badd694d2efcd8cd941cdfb. Bug-AGL: SPEC-1685 Change-Id: Idd71625415b79cff6ab76b6179236d946a5aab41 Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
2018-08-19Fix short height of background imageTadao Tanikawa1-5/+2
Recently window manager changed the homescreen layout, the height for application changed from 1487 to 1488 css pixel. Before reworking about multiple resolution, this causes unexpected stretch of background image. After, this causes short of height of background. Bug-AGL: SPEC-1611 Change-Id: I05a55f3dc4f4444dc681b8b35db0e99d6c1aeb35 Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
2018-08-06Use appid between homescreen-service and appsflounder_5.99.3flounder/5.99.35.99.3zheng_wenlong1-1/+1
Use appid between hss and apps, and check event destination in libhomescreen. So these is no need compare code when recived Event_TapShortcut Event. BUG-AGL: SPEC-1645 Change-Id: I02a87f289c6da0a86012fd304fb1f2d2452ee990 Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
2018-08-02Improve output of multiple screen resolutionTadao Tanikawa1-20/+22
To improve output on various monitor with various resolution, use scale_factor from WM to fit various screen resolution. Bug-AGL: SPEC-1568, SPEC-1569, SPEC-1611 Change-Id: I6e71fd0a2c9cf5fbcf23ea529a094b74da6c1841 Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
2018-06-27Detach launcher application from HomeScreenzheng_wenlong1-0/+94
Detach launcher application from Homescreen, Use qlibhomescreen instead of homescreenhandle. [Patch sets 3] This application needs qlibhomescreen, add into sdk in 14597. [Patch sets 4] Right now add qlibhomescreen class into src for instead. Delete it after qlibhomescreen is add into sdk. [Patch sets 5] From Jan-Simon advise, waitting for qlibhomescreen sdk. So return to Patch sets 3. Relative commit: https://gerrit.automotivelinux.org/gerrit/#/c/14597/ Task-AGL: SPEC-1518 Change-Id: Ia16aecddd2bf4623038a84254a0c56967ace9b92 Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>