ADD_DEPENDENCIES(${PROJECT_NAME} layout_keypad.edj)
INSTALL(FILES ${CMAKE_BINARY_DIR}/layout_keypad.edj DESTINATION ${ISE_RESDIR}/edje)
+if(${TARGET} STREQUAL "mobile")
ADD_CUSTOM_TARGET( customised_ctxpopup.edj COMMAND edje_cc
-id ${CMAKE_CURRENT_SOURCE_DIR}/edje/mobile
-sd ${CMAKE_CURRENT_SOURCE_DIR}/edje/mobile
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/data/edc/customised_ctxpopup.edc)
ADD_DEPENDENCIES(${PROJECT_NAME} customised_ctxpopup.edj)
INSTALL(FILES ${CMAKE_BINARY_DIR}/customised_ctxpopup.edj DESTINATION ${ISE_RESDIR}/edje/mobile)
+endif()
if(${TARGET} STREQUAL "wearable")
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/res/wearable/edje)
INSTALL(FILES ${CMAKE_BINARY_DIR}/res/common/edje/main_layout.edj DESTINATION
${ISE_RESDIR}/edje/common)
+ADD_CUSTOM_TARGET( customised_ctxpopup.edj COMMAND edje_cc
+ -id ${CMAKE_CURRENT_SOURCE_DIR}/edje/common
+ -sd ${CMAKE_CURRENT_SOURCE_DIR}/edje/common
+ ${CMAKE_CURRENT_SOURCE_DIR}/data/edc/customised_ctxpopup.edc
+ ${CMAKE_BINARY_DIR}/customised_ctxpopup.edj
+ DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/data/edc/customised_ctxpopup.edc)
+ADD_DEPENDENCIES(${PROJECT_NAME} customised_ctxpopup.edj)
+INSTALL(FILES ${CMAKE_BINARY_DIR}/customised_ctxpopup.edj DESTINATION ${ISE_RESDIR}/edje/common)
+
else()
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/res/mobile/edje)
ADD_CUSTOM_TARGET(w-input-stt.edj COMMAND edje_cc
static void _multi_down(void *data, Evas *e, Evas_Object *o, void *event_info);
static void _multi_up(void *data, Evas *e, Evas_Object *o, void *event_info);
-static bool get_landscape_device(int degree)
-{
- sclint width = 0;
- sclint height = 0;
- bool landscape_device = false;
-
- CSCLUI *ui = get_ui();
- if (!ui) return false;
-
- ui->get_screen_resolution(&width, &height);
-
- if (degree == 0 || degree == 180) {
- if (width > height)
- landscape_device = true;
- }
- else {
- if (width < height)
- landscape_device = true;
- }
-
- return landscape_device;
-}
-
void ise_read_recent_emoticon_list_from_scim(void)
{
LOGD("Enter\n");
#include "ise-floating-mode.h"
#include "ise-dbus.h"
-#define EDJ_FILE RESDIR"/edje/mobile/customised_ctxpopup.edj"
+#define EDJ_FILE RESDIR"/edje/" PROFILE_NAME"/customised_ctxpopup.edj"
#define EXIT_ISE_ON_HIDE 0
#define DEFER_ISE_CREATION 0
write_ise_config_values();
}
+bool get_landscape_device(int degree)
+{
+ sclint width = 0;
+ sclint height = 0;
+ bool landscape_device = false;
+
+ CSCLUI *ui = get_ui();
+ if (!ui) return false;
+
+ ui->get_screen_resolution(&width, &height);
+
+ if (degree == 0 || degree == 180) {
+ if (width > height)
+ landscape_device = true;
+ }
+ else {
+ if (width < height)
+ landscape_device = true;
+ }
+
+ return landscape_device;
+}
+
void ise_show_help_popup(sclulong keyEvent)
{
char buf[2048] = {0, };
}
int rotation = elm_win_rotation_get(NATIVE_WINDOW_CAST(ime_get_main_window()));
+ bool landscape_device = get_landscape_device(rotation);
if (rotation == 0 || rotation == 180) {
- elm_object_style_set(ctxpopup, "customised_guideline_popup");
+ elm_object_style_set(ctxpopup, landscape_device ? "customised_guideline_popup_landscape" : "customised_guideline_popup");
} else {
- elm_object_style_set(ctxpopup, "customised_guideline_popup_landscape");
+ elm_object_style_set(ctxpopup, landscape_device ? "customised_guideline_popup" : "customised_guideline_popup_landscape");
}
elm_ctxpopup_direction_priority_set(ctxpopup, ELM_CTXPOPUP_DIRECTION_UP,
if (g_floating_mode)
ime_set_floating_drag_end();
} else if (event_desc.event_type == EVENT_TYPE_PRESS) {
-#ifdef _MOBILE
+#if defined(_MOBILE) || defined(_COMMON)
CONFIG_VALUES *config_values = get_config_values();
if (config_values && (!config_values->first_guideset) && event_desc.key_value && (strncmp(event_desc.key_value, "OPTION", strlen(event_desc.key_value)) == 0)) {
break;
}
case KEY_TYPE_MODECHANGE:
-#ifdef _MOBILE
+#if defined(_MOBILE) || defined(_COMMON)
if (_guide_popup_setting != NULL) {//popup is showing
break;
}
ui->enable_button("CM_KEY", false);
#endif
-#ifdef _MOBILE
+#if defined(_MOBILE) || defined(_COMMON)
if (ise_is_guideline_popup_enable_layout()) {
if ((config_values && config_values->first_guidechange) && (_language_manager.get_enabled_languages_num() > 1)) {
ise_show_help_popup(MVK_space);