diff options
author | Jin Yoon <jinny.yoon@samsung.com> | 2015-08-12 21:18:14 +0900 |
---|---|---|
committer | Jin Yoon <jinny.yoon@samsung.com> | 2015-08-12 21:18:14 +0900 |
commit | 13efb6f509b0d1f7ccd13c50826b87265385ac24 (patch) | |
tree | 126d386b01059ca0bd9eb4e03a226940d1247a08 | |
parent | 3183eb159a2d7e782f592c7f26ee5a7b4a163468 (diff) | |
download | adventure-13efb6f509b0d1f7ccd13c50826b87265385ac24.tar.gz adventure-13efb6f509b0d1f7ccd13c50826b87265385ac24.tar.bz2 adventure-13efb6f509b0d1f7ccd13c50826b87265385ac24.zip |
Today version : 0812
-rw-r--r-- | .sdk_delta.info | bin | 55445 -> 57625 bytes | |||
-rw-r--r-- | .sign/.manifest.tmp | 4 | ||||
-rw-r--r-- | .sign/author-signature.xml | 12 | ||||
-rw-r--r-- | .sign/signature1.xml | 14 | ||||
-rwxr-xr-x | res/edje/group.edc | 126 | ||||
-rwxr-xr-x | res/edje/images/Group_list_delete.png | bin | 0 -> 3069 bytes | |||
-rwxr-xr-x | res/edje/popup.edc | 631 | ||||
-rwxr-xr-x | res/images/Group list delete.png | bin | 0 -> 3069 bytes | |||
-rwxr-xr-x | res/images/Group menu.png | bin | 0 -> 55030 bytes | |||
-rw-r--r-- | src/main_view.c | 13 |
10 files changed, 784 insertions, 16 deletions
diff --git a/.sdk_delta.info b/.sdk_delta.info Binary files differindex 68535bf..73002b2 100644 --- a/.sdk_delta.info +++ b/.sdk_delta.info diff --git a/.sign/.manifest.tmp b/.sign/.manifest.tmp index bf01e1a..9120832 100644 --- a/.sign/.manifest.tmp +++ b/.sign/.manifest.tmp @@ -86,7 +86,7 @@ res/images/world_map.png__DEL__qzld1q4JAzcy/4ndsTnaCAG5tWuy+DpL9WK1a6noKLU= res/images/하단 버튼.png__DEL__V8qiFz8nOWFWaG7CLYiPSBBuFMWQj9Ox4vrR6guq+io= shared/res/adventure.png__DEL__iF8SZahyLw7IqsH3SgtZ9umag2CVi5Kk0ie4yoUr9t0= tizen-manifest.xml__DEL__dk/JApvYPhj82qG80QuCOliR5wHHxZQCrfIT60ygLXA= -author-signature.xml__DEL__NFX+CLkInahVE1z38Y6Hf4Esj9zNVQYg1Ay2HZXiFXs= +author-signature.xml__DEL__rezbtekkIXaCImRocKmXxrMO87a3n2cb7hNdhMFHGTQ= res/edje/entry.edj__DEL__m3clWc5op/4b5I+HlkZ4z1QvAg/IXMoMihnzE27XP84= res/edje/item.edj__DEL__SHme/D3j0p6Szwwn90KLkvlkTr8r2n3iPXGs3AndTmA= res/edje/main.edj__DEL__tKBHNngjGJ0Sg7oLbjUMXSvxRhBhe+sXkWRMBcB6G/g= @@ -95,4 +95,4 @@ res/edje/ui_manager.edj__DEL__uE2PyHTnHOBJ0FD0PtaMrNq9s6UYZX/ggAwF5amY0yA= res/edje/images/drawer_bg.png__DEL__e3TPw0++i47zLwoD+fz6h121KG/8X3O5J90A3FRD0So= res/edje/momentic.edj__DEL__QNgs+EAO8TVeNCss32eB/micwszPJ5BzTPxyLOhwc6k= res/edje/city.edj__DEL__1/Vj7IvAumyAIOoLZv+VzQ6E4y7vgcdNxZwBw7RhdOA= -bin/adventure__DEL__RBkqEgvTZT9tqgxWdzAiJJ0eNUZ3vCKMg0c39Rz+Qss= +bin/adventure__DEL__6D58iFBVNp2SlZuT+5BfAqrLQ1WAPocS/7CQPV5ZCBk= diff --git a/.sign/author-signature.xml b/.sign/author-signature.xml index 55621c2..c0a37f9 100644 --- a/.sign/author-signature.xml +++ b/.sign/author-signature.xml @@ -4,7 +4,7 @@ <SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"></SignatureMethod> <Reference URI="bin%2Fadventure"> <DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod> -<DigestValue>RBkqEgvTZT9tqgxWdzAiJJ0eNUZ3vCKMg0c39Rz+Qss=</DigestValue> +<DigestValue>6D58iFBVNp2SlZuT+5BfAqrLQ1WAPocS/7CQPV5ZCBk=</DigestValue> </Reference> <Reference URI="res%2Fedje%2Fbtn.png"> <DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod> @@ -399,11 +399,11 @@ </Reference> </SignedInfo> <SignatureValue> -a4pw7oyxpCSuCn+gnDtk3YRAIBZ8hF6v7Q/s1AykSrRpXJCZLU9xpJT5yjyEvwsZFKROpcB93Rcu -kSzhNRPVfDyadNm2runLnqBQ4cMtPSYWAFv5SIeHtQr7xhnjJkcVkjzP5P92xZj1EdGi/HL8+lST -GOpjEEbsWAo1HY7SI465o/MtfPI40Wm7YWhUzXjXlKPZSn8W7ivDSnfIoR9YvAwOjFn0//2Jlcz+ -K+v6Vb+md/StD0NXvcRuL8gx5s89Fn9PiAiUFZCgtXiRVOquDv3kukwTNjzX9xig5anXifPeRGMo -8WMrfgdJqNbBRk4HPC01esBhXBLjWMl0r+qWng== +uSRKkQmzopMtDjkiX2dSMeFBhz+ZrYjYEUQhITrmRRlflj6ewPSBmopDzfUoPsEZP9+3kVbo0Fno +sIA2JW7qNXkipJvZB/Ynj5L4YRXaoew2J5/qqfgUD09RekvjRPBJfg/zqfK1Wp0MJZr5AIuRZJ7u +xeQs80KZd2bWSRRbsRV/1QsePFENwr5jf55D5jBYJsMUJ9lsgvalNnOCW6YQHya8gizB7pGPplfL +Dji8mDZu/lU4o/K2UnhPE9hDp3u7nUMKyQknS82qTPedc99vAKVO2Qwh7J0xBAIVAHt2oe6vw2/0 +Rptuge1VtZId2GLVIAvBZ4vvwqg9EgEJ3cB4+w== </SignatureValue> <KeyInfo> <X509Data> diff --git a/.sign/signature1.xml b/.sign/signature1.xml index 707325d..d7ed71d 100644 --- a/.sign/signature1.xml +++ b/.sign/signature1.xml @@ -4,11 +4,11 @@ <SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"></SignatureMethod> <Reference URI="author-signature.xml"> <DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod> -<DigestValue>NFX+CLkInahVE1z38Y6Hf4Esj9zNVQYg1Ay2HZXiFXs=</DigestValue> +<DigestValue>rezbtekkIXaCImRocKmXxrMO87a3n2cb7hNdhMFHGTQ=</DigestValue> </Reference> <Reference URI="bin%2Fadventure"> <DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod> -<DigestValue>RBkqEgvTZT9tqgxWdzAiJJ0eNUZ3vCKMg0c39Rz+Qss=</DigestValue> +<DigestValue>6D58iFBVNp2SlZuT+5BfAqrLQ1WAPocS/7CQPV5ZCBk=</DigestValue> </Reference> <Reference URI="res%2Fedje%2Fbtn.png"> <DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod> @@ -403,11 +403,11 @@ </Reference> </SignedInfo> <SignatureValue> -PhzcfXwg4z4mP1GlpetKTNmP+2YfWlOYgHpbgCaDDKC9q76IgjG/9Ap0YpSm0UdsQ8qJSM7kr9V3 -vPzOYTWWs12mc8aSGDq5opLhGtOP1HoAEw3PlLPVz9xpEP6a30N09+2DGkVhykSB9kPgR3GmuAlr -ZUPALTv5RYemlrrR2kkMli3DySF7o3L+VCGvs3/4c472uXldyqOb5BDcBBuyC5hivfnbW8ogZrxQ -N1Kxbd+N2l7NFGWQqBQAHSJ4+9OH0/dXK5xtTqI14tdkSkRZ4z7hvX+skGfKGpPHJHSzW99FuPrR -7uwoFmqFSFA70W/EakzGtiS2D8ferFFTqnTemQ== +pQBZ/exOY7hofr0mzOMvMSV/yxWxetbOrsOkIAK1iCvvK9Xlg8QBa7Ia1jqAJjp7spDb8hXTVuBg +4AOFKwADTalwN1fh3IB9IeaJMnXq8+U98jCQ890VDCbKqi0mdOM5oNHar6tReqREPaCHvKY1GwhZ +q6dcYcgOzyPDPMRLe+5Z7TAeHD9DfkamhBfa7iwrjShdO0Cge8XRMNi5iu1JPbEigpvznXPCko6f +qgh8yFfrHqKTQI7/2TMXs4KveHKRr/ZHVEHcu2YoQfmTrxqrp825ZygBynfxefsbyjLwyrex79dK +JppDHI2SDwn42D0ndIWvCGQhOgPTzaVc8s0j/g== </SignatureValue> <KeyInfo> <X509Data> diff --git a/res/edje/group.edc b/res/edje/group.edc new file mode 100755 index 0000000..959f427 --- /dev/null +++ b/res/edje/group.edc @@ -0,0 +1,126 @@ +#include "conf.h"
+
+#define GROUP_WIDTH 282
+#define GROUP_HEIGHT 800
+
+collections {
+ base_scale: 1.8;
+ group {
+ name: "main";
+ parts {
+ part {
+ name: "bg";
+ type: SPACER;
+ description {
+ state: "default" 0.0;
+ align: 0.5 0.5;
+ min: GROUP_WIDTH GROUP_HEIGHT;
+ }
+ }
+ part {
+ name: "group_menu_text";
+ type: TEXT;
+ scale: 1;
+ description {
+ rel1 { relative: 0.1 0.0; to: "bg"; }
+ rel2 { relative: 1.0 34/GROUP_HEIGHT; to: "bg"; }
+ align: 0.0 0.5;
+ color: 255 255 255 255;
+ text {
+ text: "Group Menu";
+ font: "Tizen:style=BOLD";
+ text_class: "tizen";
+ size: 20;
+ align: 0.0 0.5;
+ }
+ visible: 1;
+ }
+ }
+ part {
+ name: "rect_under_group_menu_text";
+ type: RECT;
+ scale: 0;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 0.5 1.0; to: "group_menu_text"; }
+ rel2 { relative: 0.5 1.0; to: "group_menu_text"; }
+ align: 0.5 0.5;
+ color: 255 255 255 255;
+ min: GROUP_WIDTH-20 3;
+ visible: 1;
+ }
+ }
+ part {
+ name: "create_group_btn";
+ type: SWALLOW;
+ scale: 1;
+ description {
+ rel1 { relative: 0.0 44/GROUP_HEIGHT; to: "bg"; }
+ rel2 { relative: 1.0 100/GROUP_HEIGHT; to: "bg"; }
+ align: 0.0 0.0;
+ fixed: 1 1;
+ visible: 1;
+ }
+ }
+ part {
+ name: "rect_under_create_group_btn";
+ type: RECT;
+ scale: 0;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 0.5 1.0; to: "create_group_btn"; }
+ rel2 { relative: 0.5 1.0; to: "create_group_btn"; }
+ align: 0.5 0.5;
+ color: 255 255 255 255;
+ min: GROUP_WIDTH-20 1;
+ visible: 1;
+ }
+ }
+ part {
+ name: "your_group_text";
+ type: TEXT;
+ scale: 1;
+ description {
+ rel1 { relative: 0.1 100/GROUP_HEIGHT; to: "bg"; }
+ rel2 { relative: 1.0 156/GROUP_HEIGHT; to: "bg"; }
+ align: 0.0 0.5;
+ color: 255 255 255 255;
+ text {
+ text: "Your Group";
+ font: "Tizen:style=BOLD";
+ text_class: "tizen";
+ size: 20;
+ align: 0.0 0.5;
+ }
+ visible: 1;
+ }
+ }
+ part {
+ name: "rect_under_your_group_text";
+ type: RECT;
+ scale: 0;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 0.5 1.0; to: "your_group_text"; }
+ rel2 { relative: 0.5 1.0; to: "your_group_text"; }
+ align: 0.5 0.5;
+ color: 255 255 255 255;
+ min: GROUP_WIDTH-20 1;
+ visible: 1;
+ }
+ }
+ part {
+ name: "your_group_list";
+ type: SWALLOW;
+ scale: 1;
+ description {
+ rel1 { relative: 0.0 156/GROUP_HEIGHT; to: "bg"; }
+ rel2 { relative: 1.0 1.0; to: "bg"; }
+ align: 0.0 0.0;
+ fixed: 1 1;
+ visible: 1;
+ }
+ }
+ }
+ }
+}
diff --git a/res/edje/images/Group_list_delete.png b/res/edje/images/Group_list_delete.png Binary files differnew file mode 100755 index 0000000..7e5eb75 --- /dev/null +++ b/res/edje/images/Group_list_delete.png diff --git a/res/edje/popup.edc b/res/edje/popup.edc new file mode 100755 index 0000000..34cee1a --- /dev/null +++ b/res/edje/popup.edc @@ -0,0 +1,631 @@ +#define ITEM_TYPING_WIDTH 442
+#define ITEM_TYPING_HEIGHT 50
+#define ITEM_TYPING_HEIGHT_SMALL 30
+
+#define ITEM_SELECTING_WIDTH 480
+#define ITEM_SELECTING_HEIGHT 75
+
+#define ITEM_RESULT_WIDTH ITEM_SELECTING_WIDTH
+#define ITEM_RESULT_HEIGHT ITEM_SELECTING_HEIGHT
+
+#define ITEM_GROUP_WIDTH 282
+#define ITEM_GROUP_HEIGHT 40
+
+#define ITEM_PADDING_WIDTH 442
+#define ITEM_PADDING_HEIGHT 30
+
+images {
+ image: "my_status_small.png" COMP;
+ image: "other_location_blue_small.png" COMP;
+ image: "other_location_mint_small.png" COMP;
+ image: "delete_button.png" COMP;
+ image: "Group_list_delete.png" COMP;
+}
+
+collections {
+ base_scale: 1.8;
+ group {
+ name: "item_typing";
+ parts {
+ part {
+ name: "bg";
+ type: RECT;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 0.0 0.0; }
+ rel2 { relative: 1.0 1.0; }
+ min: ITEM_TYPING_WIDTH ITEM_TYPING_HEIGHT;
+ //color: 247 208 143 200;
+ visible: 0;
+ }
+ description {
+ state: "small" 0.0;
+ inherit: "default" 0.0;
+ min: ITEM_TYPING_WIDTH ITEM_TYPING_HEIGHT_SMALL;
+ max: ITEM_TYPING_WIDTH ITEM_TYPING_HEIGHT_SMALL;
+ }
+ }
+ part {
+ name: "city";
+ type: TEXT;
+ mouse_events: 0;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 0.0 0.0; to: "city_event"; }
+ rel2 { relative: 1.0 1.0; to: "city_event"; }
+ color: 255 255 255 255;
+ text {
+ text: "";
+ font: "Tizen:style=LIGHT";
+ text_class: "tizen";
+ min: 0 1;
+ size: 20;
+ align: 0.0 0.5;
+ }
+ align: 0.0 1.0;
+ visible: 1;
+ }
+ description {
+ state: "press" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 100;
+ }
+ }
+ part {
+ name: "city_event";
+ type: RECT;
+ mouse_events: 1;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 20/ITEM_TYPING_WIDTH 0.0; to: "bg"; }
+ rel2 { relative: 400/ITEM_TYPING_WIDTH 1.0; to: "bg"; }
+ color: 0 0 0 0;
+ visible: 1;
+ }
+ description {
+ state: "disable" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ } //parts
+ programs {
+ program {
+ signal: "disable";
+ source: "item";
+ action: STATE_SET "disable" 0.0;
+ target: "city_event";
+ }
+ program {
+ signal: "enable";
+ source: "item";
+ action: STATE_SET "default" 0.0;
+ target: "city_event";
+ }
+
+ program {
+ signal: "mouse,down,1";
+ source: "city_event";
+ action: SIGNAL_EMIT "down" "item";
+ after: "down,after";
+ }
+ program {
+ name: "down,after";
+ action: STATE_SET "press" 0.0;
+ target: "city";
+ }
+ program {
+ signal: "mouse,up,1";
+ source: "city_event";
+ action: SIGNAL_EMIT "up" "item";
+ after: "up,after";
+ }
+ program {
+ name: "up,after";
+ action: STATE_SET "default" 0.0;
+ target: "city";
+ }
+ }
+ }
+
+ group {
+ name: "item_selecting";
+ parts {
+ part {
+ name: "bg";
+ type: RECT;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 0.0 0.0; }
+ rel2 { relative: 1.0 1.0; }
+ min: ITEM_SELECTING_WIDTH ITEM_SELECTING_HEIGHT;
+ color: 255 255 255 255;
+ visible: 1;
+ }
+ }
+ part {
+ name: "mark";
+ type: IMAGE;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 38/ITEM_SELECTING_WIDTH 0.5; to: "bg"; }
+ rel2 { relative: 38/ITEM_SELECTING_WIDTH 0.5; to: "bg"; }
+ align: 0.5 0.5;
+ min: 14 12;
+ fixed: 1 1;
+ image {
+ normal: "my_status_small.png";
+ }
+ visible: 1;
+ }
+ description {
+ state: "1" 0.0;
+ inherit: "default" 0.0;
+ min: 14 14;
+ image {
+ normal: "other_location_blue_small.png";
+ }
+ }
+ description {
+ state: "2" 0.0;
+ inherit: "default" 0.0;
+ min: 14 14;
+ image {
+ normal: "other_location_mint_small.png";
+ }
+ }
+ description {
+ state: "3" 0.0;
+ inherit: "default" 0.0;
+ min: 14 14;
+ image {
+ normal: "other_location_blue_small.png";
+ }
+ }
+ description {
+ state: "4" 0.0;
+ inherit: "default" 0.0;
+ min: 14 14;
+ image {
+ normal: "other_location_mint_small.png";
+ }
+ }
+ }
+ part {
+ name: "city";
+ type: TEXT;
+ mouse_events: 0;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 73/ITEM_SELECTING_WIDTH 0.5; to: "bg"; }
+ rel2 { relative: 400/ITEM_SELECTING_WIDTH 0.5; to: "bg"; }
+ color: 197 191 181 255;
+ text {
+ text: "Seoul, Korea";
+ font: "Tizen:style=LIGHT";
+ text_class: "tizen";
+ min: 0 1;
+ size: 20;
+ align: 0.0 1.0;
+ }
+ align: 0.0 1.0;
+ visible: 1;
+ }
+ }
+ part {
+ name: "gmt";
+ type: TEXT;
+ mouse_events: 0;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 73/ITEM_SELECTING_WIDTH 0.48; to: "bg"; }
+ rel2 { relative: 400/ITEM_SELECTING_WIDTH 0.52; to: "bg"; }
+ color: 221 218 213 255;
+ text {
+ text: "GMT + 8";
+ font: "Tizen:style=LIGHT";
+ text_class: "tizen";
+ min: 0 1;
+ size: 20;
+ align: 0.0 1.0;
+ }
+ align: 0.0 0.0;
+ visible: 1;
+ }
+ }
+ part {
+ name: "bottom_line";
+ type: RECT;
+ scale: 0;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 0.0 1.0; }
+ rel2 { relative: 1.0 1.0; }
+ min: 0 1;
+ align: 0.5 1.0;
+ fixed: 0 1;
+ color: 197 191 181 255;
+ visible: 1;
+ }
+ }
+ part {
+ name: "delete";
+ type: IMAGE;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 0.5 0.5; to: "delete_event"; }
+ rel2 { relative: 0.5 0.5; to: "delete_event"; }
+ align: 0.5 0.5;
+ min: 34 34;
+ fixed: 1 1;
+ image {
+ normal: "delete_button.png";
+ }
+ color: 255 255 255 255;
+ visible: 1;
+ }
+ description {
+ state: "press" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 100;
+ }
+ }
+ part {
+ name: "delete_event";
+ type: SWALLOW;
+ mouse_events: 1;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 444/ITEM_SELECTING_WIDTH 0.5; to: "bg"; }
+ rel2 { relative: 444/ITEM_SELECTING_WIDTH 0.5; to: "bg"; }
+ align: 0.5 0.5;
+ min: ITEM_SELECTING_HEIGHT ITEM_SELECTING_HEIGHT;
+ fixed: 1 1;
+ visible: 1;
+ }
+ }
+ } //parts
+ programs {
+ program {
+ signal: "1";
+ source: "mark";
+ action: STATE_SET "1" 0.0;
+ target: "mark";
+ }
+ program {
+ signal: "2";
+ source: "mark";
+ action: STATE_SET "2" 0.0;
+ target: "mark";
+ }
+ program {
+ signal: "3";
+ source: "mark";
+ action: STATE_SET "3" 0.0;
+ target: "mark";
+ }
+ program {
+ signal: "4";
+ source: "mark";
+ action: STATE_SET "4" 0.0;
+ target: "mark";
+ }
+
+ program {
+ signal: "mouse,down,1";
+ source: "delete_event";
+ action: SIGNAL_EMIT "down" "item";
+ after: "down,after";
+ }
+ program {
+ name: "down,after";
+ action: STATE_SET "press" 0.0;
+ target: "delete";
+ }
+ program {
+ signal: "mouse,up,1";
+ source: "delete_event";
+ action: SIGNAL_EMIT "up" "item";
+ after: "up,after";
+ }
+ program {
+ name: "up,after";
+ action: STATE_SET "default" 0.0;
+ target: "delete";
+ }
+ }
+ }
+
+ group {
+ name: "item_result";
+ parts {
+ part {
+ name: "bg";
+ type: RECT;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 0.0 0.0; }
+ rel2 { relative: 1.0 1.0; }
+ min: ITEM_RESULT_WIDTH ITEM_RESULT_HEIGHT;
+ color: 255 255 255 255;
+ visible: 1;
+ }
+ }
+ part {
+ name: "mark";
+ type: IMAGE;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 38/ITEM_RESULT_WIDTH 0.25; to: "bg"; }
+ rel2 { relative: 38/ITEM_RESULT_WIDTH 0.25; to: "bg"; }
+ align: 0.5 0.5;
+ min: 14 12;
+ fixed: 1 1;
+ image {
+ normal: "my_status_small.png";
+ }
+ visible: 1;
+ }
+ description {
+ state: "1" 0.0;
+ inherit: "default" 0.0;
+ min: 14 14;
+ image {
+ normal: "other_location_blue_small.png";
+ }
+ }
+ description {
+ state: "2" 0.0;
+ inherit: "default" 0.0;
+ min: 14 14;
+ image {
+ normal: "other_location_mint_small.png";
+ }
+ }
+ description {
+ state: "3" 0.0;
+ inherit: "default" 0.0;
+ min: 14 14;
+ image {
+ normal: "other_location_blue_small.png";
+ }
+ }
+ description {
+ state: "4" 0.0;
+ inherit: "default" 0.0;
+ min: 14 14;
+ image {
+ normal: "other_location_mint_small.png";
+ }
+ }
+ }
+ part {
+ name: "city";
+ type: TEXT;
+ mouse_events: 0;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 73/ITEM_RESULT_WIDTH 0.25; to: "bg"; }
+ rel2 { relative: 350/ITEM_RESULT_WIDTH 0.25; to: "bg"; }
+ color: 197 191 181 255;
+ text {
+ text: "Seoul, Korea";
+ font: "Tizen:style=LIGHT";
+ text_class: "tizen";
+ min: 0 1;
+ size: 20;
+ align: 0.0 0.5;
+ }
+ align: 0.0 0.5;
+ visible: 1;
+ }
+ }
+ part {
+ name: "time";
+ type: TEXT;
+ mouse_events: 0;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 1.0 0.25; to: "city"; }
+ rel2 { relative: 1.0 0.25; to: "bg"; }
+ color: 221 218 213 255;
+ text {
+ text: "GMT + 8";
+ font: "Tizen:style=LIGHT";
+ text_class: "tizen";
+ min: 0 1;
+ size: 20;
+ align: 0.0 1.0;
+ }
+ align: 0.0 0.0;
+ visible: 1;
+ }
+ }
+ part {
+ name: "graph_base";
+ type: RECT;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 0.1 0.75; to: "bg"; }
+ rel2 { relative: 0.9 0.75; to: "bg";}
+ min: 0 10;
+ color: 221 218 213 255;
+ visible: 1;
+ }
+ }
+ } //parts
+ }
+
+ group {
+ name: "item_group";
+ parts {
+ part {
+ name: "bg";
+ type: RECT;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 0.0 0.0; }
+ rel2 { relative: 1.0 1.0; }
+ min: ITEM_GROUP_WIDTH ITEM_GROUP_HEIGHT;
+ color: 247 208 143 200;
+ visible: 1;
+ }
+ }
+ part {
+ name: "title";
+ type: TEXT;
+ mouse_events: 0;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 0.0 0.0; to: "title_event"; }
+ rel2 { relative: 1.0 1.0; to: "title_event"; }
+ color: 255 255 255 255;
+ text {
+ text: "Momentic time";
+ font: "Tizen:style=LIGHT";
+ text_class: "tizen";
+ min: 0 1;
+ size: 20;
+ align: 0.0 0.5;
+ }
+ align: 0.0 1.0;
+ visible: 1;
+ }
+ description {
+ state: "press" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 100;
+ }
+ }
+ part {
+ name: "delete";
+ type: IMAGE;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 0.5 0.5; to: "delete_event"; }
+ rel2 { relative: 0.5 0.5; to: "delete_event"; }
+ align: 0.5 0.5;
+ min: 20 20;
+ fixed: 1 1;
+ image {
+ normal: "Group_list_delete.png";
+ }
+ color: 255 255 255 255;
+ visible: 1;
+ }
+ description {
+ state: "press" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 100;
+ }
+ }
+ part {
+ name: "delete_event";
+ type: SWALLOW;
+ mouse_events: 1;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 250/ITEM_GROUP_WIDTH 0.5; to: "bg"; }
+ rel2 { relative: 250/ITEM_GROUP_WIDTH 0.5; to: "bg"; }
+ align: 0.5 0.5;
+ min: ITEM_SELECTING_HEIGHT ITEM_SELECTING_HEIGHT;
+ fixed: 1 1;
+ visible: 1;
+ }
+ }
+ part {
+ name: "title_event";
+ type: RECT;
+ mouse_events: 1;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 20/ITEM_GROUP_WIDTH 0.0; to: "bg"; }
+ rel2 { relative: 0.0 1.0; to_x: "delete_event"; to_y: "bg"; }
+ align: 0.5 0.5;
+ color: 0 0 0 0;
+ visible: 1;
+ }
+ }
+ } //parts
+ programs {
+ program {
+ signal: "mouse,down,1";
+ source: "delete_event";
+ action: SIGNAL_EMIT "down" "item";
+ after: "down,after";
+ }
+ program {
+ name: "down,after";
+ action: STATE_SET "press" 0.0;
+ target: "delete";
+ }
+ program {
+ signal: "mouse,up,1";
+ source: "delete_event";
+ action: SIGNAL_EMIT "up" "item";
+ after: "up,after";
+ }
+ program {
+ name: "up,after";
+ action: STATE_SET "default" 0.0;
+ target: "delete";
+ }
+
+ program {
+ signal: "mouse,down,1";
+ source: "title_event";
+ action: SIGNAL_EMIT "down" "item";
+ after: "down,after";
+ }
+ program {
+ name: "down,after";
+ action: STATE_SET "press" 0.0;
+ target: "title";
+ }
+ program {
+ signal: "mouse,up,1";
+ source: "title_event";
+ action: SIGNAL_EMIT "up" "item";
+ after: "up,after";
+ }
+ program {
+ name: "up,after";
+ action: STATE_SET "default" 0.0;
+ target: "title";
+ }
+ }
+ }
+
+ group {
+ name: "item_padding";
+ parts {
+ part {
+ name: "bg";
+ type: RECT;
+ description {
+ state: "default" 0.0;
+ rel1 { relative: 0.0 0.0; }
+ rel2 { relative: 1.0 1.0; }
+ min: ITEM_PADDING_WIDTH ITEM_PADDING_HEIGHT;
+ color: 0 0 0 0;
+ visible: 1;
+ }
+ }
+ } //parts
+ }
+
+} //collections
diff --git a/res/images/Group list delete.png b/res/images/Group list delete.png Binary files differnew file mode 100755 index 0000000..7e5eb75 --- /dev/null +++ b/res/images/Group list delete.png diff --git a/res/images/Group menu.png b/res/images/Group menu.png Binary files differnew file mode 100755 index 0000000..a1cea1f --- /dev/null +++ b/res/images/Group menu.png diff --git a/src/main_view.c b/src/main_view.c index 7f7e62e..84b52b2 100644 --- a/src/main_view.c +++ b/src/main_view.c @@ -630,7 +630,18 @@ static void _destroy_group_scroller(Evas_Object *group_scroller) static void _main_view_back_cb(void *data, Evas_Object *obj, void *event_info) { - elm_object_signal_emit(obj, "momentic,state,page,back", ""); + static time_t prev_t; + time_t cur_t; + + time(&cur_t); + + if (prev_t + 1 > cur_t) { + _D("wait a sec to process the back key event"); + return; + } + + prev_t = cur_t; + elm_object_signal_emit(obj, "momentic,state,page,back", ""); } Evas_Object *main_view_create(Evas_Object *parent, moment_info_s *moment_info) |