Icon size : 108 -> 117 submit/tizen_2.1/20130515.031323
authorJin Yoon <jinny.yoon@samsung.com>
Tue, 14 May 2013 06:58:13 +0000 (15:58 +0900)
committerJin Yoon <jinny.yoon@samsung.com>
Tue, 14 May 2013 06:58:13 +0000 (15:58 +0900)
data/edje/all_apps_portrait.edc
data/edje/conf.edc [new symlink]
data/edje/group_4x4_portrait.edc
data/edje/item_4x4.edc
data/org.tizen.menu-screen.xml.in
include/all_apps/layout.h
include/conf.h
packaging/org.tizen.menu-screen.spec
src/all_apps/layout.c
src/menu_screen.c
src/popup.c

index 4e1bbd6a5640ce629a4e1713016ea4a99ad2dbc8..ac04d728a92c6fc2a5c7bca9c8c8a7704a520e61 100644 (file)
@@ -40,8 +40,8 @@ collections {
                                mouse_events: 0;
                                description {
                                        state: "default" 0.0;
-                                       rel1 { relative: 0.0 0/1210; to, "bg";} // 1280 - 70(indicator)
-                                       rel2 { relative: 1.0 104/1210; to, "bg";} // 174 - 70
+                                       rel1 { relative: 0.0 20/1210; to, "bg";} // 1280 - 70(indicator)
+                                       rel2 { relative: 1.0 124/1210; to, "bg";} // 174 - 70
                                        color: 0 0 0 255;
                                        visible: 0;
                                }
@@ -78,8 +78,8 @@ collections {
                                mouse_events: 1;
                                description {
                                        state: "default" 0.0;
-                                       rel1 { relative: 0.0 84/1210; to, "bg"; } // 154 - 70
-                                       rel2 { relative: 1.0 1144/1210; to, "bg"; }
+                                       rel1 { relative: 0.0 134/1210; to, "bg"; } // 154 - 70
+                                       rel2 { relative: 1.0 1194/1210; to, "bg"; }
                                        color: 34 34 34 255;
                                        visible: 0;
                                }
diff --git a/data/edje/conf.edc b/data/edje/conf.edc
new file mode 120000 (symlink)
index 0000000..de97229
--- /dev/null
@@ -0,0 +1 @@
+../../include/conf.h
\ No newline at end of file
index 4aa4c5e94a1ce4383f915397f77304053844709e..de78a2ac8776399b8a38805d31dccb0de73f3eca 100644 (file)
@@ -16,7 +16,7 @@
 
 
 
-#define MENU(part_name, p_relx, p_rely, relx, rely, n_relx, n_rely, ratio)  \
+#define MENU(part_name, p_relx, p_rely, relx, rely, n_relx, n_rely)  \
        part { \
                name: "menu_swallow_"part_name; \
                type: SWALLOW; \
                        state: "default" 0.0;   \
                        visible: 1; \
                        fixed: 1 1; \
-                       rel1 { relative: (relx)+(ratio) (rely)+(ratio); to, "bg"; } \
-                       rel2 { relative: (relx)+(ratio) (rely)+(ratio); to, "bg"; } \
+                       rel1 { relative: (relx) (rely); to, "bg"; } \
+                       rel2 { relative: (relx) (rely); to, "bg"; } \
                } \
                description { \
                        state: "prev" 0.0;      \
                        inherit: "default" 0.0; \
-                       rel1.relative: (p_relx)+(ratio) (p_rely)+(ratio); \
-                       rel2.relative: (p_relx)+(ratio) (p_rely)+(ratio); \
+                       rel1.relative: (p_relx) (p_rely); \
+                       rel2.relative: (p_relx) (p_rely); \
                } \
                description { \
                        state: "next" 0.0;      \
                        inherit: "default" 0.0; \
-                       rel1.relative: (n_relx)+(ratio) (n_rely)+(ratio); \
-                       rel2.relative: (n_relx)+(ratio) (n_rely)+(ratio); \
+                       rel1.relative: (n_relx) (n_rely); \
+                       rel2.relative: (n_relx) (n_rely); \
                } \
                description { \
                        state: "invisible" 0.0; \
                        inherit: "default" 0.0; \
                        visible: 0; \
-                       rel1.relative: (n_relx)+(ratio) (n_rely)+(ratio); \
-                       rel2.relative: (n_relx)+(ratio) (n_rely)+(ratio); \
+                       rel1.relative: (n_relx) (n_rely); \
+                       rel2.relative: (n_relx) (n_rely); \
                } \
        } \
 
                target: "menu_swallow_"part_name; \
        }
 
+#define ITEM_00_X (1.0/8.0)
+#define ITEM_00_Y (1.0/8.0)
+#define ITEM_01_X (3.0/8.0)
+#define ITEM_01_Y ITEM_00_Y
+#define ITEM_02_X (5.0/8.0)
+#define ITEM_02_Y ITEM_00_Y
+#define ITEM_03_X (7.0/8.0)
+#define ITEM_03_Y ITEM_00_Y
+
+#define ITEM_04_X ITEM_00_X
+#define ITEM_04_Y (3.0/8.0)
+#define ITEM_05_X ITEM_01_X
+#define ITEM_05_Y ITEM_04_Y
+#define ITEM_06_X ITEM_02_X
+#define ITEM_06_Y ITEM_04_Y
+#define ITEM_07_X ITEM_03_X
+#define ITEM_07_Y ITEM_04_Y
+
+#define ITEM_08_X ITEM_00_X
+#define ITEM_08_Y (5.0/8.0)
+#define ITEM_09_X ITEM_01_X
+#define ITEM_09_Y ITEM_08_Y
+#define ITEM_10_X ITEM_02_X
+#define ITEM_10_Y ITEM_08_Y
+#define ITEM_11_X ITEM_03_X
+#define ITEM_11_Y ITEM_08_Y
+
+#define ITEM_12_X ITEM_00_X
+#define ITEM_12_Y (7.0/8.0)
+#define ITEM_13_X ITEM_01_X
+#define ITEM_13_Y ITEM_12_Y
+#define ITEM_14_X ITEM_02_X
+#define ITEM_14_Y ITEM_12_Y
+#define ITEM_15_X ITEM_03_X
+#define ITEM_15_Y ITEM_12_Y
 
 collections {
        group {
@@ -97,30 +132,22 @@ collections {
                                }
                        }
 
-                       MENU("0", -0.25, 0.0, 0.0, 0.0, 0.25, 0.0, 0.125)
-                       MENU("1", 0.0, 0.0, 0.25, 0.0, 0.50, 0.0, 0.125)
-                       MENU("2", 0.25, 0.0, 0.50, 0.0, 0.75, 0.0, 0.125)
-                       MENU("3", 0.50, 0.0, 0.75, 0.0, 0.0, 0.20, 0.125)
-
-                       MENU("4", 0.75, 0.0, 0.0, 0.20, 0.25, 0.20, 0.125)
-                       MENU("5", 0.0, 0.20, 0.25, 0.20, 0.50, 0.20, 0.125)
-                       MENU("6", 0.25, 0.20, 0.50, 0.20, 0.75, 0.20, 0.125)
-                       MENU("7", 0.50, 0.20, 0.75, 0.20, 0.0, 0.40, 0.125)
-
-                       MENU("8", 0.75, 0.20, 0.0, 0.40, 0.25, 0.40, 0.125)
-                       MENU("9", 0.0, 0.40, 0.25, 0.40, 0.50, 0.40, 0.125)
-                       MENU("10", 0.25, 0.40, 0.50, 0.40, 0.75, 0.40, 0.125)
-                       MENU("11", 0.50, 0.40, 0.75, 0.40, 0.0, 0.60, 0.125)
-
-                       MENU("12", 0.75, 0.40, 0.0, 0.60, 0.25, 0.60, 0.125)
-                       MENU("13", 0.0, 0.60, 0.25, 0.60, 0.50, 0.60, 0.125)
-                       MENU("14", 0.25, 0.60, 0.50, 0.60, 0.75, 0.60, 0.125)
-                       MENU("15", 0.50, 0.60, 0.75, 0.60, 1.0, 0.80, 0.125)
-
-                       MENU("16", 0.75, 0.60, 0.0, 0.80, 0.25, 0.80, 0.125)
-                       MENU("17", 0.0, 0.80, 0.25, 0.80, 0.50, 0.80, 0.125)
-                       MENU("18", 0.25, 0.80, 0.50, 0.80, 0.75, 0.80, 0.125)
-                       MENU("19", 0.50, 0.80, 0.75, 0.80, 1.0, 0.80, 0.125)
+                       MENU("0", ITEM_00_X, ITEM_00_Y, ITEM_00_X, ITEM_00_Y, ITEM_01_X, ITEM_01_Y)
+                       MENU("1", ITEM_00_X, ITEM_00_Y, ITEM_01_X, ITEM_01_Y, ITEM_02_X, ITEM_02_Y)
+                       MENU("2", ITEM_01_X, ITEM_01_Y, ITEM_02_X, ITEM_02_Y, ITEM_03_X, ITEM_03_Y)
+                       MENU("3", ITEM_02_X, ITEM_02_Y, ITEM_03_X, ITEM_03_Y, ITEM_04_X, ITEM_04_Y)
+                       MENU("4", ITEM_03_X, ITEM_03_Y, ITEM_04_X, ITEM_04_Y, ITEM_05_X, ITEM_05_Y)
+                       MENU("5", ITEM_04_X, ITEM_04_Y, ITEM_05_X, ITEM_05_Y, ITEM_06_X, ITEM_06_Y)
+                       MENU("6", ITEM_05_X, ITEM_05_Y, ITEM_06_X, ITEM_06_Y, ITEM_07_X, ITEM_07_Y)
+                       MENU("7", ITEM_06_X, ITEM_06_Y, ITEM_07_X, ITEM_07_Y, ITEM_08_X, ITEM_08_Y)
+                       MENU("8", ITEM_07_X, ITEM_07_Y, ITEM_08_X, ITEM_08_Y, ITEM_09_X, ITEM_09_Y)
+                       MENU("9", ITEM_08_X, ITEM_08_Y, ITEM_09_X, ITEM_09_Y, ITEM_10_X, ITEM_10_Y)
+                       MENU("10", ITEM_09_X, ITEM_09_Y, ITEM_10_X, ITEM_10_Y, ITEM_11_X, ITEM_11_Y)
+                       MENU("11", ITEM_10_X, ITEM_10_Y, ITEM_11_X, ITEM_11_Y, ITEM_12_X, ITEM_12_Y)
+                       MENU("12", ITEM_11_X, ITEM_11_Y, ITEM_12_X, ITEM_12_Y, ITEM_13_X, ITEM_13_Y)
+                       MENU("13", ITEM_12_X, ITEM_12_Y, ITEM_13_X, ITEM_13_Y, ITEM_14_X, ITEM_14_Y)
+                       MENU("14", ITEM_13_X, ITEM_13_Y, ITEM_14_X, ITEM_14_Y, ITEM_15_X, ITEM_15_Y)
+                       MENU("15", ITEM_14_X, ITEM_14_Y, ITEM_15_X, ITEM_15_Y, ITEM_15_X, ITEM_15_Y)
 
                        part {
                                name: "dim";
@@ -159,10 +186,6 @@ collections {
                        MENU_PROGRAM("13")
                        MENU_PROGRAM("14")
                        MENU_PROGRAM("15")
-                       MENU_PROGRAM("16")
-                       MENU_PROGRAM("17")
-                       MENU_PROGRAM("18")
-                       MENU_PROGRAM("19")
 
                        program {
                                name: "dim,on";
index 8a24a610693abbe5c690172daf7696575989ba17..2d5f23579b54e54d6b79f36f4621fd019994bc18 100644 (file)
 
 
 
+#include "conf.edc"
+
+
+
 styles {
        style {
                name: "app_name_style";
@@ -48,19 +52,6 @@ collections {
                                        color: 0 0 0 0;
                                }
                        }
-
-                       part {
-                               name: "icon_bg";
-                               type: RECT;
-                               scale: 1;
-                               mouse_events: 1;
-                               description {
-                                       state: "default" 0.0;
-                                       rel1 { relative: 36/180 7/180; to, "bg"; }
-                                       rel2 { relative: 144/180 115/180; to, "bg"; }
-                                       color: 0 0 0 0;
-                               }
-                       }
                        part {
                                name: "icon_image";
                                type: SWALLOW;
@@ -68,8 +59,10 @@ collections {
                                mouse_events: 1;
                                description {
                                        state: "default" 0.0;
-                                       rel1 { relative: 0.0 0.0; to, "icon_bg"; }
-                                       rel2 { relative: 1.0 1.0; to, "icon_bg"; }
+                                       rel1 { relative: 0.5 54/ITEM_HEIGHT; }
+                                       rel2 { relative: 0.5 54/ITEM_HEIGHT; }
+                                       min: 117 117;
+                                       fixed: 1 1;
                                }
                        }
                        part {
@@ -79,8 +72,8 @@ collections {
                                mouse_events: 1;
                                description {
                                        state: "default" 0.0;
-                                       rel1 { relative: 15/180 7/180; to, "bg"; }
-                                       rel2 { relative: 165/180 160/180; to, "bg"; }
+                                       rel1 { relative: 0.0 0.0; to, "icon_image"; }
+                                       rel2 { relative: 1.0 1.0; to, "txt"; }
                                        color: 0 0 0 0;
                                        visible: 1;
                                }
@@ -93,8 +86,8 @@ collections {
                                description {
                                        state: "default" 0.0;
                                        visible: 0;
-                                       rel1 { relative: 120/180 10/180; to, "bg"; }
-                                       rel2 { relative: 180/180 70/180; to, "bg"; }
+                                       rel1 { relative: 110/ITEM_WIDTH 0.0; to, "bg"; }
+                                       rel2 { relative: 170/ITEM_WIDTH 60/ITEM_HEIGHT; to, "bg"; }
                                        image {
                                                normal: "../images/menu_badge_01.png";
                                        }
@@ -160,8 +153,8 @@ collections {
                                mouse_events: 1;
                                description {
                                        state: "default" 0.0;
-                                       rel1 { relative: 10/180 10/180; to, "bg"; }
-                                       rel2 { relative: 70/180 70/180; to, "bg"; }
+                                       rel1 { relative: 10/ITEM_WIDTH 0.0; to, "bg"; }
+                                       rel2 { relative: 70/ITEM_WIDTH 60/ITEM_HEIGHT; to, "bg"; }
                                        image {
                                                normal: "../images/RM06_App tray_Btn_Uninstall.png";
                                        }
@@ -188,8 +181,8 @@ collections {
                                mouse_events: 1;
                                description {
                                        state: "default" 0.0;
-                                       rel1 { relative: 0/180 10/180; to, "bg"; }
-                                       rel2 { relative: 60/180 70/180; to, "bg"; }
+                                       rel1 { relative: -0.2 -0.2; to, "uninstall"; }
+                                       rel2 { relative: 1.2 1.2; to, "uninstall"; }
                                        color: 0 0 0 0;
                                        visible: 0;
                                }
@@ -208,9 +201,9 @@ collections {
                                description
                                {
                                        state: "default" 0.0;
-                                       rel1 { relative: 0.0 114/180; to, "bg"; }
-                                       rel2 { relative: 1.0 175/180; to, "bg"; }
-                                       align: 0.5 0.5;
+                                       rel1 { relative: 0.0 1.0; to_x, "bg"; to_y, "icon_image"; }
+                                       rel2 { relative: 1.0 1.0; to, "bg"; }
+                                       align: 0.5 0.0;
                                        color: 255 255 255 255;
                                        color2: 0 0 0 35;
                                        color3: 0 0 0 35;
index 3ced22ca09fd3449beb88b35d37faa8030163909..20329bcc6e497bd20d743dc9f3a556946deb8661 100755 (executable)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns="http://tizen.org/ns/packages" package="@PACKAGE_NAME@" version="1.0.41" install-location="internal-only">
+<manifest xmlns="http://tizen.org/ns/packages" package="@PACKAGE_NAME@" version="1.1.0" install-location="internal-only">
        <label>Simple Menu-screen</label>
        <author email="jinny.yoon@samsung.com" href="www.samsung.com">Jin Yoon</author>
        <author email="yjoo93.park@samsung.com" href="www.samsung.com">Youngjoo Park</author>
index f0c5e5bcd42dc332e336dd9d7dce0c67e20d6ad7..258e9362b68dea16a30b209aa2db6b863eec6e7a 100644 (file)
@@ -21,7 +21,7 @@
 
 #include <Evas.h>
 
-#define PAGE_MAX_APP 20
+#define PAGE_MAX_APP 16
 
 extern Evas_Object *all_apps_layout_create(Evas_Object *controlbar, int rotate);
 extern void all_apps_layout_destroy(Evas_Object *all_apps);
index abd12e22a31f1fdc4681bbd26b09adb1857e6cee..7a4da32d309b11631da23db2e250de0e65e297b6 100644 (file)
 #define PAGE_PORTRAIT_HEIGHT 1060.0f
 #define INDEX_HEIGHT 70
 
+#define ITEM_WIDTH 180.0
+#define ITEM_WIDTH_PROP (ITEM_WIDTH/BASE_WIDTH)
+#define ITEM_HEIGHT 198.0
+#define ITEM_HEIGHT_PROP (ITEM_HEIGHT/BASE_HEIGHT)
+
 #endif // _MENU_SCREEN_CONF_H_
 
 // End of a file
index 8e41486ef0318a25f190f253db69687df1a865c0..47398e83705b0753f6e2f88a7306aca9f8a0d1bc 100644 (file)
@@ -16,7 +16,7 @@
 
 Name:       org.tizen.menu-screen
 Summary:    An utility library of the menu screen
-Version:    1.0.41
+Version:    1.1.0
 Release:    1.1
 Group:      TO_BE/FILLED_IN
 License:    Flora Software License
@@ -113,9 +113,10 @@ sqlite3 %{_datadir}/dbspace/.menu_screen.db 'PRAGMA journal_mode = PERSIST;
        );
 '
 
-chown -R 5000:5000 %{_datadir}
-chown root:5000 %{_datadir}/dbspace/.menu_screen.db
-chown root:5000 %{_datadir}/dbspace/.menu_screen.db-journal
+INHOUSE_ID="5000"
+chown -R $INHOUSE_ID:$INHOUSE_ID %{_datadir}
+chown root:$INHOUSE_ID %{_datadir}/dbspace/.menu_screen.db
+chown root:$INHOUSE_ID %{_datadir}/dbspace/.menu_screen.db-journal
 
 chmod 660 %{_datadir}/dbspace/.menu_screen.db
 chmod 660 %{_datadir}/dbspace/.menu_screen.db-journal
@@ -136,7 +137,7 @@ fi
 %{_resdir}/edje/layout_portrait.edj
 %{_resdir}/edje/index.edj
 %{_resdir}/images/default.png
-%{_localedir}/*
+%{_localedir}/*/*/*.mo
 %{_usr_datadir}/packages/org.tizen.menu-screen.xml
 %{_usr_datadir}/license/%{name}
 /opt/etc/smack/accesses.d/%{_package_name}.rule
index 140afd7f37a2abff06c649239ed38eb908d925f1..dc1620ab6603375959f66b04b3226b10714bcd9b 100644 (file)
@@ -283,7 +283,7 @@ HAPI Evas_Object *all_apps_layout_create(Evas_Object *controlbar, int rotate)
        static const char item_edje[] = EDJEDIR"/item_4x4.edj";
        static const char *page_edje;
        static const char *all_apps_edje;
-       int item_width;
+       int item_width, item_height;
        int width;
        int height;
 
@@ -295,8 +295,8 @@ HAPI Evas_Object *all_apps_layout_create(Evas_Object *controlbar, int rotate)
        width = menu_screen_get_root_width();
        height = menu_screen_get_root_height() - INDEX_HEIGHT;
 
-       if (menu_screen_get_root_width() > menu_screen_get_root_height()) item_width = height / 5.0f;
-       else item_width = width / 4.0f;
+       item_width = ITEM_WIDTH_PROP * menu_screen_get_root_width();
+       item_height = ITEM_HEIGHT_PROP * menu_screen_get_root_height();
 
        if (EINA_FALSE == elm_layout_file_set(all_apps, all_apps_edje, ALL_APPS_GROUP)) {
                evas_object_del(all_apps);
@@ -311,7 +311,7 @@ HAPI Evas_Object *all_apps_layout_create(Evas_Object *controlbar, int rotate)
        evas_object_data_set(all_apps, "page_max_app", (void *) PAGE_MAX_APP);
        evas_object_data_set(all_apps, "item_edje", (void *) item_edje);
        evas_object_data_set(all_apps, "item_width", (void *) item_width);
-       evas_object_data_set(all_apps, "item_height", (void *) item_width);
+       evas_object_data_set(all_apps, "item_height", (void *) item_height);
        evas_object_data_set(all_apps, "item_enable_long_press", (void *) true);
        evas_object_data_set(all_apps, "item_text_dual_line", (void *) true);
        evas_object_data_set(all_apps, "is_under_pkgmgr", (void *) true);
index 8a92013ff5a03042fd3aaffee295b07772c788b0..baeabc044bdd734a581906a3dd601acbf9804018 100644 (file)
@@ -331,7 +331,6 @@ static void _destroy_conformant(Evas_Object *conformant)
 static bool _create_cb(void *data)
 {
        Evas_Object *conformant;
-       Evas_Object *layout;
 
        _get_window_size();
        _init_theme();
@@ -347,6 +346,7 @@ static bool _create_cb(void *data)
        retv_if(NULL == conformant, false);
        evas_object_data_set(menu_screen_info.win, "conformant", conformant);
 
+       Evas_Object *layout;
        layout = layout_create(conformant, LAYOUT_EDJE_PORTRAIT,
                                LAYOUT_GROUP_NAME, MENU_SCREEN_ROTATE_PORTRAIT);
        if (NULL == layout) {
@@ -371,7 +371,7 @@ static void _terminate_cb(void *data)
        Evas_Object *layout;
 
        if (vconf_ignore_key_changed(VCONFKEY_BGSET, _change_bg_cb) < 0) {
-               _E("Failed to remove bgset %s\n", VCONFKEY_BGSET);
+               _E("Failed to remove bgset [%s]\n", VCONFKEY_BGSET);
        }
 
        evas_object_hide(menu_screen_info.win);
index c6b1519da1672832a69606b8626db30cb4efad96..60d5fa5d15da182f930f12f7499f46a69e134866 100644 (file)
@@ -155,7 +155,7 @@ HAPI Evas_Object *popup_create_uninstall(Evas_Object *parent, Evas_Object *item)
        char *markup_name = elm_entry_utf8_to_markup(name);
        retv_if(NULL == markup_name, popup);
 
-       snprintf(warning, sizeof(warning), _("IDS_AT_POP_UNINSTALL_PS_Q"), markup_name);
+       snprintf(warning, sizeof(warning), _(IDS_AT_POP_UNINSTALL_PS_Q), markup_name);
        free(markup_name);
 
        elm_object_text_set(popup, warning);