void set_callback_for_system_location_change(void *data);
static struct menumgr_info menu_info[] = {
- /*{
+ {
.id = MENU_CLOCK,
.title = STR_CLOCK,
.style = STYLE_STATUS_BTN,
- .disabled = EINA_TRUE,
+ .disabled = EINA_FALSE,
.favorite = EINA_FALSE,
.status = _get_clock_mode,
.selected = _selected,
.progress_value = NULL,
.progress_evas = NULL,
.update_cb = settings_clock_set_state_update_callbacks
- },*/
+ },
{
.id = MENU_SLEEP_TIMER,
.title = STR_SLEEP_TIMER,
.progress_value = NULL,
.progress_evas = NULL,
.update_cb = set_callback_for_sleep_timer_change
- },/*
+ },
{
.id = MENU_WAKEUP_TIMER,
.title = STR_WAKEUP_TIMER,
.style = STYLE_TEXTBLOCK_BTN,
- .disabled = EINA_TRUE,
+ .disabled = EINA_FALSE,
.status = _get_wakeup_timer,
.selected = _selected,
.focused = _focused,
.id = MENU_CHANGE_PINCODE,
.title = STR_CHANGE_PINCODE,
.style = STYLE_NORMAL_BTN,
- .disabled = EINA_TRUE,
+ .disabled = EINA_FALSE,
.selected = _selected,
.focused = _focused,
.selected_menu = _selected_menu,
.progress_value = NULL,
.progress_evas = NULL,
.update_cb = NULL
- },*/
+ },
{
.id = MENU_LANGUAGE,
.title = STR_LANGUAGE,
.progress_value = NULL,
.progress_evas = NULL,
.update_cb = settings_language_set_state_update_callbacks
- }/*,
+ },
{
.id = MENU_SUBTITLE,
.title = STR_SUBTITLE,
.style = STYLE_STATUS_BTN,
- .disabled = EINA_TRUE,
+ .disabled = EINA_FALSE,
.status = _get_subtitle,
.selected = _selected,
.focused = _focused,
.progress_value = NULL,
.progress_evas = NULL,
.update_cb = settings_language_set_subtitle_state_update_callbacks
- }*/,
+ },
{
.id = MENU_LOCATION,
.title = STR_LOCATION,
.progress_value = NULL,
.progress_evas = NULL,
.update_cb = set_callback_for_system_location_change
- }/*,
+ },
{
.id = MENU_RESET,
.title = STR_RESET,
.style = STYLE_NORMAL_BTN,
- .disabled = EINA_TRUE,
+ .disabled = EINA_FALSE,
.selected = _selected,
.focused = _focused,
.selected_menu = _selected_menu,
.progress_value = NULL,
.progress_evas = NULL,
.update_cb = NULL
- },*/
+ },
};
/*
static char *_get_clock_mode(void *data, int id)
#include "view/view_action_menu.h"
#include "view/view_base.h"
-
struct _priv {
Evas_Object *win;
Evas_Object *base;
};
static struct _menu_data _mdata[LAYOUT_MAX] = {
-/* {
+ {
.name = STR_PICTURE,
.layout_id = LAYOUT_ID_PICTURE,
.get_lclass = layout_picture_get_lclass,
- .enable = EINA_FALSE
+ .enable = EINA_TRUE
},
{
.name = STR_SOUND,
.layout_id = LAYOUT_ID_SOUND,
.get_lclass = layout_sound_get_lclass,
- .enable = EINA_FALSE
+ .enable = EINA_TRUE
},
{
.name = STR_CHANNEL,
.layout_id = LAYOUT_ID_CHANNEL,
.get_lclass = layout_channel_get_lclass,
- .enable = EINA_FALSE
- },*/
+ .enable = EINA_TRUE
+ },
{
.name = STR_NETWORK,
.layout_id = LAYOUT_ID_NETWORK,
.layout_id = LAYOUT_ID_SYSTEM,
.get_lclass = layout_system_get_lclass,
.enable = EINA_TRUE
- }/*,
+ },
{
.name = STR_SUPPORT,
.layout_id = LAYOUT_ID_SUPPORT,
.get_lclass = layout_support_get_lclass,
- .enable = EINA_FALSE
+ .enable = EINA_TRUE
},
{
.name = STR_INFOSQUARE,
.name = STR_VOICE,
.layout_id = LAYOUT_ID_VOICE,
.get_lclass = layout_voice_get_lclass,
- .enable = EINA_FALSE
- },*/
+ .enable = EINA_TRUE
+ },
};
static struct _menu_data *_mdata_p[LAYOUT_MAX] = {
- &_mdata[0], &_mdata[1]/*, &_mdata[2], &_mdata[3],
- &_mdata[4], &_mdata[5], &_mdata[6], &_mdata[7] */
+ &_mdata[0], &_mdata[1], &_mdata[2], &_mdata[3],
+ &_mdata[4], &_mdata[5], &_mdata[6], &_mdata[7]
};
static void _lock_focus_for_item(struct _priv *priv, int item, Eina_Bool lock);
inputmgr_add_callback(priv->menu[item1], item1, &_menu_input_handler, priv);
inputmgr_add_callback(priv->menu[item2], item2, &_menu_input_handler, priv);
-/*release changes:*/
-//settings_preferences_tab_order_set(item1, _mdata_p[item1]->layout_id);
-//settings_preferences_tab_order_set(item2, _mdata_p[item2]->layout_id);
+
+ settings_preferences_tab_order_set(item1, _mdata_p[item1]->layout_id);
+ settings_preferences_tab_order_set(item2, _mdata_p[item2]->layout_id);
}
static void _show_toast_message(Evas_Object *parent, char *text)
_ERR("Calloc failed.");
return NULL;
}
-/*release changes:*/
-//_tab_order_restore();
+
+ _tab_order_restore();
priv->base = utils_add_layout(win, GRP_VIEW_BASE, EINA_TRUE);
if (!priv->base) {