#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";
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"; }
}
}
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 {
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"; }
+ }
+ }
+ }
+}
+