Picture menu unlocked 75/118275/1 accepted/tizen_tv accepted/tizen/tv/20170313.120417 accepted/tizen/unified/20170313.120442 submit/tizen/20170313.083445
authorRadek Kintop <r.kintop@samsung.com>
Thu, 9 Mar 2017 17:08:01 +0000 (18:08 +0100)
committerRadek Kintop <r.kintop@samsung.com>
Thu, 9 Mar 2017 17:08:01 +0000 (18:08 +0100)
Change-Id: I77d5e58940bd455d83b9c981fad4886111f87fe2
Signed-off-by: Radek Kintop <r.kintop@samsung.com>
include/layout.h
res/layout/system.edc
src/common/menumgr.c
src/layout/layout_picture.c
src/view/view_base.c

index 7fe619e..10cf80d 100644 (file)
@@ -23,7 +23,7 @@
 * @brief Available layout types.
 */
 /*release changes:*/
-#define LAYOUT_MAX 2
+#define LAYOUT_MAX 3
 
 enum layout_type {
        LAYOUT_PICTURE = 0,
@@ -42,9 +42,8 @@ enum layout_type {
 *
 * @return The pointer to picture layout_class object.
 */
-/* TODO: needed in temporary disabled component
 layout_class *layout_picture_get_lclass(void);
-*/
+
 
 /**
 * @brief Get the pointer to the layout_class object of sound layout.
index 318f562..b425495 100644 (file)
@@ -40,7 +40,7 @@ group {
                                }
                                rel2 {
                                        to, "area";
-                                       relative, 0.25 0.0;
+                                       relative, 0.0 0.0;
                                }
                                align, 0.0 0.0;
                                fixed, 1 1;
@@ -55,7 +55,7 @@ group {
                                min, 65 148;
                                rel1 {
                                        to, "area";
-                                       relative, 0.75 1.0;
+                                       relative, 1.0 1.0;
                                }
                                rel2 {
                                        to, "area";
index 93088a9..b680530 100755 (executable)
@@ -27,7 +27,7 @@
 #include "common/menumgr.h"
 
 #define MAX_BTN 8
-#define MAX_BTN_COL 2
+#define MAX_BTN_COL 4
 
 #define STATUS_DEFAULT "N/A"
 
index dfd94ca..a990fd9 100644 (file)
@@ -68,7 +68,7 @@ static void _destroy(void *layout_data);
 static void _update(void *layout_data, int update_type, void *data);
 
 static struct menumgr_info menu_info[] = {
-       {
+/*     {
                .id = MENU_PICTURE_MODE,
                .title = STR_PICTURE_MODE,
                .style = STYLE_STATUS_BTN,
@@ -80,7 +80,7 @@ static struct menumgr_info menu_info[] = {
                .focused = _focused,
                .selected_menu = _selected_menu,
                .update_cb = settings_picture_set_picture_mode_update_callbacks
-       },
+       },*/
        {
                .id = MENU_CONTRAST,
                .title = STR_CONTRAST,
@@ -107,7 +107,7 @@ static struct menumgr_info menu_info[] = {
                .selected_menu = _selected_menu,
                .update_cb = settings_picture_set_brightness_update_callbacks
        },
-       {
+/*     {
                .id = MENU_SHARPNESS,
                .title = STR_SHARPNESS,
                .style = STYLE_PROGRESS_BTN,
@@ -119,7 +119,7 @@ static struct menumgr_info menu_info[] = {
                .focused = _focused,
                .selected_menu = _selected_menu,
                .update_cb = settings_picture_set_sharpness_update_callbacks
-       },
+       },*/
        {
                .id = MENU_COLOR,
                .title = STR_COLOR,
@@ -146,7 +146,7 @@ static struct menumgr_info menu_info[] = {
                .selected_menu = _selected_menu,
                .update_cb = settings_picture_set_tint_update_callbacks
        },
-       {
+/*     {
                .id = MENU_SCREEN_ADJ,
                .title = STR_SCR_ADJ,
                .style = STYLE_STATUS_BTN,
@@ -158,7 +158,7 @@ static struct menumgr_info menu_info[] = {
                .focused = _focused,
                .selected_menu = _selected_menu,
                .update_cb = settings_picture_set_screen_adj_update_callbacks
-       },
+       },*/
 };
 
 static layout_class _lclass = {
@@ -170,13 +170,11 @@ static layout_class _lclass = {
        .update = _update
 };
 
-/* TODO: needed in temporary disabled component
 layout_class *layout_picture_get_lclass(void)
 {
        SETTING_TRACE_BEGIN;
        return &_lclass;
 }
-*/
 
 static char *_get_picture_mode(void *data, int id)
 {
index 82a1c5e..11b9bfb 100755 (executable)
@@ -48,12 +48,12 @@ struct _menu_data {
 };
 
 static struct _menu_data _mdata[LAYOUT_MAX] = {
-/*     {
+       {
                .name = STR_PICTURE,
                .layout_id = LAYOUT_ID_PICTURE,
                .get_lclass = layout_picture_get_lclass,
                .enable = EINA_TRUE
-       },
+       },/*
        {
                .name = STR_SOUND,
                .layout_id = LAYOUT_ID_SOUND,
@@ -99,7 +99,7 @@ static struct _menu_data _mdata[LAYOUT_MAX] = {
 };
 
 static struct _menu_data *_mdata_p[LAYOUT_MAX] = {
-       &_mdata[0], &_mdata[1]/*, &_mdata[2], &_mdata[3],
+       &_mdata[0], &_mdata[1], &_mdata[2],/* &_mdata[3],
        &_mdata[4], &_mdata[5], &_mdata[6], &_mdata[7] */
 };