Elm_Input_Panel_Layout layout;
};
-static struct _autofill_item autofill_test_itsc[] = {
- { N_("Name"), N_("click to enter"), "name", ELM_INPUT_HINT_AUTOFILL_NAME, ELM_INPUT_PANEL_LAYOUT_NORMAL },
- { N_("Email"), N_("click to enter"), "email", ELM_INPUT_HINT_AUTOFILL_EMAIL_ADDRESS, ELM_INPUT_PANEL_LAYOUT_EMAIL },
- { N_("Address"), N_("click to enter"), "address", ELM_INPUT_HINT_AUTOFILL_POSTAL_ADDRESS, ELM_INPUT_PANEL_LAYOUT_NORMAL },
- { N_("Phone"), N_("click to enter"), "phone", ELM_INPUT_HINT_AUTOFILL_PHONE, ELM_INPUT_PANEL_LAYOUT_PHONENUMBER },
- { N_("ID"), N_("click to enter"), "id", ELM_INPUT_HINT_AUTOFILL_ID, ELM_INPUT_PANEL_LAYOUT_NORMAL },
- { N_("Card Number"), N_("click to enter"), "card_number", ELM_INPUT_HINT_AUTOFILL_CREDIT_CARD_NUMBER, ELM_INPUT_PANEL_LAYOUT_NUMBERONLY },
- { N_("Card Expiration date"), N_("click to enter"), "card_expiration_date", ELM_INPUT_HINT_AUTOFILL_CREDIT_CARD_EXPIRATION_DATE, ELM_INPUT_PANEL_LAYOUT_NUMBERONLY },
- { N_("Card Expiration day"), N_("click to enter"), "card_expiration_day", ELM_INPUT_HINT_AUTOFILL_CREDIT_CARD_EXPIRATION_DAY, ELM_INPUT_PANEL_LAYOUT_NUMBERONLY },
- { N_("Card Expiration month"), N_("click to enter"), "card_expiration_month", ELM_INPUT_HINT_AUTOFILL_CREDIT_CARD_EXPIRATION_MONTH, ELM_INPUT_PANEL_LAYOUT_NUMBERONLY },
- { N_("Card Expiration year"), N_("click to enter"), "card_expiration_year", ELM_INPUT_HINT_AUTOFILL_CREDIT_CARD_EXPIRATION_YEAR, ELM_INPUT_PANEL_LAYOUT_NUMBERONLY },
-
- /* do not delete below */
- { NULL, NULL, NULL, ELM_INPUT_HINT_AUTOFILL_NAME, ELM_INPUT_PANEL_LAYOUT_NORMAL }
-};
-
static Evas_Object *_create_ef_layout (Evas_Object *parent, const char *label, const char *guide_text, const char *prediction_hint, const char *res_id, Elm_Input_Hints input_hints = ELM_INPUT_HINT_NONE, Elm_Input_Panel_Layout layout = ELM_INPUT_PANEL_LAYOUT_NORMAL)
{
Evas_Object *en;
Evas_Object *bx = NULL;
Evas_Object *ef = NULL;
Evas_Object *parent = ad->naviframe;
- unsigned int idx = 0;
bx = elm_box_add (parent);
evas_object_size_hint_weight_set (bx, EVAS_HINT_EXPAND, 0.0);
ef = _create_ef_layout (parent, _("Text: What's the weather?"), _("click to enter"), prediction_hint, NULL);
elm_box_pack_end (bx, ef);
- /* Autofill test */
- while (autofill_test_itsc[idx].name != NULL) {
- ef = _create_ef_layout (parent, autofill_test_itsc[idx].name, autofill_test_itsc[idx].guide_text, NULL,
- autofill_test_itsc[idx].res_id, autofill_test_itsc[idx].autofill_hint, autofill_test_itsc[idx].layout);
- elm_box_pack_end (bx, ef);
- ++idx;
- }
-
return bx;
}