From db42061a4bc363697484dd12a939e1b402f645a5 Mon Sep 17 00:00:00 2001 From: Iryna Ferenchak Date: Wed, 10 Feb 2016 17:57:58 +0200 Subject: [PATCH] TizenRefApp-5388 Implement Log Item Change-Id: I5f34ae9664c72c14e31d03440664a378004db004 Signed-off-by: Iryna Ferenchak --- lib-common/res/common/edje/common-utils.edc | 48 +++++ lib-logs/.cproject | 94 +--------- lib-logs/CMakeLists.txt | 3 + lib-logs/inc/Logs/List/LogItem.h | 91 ++++++++++ lib-logs/res/logs/CMakeLists.txt | 18 ++ lib-logs/res/logs/edje/LogItemLayout.h | 33 ++++ lib-logs/res/logs/edje/LogPath.h | 34 ++++ lib-logs/res/logs/edje/log-colors.edc | 47 +++++ lib-logs/res/logs/edje/log-item.edc | 66 +++++++ .../logs/images/logs_icon_badge_container_02.png | Bin 0 -> 1637 bytes lib-logs/res/logs/images/logs_icon_in.png | Bin 0 -> 1191 bytes lib-logs/res/logs/images/logs_icon_info.png | Bin 0 -> 1235 bytes lib-logs/res/logs/images/logs_icon_info_bg.png | Bin 0 -> 1658 bytes lib-logs/res/logs/images/logs_icon_missed.png | Bin 0 -> 1348 bytes lib-logs/res/logs/images/logs_icon_out.png | Bin 0 -> 1177 bytes lib-logs/res/logs/images/logs_icon_reject.png | Bin 0 -> 1606 bytes lib-logs/res/logs/images/logs_icon_reject_auto.png | Bin 0 -> 1685 bytes lib-logs/src/Logs/List/LogItem.cpp | 194 +++++++++++++++++++++ packaging/org.tizen.contacts.spec | 1 + 19 files changed, 543 insertions(+), 86 deletions(-) create mode 100644 lib-logs/inc/Logs/List/LogItem.h create mode 100644 lib-logs/res/logs/CMakeLists.txt create mode 100644 lib-logs/res/logs/edje/LogItemLayout.h create mode 100644 lib-logs/res/logs/edje/LogPath.h create mode 100644 lib-logs/res/logs/edje/log-colors.edc create mode 100644 lib-logs/res/logs/edje/log-item.edc create mode 100644 lib-logs/res/logs/images/logs_icon_badge_container_02.png create mode 100644 lib-logs/res/logs/images/logs_icon_in.png create mode 100644 lib-logs/res/logs/images/logs_icon_info.png create mode 100644 lib-logs/res/logs/images/logs_icon_info_bg.png create mode 100644 lib-logs/res/logs/images/logs_icon_missed.png create mode 100644 lib-logs/res/logs/images/logs_icon_out.png create mode 100644 lib-logs/res/logs/images/logs_icon_reject.png create mode 100644 lib-logs/res/logs/images/logs_icon_reject_auto.png create mode 100644 lib-logs/src/Logs/List/LogItem.cpp diff --git a/lib-common/res/common/edje/common-utils.edc b/lib-common/res/common/edje/common-utils.edc index b04202b..7973ffb 100644 --- a/lib-common/res/common/edje/common-utils.edc +++ b/lib-common/res/common/edje/common-utils.edc @@ -124,3 +124,51 @@ } \ } \ } + +#define IMAGE_WITH_BG_PRESSED_COLOR(GROUP_NAME, IMAGE_PATH, COLOR_CLASS, BG_IMAGE_PATH, BG_COLOR_CLASS, PRESSED_BG_COLOR_CLASS) \ + group { \ + name: GROUP_NAME; \ + images.image: IMAGE_PATH COMP; \ + images.image: BG_IMAGE_PATH COMP; \ + parts { \ + part { name: "image.bg"; \ + description { \ + state: "default" 0.0; \ + image.normal: BG_IMAGE_PATH; \ + color_class: BG_COLOR_CLASS; \ + aspect: 1 1; \ + aspect_preference: SOURCE; \ + } \ + description { \ + state: "pressed" 0.0; \ + inherit: "default" 0.0; \ + color_class: PRESSED_BG_COLOR_CLASS; \ + } \ + } \ + part { name: "image"; \ + description { \ + state: "default" 0.0; \ + image.normal: IMAGE_PATH; \ + color_class: COLOR_CLASS; \ + aspect: 1 1; \ + aspect_preference: SOURCE; \ + } \ + } \ + } \ + programs { \ + program { \ + name: "pressed"; \ + signal: "mouse,down,*"; \ + source: "*"; \ + action: STATE_SET "pressed" 0.0; \ + target: "image.bg"; \ + } \ + program { \ + name: "unpressed"; \ + signal: "mouse,up,*"; \ + source: "*"; \ + action: STATE_SET "default" 0.0; \ + target: "image.bg"; \ + } \ + } \ + } diff --git a/lib-logs/.cproject b/lib-logs/.cproject index d8f3fea..aa0f61a 100644 --- a/lib-logs/.cproject +++ b/lib-logs/.cproject @@ -21,92 +21,14 @@ - + - + - + - +