Accessibility submenu will be used to launch accessibility features, like screen reader, screen magnification etc.
Change-Id: Ibdaba51b45d199155e02549463e5f2940aa01b0a
target: "icon";
}
}
-}
\ No newline at end of file
+}
+
+group {
+ name: "accessibility";
+ images {
+ image: "ico_settings_accessibility.png" COMP;
+ }
+ parts {
+ part {
+ name: "icon";
+ type: IMAGE;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ image.normal: "ico_settings_accessibility.png";
+ color: 255 255 255 153;
+ }
+ description {
+ state: "focused" 0.0;
+ image.normal: "ico_settings_accessibility.png";
+ }
+ description {
+ state: "highlight" 0.0;
+ inherit: "focused" 0.0;
+ color: 255 255 255 255;
+ }
+ }
+ }
+ programs {
+ program {
+ name: MAIN_BTN_NORMAL;
+ signal: MAIN_BTN_NORMAL;
+ source: MAIN_BTN;
+ action: STATE_SET "default" 0.0;
+ target: "icon";
+ }
+ program {
+ name: MAIN_BTN_FOCUSED;
+ signal: MAIN_BTN_FOCUSED;
+ source: MAIN_BTN;
+ action: STATE_SET "focused" 0.0;
+ target: "icon";
+ }
+ program {
+ name: MAIN_BTN_UNFOCUSED;
+ signal: MAIN_BTN_UNFOCUSED;
+ source: MAIN_BTN;
+ action: STATE_SET "default" 0.0;
+ target: "icon";
+ }
+ program {
+ name: MAIN_BTN_HIGHLIGHT;
+ signal: MAIN_BTN_HIGHLIGHT;
+ source: MAIN_BTN;
+ action: STATE_SET "highlight" 0.0;
+ target: "icon";
+ }
+ }
+}
--- /dev/null
+{
+ "settingitems": {
+ "screen-reader": {
+ "display-name": "Screen Reader",
+ "style": "title.value",
+ "setting-ui": {
+ "style": "ctxpopup"
+ },
+ "data": {
+ "key": "settings/accessibility/screen_reader",
+ "type": "bool",
+ "list": [
+ {
+ "display-value": "OFF",
+ "value": "0"
+ },
+ {
+ "display-value": "ON",
+ "value": "1"
+ }
+ ]
+ }
+ }
+ },
+ "settingtree": {
+ "accessibility": {
+ "subsettingitems": [
+ "screen-reader"
+ ],
+ "parentitem": "maincatalog"
+ }
+ }
+}
+
"display-name": "SUPPORT",
"style": "animicon",
"resource-file": "support.edj"
+ },
+ "accessibility": {
+ "display-name": "ACCESSIBILITY",
+ "style": "animicon",
+ "resource-file": "accessibility.edj"
}
},
"settingtree": {
"network",
"device-manager",
"system",
- "support"
+ "support",
+ "accessibility"
],
"parentitem": "maincatalog"
}
#define KEY_SUBTITLE_LANGUAGE "db/menu/subtitle/subtitlelanguage"
#define KEY_SYSTEM_LANGUAGE "db/menu_widget/language"
#define KEY_SYSTEM_COUNTRY "db/menu_widget/regionformat"
+#define KEY_ACCESSIBILITY_SCREEN_READER "db/setting/accessibility/tts"
#define SYSTEM_LANGUAGE_DEFAULT_VALUE "en_US.utf8"
#define WAKEUP_TIMER_SETUP_DEFAULT_VALUE "OFF"
SYSTEM_RESET,
SYSTEM_PASSCODE,
SYSTEM_CLOCK_MODE,
- CHANNEL_LOCK
+ CHANNEL_LOCK,
+ SCREEN_READER,
};
struct keymap {
{
.key = "settings/channel/channel_lock",
.type = CHANNEL_LOCK
+ },
+ {
+ "settings/accessibility/screen_reader",
+ SCREEN_READER
}
};
case CHANNEL_LOCK:
r = vconf_set_bool(KEY_CHANNEL_LOCK, val);
break;
+ case SCREEN_READER:
+ r = vconf_set_bool(KEY_ACCESSIBILITY_SCREEN_READER, val);
+ break;
default:
break;
}
case CHANNEL_LOCK:
r = vconf_get_bool(KEY_CHANNEL_LOCK, val);
break;
+ case SCREEN_READER:
+ r = vconf_get_bool(KEY_ACCESSIBILITY_SCREEN_READER, val);
+ break;
default:
break;
}