From 168eab524d6c8bf7566078162802999964771efb Mon Sep 17 00:00:00 2001 From: Soohye Shin Date: Wed, 3 Jun 2015 21:32:24 +0900 Subject: [PATCH 2/5] initial commit Change-Id: I508c13a144060df1c4bac9497d34cd5135271767 Signed-off-by: Soohye Shin --- CMakeLists.txt | 74 +++++++++++++++++++++++ config/CMakeLists.txt | 17 ++++++ config/home.json.in | 40 ++++++++++++ edje/CMakeLists.txt | 8 +++ edje/home.edc | 20 ++++++ edje/images/ico_arrow_down.png | Bin 0 -> 639 bytes edje/images/ico_arrow_up.png | Bin 0 -> 596 bytes images/icn_app_foc.png | Bin 0 -> 1212 bytes images/icn_history_foc.png | Bin 0 -> 1869 bytes images/icn_movie_foc.png | Bin 0 -> 1560 bytes images/icn_noti_foc.png | Bin 0 -> 2345 bytes images/ico_man.png | Bin 0 -> 20722 bytes include/defs.h | 20 ++++++ org.tizen.home.xml.in | 9 +++ packaging/org.tizen.home.manifest | 5 ++ packaging/org.tizen.home.path | 5 ++ packaging/org.tizen.home.service | 5 ++ packaging/org.tizen.home.spec | 74 +++++++++++++++++++++++ src/main.c | 124 ++++++++++++++++++++++++++++++++++++++ 19 files changed, 401 insertions(+) create mode 100644 CMakeLists.txt create mode 100644 config/CMakeLists.txt create mode 100644 config/home.json.in create mode 100644 edje/CMakeLists.txt create mode 100644 edje/home.edc create mode 100644 edje/images/ico_arrow_down.png create mode 100644 edje/images/ico_arrow_up.png create mode 100644 images/icn_app_foc.png create mode 100644 images/icn_history_foc.png create mode 100644 images/icn_movie_foc.png create mode 100644 images/icn_noti_foc.png create mode 100644 images/ico_man.png create mode 100644 include/defs.h create mode 100644 org.tizen.home.xml.in create mode 100644 packaging/org.tizen.home.manifest create mode 100644 packaging/org.tizen.home.path create mode 100644 packaging/org.tizen.home.service create mode 100644 packaging/org.tizen.home.spec create mode 100644 src/main.c diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..a48fdb0 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,74 @@ +# Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +CMAKE_MINIMUM_REQUIRED(VERSION 2.6) +PROJECT("home" C) + +IF(NOT DEFINED PACKAGE_NAME) + SET(PACKAGE_NAME "org.tizen.home") +ENDIF(NOT DEFINED PACKAGE_NAME) + +SET(PREFIX ${CMAKE_INSTALL_PREFIX}) +IF(NOT DEFINED BINDIR) + SET(BINDIR"${PREFIX}/bin") +ENDIF(NOT DEFINED BINDIR) +IF(NOT DEFINED IMAGEDIR) + SET(IMAGEDIR "${PREFIX}/res/images") +ENDIF(NOT DEFINED IMAGEDIR) +IF(NOT DEFINED CFGDIR) + SET(CFGDIR "${PREFIX}/res/config") +ENDIF(NOT DEFINED CFGDIR) +IF(NOT DEFINED LOCALEDIR) + SET(LOCALEDIR "${PREFIX}/res/locale") +ENDIF(NOT DEFINED LOCALEDIR) +IF(NOT DEFINED MANIFESTDIR) + SET(MANIFESTDIR "/usr/share/packages") +ENDIF(NOT DEFINED MANIFESTDIR) + +SET(TARGET_EDJ "${PROJECT_NAME}.edj") +SET(DEFCONFIG "${PROJECT_NAME}.json") +SET(SRCS + src/main.c) +INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/include) +ADD_DEFINITIONS("-DPACKAGE=\"${PACKAGE_NAME}\"") +ADD_DEFINITIONS("-DEDJEDIR=\"${EDJEDIR}\"") +ADD_DEFINITIONS("-DEDJEFILE=\"${EDJEDIR}/${TARGET_EDJ}\"") +ADD_DEFINITIONS("-DIMAGEDIR=\"${IMAGEDIR}\"") +ADD_DEFINITIONS("-DDEFCONFIG=\"${CFGDIR}/${DEFCONFIG}\"") + +INCLUDE(FindPkgConfig) +pkg_check_modules(PKGS REQUIRED + elementary + json-glib-1.0 + gio-2.0 + libgum + app-utils + capi-appfw-application) + +FOREACH(flag ${PKGS_CFLAGS}) + SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}") +ENDFOREACH(flag) + +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}") +ADD_EXECUTABLE(${PROJECT_NAME} ${SRCS}) +TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${PKGS_LDFLAGS}) +CONFIGURE_FILE(${PACKAGE_NAME}.xml.in ${PACKAGE_NAME}.xml) + +INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ${BINDIR}) +INSTALL(FILES ${PACKAGE_NAME}.xml DESTINATION ${MANIFESTDIR}) +INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/images/ DESTINATION ${IMAGEDIR} FILES_MATCHING PATTERN "*.png") + +ADD_SUBDIRECTORY(edje) +ADD_SUBDIRECTORY(config) diff --git a/config/CMakeLists.txt b/config/CMakeLists.txt new file mode 100644 index 0000000..9e5da62 --- /dev/null +++ b/config/CMakeLists.txt @@ -0,0 +1,17 @@ +# Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${DEFCONFIG}.in ${CMAKE_CURRENT_SOURCE_DIR}/${DEFCONFIG}) +INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${DEFCONFIG} DESTINATION ${CFGDIR}) diff --git a/config/home.json.in b/config/home.json.in new file mode 100644 index 0000000..0c48276 --- /dev/null +++ b/config/home.json.in @@ -0,0 +1,40 @@ +{ + "item": [ + { + "name": "Owner", + "icon": "@IMAGEDIR@/ico_man.png", + "package": "", + "notification": false + }, + { + "name": "Favorites", + "icon": "@IMAGEDIR@/icn_app_foc.png", + "package": "org.tizen.app-launcher-tv-ref", + "notification": false + }, + { + "name": "Media Hub", + "icon": "@IMAGEDIR@/icn_movie_foc.png", + "package": "org.tizen.gallery-tv-ref", + "notification": false + }, + { + "name": "APP", + "icon": "@IMAGEDIR@/icn_app_foc.png", + "package": "org.tizen.app-launcher-tv-ref", + "notification": false + }, + { + "name": "Notification", + "icon": "@IMAGEDIR@/icn_noti_foc.png", + "package": "org.tizen.music-player-tv-ref", + "notification": true + }, + { + "name": "Settings", + "icon": "@IMAGEDIR@/icn_history_foc.png", + "package": "org.tizen.file-broswer-tv-ref", + "notification": false + } + ] +} diff --git a/edje/CMakeLists.txt b/edje/CMakeLists.txt new file mode 100644 index 0000000..42622bb --- /dev/null +++ b/edje/CMakeLists.txt @@ -0,0 +1,8 @@ +ADD_CUSTOM_TARGET(${TARGET_EDJ} + COMMAND edje_cc -id images + ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}.edc + ${CMAKE_CURRENT_BINARY_DIR}/${TARGET_EDJ} + DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}.edc +) +ADD_DEPENDENCIES(${PROJECT_NAME} ${TARGET_EDJ}) +INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${TARGET_EDJ} DESTINATION ${EDJEDIR}) diff --git a/edje/home.edc b/edje/home.edc new file mode 100644 index 0000000..2c43ca4 --- /dev/null +++ b/edje/home.edc @@ -0,0 +1,20 @@ +/* + * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "../include/defs.h" + +collections { +} diff --git a/edje/images/ico_arrow_down.png b/edje/images/ico_arrow_down.png new file mode 100644 index 0000000000000000000000000000000000000000..94336fc77026b8c0dd6ae318eb5da8050653117b GIT binary patch literal 639 zcmV-_0)YLAP)R^UyL9r-^X=Bq0io`@T1v6Ox1MMgd{h=LA2RBEDy4VD4 zN!K)rcB-jCNLmmasCdxI3mt3lwZSFon=L zJ#uo%{0+M_?pEM&7XVSB?Tb^~gH!iA0k|p7Y8kEN7{Kk|^sv|K&Q4Z~%}rhS!)dl;HZc|2b4i+gcDa99KsxDBwhUHSsx zMAo_VU5^J~_3OeG0GkS|u?AHceY057$)Q$cGgn&eo%y{3e3v`*Lz!nCs&ZgfCtc%1 zW8E4lOr!`KTuO0$8uyEw`II-9RpbYq97|eB5$2k~xf{5jyq4=`&_oW}kpp#Zq|U7v z+>GMt7aJf*g5z*Vw7Auj=pIUpa9cYj)3W-Qh zu^h=dbL~MB`TWA8<-KrDph4>4$T@=$AjU}mzG+jbF{I;$UHG|(-##TROC00C(;l=;}002ovPDHLkV1hgKE=vFa literal 0 HcmV?d00001 diff --git a/edje/images/ico_arrow_up.png b/edje/images/ico_arrow_up.png new file mode 100644 index 0000000000000000000000000000000000000000..2677c97ba9367a6db6219e6aa33fd54fa5bd972f GIT binary patch literal 596 zcmV-a0;~OrP)^{=K4bb92J9q2WswmNA}9} zv0!AqBZoPmxNBz|A(_dH6##fCm+YXuDVm$=oQyjH1fx+HD*)XBJ88>Mb2mD##vQXj zlFp3!WLdk0Rotg_06{W3qiWeLhJu4t+~Y#a&3n%cdAuI!*trSKtrQ}eEzUkMWW=~%cS&E+*$ROF%|(-zY4;g&V`koN!yLylNTZ)_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}s$ym($wJ5ub`JN&2>dbp#h~$5Rf~X^fQ{HfhDlY1oq+U_*+R8d zMEd*}g8+y~uLIP8P2ztLGJGExUIMm<;amsEL3));Tr|~dL_V!(1`dkIYuPspXF|UO z&S4SdRECtsGKllQuZFr|NI)X;Z{W9>+D+ABnlEWw0)8(dC&vuPLD~-d9rNsw?IJD^ z@!O-Cfqf$K(r`D9HcCAQ)M5T;szCDF%3HAwcH`Tt0U#pH!1u7N)@@7;NNLxX3&1x; zq;1@Q9Hiset{)F6uR&zQlEMy+NVoZ{AsZUi`0zbjl70t!=bQB__@cABX z*ogI@h@8viA>%z*U@o?O=pJk{_fI^@i10DkwVJ3H@ z*BOPirWFeUe?3y16DuGG={DeNz@69*#R?)S+m5vfWc*AY=7<}xlIhPyWI_d{D38ba zG`81l3ASUXg2877#RaAxt0Q+{Bhx2v%sH#J=rCTf&r8T>ke!O(Q0h8tHf6Gdq3s3XM1SbTIOMdPn=3QDD5FI zZ#gKDPOrueCbDV>PQo zBGMUW`}4m1PE{9R=C=Zir50f;ZL1tC9F#Wf?4S3rgt-o=6OoJgZ14X7j_>tH#((OD P00000NkvXXu0mjf>jqxq literal 0 HcmV?d00001 diff --git a/images/ico_man.png b/images/ico_man.png new file mode 100644 index 0000000000000000000000000000000000000000..541717ea5e1c299a66b6e4ff40b6641bd32e6f7e GIT binary patch literal 20722 zcmeI4c{tQ-{P(|#>{$v)WG(y5*k`hiHT#-924l!Fn5nU(D2Wylk!6aMoh%_+mL$8V z$P!s1+c;5_!ZWHsbDrz@J%2pcHFI6eeD2TvdEejrb${;9_a4{v6>Vy)%gnH! z0RRBzqk3BA#CL=3AG%${-%7^8bHq1#KRsIv05I;^{-FX=()IxWgNdi6rm3k18jHqw zp#AudYHITP1)$wMy^#PAIE1%ASz63;s;rHEfEz@GB^aR1Iq3M!;g`eq#vKwDpl8*O z637_jFl%Jf)~4oZO^@0c6BBlY!%ULt62mLnDS4U7POOEFVyv zDOkam_0TrZF(vBBn#qST<-+;c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1,20 @@ +/* + * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef __AIR_HOME_DEFS_H__ +#define __AIR_HOME_DEFS_H__ + +#endif /* __AIR_HOME_DEFS_H__ */ diff --git a/org.tizen.home.xml.in b/org.tizen.home.xml.in new file mode 100644 index 0000000..a33e3df --- /dev/null +++ b/org.tizen.home.xml.in @@ -0,0 +1,9 @@ + + + + Soohye Shin + home + + + + diff --git a/packaging/org.tizen.home.manifest b/packaging/org.tizen.home.manifest new file mode 100644 index 0000000..97e8c31 --- /dev/null +++ b/packaging/org.tizen.home.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/org.tizen.home.path b/packaging/org.tizen.home.path new file mode 100644 index 0000000..4d7d360 --- /dev/null +++ b/packaging/org.tizen.home.path @@ -0,0 +1,5 @@ +[Unit] +Description=This path will tell you that home is ready to launch + +[Path] +PathExists=/run/.wm_ready diff --git a/packaging/org.tizen.home.service b/packaging/org.tizen.home.service new file mode 100644 index 0000000..a8dcbbd --- /dev/null +++ b/packaging/org.tizen.home.service @@ -0,0 +1,5 @@ +[Unit] +Description=Home-tv + +[Service] +ExecStart=/bin/sh -c -l '/usr/bin/aul_test launch org.tizen.home' diff --git a/packaging/org.tizen.home.spec b/packaging/org.tizen.home.spec new file mode 100644 index 0000000..594c5b3 --- /dev/null +++ b/packaging/org.tizen.home.spec @@ -0,0 +1,74 @@ +Name: org.tizen.home +Summary: TV home application +Version: 0.1 +Release: 1 +Group: Applications/Core Applications +License: Apache-2.0 +Source0: %{name}-%{version}.tar.gz +Source1: %{name}.service +Source2: %{name}.path +Source3: %{name}.manifest + +BuildRequires: cmake +BuildRequires: pkgconfig(capi-appfw-application) +BuildRequires: pkgconfig(elementary) +BuildRequires: pkgconfig(json-glib-1.0) +BuildRequires: pkgconfig(gio-2.0) +BuildRequires: pkgconfig(libgum) +BuildRequires: pkgconfig(app-utils) +BuildRequires: edje-bin +BuildRequires: gettext-devel + +%define _pkgdir /usr/apps/%{name} +%define _bindir %{_pkgdir}/bin +%define _resdir %{_pkgdir}/res +%define _datadir %{_pkgdir}/data +%define _imagedir %{_resdir}/images +%define _cfgdir %{_resdir}/config +%define _edjedir %{_resdir}/edje +%define _manifestdir /usr/share/packages +%define _sysuserdir /systemd/user +%define _servicedir /systemd/user/default.target.wants + +%description +Application for providing user status and launching other applications + +%prep +%setup -q +cp %{SOURCE3} . + +%build +cmake \ + -DCMAKE_INSTALL_PREFIX=%{_pkgdir} \ + -DPACKAGE_NAME=%{name} \ + -DBINDIR=%{_bindir} \ + -DEDJEDIR=%{_edjedir} \ + -DIMAGEDIR=%{_imagedir} \ + -DCFGDIR=%{_cfgdir} \ + -DMANIFESTDIR=%{_manifestdir} \ + -DVERSION=%{version} + +make %{?jobs:-j%jobs} + +%install +%make_install +install --directory %{buildroot}/%{_datadir} +install --directory %{buildroot}%{_libdir}%{_servicedir} +install -m 0644 %{SOURCE1} %{buildroot}%{_libdir}%{_sysuserdir} +install -m 0644 %{SOURCE2} %{buildroot}%{_libdir}%{_sysuserdir} +ln -sf ../%{name}.path %{buildroot}%{_libdir}%{_servicedir} + +%clean +rm -rf %{buildroot} + +%files +%manifest %{name}.manifest +%defattr(-,root,root,-) +%{_bindir}/* +%{_resdir}/* +%{_datadir} +%{_manifestdir}/%{name}.xml +%{_libdir}%{_sysuserdir}/%{name}.service +%{_libdir}%{_sysuserdir}/%{name}.path +%{_libdir}%{_servicedir}/%{name}.path + diff --git a/src/main.c b/src/main.c new file mode 100644 index 0000000..4e98a9d --- /dev/null +++ b/src/main.c @@ -0,0 +1,124 @@ +/* + * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include +#include + +#include "defs.h" + +SET_TAG(PACKAGE); + +struct _appdata { + const char *name; + Evas_Object *win; +}; + +static Evas_Object *_add_win(const char *name) +{ + Evas_Object *win; + + win = elm_win_add(NULL, name, ELM_WIN_BASIC); + if (!win) + return NULL; + + elm_win_title_set(win, name); + elm_win_alpha_set(win, EINA_TRUE); + evas_object_show(win); + + return win; +} + +static bool _create(void *user_data) +{ + struct _appdata *ad; + Evas_Object *win; + + if (!user_data) { + _ERR("Invalid argument"); + return false; + } + + ad = user_data; + + elm_config_focus_move_policy_set(ELM_FOCUS_MOVE_POLICY_CLICK); + + win = _add_win(ad->name); + if (!win) { + _ERR("failed to create window"); + return false; + } + + ad->win = win; + + return true; +} + +static void _terminate(void *user_data) +{ + struct _appdata *ad; + + if (!user_data) + return; + + ad = user_data; + + if (ad->win) + evas_object_del(ad->win); +} + +static void _pause(void *user_data) +{ + +} + +static void _resume(void *user_data) +{ + +} + +static void _control(app_control_h app_control, void *user_data) +{ + struct _appdata *ad; + + if (!user_data) { + _ERR("Invalid argument"); + return; + } + + ad = user_data; + + evas_object_show(ad->win); +} + +int main(int argc, char **argv) +{ + struct _appdata ad; + + ui_app_lifecycle_callback_s event_callback = {0,}; + + event_callback.create = _create; + event_callback.terminate = _terminate; + event_callback.pause = _pause; + event_callback.resume = _resume; + event_callback.app_control = _control; + + memset(&ad, 0x00, sizeof(ad)); + ad.name = PACKAGE; + + return ui_app_main(argc, argv, &event_callback, &ad); +} + -- 2.7.4 From 07d3d6bcfc857c49bef260db163269c8ecfc677f Mon Sep 17 00:00:00 2001 From: Minkyu Kang Date: Thu, 11 Jun 2015 16:57:14 +0900 Subject: [PATCH 3/5] add cflags - Wall and Werror Change-Id: Icefedbf8bae20ea3eec65c1cdf8dcc55002f3320 Signed-off-by: Minkyu Kang --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a48fdb0..a279fcd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -61,7 +61,7 @@ FOREACH(flag ${PKGS_CFLAGS}) SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}") ENDFOREACH(flag) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -Wall -Werror") ADD_EXECUTABLE(${PROJECT_NAME} ${SRCS}) TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${PKGS_LDFLAGS}) CONFIGURE_FILE(${PACKAGE_NAME}.xml.in ${PACKAGE_NAME}.xml) -- 2.7.4 From 319209eff9d76a7d0ed5c9dc701926e5edd14cb9 Mon Sep 17 00:00:00 2001 From: Soohye Shin Date: Thu, 11 Jun 2015 16:31:37 +0900 Subject: [PATCH 4/5] add home edc Change-Id: I828aebc508cc35a655b0ec1adce409362af971fa Signed-off-by: Soohye Shin --- edje/home.edc | 1 + edje/images/btn_navigation_down.png | Bin 0 -> 1717 bytes edje/images/btn_navigation_up.png | Bin 0 -> 1704 bytes edje/images/ico_arrow_down.png | Bin 639 -> 0 bytes edje/images/ico_arrow_up.png | Bin 596 -> 0 bytes edje/view/home.edc | 505 ++++++++++++++++++++++++++++++++++++ images/icn_app_foc.png | Bin 1212 -> 0 bytes images/icn_history_foc.png | Bin 1869 -> 0 bytes images/icn_movie_foc.png | Bin 1560 -> 0 bytes images/icn_noti_foc.png | Bin 2345 -> 0 bytes images/ico_man.png | Bin 20722 -> 0 bytes include/defs.h | 26 ++ 12 files changed, 532 insertions(+) create mode 100644 edje/images/btn_navigation_down.png create mode 100644 edje/images/btn_navigation_up.png delete mode 100644 edje/images/ico_arrow_down.png delete mode 100644 edje/images/ico_arrow_up.png create mode 100644 edje/view/home.edc delete mode 100644 images/icn_app_foc.png delete mode 100644 images/icn_history_foc.png delete mode 100644 images/icn_movie_foc.png delete mode 100644 images/icn_noti_foc.png delete mode 100644 images/ico_man.png diff --git a/edje/home.edc b/edje/home.edc index 2c43ca4..dab3887 100644 --- a/edje/home.edc +++ b/edje/home.edc @@ -17,4 +17,5 @@ #include "../include/defs.h" collections { + #include "view/home.edc" } diff --git a/edje/images/btn_navigation_down.png b/edje/images/btn_navigation_down.png new file mode 100644 index 0000000000000000000000000000000000000000..9c1aa1cce6c89c7d69abb8b28fcb9b164ade24cc GIT binary patch literal 1717 zcmbVNYfuwc6pnxx5f#({MLVvmRk7r;OA?Yuh{QswL)u98}4G-HNPJeV~ckjJt&-Z=j zo_o%$Jtk`XY@Z+>3WYLT7AaAXqlSDysyF$LZawc_EFw@9u?bHiGBg&9BGTcB7$7rh zk}(CQ(PgH!VBr*sXOcmwB2@B?d@XLIYur9`o6$_7DU@)b&8*R;U<8neB^yivaM0NR z0tTG`+`^VKTE1aLTXh{fh`pb!9NLNJ3#-W(dl;?pVVdgU!85tS$j8HmmNoGJi9?#7I!!*)^X3aDa8XL`IT|UJi z!K_+~!Aux%6X0glB;x6W03;)w*n-h4m%kx4Stk=kri@|Jm>CeA$uJt-`x^JQ5(?~} zFy88IRc4woh61zV=@u<{9!blmz+~?JTgdH5M#GP`7|27>q)KpYx)C!GGKl~rztD9C z9UoQ8*MvoJ?RgaqiWD^Hiy~SYC z;ThIo_wh{ZR)Sd!J20Kpf*XPH{PGQN(U-79WX&KF7Q_ri*$^ZWhd~mAjdIx{R4ftk zz)7s`|KyB82E%X{$G?hY%0yP6d-|sI$;F%I!AxYwSjg6}z7#ts6psO!M5MI!KHe(N zD~w(6q7$z=E8Kt3w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`8xYv4D(y46FG+ zHDi#$Fr4D}k60$QNCi5l@1##I-W?vyNS+uoc{HBqX*UCa%PqNBptN;8vh#JTVrRAv zKmEk;gF*4pp;(Hbq}bhFKdY-|b7tGh5T(Py_2_b=*?#FVTB&Z{Op|j)8%JBgwUS zOS5L5>+HU){dvFV)U(TT`W?EHKFX1tH(OR#=N5BXTU+PO$w2OW{!$zerlK zJ~Fvu39XO`HmAfSRd@QS9=wR|zGT&$FUU@MwBc%SUE7i3vbOEM&$90n+da!`WAB?s z0_-=8$C^&ud2FbwDe3XMHEHjP4(hKbTJPPKdUXh|yq(l|$meiE%}v+itBrY9>vLXi z@~nok;T(H>aana${;I0tt{VXA+cUp+?dq8?Um*^BUHBlQ@=@9BmM1%^I)DGz_SRl8 zn>o~115X7udHfQ|X<{dAyL;d-MjELjCaEh@R&Phr+Ryk@E_vh51a@G%_BXK-ZR^UyL9r-^X=Bq0io`@T1v6Ox1MMgd{h=LA2RBEDy4VD4 zN!K)rcB-jCNLmmasCdxI3mt3lwZSFon=L zJ#uo%{0+M_?pEM&7XVSB?Tb^~gH!iA0k|p7Y8kEN7{Kk|^sv|K&Q4Z~%}rhS!)dl;HZc|2b4i+gcDa99KsxDBwhUHSsx zMAo_VU5^J~_3OeG0GkS|u?AHceY057$)Q$cGgn&eo%y{3e3v`*Lz!nCs&ZgfCtc%1 zW8E4lOr!`KTuO0$8uyEw`II-9RpbYq97|eB5$2k~xf{5jyq4=`&_oW}kpp#Zq|U7v z+>GMt7aJf*g5z*Vw7Auj=pIUpa9cYj)3W-Qh zu^h=dbL~MB`TWA8<-KrDph4>4$T@=$AjU}mzG+jbF{I;$UHG|(-##TROC00C(;l=;}002ovPDHLkV1hgKE=vFa diff --git a/edje/images/ico_arrow_up.png b/edje/images/ico_arrow_up.png deleted file mode 100644 index 2677c97ba9367a6db6219e6aa33fd54fa5bd972f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 596 zcmV-a0;~OrP)^{=K4bb92J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C~kPL0=;=_W3VZzT^|5IH3N3rQv+5 zmvHBRrCMMEa$QFWI*;gj0@`xP+W}w;~6y zo;>6&6yt&U$o666F@aggan*2w{~&VQa-Px01Rh0hm0yXM!~X%_S)lNSb#lxA0000< KMNUMnLSTZ}SjM>k diff --git a/images/icn_noti_foc.png b/images/icn_noti_foc.png deleted file mode 100644 index 682df4beff5b9a81e28a0d8c4d4911a54a41e3dd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2345 zcmV+^3D)+BP) zM*UGuRhm}*C@Kl1Hkb-nH{8+&*sk1K@NIp@6yc@|Zj2iyiM2bKbhff`^AQ0i{$0-AvLfRn%pcbyiI)_k^C@&Ke1 zxE=Teu+~8cU$cN2z;qx1D3Ahrf$q?i1p0t0zyV+{a8yK+lM;}s-VS^gSOZi6^0$Hjq^gU7 zZ(#mqKJXz2#%oJHB<*1JV?L@0^HaYNk<&K}kg9G4o&XjAvl;APZiIMH-I&>30$vo6 z?Rf>Hs+GVGflp#uQ%1(e6oPoOy9)dV)21JbNK38{N{j=}a^PpcM}fIyv?lhDAqNSt z&>?|^4`skYRsFt*)aCM^oI0hdcL3Xfk6=T00&~KJEGbNzT7Waavm$aJazLuO5%?(< z_0D!+3dN*GlQibQTY@UNz8CZhVa;CCrWlP}tyaY?Y2YnHi&ja(Y zL@%#^y6Wrss|dT?)m2}g&z~1;q^<=go7Ho-8r|_)>3=#y`Y9w>y)T! zNq{XN@Cj*bqgV6Zz4i}3Qca`>BD`K*9amFv9D0C-0k8r~*kU!WgZJNWJ|_xMrKqYZ z&gS|l?&Sft45gHq&1-r^#l%c2OT@v}2%niH31C%#%~DLdvPMs1BS#*3XaH2i;{DKy z09c4Q=t%`gRq1JJit{ImfF-^bGJ~mK_sK=P2F*)g3EBstFqW$XKv|*9sTZ6C*b0c$ zjc!N*N(#6dV2N1|nYDob7h};2GzY+WEWM8{pqPZBn9`gJusP~$#0W@JDKs^ytXMH7 zrvjj!m;vouvxeT5oELYEC<64hw2-`fIgTc$9h15MTfyE*Og^Zswl;D&Mo8#9ae_13 zw#CtG#RjiBuR%%7Ye%j{4Lf(zeg1rOiRwTXtUlDRb0=-JwNb-KIY1`^5xIbkWY>sT ziyC+D=H2I?H|lXDl_GRsyhu-DW0X%#VG7eJB8@)(I*yrHq`m0BdX;ovUt9_0K=JI* z0}s$ym($wJ5ub`JN&2>dbp#h~$5Rf~X^fQ{HfhDlY1oq+U_*+R8d zMEd*}g8+y~uLIP8P2ztLGJGExUIMm<;amsEL3));Tr|~dL_V!(1`dkIYuPspXF|UO z&S4SdRECtsGKllQuZFr|NI)X;Z{W9>+D+ABnlEWw0)8(dC&vuPLD~-d9rNsw?IJD^ z@!O-Cfqf$K(r`D9HcCAQ)M5T;szCDF%3HAwcH`Tt0U#pH!1u7N)@@7;NNLxX3&1x; zq;1@Q9Hiset{)F6uR&zQlEMy+NVoZ{AsZUi`0zbjl70t!=bQB__@cABX z*ogI@h@8viA>%z*U@o?O=pJk{_fI^@i10DkwVJ3H@ z*BOPirWFeUe?3y16DuGG={DeNz@69*#R?)S+m5vfWc*AY=7<}xlIhPyWI_d{D38ba zG`81l3ASUXg2877#RaAxt0Q+{Bhx2v%sH#J=rCTf&r8T>ke!O(Q0h8tHf6Gdq3s3XM1SbTIOMdPn=3QDD5FI zZ#gKDPOrueCbDV>PQo zBGMUW`}4m1PE{9R=C=Zir50f;ZL1tC9F#Wf?4S3rgt-o=6OoJgZ14X7j_>tH#((OD P00000NkvXXu0mjf>jqxq diff --git a/images/ico_man.png b/images/ico_man.png deleted file mode 100644 index 541717ea5e1c299a66b6e4ff40b6641bd32e6f7e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 20722 zcmeI4c{tQ-{P(|#>{$v)WG(y5*k`hiHT#-924l!Fn5nU(D2Wylk!6aMoh%_+mL$8V z$P!s1+c;5_!ZWHsbDrz@J%2pcHFI6eeD2TvdEejrb${;9_a4{v6>Vy)%gnH! z0RRBzqk3BA#CL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%hWJp-$6tU zkOO+yq#WLG$z0-?tx^Awrt|(5!$*&;0^=~`{MUnvoh>_uGF7$$AEd~1XG232kIK^K z3@;w?ywAtJS!tbX^CiJDiCrAJQ diff --git a/include/defs.h b/include/defs.h index e066d89..d51708a 100644 --- a/include/defs.h +++ b/include/defs.h @@ -17,4 +17,30 @@ #ifndef __AIR_HOME_DEFS_H__ #define __AIR_HOME_DEFS_H__ +#define SRC_PROG "prog" + +#define GRP_HOME "group.home" +#define GRP_HOME_UP_ARROW "group.home.up.arrow" +#define GRP_HOME_DOWN_ARROW "group.home.down.arrow" +#define GRP_HOME_ITEM "group.home.item" + +#define PART_HOME_MENU_BAR "part.home.menu.bar" +#define PART_HOME_UP_ARROW "part.home.up.arrow" +#define PART_HOME_DOWN_ARROW "part.home.down.arrow" +#define PART_HOME_ITEM_ICON "part.home.item.icon" +#define PART_HOME_ITEM_NAME "part.home.item.name" +#define PART_HOME_ITEM_BG "part.home.item.bg" + +#define SIG_SHOW_NAVIGATION "sig.show.navigation" +#define SIG_HIDE_NAVIGATION "sig.hide.navigation" +#define SIG_INITIAL_FOCUS "sig.initial.focus" +#define SIG_FOCUS "sig.focus" +#define SIG_FOCUS_TO_UP "sig.focus.to.up" +#define SIG_FOCUS_TO_DOWN "sig.focus.to.down" +#define SIG_FOCUS_TO_RIGHT "sig.focus.to.right" +#define SIG_FOCUS_TO_LEFT "sig.focus.to.left" +#define SIG_UNFOCUS "sig.unfocus" +#define SIG_UNFOCUS_TO_RIGHT "sig.unfocus.to.right" +#define SIG_UNFOCUS_TO_LEFT "sig.unfocus.to.left" + #endif /* __AIR_HOME_DEFS_H__ */ -- 2.7.4 From 7804a4eb93919782aa9bd7230d0fae201d548f98 Mon Sep 17 00:00:00 2001 From: Soohye Shin Date: Thu, 11 Jun 2015 21:18:44 +0900 Subject: [PATCH 5/5] add view_home Change-Id: Iaba40175fde2c7aec11beef1d9096fb77186531d Signed-off-by: Soohye Shin --- CMakeLists.txt | 3 +- include/defs.h | 4 ++ include/view_home.h | 22 +++++++ src/main.c | 18 +++++- src/view/view_home.c | 175 +++++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 220 insertions(+), 2 deletions(-) create mode 100644 include/view_home.h create mode 100644 src/view/view_home.c diff --git a/CMakeLists.txt b/CMakeLists.txt index a279fcd..92a4c14 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,7 +40,8 @@ ENDIF(NOT DEFINED MANIFESTDIR) SET(TARGET_EDJ "${PROJECT_NAME}.edj") SET(DEFCONFIG "${PROJECT_NAME}.json") SET(SRCS - src/main.c) + src/main.c + src/view/view_home.c) INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/include) ADD_DEFINITIONS("-DPACKAGE=\"${PACKAGE_NAME}\"") ADD_DEFINITIONS("-DEDJEDIR=\"${EDJEDIR}\"") diff --git a/include/defs.h b/include/defs.h index d51708a..af6549d 100644 --- a/include/defs.h +++ b/include/defs.h @@ -17,6 +17,10 @@ #ifndef __AIR_HOME_DEFS_H__ #define __AIR_HOME_DEFS_H__ +#define VIEW_HOME "VIEW_HOME" +#define VIEW_RECENT "VIEW_RECENT" +#define VIEW_USER "VIEW_USER" + #define SRC_PROG "prog" #define GRP_HOME "group.home" diff --git a/include/view_home.h b/include/view_home.h new file mode 100644 index 0000000..d8b811d --- /dev/null +++ b/include/view_home.h @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef __AIR_HOME_VIEW_HOME_H__ +#define __AIR_HOME_VIEW_HOME_H__ + +view_class *view_home_get_vclass(void); + +#endif /* __AIR_HOME_VIEW_HOME_H__ */ diff --git a/src/main.c b/src/main.c index 4e98a9d..8dfcaa0 100644 --- a/src/main.c +++ b/src/main.c @@ -17,8 +17,10 @@ #include #include #include +#include #include "defs.h" +#include "view_home.h" SET_TAG(PACKAGE); @@ -62,6 +64,14 @@ static bool _create(void *user_data) return false; } + if (!viewmgr_create(win)) { + _ERR("failed to create viewmgr"); + evas_object_del(win); + return false; + } + + viewmgr_add_view(view_home_get_vclass(), NULL); + ad->win = win; return true; @@ -76,6 +86,9 @@ static void _terminate(void *user_data) ad = user_data; + viewmgr_remove_view(VIEW_HOME); + viewmgr_destroy(); + if (ad->win) evas_object_del(ad->win); } @@ -101,7 +114,10 @@ static void _control(app_control_h app_control, void *user_data) ad = user_data; - evas_object_show(ad->win); + if (ad->win) + elm_win_activate(ad->win); + + viewmgr_push_view(VIEW_HOME); } int main(int argc, char **argv) diff --git a/src/view/view_home.c b/src/view/view_home.c new file mode 100644 index 0000000..39b1eca --- /dev/null +++ b/src/view/view_home.c @@ -0,0 +1,175 @@ +/* + + * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include +#include +#include + +#include "defs.h" +#include "view_home.h" + +struct _priv { + Evas_Object *win; + Evas_Object *base; +}; + +static bool _add_navigations(Evas_Object *base) +{ + Evas_Object *ly; + + if (!base) { + _ERR("Invalid argument"); + return false; + } + + ly = elm_layout_add(base); + if (!ly) { + _ERR("failed to add layout"); + return false; + } + elm_layout_file_set(ly, EDJEFILE, GRP_HOME_DOWN_ARROW); + elm_object_focus_allow_set(ly, EINA_TRUE); + elm_object_part_content_set(base, PART_HOME_DOWN_ARROW, ly); + + ly = elm_layout_add(base); + if (!ly) { + _ERR("failed to add layout"); + return false; + } + elm_layout_file_set(ly, EDJEFILE, GRP_HOME_UP_ARROW); + elm_object_focus_allow_set(ly, EINA_TRUE); + elm_object_part_content_set(base, PART_HOME_UP_ARROW, ly); + + return true; +} + +static bool _add_home(struct _priv *priv, Evas_Object *base) +{ + if (!priv || !base) { + _ERR("Invalid argument"); + return false; + } + + if (!_add_navigations(base)) { + _ERR("failed to add navigations"); + return false; + } + + /* It should be implemented later */ + + return true; +} + +static Evas_Object *_create(Evas_Object *win, void *data) +{ + struct _priv *priv; + Evas_Object *base; + + if (!win) { + _ERR("Invalid argument"); + return NULL; + } + + priv = calloc(1, sizeof(*priv)); + if (!priv) { + _ERR("failed to calloc priv"); + return NULL; + } + + base = elm_layout_add(win); + if (!base) { + _ERR("failed to create base"); + free(priv); + return NULL; + } + elm_layout_file_set(base, EDJEFILE, GRP_HOME); + evas_object_size_hint_weight_set(base, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + elm_win_resize_object_add(win, base); + + priv->win = win; + priv->base = base; + + if (!_add_home(priv, base)) { + _ERR("failed to load home"); + evas_object_del(base); + free(priv); + return NULL; + } + + viewmgr_set_view_data(VIEW_HOME, priv); + + return base; +} + +static void _show(void *data) +{ + struct _priv *priv; + + if (!data) { + _ERR("Invalid argument"); + return; + } + + priv = data; + + evas_object_show(priv->base); + elm_object_signal_emit(priv->base, SIG_SHOW_NAVIGATION, SRC_PROG); +} + +static void _hide(void *data) +{ + struct _priv *priv; + + if (!data) { + _ERR("Invalid argument"); + return; + } + + priv = data; + + evas_object_hide(priv->base); +} + +static void _destroy(void *data) +{ + struct _priv *priv; + + if (!data) { + _ERR("Invalid argument"); + return; + } + + priv = data; + + evas_object_del(priv->base); + free(priv); +} + +static view_class vclass = { + .view_id = VIEW_HOME, + .create = _create, + .show = _show, + .hide = _hide, + .destroy = _destroy +}; + +view_class *view_home_get_vclass(void) +{ + return &vclass; +} + -- 2.7.4