<?xml version="1.0" encoding="UTF-8"?>
-<layout width="360" height="240" magnifier="true" key_width="80" key_height="60" vibe_style="DEFAULT" sound_style="DEFAULT" label_type="3X4_DEFAULT">
+<layout width="360" height="240" magnifier="true" key_width="80" key_height="50" vibe_style="DEFAULT" sound_style="DEFAULT" label_type="3X4_DEFAULT">
<image_path>
<button_normal>B09_panel.png</button_normal>
</image_path>
<?xml version="1.0" encoding="UTF-8"?>
-<layout width="360" height="240" magnifier="true" key_width="34" key_height="50" key_spacing="0" row_spacing="0" hit_left="0" hit_right="0" hit_top="0" hit_bottom="0" label_type="QTY_DEFAULT" vibe_style="DEFAULT" sound_style="DEFAULT">
+<layout width="360" height="240" magnifier="true" key_width="34" key_height="40" key_spacing="0" row_spacing="0" hit_left="0" hit_right="0" hit_top="0" hit_bottom="0" label_type="QTY_DEFAULT" vibe_style="DEFAULT" sound_style="DEFAULT">
<image_path>
<button_normal>B09_panel.png</button_normal>
</image_path>
<rec button="pressed">button/B09_Qwerty_btn_press.png</rec>
<rec button="disabled">button/B09_Qwerty_btn_01.png</rec>
</background_image>
- <row x="10" y="40">
+ <row x="10">
<key use_magnifier="true" longkey_magnifier="true" long_key_value="1" multitouch_type="settle_previous" hit_left="9">
<label>
<rec auto_upper="true">q</rec>
<?xml version="1.0" encoding="UTF-8"?>
-<layout width="360" height="240" magnifier="true" key_width="80" key_height="60" vibe_style="DEFAULT" sound_style="DEFAULT" label_type="3X4_DEFAULT">
+<layout width="360" height="240" magnifier="true" key_width="80" key_height="50" vibe_style="DEFAULT" sound_style="DEFAULT" label_type="3X4_DEFAULT">
<image_path>
<button_normal>B09_panel.png</button_normal>
</image_path>
evas_object_hide(layout);
}
+int
+EflCandidate::get_height() {
+ return candidate_config.height;
+}
+
void
EflCandidate::update(const vector<string> &vec_str) {
cur_candidates = vec_str;
void show();
void hide();
void update(const std::vector<std::string> &candidates);
+ int get_height();
void item_pressed(Evas_Object *item);
void item_released(Evas_Object *item);
void item_moved(Evas_Object *item);
evas_object_move(m_candidateCloseBtn, m_screenWidth-MORE_BUTTON_WIDTH*m_screenRatio,
(CANDIDATE_WINDOW_HEIGHT-MORE_BUTTON_HEIGHT)*m_screenRatio/2);
}
+
+int
+EflMultiLineCandidate::get_height()
+{
+ return CANDIDATE_WINDOW_HEIGHT*m_screenRatio;
+}
\ No newline at end of file
void hide();
void update(const std::vector<std::string> &candidates);
void rotate(int degree);
+ int get_height();
void more_btn_clicked();
void more_btn_released();
void close_btn_clicked();
virtual void hide() = 0;
virtual void update(const std::vector<std::string> &candidates) = 0;
virtual void rotate(int degree) { }
+ virtual int get_height() { return 0; }
void add_event_listener(EventListener *l);
protected:
void notify_listeners(const EventDesc &desc);
create_softcandidate();
- if (g_candidate)
- g_candidate->show();
-
g_softcandidate_show = true;
- g_ui->set_custom_starting_coordinates(0, CANDIDATE_WINDOW_HEIGHT);
+ if (g_candidate) {
+ g_candidate->show();
+ if (g_ui) {
+ g_ui->set_custom_starting_coordinates(0, g_candidate->get_height());
+ }
+ }
}
void CCoreEventCallback::on_candidate_hide(sclint ic, const sclchar *ic_uuid)
{
add_softcandidate_hide_timer();
- g_ui->set_custom_starting_coordinates(0, 0);
+ if (g_ui) {
+ g_ui->set_custom_starting_coordinates(0, 0);
+ }
}
void CCoreEventCallback::on_process_input_device_event(sclu32 &type, sclchar *data, size_t &len, sclu32 *ret)