From 0676869ae83b3e2cdac77c0a29367367ca211f5a Mon Sep 17 00:00:00 2001 From: Tadao Tanikawa Date: Fri, 22 Dec 2017 10:13:01 +0000 Subject: [PATCH] Add example for Video/WebBrowser Add example to create widget for imcoming new apps: Video and WebBrowser. This patch is for testing refactoring HomeScreen icon handling. Change-Id: I9e95063006704bbc46ba32cc6dcf1c9644a8aec2 Signed-off-by: Tadao Tanikawa --- CMakeLists.txt | 7 + package/hvac/icon.svg | 552 +++++++++++++++++++++++------------------ package/navi/icon.svg | 386 +++++++++++----------------- package/simple-egl/icon.svg | 317 ++++++----------------- package/video/bin/runxdg | 2 + package/video/config.xml | 16 ++ package/video/icon.svg | 111 +++++++++ package/video/runxdg.toml | 22 ++ package/webbrowser/bin/runxdg | 2 + package/webbrowser/config.xml | 16 ++ package/webbrowser/icon.svg | 165 ++++++++++++ package/webbrowser/runxdg.toml | 22 ++ 12 files changed, 895 insertions(+), 723 deletions(-) create mode 100755 package/video/bin/runxdg create mode 100644 package/video/config.xml create mode 100644 package/video/icon.svg create mode 100644 package/video/runxdg.toml create mode 100755 package/webbrowser/bin/runxdg create mode 100644 package/webbrowser/config.xml create mode 100644 package/webbrowser/icon.svg create mode 100644 package/webbrowser/runxdg.toml diff --git a/CMakeLists.txt b/CMakeLists.txt index 0021575..af5e6b7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -57,4 +57,11 @@ add_custom_target(widget COMMAND wgtpkg-pack -f -o ${PROJECT_BINARY_DIR}/package/hvac.wgt ${PROJECT_BINARY_DIR}/package/hvac # override navigation to test runxdg COMMAND wgtpkg-pack -f -o ${PROJECT_BINARY_DIR}/package/navi.wgt ${PROJECT_BINARY_DIR}/package/navi + + # test for video + COMMAND wgtpkg-pack -f -o ${PROJECT_BINARY_DIR}/package/video.wgt ${PROJECT_BINARY_DIR}/package/video + + # test for webbrowser + COMMAND wgtpkg-pack -f -o ${PROJECT_BINARY_DIR}/package/webbrowser.wgt ${PROJECT_BINARY_DIR}/package/webbrowser + ) diff --git a/package/hvac/icon.svg b/package/hvac/icon.svg index 91661a7..67918e6 100644 --- a/package/hvac/icon.svg +++ b/package/hvac/icon.svg @@ -1,5 +1,5 @@ - + image/svg+xmlMULTIMEDIA - \ No newline at end of file + id="stop5389" /> \ No newline at end of file diff --git a/package/navi/icon.svg b/package/navi/icon.svg index 91661a7..97fcf31 100644 --- a/package/navi/icon.svg +++ b/package/navi/icon.svg @@ -1,5 +1,5 @@ - + image/svg+xmlMULTIMEDIA - \ No newline at end of file + id="stop3889" /> \ No newline at end of file diff --git a/package/simple-egl/icon.svg b/package/simple-egl/icon.svg index 91661a7..882e3c4 100644 --- a/package/simple-egl/icon.svg +++ b/package/simple-egl/icon.svg @@ -1,5 +1,5 @@ - + image/svg+xmlMULTIMEDIA - \ No newline at end of file + id="stop5589" /> \ No newline at end of file diff --git a/package/video/bin/runxdg b/package/video/bin/runxdg new file mode 100755 index 0000000..dac903c --- /dev/null +++ b/package/video/bin/runxdg @@ -0,0 +1,2 @@ +#!/bin/sh +exec /usr/bin/runxdg $@ diff --git a/package/video/config.xml b/package/video/config.xml new file mode 100644 index 0000000..3aa9332 --- /dev/null +++ b/package/video/config.xml @@ -0,0 +1,16 @@ + + + Video + + + This is a demo application for video player + Tasuku Suzuki <tasuku.suzuki@qt.io> + APL 2.0 + + + + + + + + diff --git a/package/video/icon.svg b/package/video/icon.svg new file mode 100644 index 0000000..905d46f --- /dev/null +++ b/package/video/icon.svg @@ -0,0 +1,111 @@ + + + +image/svg+xml \ No newline at end of file diff --git a/package/video/runxdg.toml b/package/video/runxdg.toml new file mode 100644 index 0000000..4061f04 --- /dev/null +++ b/package/video/runxdg.toml @@ -0,0 +1,22 @@ +[application] +# role: identifier for WindowManager (used in layers.json) +# e.g. role = "WebBrowser" +role = "Video" + +# launch by "POSIX"(fork/exec), "AFM_DBUS"(afm via dbus), "AFM_WEBSOCKET"(afm via websockt) +method = "POSIX" + +# path: path to the executable +# e.g. +# path = "/usr/bin/chromium" +path = "/usr/bin/weston-simple-egl" + +# params: arguments of the excecutable +# e.g. +# params = [ +# "--mus", +# "--no-sandbox", +# '--window-size="1080,1488"', +# "--ozone-platform=wayland", +# "" +# ] diff --git a/package/webbrowser/bin/runxdg b/package/webbrowser/bin/runxdg new file mode 100755 index 0000000..dac903c --- /dev/null +++ b/package/webbrowser/bin/runxdg @@ -0,0 +1,2 @@ +#!/bin/sh +exec /usr/bin/runxdg $@ diff --git a/package/webbrowser/config.xml b/package/webbrowser/config.xml new file mode 100644 index 0000000..68cab15 --- /dev/null +++ b/package/webbrowser/config.xml @@ -0,0 +1,16 @@ + + + WebBrowser + + + Web Browser (Chromium) + IoT.bzh + MIT + + + + + + + + diff --git a/package/webbrowser/icon.svg b/package/webbrowser/icon.svg new file mode 100644 index 0000000..09f34c9 --- /dev/null +++ b/package/webbrowser/icon.svg @@ -0,0 +1,165 @@ + + + +image/svg+xml \ No newline at end of file diff --git a/package/webbrowser/runxdg.toml b/package/webbrowser/runxdg.toml new file mode 100644 index 0000000..8ec2325 --- /dev/null +++ b/package/webbrowser/runxdg.toml @@ -0,0 +1,22 @@ +[application] +# role: identifier for WindowManager (used in layers.json) +# e.g. role = "WebBrowser" +role = "WebBrowser" + +# launch by "POSIX"(fork/exec), "AFM_DBUS"(afm via dbus), "AFM_WEBSOCKET"(afm via websockt) +method = "POSIX" + +# path: path to the executable +# e.g. +# path = "/usr/bin/chromium" +path = "/usr/bin/weston-simple-egl" + +# params: arguments of the excecutable +# e.g. +# params = [ +# "--mus", +# "--no-sandbox", +# '--window-size="1080,1488"', +# "--ozone-platform=wayland", +# "" +# ] -- 2.16.6