<?xml version="1.0" encoding="UTF-8"?>
-<layout width="237" height="124" style="popup" key_width="75" key_height="116" key_spacing="2" row_spacing="2" hit_left="1" hit_right="1" hit_top="4" hit_bottom="4" label_type="PUNC_POPUP" vibe_style="DEFAULT" sound_style="DEFAULT">
+<layout width="314" height="124" style="popup" key_width="75" key_height="116" key_spacing="2" row_spacing="2" hit_left="1" hit_right="1" hit_top="4" hit_bottom="4" label_type="PUNC_POPUP" vibe_style="DEFAULT" sound_style="DEFAULT">
<image_path>
<button_normal>B09_popup_bg.png</button_normal>
</image_path>
<rec button="disabled">popup_line/popup_line_center.png</rec>
</background_image>
</key>
+ <key key_type="modechange">
+ <key_value>
+ <rec>STT_3X4</rec>
+ </key_value>
+ <image_label>
+ <rec button="normal">icon_mic.png</rec>
+ <rec button="pressed">icon_mic_press.png</rec>
+ <rec button="disabled">icon_mic_dim.png</rec>
+ </image_label>
+ <background_image>
+ <rec button="normal">popup_line/popup_line_center.png</rec>
+ <rec button="disabled">popup_line/popup_line_center.png</rec>
+ </background_image>
+ </key>
<key key_type="user" hit_right="4">
<key_value>
<rec>CLIPBOARD</rec>
#define USER_KEYSTRING_OPTION "OPTION"
#define USER_KEYSTRING_EMOTICON "EMOTICON_LAYOUT"
#define USER_KEYSTRING_CLIPBOARD "CLIPBOARD"
+#define USER_KEYSTRING_VOICE "STT_3X4"
+
#define USER_VOICE_LANGUAGE "LANGUAGE"
static sclboolean _cm_popup_opened = FALSE;
-static const char *_cm_key_list[CM_KEY_LIST_SIZE] = {USER_KEYSTRING_OPTION, USER_KEYSTRING_EMOTICON, USER_KEYSTRING_CLIPBOARD, USER_VOICE_LANGUAGE};
+static const char *_cm_key_list[CM_KEY_LIST_SIZE] = {USER_KEYSTRING_OPTION, USER_KEYSTRING_EMOTICON, USER_KEYSTRING_CLIPBOARD, USER_KEYSTRING_VOICE};
static scluint _current_cm_key_id = 0;
/*
const_cast<sclchar*>("icon_clipboard.png"),
const_cast<sclchar*>("icon_clipboard.png")};
g_ui->set_private_key("CM_KEY", const_cast<sclchar*>(""), imagelabel, NULL, 0, const_cast<sclchar*>(USER_KEYSTRING_CLIPBOARD), TRUE);
+ } else if (strcmp(_cm_key_list[cm_key_id], USER_KEYSTRING_VOICE) == 0) {
+ sclchar* imagelabel[SCL_BUTTON_STATE_MAX] = {
+ const_cast<sclchar*>("icon_mic.png"),
+ const_cast<sclchar*>("icon_mic_press.png"),
+ const_cast<sclchar*>("icon_mic_dim.png")};
+ g_ui->set_private_key("CM_KEY", const_cast<sclchar*>(""), imagelabel, NULL, 0, const_cast<sclchar*>(USER_KEYSTRING_VOICE), TRUE);
}
}
ret = SCL_EVENT_DONE;
}
if (_cm_popup_opened) {
- if (strcmp(event_desc.key_value, USER_KEYSTRING_EMOTICON) == 0) {
+ if (strcmp(event_desc.key_value, USER_KEYSTRING_EMOTICON) == 0 ||
+ strcmp(event_desc.key_value, USER_KEYSTRING_VOICE) == 0) {
scluint id = ise_get_cm_key_id(event_desc.key_value);
if (id != _current_cm_key_id) {
_current_cm_key_id = id;
}
}
if (_cm_popup_opened) {
- if (strcmp(event_desc.key_value, USER_KEYSTRING_OPTION) == 0) {
- scluint id = ise_get_cm_key_id(USER_KEYSTRING_OPTION);
- if (id != _current_cm_key_id) {
- _current_cm_key_id = id;
- ise_set_cm_private_key(_current_cm_key_id);
- }
- } else if (strcmp(event_desc.key_value, USER_KEYSTRING_CLIPBOARD) == 0) {
- scluint id = ise_get_cm_key_id(USER_KEYSTRING_CLIPBOARD);
+ if (strcmp(event_desc.key_value, USER_KEYSTRING_OPTION) == 0 ||
+ strcmp(event_desc.key_value, USER_KEYSTRING_CLIPBOARD) == 0) {
+ scluint id = ise_get_cm_key_id(event_desc.key_value);
if (id != _current_cm_key_id) {
_current_cm_key_id = id;
ise_set_cm_private_key(_current_cm_key_id);