From d52076a0329b7bf78d190c9116948b43a5cc087a Mon Sep 17 00:00:00 2001 From: Prasoon Singh Date: Thu, 1 Dec 2016 21:41:43 +0530 Subject: [atspi][accessibility-aetting] Made changes for accessibility app as per UX Change-Id: I7c4b2346d15a29906529bbae1c63bb70a7744ded --- include/setting-accessibility-debug.h | 79 +++++++++++++++++++++++++++++++++++ include/setting-accessibility.h | 64 ++++++++++++++++++++++++++++ 2 files changed, 143 insertions(+) create mode 100644 include/setting-accessibility-debug.h create mode 100644 include/setting-accessibility.h (limited to 'include') diff --git a/include/setting-accessibility-debug.h b/include/setting-accessibility-debug.h new file mode 100644 index 0000000..8e3d752 --- /dev/null +++ b/include/setting-accessibility-debug.h @@ -0,0 +1,79 @@ +/* + * Copyright (c) 2010 Samsung Electronics, Inc. + * All rights reserved. + * + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ +#define _DLOG_USED +#ifdef _DLOG_USED + +#include + +#ifdef LOG_TAG +#undef LOG_TAG +#define LOG_TAG "W-ACCESSIBILITY-SETTING" +#endif + +#define DBG(fmt , args...) \ + do { \ + LOGD("[%s : %d] "fmt"", __func__, __LINE__, ##args); \ + } while (0) + +#define INFO(fmt , args...) \ + do { \ + LOGI("[%s : %d] "fmt"", __func__, __LINE__, ##args); \ + } while (0) + +#define WARN(fmt , args...) \ + do { \ + LOGI("[%s : %d] "fmt"", __func__, __LINE__, ##args); \ + } while (0) + +#define ERR(fmt , args...) \ + do { \ + LOGI("[%s : %d] "fmt"", __func__, __LINE__, ##args); \ + } while (0) + + +#define __FREE(del, arg) do { \ + if (arg) { \ + del((void *)(arg)); /*cast any argument to (void*) to avoid build warring*/\ + arg = NULL; \ + } \ + } while (0); + +#define FREE(arg) __FREE(free, arg) + +#define access_retvm_if(expr, val, fmt, arg...) do { \ + if (expr) { \ + ERR(fmt, ##arg); \ + return (val); \ + } \ + } while (0); + +#define access_retm_if(expr, fmt, arg...) do { \ + if (expr) { \ + ERR(fmt, ##arg); \ + return; \ + } \ + } while (0); + +#define access_retv_if(expr, val) do { \ + if (expr) { \ + ERR("(%s)", #expr); \ + return (val); \ + } \ +} while (0) + +#define access_ret_if(expr) do { \ + if (expr) { \ + ERR("(%s)", #expr); \ + return ; \ + } \ +} while (0) + +#endif diff --git a/include/setting-accessibility.h b/include/setting-accessibility.h new file mode 100644 index 0000000..72857a1 --- /dev/null +++ b/include/setting-accessibility.h @@ -0,0 +1,64 @@ +/* + * Copyright (c) 2010 Samsung Electronics, Inc. + * All rights reserved. + * + * This software is a confidential and proprietary information + * of Samsung Electronics, Inc. ("Confidential Information"). You + * shall not disclose such Confidential Information and shall use + * it only in accordance with the terms of the license agreement + * you entered into with Samsung Electronics. + */ + +#ifndef _SETTING_ACCESSIBILITY_H_ +#define _SETTING_ACCESSIBILITY_H_ + +#include +#include +#include +#include +#include +#include + +#define VCONFKEY_SETAPPL_ACCESSIBILITY_TTS "db/setting/accessibility/tts" +#define SETTING_ACCESSIBILITY_PACKAGE_NAME "accessibility-setting" +#define EDJE_PATH TZ_SYS_RO_APP_D"/org.tizen.accessibility-setting/res/edje/accessibility-setting.edj" +#define _(s) dgettext(SETTING_ACCESSIBILITY_PACKAGE_NAME, s) + +typedef enum { + SETTING_ACCESSIBILITY_MENU_TITLE, + SETTING_ACCESSIBILITY_MENU_VISION +} SettingAccessibilityMenu; + +typedef enum { + SETTING_ACCESSIBILITY_VISION_TITLE, + SETTING_ACCESSIBILITY_VISION_SCREEN_READER, +} SettingAccessibilityVisionMenu; + +typedef struct { + SettingAccessibilityMenu menu; + Elm_Object_Item *pObjItem; +} SettingAccessibilityMenuItemData; + +typedef struct { + SettingAccessibilityVisionMenu menu; + Elm_Object_Item *pObjItem; + Evas_Object *pObj_check; +} SettingAccessibilityVisionItemData; + +typedef struct { + Evas_Object *pObj_win_main; + Evas_Object *pObj_conform; +#ifdef FEATURE_SETTING_SUPPORT_ROTARY + Eext_Circle_Surface *pObj_circle_surface; +#endif + Evas_Object *pObj_layout_main; + Evas_Object *pObj_nf; + +} SettingAccessibilityAppData; + +Evas_Object* setting_accessibility_vision_create_view(void *data); + +Evas_Object *setting_accessibility_menu_create_view(void *data); + + +#endif /* _SETTING_ACCESSIBILITY_H_ */ -- cgit v1.2.3