Fixed to show the number of apps over 2 digits 31/43531/1 accepted/tizen/tv/20150710.080711 submit/tizen/20150710.033155
authorHyojung Jo <hj903.jo@samsung.com>
Fri, 10 Jul 2015 02:30:12 +0000 (11:30 +0900)
committerHyojung Jo <hj903.jo@samsung.com>
Fri, 10 Jul 2015 02:30:12 +0000 (11:30 +0900)
Change-Id: I4e6a92aa3927075d22b2525a3b0fa2161e29ec4a
Signed-off-by: Hyojung Jo <hj903.jo@samsung.com>
data/app-launcher-tv-ref.edc
include/define.h
src/layout/AppsBaseLayout.cpp

index 80ee6f9..01c3365 100644 (file)
@@ -336,6 +336,11 @@ collections {
                                        align, 1.0 1.0;
                                        fixed, 1 1;
                                }
+                               description {
+                                       state, "enlarge" 0.0;
+                                       inherit, "default" 0.0;
+                                       min, 64 32;
+                               }
                        }
                        part {
                                name, "padding_num_right";
@@ -495,6 +500,13 @@ collections {
                                action, STATE_SET "invisible" 0.0;
                                target, PART_LAYOUT;
                        }
+                       program {
+                               name, "enlarge_num_part";
+                               signal, "enlarge_num_part";
+                               source, PART_NUM_RIGHT;
+                               action, STATE_SET "enlarge" 0.0;
+                               target, PART_NUM_RIGHT;
+                       }
                }
        }
        group {
index 8e914b0..bd0bc56 100644 (file)
 #define SIG_SRC_ELM "elm"
 #define SIG_CHECKED "checked"
 #define SIG_UNCHECKED "unchecked"
+#define SIG_ENLARGE_NUM_PART "enlarge_num_part"
 
 #define STYLE_INVISIBLE "invisible"
 #define STYLE_MENUBTN "menubtn"
index bf7ec54..2502180 100644 (file)
@@ -524,11 +524,14 @@ void CAppsBaseLayout::m_LoadTableContents(void) {
 
        c = eina_list_count(list);
        snprintf(buf, sizeof(buf), "%d", c);
-       elm_object_part_text_set(m->eoParent, PART_NUM_LEFT, "");
        elm_object_part_text_set(m->eoParent, PART_NUM_RIGHT, buf);
+
+       if (c >= 100)
+               elm_object_signal_emit(m->eoParent, SIG_ENLARGE_NUM_PART,
+                               PART_NUM_RIGHT);
+
        elm_object_signal_emit(m->eoParent, SIG_APP_ICON_VISIBLE,
                        PART_ICON_RIGHT);
-       elm_object_signal_emit(m->eoParent, SIG_ICON_INVISIBLE, PART_ICON_LEFT);
 
        if (c == 0) {
                elm_object_signal_emit(m->eoParent, SIG_TABLE_INVISIBLE,