#define LOCALEDIR RESDIR"/locale"
#define PRIMARY_LATIN_LANGUAGE "English"
-#undef MAIN_ENTRY_XML_PATH
-#ifdef _TV
-#define MAIN_ENTRY_XML_PATH LAYOUTDIR"/tv/main_entry.xml"
-#elif _WEARABLE
-#define MAIN_ENTRY_XML_PATH LAYOUTDIR"/wearable/main_entry.xml"
-#elif _COMMON
-#define MAIN_ENTRY_XML_PATH LAYOUTDIR"/common/main_entry.xml"
+
+#ifdef _WEARABLE
+#define PROFILE_NAME "wearable"
+#elif _TV
+#define PROFILE_NAME "tv"
+#elif _MOBILE
+#define PROFILE_NAME "mobile"
#else
-#define MAIN_ENTRY_XML_PATH LAYOUTDIR"/mobile/main_entry.xml"
+#define PROFILE_NAME "common"
#endif
+#undef MAIN_ENTRY_XML_PATH
+#define MAIN_ENTRY_XML_PATH LAYOUTDIR "/" PROFILE_NAME"/main_entry.xml"
+
#define DEFAULT_KEYBOARD_ISE_UUID "org.tizen.ise-engine-default"
#define DEFAULT_KEYBOARD_ISE_PKGID "ise-engine-default"
#endif
#ifdef _WEARABLE
-#define PROFILE_NAME "wearable"
-#elif _TV
-#define PROFILE_NAME "tv"
-#elif _MOBILE
-#define PROFILE_NAME "mobile"
-#else
-#define PROFILE_NAME "common"
-#endif
-
-#ifdef _WEARABLE
#define IMG_ARROW_LEFT LAYOUTDIR"/wearable/image/button/B09_btn_arrow_left.png"
#define IMG_ARROW_RIGHT LAYOUTDIR"/wearable/image/button/B09_btn_arrow_right.png"
#define IMG_POPUP_FC_BG LAYOUTDIR"/wearable/image/button/language_change_popup_bg.png"
#define _EDJ(x) elm_layout_edje_get(x)
-#ifdef _WEARABLE
-#define STT_EDJ_FILE "edje/wearable/w-input-stt.edj"
-#elif _TV
-#define STT_EDJ_FILE "edje/tv/w-input-stt.edj"
-#else
-#define STT_EDJ_FILE "edje/mobile/w-input-stt.edj"
-#endif
+#define STT_EDJ_FILE "edje/" PROFILE_NAME"/w-input-stt.edj"
VoiceData *my_voicedata = NULL;
-static Evas_Object *win_main = NULL;
extern CSCLUI *g_ui;
extern Candidate *g_candidate;
extern CONFIG_VALUES g_config_values;
int ret;
init_customizing_theme();
- win_main = win;
-
Evas_Object *layout_main = elm_layout_add(win);
evas_object_size_hint_weight_set(layout_main, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(layout_main, EVAS_HINT_FILL, EVAS_HINT_FILL);