X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=data%2Fedc%2Flayout%2Finc.main.month.weekly.edc;h=a94b2021745c583e8e8cc6c0fe8014331933103b;hb=954e50ac0380d2457506aa1c30246dce39467c66;hp=7a75871edc40389c108df1bfd26b899e82ff6b1a;hpb=04d55485c5c774e8daa95a204814070804cb782d;p=apps%2Fcore%2Fpreloaded%2Fcalendar.git diff --git a/data/edc/layout/inc.main.month.weekly.edc b/data/edc/layout/inc.main.month.weekly.edc index 7a75871..a94b202 100755 --- a/data/edc/layout/inc.main.month.weekly.edc +++ b/data/edc/layout/inc.main.month.weekly.edc @@ -12,7 +12,22 @@ #define H_GAP (2.0*R_Y) #define H_LINE (3.0*R_Y) +#define HEIGHT_OF_LIST_INDEX (48.0) +#define WIDTH_OF_LIST_INDEX (720.0) +#define WIDTH_OF_LIST_ICON (24.0) +#define HEIGHT_OF_LIST_ICON (24.0) +#define LIST_ICON_RIGHT_OFFSET (14.0) +#define HEIGHT_OF_CONTENT (915) +#define WIDTH_OF_LIST_INDEX_AREA (52) + group { name, "main/month/weekly"; + images { + image: CALENDAR_LIST_INDEX_OPEN COMP; + image: CALENDAR_LIST_INDEX_OPEN_PRESS COMP; + image: CALENDAR_LIST_INDEX_CLOSE COMP; + image: CALENDAR_LIST_INDEX_CLOSE_PRESS COMP; + image: CALENDAR_LIST_INDEX_BG COMP; + } parts { part { name, "base"; @@ -29,7 +44,7 @@ group { name, "main/month/weekly"; description { state, "default" 0.0; rel1 { relative, 0.0 0.0; offset, 0 0; to, "base"; } - rel2 { relative, 1.0 0.0; offset, 0 H; to, "base"; } + rel2 { relative, 1.0 ((HEIGHT_OF_CONTENT-HEIGHT_OF_LIST_INDEX)/HEIGHT_OF_CONTENT); offset, 0 0; to, "base"; } } } @@ -71,15 +86,71 @@ group { name, "main/month/weekly"; rel2 { relative, 1.0 ((H-2*H_WEEK-2*H_GAP)/H); offset: 0 0; to, "cal/sw"; } } } + + part { name, "list/base"; + type, SWALLOW; + description { + state, "default" 0.0; + rel1 { + relative, 0.0 1.0; + to_x, "base"; to_y, "cal/clip"; + } + rel2.to, "base"; + color, 0 0 0 0; + } + } + part { name, "list/line"; type, RECT; description { state, "default" 0.0; - rel1 { relative, 0.0 1.0; offset, 0 0; to, "cal/clip"; } - rel2 { relative, 1.0 1.0; offset, 0 H_LINE; to, "cal/clip"; } + rel1 { to, "list/base"; } + rel2 { relative, 1.0 0.0; offset, 0 HEIGHT_OF_BOTTOM_LINE; to, "list/base"; } color, COLOR_OF_LIST_LINE_FOR_MONTH; } } + + part { name, "list/index"; + scale, 1; + mouse_events, 0; + description { + state, "default" 0.0; + rel1{ relative, 0.0 0.0; offset, 0 2; to, "list/base"; } + rel2{ relative, 1.0 1.0; offset, 0 0; to, "list/base"; } + image { + border_scale, 1; + normal, CALENDAR_LIST_INDEX_BG; + } + + } + } + + part { name, "list/icon/rect"; + type, RECT; + mouse_events, 1; + description { + state, "default" 0.0; + rel1{ relative, ((WIDTH_OF_LIST_INDEX-WIDTH_OF_LIST_INDEX_AREA)/WIDTH_OF_LIST_INDEX) 0.0; to, "list/index"; } + rel2{ relative,1.0 1.0; to, "list/index"; } + color, 0 0 0 0; + } + } + + part { name, "list/icon"; + scale, 1; + mouse_events, 0; + description { + state, "default" 0.0; + rel1{ relative, ((WIDTH_OF_LIST_INDEX-LIST_ICON_RIGHT_OFFSET-WIDTH_OF_LIST_ICON)/WIDTH_OF_LIST_INDEX) ((HEIGHT_OF_LIST_INDEX-HEIGHT_OF_LIST_ICON)/2/HEIGHT_OF_LIST_INDEX); to, "list/index"; } + rel2{ relative, ((WIDTH_OF_LIST_INDEX-LIST_ICON_RIGHT_OFFSET)/WIDTH_OF_LIST_INDEX) (1-((HEIGHT_OF_LIST_INDEX-HEIGHT_OF_LIST_ICON)/2/HEIGHT_OF_LIST_INDEX)); to, "list/index"; } + image.normal: CALENDAR_LIST_INDEX_CLOSE; + } + description { state: "down" 0.0; + inherit: "default" 0.0; + image.normal: CALENDAR_LIST_INDEX_CLOSE_PRESS; + } + } + } programs { @@ -104,5 +175,75 @@ group { name, "main/month/weekly"; target, "cal/clip"; transition, SINUSOIDAL 0.0; } + program { name, "icon/down"; + signal, "mouse,down,1"; + source, "list/icon/rect"; + action, STATE_SET "down" 0.0; + target, "list/icon"; + } + program { name, "icon/up"; + signal, "mouse,up,1"; + source, "list/icon/rect"; + action, STATE_SET "default" 0.0; + target, "list/icon"; + } + program { name, "icon/clicked"; + signal, "mouse,clicked,1"; + source, "list/icon/rect"; + action, SIGNAL_EMIT "close" "cal"; + } } } + +group { name, "main/month/weekly/l"; + + parts { + part { name, "base"; + type, RECT; + description { + state, "default" 0.0; + color, 0 0 0 0; + } + } + + part { name, "cal/sw"; + type, SWALLOW; + clip_to, "cal/clip"; + description { + state, "default" 0.0; + rel1 { relative, 0.0 0.0; offset, 0 0; to, "base"; } + rel2 { relative, 1.0 1.0; offset, 0 0; to, "base"; } + } + } + + part { name, "cal/sw/left"; + type, SWALLOW; + clip_to, "cal/clip"; + description { + state, "default" 0.0; + rel1 { relative, -1.0 0.0; to_x, "base"; to_y, "cal/sw"; } + rel2 { relative, 0.0 1.0; to_x, "base"; to_y, "cal/sw";} + } + } + + part { name, "cal/sw/right"; + type, SWALLOW; + clip_to, "cal/clip"; + description { + state, "default" 0.0; + rel1 { relative, 1.0 0.0; to_x, "base"; to_y, "cal/sw"; } + rel2 { relative, 2.0 1.0; to_x, "base"; to_y, "cal/sw";} + } + } + + part { name, "cal/clip"; + type, RECT; + description { + state, "default" 0.0; + rel1.to, "cal/sw"; + rel2 { relative, 1.0 1.0; offset, 0 0; to, "cal/sw"; } + } + } + } +} +