#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 300 #define ITEM_GROUP_HEIGHT 50 #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"; } } } 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: 0; } } 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: 0.9 0.5; to: "bg"; } rel2 { relative: 0.9 0.5; to: "bg"; } align: 0.5 0.5; min: ITEM_GROUP_HEIGHT ITEM_GROUP_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"; to_y: "bg"; } align: 0.5 0.5; min: ITEM_GROUP_HEIGHT ITEM_GROUP_HEIGHT; fixed: 1 1; color: 0 0 0 0; visible: 1; } } } //parts programs { 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