#include <unistd.h>
#include "ise.h"
+#include "utils.h"
#include "ise-stt-mode.h"
#include "ise-stt-option.h"
#define STT_EDJ_FILE "edje/mobile/w-input-stt.edj"
#endif
-
VoiceData *my_voicedata = NULL;
static Evas_Object *win_main = NULL;
-
+extern CSCLUI *g_ui;
static void set_guide_text(VoiceData *vd, const char* text, bool translatable = false);
static void _popup_close_cb(void *data, Evas_Object *obj, void *event_info);
{
LOGD("create_fullview");
- //win_main = win;
VoiceData *voicedata = r_voicedata;
int ret;
- Evas_Coord win_w, win_h;
-
init_customizing_theme();
Evas_Object *layout_main = elm_layout_add(win);
// add callback
elm_object_signal_callback_add(layout_main, "idle,state,pulse,visible", "", on_initial_anim_press_cb, voicedata);
- evas_object_geometry_get(win, NULL, NULL, &win_w, &win_h);
- evas_object_resize(layout_main, win_w, win_h);
+ SclSize rect = g_ui->get_input_mode_size(g_ui->get_input_mode(), g_ui->get_display_mode());
+ evas_object_resize(layout_main, rect.width, rect.height);
evas_object_layer_set(layout_main, 32000);
if (is_emoticon_show()) {
ise_destroy_emoticon_layout();
}
+ if (g_keyboard_state.layout == ISE_LAYOUT_STYLE_VOICE) {
+ ise_hide_stt_mode();
+ }
if (g_keyboard_state.layout == ISE_LAYOUT_STYLE_EMOTICON) {
ise_show_emoticon_layout(current_emoticon_group, degree, false, g_core.get_main_window());
} else if (g_ui) {
if (input_mode) {
if (!(strcmp(input_mode, "EMOTICON_LAYOUT")))
ise_show_emoticon_layout(current_emoticon_group, degree, false, g_core.get_main_window());
+ else if (!(strcmp(input_mode, "STT_3X4")))
+ ise_show_stt_mode(NATIVE_WINDOW_CAST(g_core.get_main_window()));
}
}
}