Enable the icon effect functions.
authorSung-jae Park <nicesj.park@samsung.com>
Tue, 5 Nov 2013 07:26:38 +0000 (16:26 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Tue, 5 Nov 2013 07:26:38 +0000 (16:26 +0900)
Change-Id: I591ea6a12979514f167ab1b4766b1eba129b7fb2

data/CMakeLists.txt
data/icon_effect.edc [new file with mode: 0644]
icon_src/script_handler.c
packaging/com.samsung.data-provider-slave.spec

index 9605f66..70acaea 100644 (file)
@@ -3,4 +3,10 @@ ADD_CUSTOM_TARGET(icon.edj ALL
                DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/icon.edc
 )
 ADD_DEPENDENCIES(${PROJECT_NAME} icon.edj)
+ADD_CUSTOM_TARGET(icon_effect.edj ALL
+               COMMAND edje_cc -sd ${CMAKE_CURRENT_SOURCE_DIR} -id ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/icon_effect.edc icon_effect.edj
+               DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/icon_effect.edc
+)
+ADD_DEPENDENCIES(${PROJECT_NAME} icon_effect.edj)
 INSTALL(FILES icon.edj DESTINATION /usr/apps/com.samsung.${PROJECT_NAME}/res/edje)
+INSTALL(FILES icon_effect.edj DESTINATION /usr/apps/com.samsung.${PROJECT_NAME}/res/edje)
diff --git a/data/icon_effect.edc b/data/icon_effect.edc
new file mode 100644 (file)
index 0000000..2df2d1c
--- /dev/null
@@ -0,0 +1,599 @@
+/*
+ * Copyright 2013  Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Flora License, Version 1.1 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://floralicense.org/license/
+ *
+ * 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.
+ */
+
+images {
+       image: "shortcut_bg_1x1.png" COMP;
+}
+
+collections {
+       group {
+               name: "default,1x1";
+               parts {
+                       part {
+                               name: "box,bg";
+                               type: IMAGE;
+                               description {
+                                       state: "default" 0.0;
+                                       rel1 { relative: 0.0 0.0; }
+                                       rel2 { relative: 1.0 1.0; }
+                                       image { normal: "shortcut_bg_1x1.png"; }
+                               }
+                       }
+
+                       part {
+                               name: "bg";
+                               type: RECT;
+                               description {
+                                       state: "default" 0.0;
+                                       rel1 { relative: 23/175 11/175; }
+                                       rel2 { relative: 160/175 150/175; }
+                                       color: 0 0 0 0;
+                                       align: 0.5 0.5;
+                                       aspect: 1.0 1.0;
+                                       aspect_preference: BOTH;
+                               }
+                       }
+
+                        part {
+                                name: "icon";
+                                type: SWALLOW;
+                                description {
+                                       rel1 { relative: 6/137 0/139; to, "bg"; }
+                                       rel2 { relative: 131/137 130/139; to, "bg"; } // 117x117 125x127
+                               }
+                        }
+
+                       part {
+                               name: "name,shadow";
+                               type: TEXT;
+                               // effect: FAR_SHADOW
+                               description {
+                                       rel1 { relative: 11/175 135/175; }
+                                       rel2 { relative: 166/175 169/175; }
+                                       color: 0 0 0 102;
+                                       text {
+                                               font: "Tizen:style=Bold";
+                                               text_class: "tizen";
+                                               align: 0.5 0.5;
+                                               size: 26;
+                                       }
+                               }
+                       }
+
+                       part {
+                               name: "name";
+                               type: TEXT;
+                               // effect: FAR_SHADOW;
+                               description {
+                                       rel1 { relative: 10/175 133/175; }
+                                       rel2 { relative: 165/175 167/175; }
+                                       color: 255 255 255 255;
+                                       //color3: 255 255 255 153;
+                                       text {
+                                               font: "Tizen:style=Bold";
+                                               text_class: "tizen";
+                                               align: 0.5 0.5;
+                                               size: 26;
+                                       }
+                               }
+                       }
+               }
+       }
+
+       group {
+               name: "default,2x1"; /* +89.5, 0 */
+               parts {
+                       part {
+                               name: "bg";
+                               type: RECT;
+                               description {
+                                       state: "default" 0.0;
+                                       rel1 { relative: 112.5/354 11/175; }
+                                       rel2 { relative: 249.5/354 150/175; }
+                                       align: 0.5 0.5;
+                                       aspect: 1.0 1.0;
+                                       color: 0 0 0 0;
+                                       aspect_preference: BOTH;
+                               }
+                       }
+
+                        part {
+                                name: "icon";
+                                type: SWALLOW;
+                                description {
+                                       rel1 { relative: 6/137 0/139; to, "bg"; }
+                                       rel2 { relative: 131/137 130/139; to, "bg"; } // 117x117 125x127
+                               }
+                        }
+
+                       part {
+                               name: "name,shadow";
+                               type: TEXT;
+                               // effect: FAR_SHADOW
+                               description {
+                                       rel1 { relative: 100.5/354 135/175; }
+                                       rel2 { relative: 255.5/354 169/175; }
+                                       color: 0 0 0 102;
+                                       text {
+                                               font: "Tizen:style=Bold";
+                                               text_class: "tizen";
+                                               align: 0.5 0.5;
+                                               size: 26;
+                                       }
+                               }
+                       }
+
+                       part {
+                               name: "name";
+                               type: TEXT;
+                               // effect: FAR_SHADOW;
+                               description {
+                                       rel1 { relative: 99.5/354 133/175; }
+                                       rel2 { relative: 254.5/354 167/175; }
+                                       color: 255 255 255 255;
+                                       //color3: 255 255 255 153;
+                                       text {
+                                               font: "Tizen:style=Bold";
+                                               text_class: "tizen";
+                                               align: 0.5 0.5;
+                                               size: 26;
+                                       }
+                               }
+                       }
+               }
+       }
+
+       group {
+               name: "default,2x2"; /* +89.5, +89.5 */
+               parts {
+                       part {
+                               name: "bg";
+                               type: RECT;
+                               description {
+                                       state: "default" 0.0;
+                                       rel1 { relative: 112.5/354 100.5/354; }
+                                       rel2 { relative: 249.5/354 239.5/354; }
+                                       color: 0 0 0 0;
+                                       align: 0.5 0.5;
+                                       aspect: 1.0 1.0;
+                                       aspect_preference: BOTH;
+                               }
+                       }
+
+                        part {
+                                name: "icon";
+                                type: SWALLOW;
+                                description {
+                                       rel1 { relative: 6/137 0/139; to, "bg"; }
+                                       rel2 { relative: 131/137 130/139; to, "bg"; } // 117x117 125x127
+                               }
+                        }
+
+                       part {
+                               name: "name,shadow";
+                               type: TEXT;
+                               // effect: FAR_SHADOW
+                               description {
+                                       rel1 { relative: 100.5/354 224.5/354; }
+                                       rel2 { relative: 255.5/354 258.5/354; }
+                                       color: 0 0 0 102;
+                                       text {
+                                               font: "Tizen:style=Bold";
+                                               text_class: "tizen";
+                                               align: 0.5 0.5;
+                                               size: 26;
+                                       }
+                               }
+                       }
+
+                       part {
+                               name: "name";
+                               type: TEXT;
+                               // effect: FAR_SHADOW;
+                               description {
+                                       rel1 { relative: 99.5/354 222.5/354; }
+                                       rel2 { relative: 254.5/354 256.5/354; }
+                                       color: 255 255 255 255;
+                                       //color3: 255 255 255 153;
+                                       text {
+                                               font: "Tizen:style=Bold";
+                                               text_class: "tizen";
+                                               align: 0.5 0.5;
+                                               size: 26;
+                                       }
+                               }
+                       }
+               }
+       }
+
+       group {
+               name: "default,4x1"; /* +268.5, 0 */
+               parts {
+                       part {
+                               name: "bg";
+                               type: RECT;
+                               description {
+                                       state: "default" 0.0;
+                                       rel1 { relative: 291.5/712 11/175; }
+                                       rel2 { relative: 428.5/712 150/175; }
+                                       color: 0 0 0 0;
+                                       align: 0.5 0.5;
+                                       aspect: 1.0 1.0;
+                                       aspect_preference: BOTH;
+                               }
+                       }
+
+                        part {
+                                name: "icon";
+                                type: SWALLOW;
+                                description {
+                                       rel1 { relative: 6/137 0/139; to, "bg"; }
+                                       rel2 { relative: 131/137 130/139; to, "bg"; } // 117x117 125x127
+                               }
+                        }
+
+                       part {
+                               name: "name,shadow";
+                               type: TEXT;
+                               // effect: FAR_SHADOW
+                               description {
+                                       rel1 { relative: 279.5/712 135/175; }
+                                       rel2 { relative: 434.5/712 169/175; }
+                                       color: 0 0 0 102;
+                                       text {
+                                               font: "Tizen:style=Bold";
+                                               text_class: "tizen";
+                                               align: 0.5 0.5;
+                                               size: 26;
+                                       }
+                               }
+                       }
+
+                       part {
+                               name: "name";
+                               type: TEXT;
+                               // effect: FAR_SHADOW;
+                               description {
+                                       rel1 { relative: 278.5/712 133/175; }
+                                       rel2 { relative: 433.5/712 167/175; }
+                                       color: 255 255 255 255;
+                                       //color3: 255 255 255 153;
+                                       text {
+                                               font: "Tizen:style=Bold";
+                                               text_class: "tizen";
+                                               align: 0.5 0.5;
+                                               size: 26;
+                                       }
+                               }
+                       }
+               }
+       }
+
+       group {
+               name: "default,4x2"; /* +268.5, +89.5 */
+               parts {
+                       part {
+                               name: "bg";
+                               type: RECT;
+                               description {
+                                       state: "default" 0.0;
+                                       rel1 { relative: 291.5/712 100.5/354; }
+                                       rel2 { relative: 428.5/712 239.5/354; }
+                                       color: 0 0 0 0;
+                                       align: 0.5 0.5;
+                                       aspect: 1.0 1.0;
+                                       aspect_preference: BOTH;
+                               }
+                       }
+
+                        part {
+                                name: "icon";
+                                type: SWALLOW;
+                                description {
+                                       rel1 { relative: 6/137 0/139; to, "bg"; }
+                                       rel2 { relative: 131/137 130/139; to, "bg"; } // 117x117 125x127
+                               }
+                        }
+
+                       part {
+                               name: "name,shadow";
+                               type: TEXT;
+                               // effect: FAR_SHADOW
+                               description {
+                                       rel1 { relative: 279.5/712 224.5/354; }
+                                       rel2 { relative: 434.5/712 258.5/354; }
+                                       color: 0 0 0 102;
+                                       text {
+                                               font: "Tizen:style=Bold";
+                                               text_class: "tizen";
+                                               align: 0.5 0.5;
+                                               size: 26;
+                                       }
+                               }
+                       }
+
+                       part {
+                               name: "name";
+                               type: TEXT;
+                               // effect: FAR_SHADOW;
+                               description {
+                                       rel1 { relative: 278.5/712 222.5/354; }
+                                       rel2 { relative: 433.5/712 256.5/354; }
+                                       color: 255 255 255 255;
+                                       //color3: 255 255 255 153;
+                                       text {
+                                               font: "Tizen:style=Bold";
+                                               text_class: "tizen";
+                                               align: 0.5 0.5;
+                                               size: 26;
+                                       }
+                               }
+                       }
+               }
+       }
+
+       group {
+               name: "default,4x3"; /* +268.5, +179 */
+               parts {
+                       part {
+                               name: "bg";
+                               type: RECT;
+                               description {
+                                       state: "default" 0.0;
+                                       rel1 { relative: 291.5/712 190/533; }
+                                       rel2 { relative: 428.5/712 329/533; }
+                                       color: 0 0 0 0;
+                                       align: 0.5 0.5;
+                                       aspect: 1.0 1.0;
+                                       aspect_preference: BOTH;
+                               }
+                       }
+
+                        part {
+                                name: "icon";
+                                type: SWALLOW;
+                                description {
+                                       rel1 { relative: 6/137 0/139; to, "bg"; }
+                                       rel2 { relative: 131/137 130/139; to, "bg"; } // 117x117 125x127
+                               }
+                        }
+
+                       part {
+                               name: "name,shadow";
+                               type: TEXT;
+                               // effect: FAR_SHADOW
+                               description {
+                                       rel1 { relative: 279.5/712 314/533; }
+                                       rel2 { relative: 434.5/712 348/533; }
+                                       color: 0 0 0 102;
+                                       text {
+                                               font: "Tizen:style=Bold";
+                                               text_class: "tizen";
+                                               align: 0.5 0.5;
+                                               size: 26;
+                                       }
+                               }
+                       }
+
+                       part {
+                               name: "name";
+                               type: TEXT;
+                               // effect: FAR_SHADOW;
+                               description {
+                                       rel1 { relative: 278.5/712 312/533; }
+                                       rel2 { relative: 433.5/712 346/533; }
+                                       color: 255 255 255 255;
+                                       //color3: 255 255 255 153;
+                                       text {
+                                               font: "Tizen:style=Bold";
+                                               text_class: "tizen";
+                                               align: 0.5 0.5;
+                                               size: 26;
+                                       }
+                               }
+                       }
+               }
+       }
+
+       group {
+               name: "default,4x4"; /* +268.5, +268.5 */
+               parts {
+                       part {
+                               name: "bg";
+                               type: RECT;
+                               description {
+                                       state: "default" 0.0;
+                                       rel1 { relative: 291.5/712 279.5/712; }
+                                       rel2 { relative: 428.5/712 418.5/712; }
+                                       color: 0 0 0 0;
+                                       align: 0.5 0.5;
+                                       aspect: 1.0 1.0;
+                                       aspect_preference: BOTH;
+                               }
+                       }
+
+                        part {
+                                name: "icon";
+                                type: SWALLOW;
+                                description {
+                                       rel1 { relative: 6/137 0/139; to, "bg"; }
+                                       rel2 { relative: 131/137 130/139; to, "bg"; } // 117x117 125x127
+                               }
+                        }
+
+                       part {
+                               name: "name,shadow";
+                               type: TEXT;
+                               // effect: FAR_SHADOW
+                               description {
+                                       rel1 { relative: 279.5/712 403.5/712; }
+                                       rel2 { relative: 434.5/712 437.5/712; }
+                                       color: 0 0 0 102;
+                                       text {
+                                               font: "Tizen:style=Bold";
+                                               text_class: "tizen";
+                                               align: 0.5 0.5;
+                                               size: 26;
+                                       }
+                               }
+                       }
+
+                       part {
+                               name: "name";
+                               type: TEXT;
+                               // effect: FAR_SHADOW;
+                               description {
+                                       rel1 { relative: 278.5/712 401.5/712; }
+                                       rel2 { relative: 433.5/712 435.5/712; }
+                                       color: 255 255 255 255;
+                                       //color3: 255 255 255 153;
+                                       text {
+                                               font: "Tizen:style=Bold";
+                                               text_class: "tizen";
+                                               align: 0.5 0.5;
+                                               size: 26;
+                                       }
+                               }
+                       }
+               }
+       }
+
+       group {
+               name: "default,4x5"; /* +268.5, +358 , 891 */
+               parts {
+                       part {
+                               name: "bg";
+                               type: RECT;
+                               description {
+                                       state: "default" 0.0;
+                                       rel1 { relative: 291.5/712 369/891; }
+                                       rel2 { relative: 428.5/712 508/891; }
+                                       color: 0 0 0 0;
+                                       align: 0.5 0.5;
+                                       aspect: 1.0 1.0;
+                                       aspect_preference: BOTH;
+                               }
+                       }
+
+                        part {
+                                name: "icon";
+                                type: SWALLOW;
+                                description {
+                                       rel1 { relative: 6/137 0/139; to, "bg"; }
+                                       rel2 { relative: 131/137 130/139; to, "bg"; } // 117x117 125x127
+                               }
+                        }
+
+                       part {
+                               name: "name,shadow";
+                               type: TEXT;
+                               // effect: FAR_SHADOW
+                               description {
+                                       rel1 { relative: 279.5/712 493/891; }
+                                       rel2 { relative: 434.5/712 527/891; }
+                                       color: 0 0 0 102;
+                                       text {
+                                               font: "Tizen:style=Bold";
+                                               text_class: "tizen";
+                                               align: 0.5 0.5;
+                                               size: 26;
+                                       }
+                               }
+                       }
+
+                       part {
+                               name: "name";
+                               type: TEXT;
+                               // effect: FAR_SHADOW;
+                               description {
+                                       rel1 { relative: 278.5/712 491/891; }
+                                       rel2 { relative: 433.5/712 525/891; }
+                                       color: 255 255 255 255;
+                                       //color3: 255 255 255 153;
+                                       text {
+                                               font: "Tizen:style=Bold";
+                                               text_class: "tizen";
+                                               align: 0.5 0.5;
+                                               size: 26;
+                                       }
+                               }
+                       }
+               }
+       }
+
+       group {
+               name: "default,4x6"; /* +268.5, +447.5, 1070 */
+               parts {
+                       part {
+                               name: "bg";
+                               type: RECT;
+                               description {
+                                       state: "default" 0.0;
+                                       rel1 { relative: 291.5/712 458.5/1070; }
+                                       rel2 { relative: 428.5/712 597.5/1070; }
+                                       color: 0 0 0 0;
+                                       align: 0.5 0.5;
+                                       aspect: 1.0 1.0;
+                                       aspect_preference: BOTH;
+                               }
+                       }
+
+                        part {
+                                name: "icon";
+                                type: SWALLOW;
+                                description {
+                                       rel1 { relative: 6/137 0/139; to, "bg"; }
+                                       rel2 { relative: 131/137 130/139; to, "bg"; } // 117x117 125x127
+                               }
+                        }
+
+                       part {
+                               name: "name,shadow";
+                               type: TEXT;
+                               // effect: FAR_SHADOW
+                               description {
+                                       rel1 { relative: 279.5/712 582.5/1070; }
+                                       rel2 { relative: 434.5/712 616.5/1070; }
+                                       color: 0 0 0 102;
+                                       text {
+                                               font: "Tizen:style=Bold";
+                                               text_class: "tizen";
+                                               align: 0.5 0.5;
+                                               size: 26;
+                                       }
+                               }
+                       }
+
+                       part {
+                               name: "name";
+                               type: TEXT;
+                               // effect: FAR_SHADOW;
+                               description {
+                                       rel1 { relative: 278.5/712 580.5/1070; }
+                                       rel2 { relative: 433.5/712 614.5/1070; }
+                                       color: 255 255 255 255;
+                                       //color3: 255 255 255 153;
+                                       text {
+                                               font: "Tizen:style=Bold";
+                                               text_class: "tizen";
+                                               align: 0.5 0.5;
+                                               size: 26;
+                                       }
+                               }
+                       }
+               }
+       }
+}
index 8972f75..002cb0f 100644 (file)
@@ -707,7 +707,6 @@ static int update_script_image(Evas_Object *edje, struct block *block)
        img_opt.shadow.color = 0x99000000;
 #endif
        if (img_opt.shadow.enabled) {
-#if 0
                ea_effect_h *ea_effect;
 
                ea_effect = ea_image_effect_create();
@@ -725,7 +724,6 @@ static int update_script_image(Evas_Object *edje, struct block *block)
 
                        ea_image_effect_destroy(ea_effect);
                }
-#endif
        }
 
        /*!
index 79123ed..67abaac 100644 (file)
@@ -2,7 +2,7 @@
 
 Name: com.samsung.data-provider-slave
 Summary: Plugin type livebox service provider
-Version: 0.12.14
+Version: 0.12.15
 Release: 1
 Group: HomeTF/Livebox
 License: Flora License