add recent edc 64/41264/1
authorSoohye Shin <soohye.shin@samsung.com>
Fri, 12 Jun 2015 06:35:14 +0000 (15:35 +0900)
committerSoohye Shin <soohye.shin@samsung.com>
Fri, 12 Jun 2015 06:35:14 +0000 (15:35 +0900)
Change-Id: I7477c8759a97a019c0fd3248875ef53ee2e872ab
Signed-off-by: Soohye Shin <soohye.shin@samsung.com>
edje/home.edc
edje/images/btn_bar_clearall_dis.png [new file with mode: 0644]
edje/images/btn_bar_clearall_foc.png [new file with mode: 0644]
edje/images/btn_bar_clearall_nor.png [new file with mode: 0644]
edje/view/recent.edc [new file with mode: 0644]
include/defs.h

index dab3887..0071986 100644 (file)
@@ -18,4 +18,5 @@
 
 collections {
        #include "view/home.edc"
+       #include "view/recent.edc"
 }
diff --git a/edje/images/btn_bar_clearall_dis.png b/edje/images/btn_bar_clearall_dis.png
new file mode 100644 (file)
index 0000000..c9ddeae
Binary files /dev/null and b/edje/images/btn_bar_clearall_dis.png differ
diff --git a/edje/images/btn_bar_clearall_foc.png b/edje/images/btn_bar_clearall_foc.png
new file mode 100644 (file)
index 0000000..8b3c447
Binary files /dev/null and b/edje/images/btn_bar_clearall_foc.png differ
diff --git a/edje/images/btn_bar_clearall_nor.png b/edje/images/btn_bar_clearall_nor.png
new file mode 100644 (file)
index 0000000..22543a4
Binary files /dev/null and b/edje/images/btn_bar_clearall_nor.png differ
diff --git a/edje/view/recent.edc b/edje/view/recent.edc
new file mode 100644 (file)
index 0000000..3659787
--- /dev/null
@@ -0,0 +1,255 @@
+/*
+ * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "../../include/defs.h"
+group {
+       name, GRP_RECENT;
+       parts {
+               part {
+                       name, "guide";
+                       type, RECT;
+                       scale, 1;
+                       description {
+                               state, "default" 0.0;
+                               rel1.relative, 0.0 1.0;
+                               min, 0 528;
+                               fixed, 1 1;
+                               align, 0.5 0.0;
+                               visible, 0;
+                       }
+                       description {
+                               state, "show" 0.0;
+                               inherit, "default" 0.0;
+                               min, 0 0;
+                       }
+               }
+               part {
+                       name, "clip";
+                       type, RECT;
+                       description {
+                               state, "default" 0.0;
+                               color, 0 0 0 0;
+                       }
+                       description {
+                               state, "show" 0.0;
+                               inherit, "default" 0.0;
+                               color, 255 255 255 255;
+                       }
+               }
+               part {
+                       name, "bg";
+                       type, RECT;
+                       scale, 1;
+                       clip_to, "clip";
+                       description {
+                               state, "default" 0.0;
+                               min, 0 528;
+                               rel1 {
+                                       to, "guide";
+                                       relative, 0.0 1.0;
+                               }
+                               rel2.to, "guide";
+                               fixed, 0 1;
+                               align, 0.5 1.0;
+                       }
+               }
+               part {
+                       name, "pad.title";
+                       type, RECT;
+                       scale, 1;
+                       description {
+                               state, "default" 0.0;
+                               rel1.to, "bg";
+                               rel2 {
+                                       to, "bg";
+                                       relative, 1.0 0.0;
+                               }
+                               min, 0 104;
+                               fixed, 0 1;
+                               align, 0.5 0.0;
+                       }
+               }
+               part {
+                       name, "pad.list";
+                       type, RECT;
+                       scale, 1;
+                       description {
+                               state, "default" 0.0;
+                               rel1 {
+                                       to, "pad.title";
+                                       relative, 0.0 1.0;
+                               }
+                               rel2.to, "bg";
+                               fixed, 1 1;
+                               color, 242 242 242 255;
+                       }
+               }
+               part {
+                       name, "title";
+                       type, TEXT;
+                       scale, 1;
+                       description {
+                               state, "default" 0.0;
+                               rel1.to, "pad.title";
+                               rel2.to, "pad.title";
+                               text {
+                                       size, 46;
+                                       font, "TizenSans";
+                                       text, "Recent";
+                               }
+                               color, 51 51 51 255;
+                       }
+               }
+               part {
+                       name, PART_RECENT_DELETE_ICON;
+                       type, SWALLOW;
+                       scale, 1;
+                       description {
+                               state, "default" 0.0;
+                               rel1 {
+                                       to, "pad.title";
+                                       relative, 1.0 0.0;
+                               }
+                               rel2.to, "pad.title";
+                               min, 82 104;
+                               fixed, 1 1;
+                               align, 1.0 0.5;
+                       }
+               }
+               part {
+                       name, "pad.contents.up";
+                       type, RECT;
+                       scale, 1;
+                       description {
+                               state, "default" 0.0;
+                               rel1 {
+                                       to, "pad.title";
+                                       relative, 0.0 1.0;
+                               }
+                               rel2 {
+                                       to, "pad.title";
+                                       relative, 0.0 1.0;
+                               }
+                               min, 70 70;
+                               fixed, 1 1;
+                               align, 0.0 0.0;
+                               visible, 0;
+                       }
+               }
+               part {
+                       name, "pad.contents.down";
+                       type, RECT;
+                       scale, 1;
+                       description {
+                               state, "default" 0.0;
+                               rel1 {
+                                       to, "bg";
+                                       relative, 1.0 1.0;
+                               }
+                               min, 0 70;
+                               fixed, 1 1;
+                               align, 1.0 1.0;
+                               visible, 0;
+                       }
+               }
+               part {
+                       name, PART_RECENT_NO_CONTENTS;
+                       type, TEXT;
+                       scale, 1;
+                       description {
+                               state, "default" 0.0;
+                               rel1 {
+                                       to, "pad.title";
+                                       relative, 0.0 1.0;
+                               }
+                               text {
+                                       size, 50;
+                                       font, "TizenSans";
+                               }
+                               fixed, 1 1;
+                               color, 51 51 51 255;
+                       }
+               }
+               part {
+                       name, PART_RECENT_CONTENTS;
+                       type, SWALLOW;
+                       scale, 1;
+                       description {
+                               state, "default" 0.0;
+                               rel1 {
+                                       to, "pad.contents.up";
+                                       relative, 1.0 1.0;
+                               }
+                               rel2 {
+                                       to, "pad.contents.down";
+                                       relative, 0.0 0.0;
+                               }
+                               fixed, 1 1;
+                       }
+               }
+       }
+       programs {
+               program {
+                       name, "sig,show,recent";
+                       signal, SIG_SHOW_RECENT;
+                       source, SRC_PROG;
+                       action, STATE_SET "show" 0.0;
+                       transition, DECEL 0.5;
+                       target, "clip";
+                       target, "guide";
+               }
+               program {
+                       name, "sig,hide,recent";
+                       signal, SIG_HIDE_RECENT;
+                       source, SRC_PROG;
+                       action, STATE_SET "default" 0.0;
+                       transition, DECEL 0.5;
+                       target, "clip";
+                       target, "guide";
+               }
+       }
+}
+
+group {
+       name, GRP_RECENT_DELETE;
+       images {
+               image, "btn_bar_clearall_nor.png" COMP;
+       }
+       parts {
+               part {
+                       name, "bg";
+                       type, RECT;
+                       scale, 1;
+                       description {
+                               state, "default" 0.0;
+                               min, 82 104;
+                               visible, 0;
+                       }
+               }
+               part {
+                       name, "ico";
+                       type, IMAGE;
+                       scale, 1;
+                       description {
+                               state, "default" 0.0;
+                               rel1.to, "bg";
+                               rel2.to, "bg";
+                               image.normal, "btn_bar_clearall_nor.png";
+                       }
+               }
+       }
+}
+
index bc4b785..de86aea 100644 (file)
@@ -28,6 +28,7 @@
 #define GRP_HOME_DOWN_ARROW "group.home.down.arrow"
 #define GRP_HOME_ITEM "group.home.item"
 #define GRP_RECENT "group.recent"
+#define GRP_RECENT_DELETE "grp.recent.delete"
 
 #define PART_HOME_MENU_BAR "part.home.menu.bar"
 #define PART_HOME_UP_ARROW "part.home.up.arrow"
@@ -35,6 +36,9 @@
 #define PART_HOME_ITEM_ICON "part.home.item.icon"
 #define PART_HOME_ITEM_NAME "part.home.item.name"
 #define PART_HOME_ITEM_BG "part.home.item.bg"
+#define PART_RECENT_DELETE_ICON "part.recent.delete.icon"
+#define PART_RECENT_CONTENTS "part.recent.contents"
+#define PART_RECENT_NO_CONTENTS "part.recent.no.contents"
 
 #define SIG_SHOW_NAVIGATION "sig.show.navigation"
 #define SIG_HIDE_NAVIGATION "sig.hide.navigation"