if (sscanf(buf, "%4000s", str) != 1) continue;
if (!strcmp(str, "kbd"))
{
- if (sscanf(buf, "%*s %i %i\n", &(ki->layout.w), &(ki->layout.h)) != 2)
+ if (sscanf(buf, "%*s %i %i\n", &(ki->layout.w), &(ki->layout.orig_h)) != 2)
continue;
}
if (!strcmp(str, "fuzz"))
{
ky = calloc(1, sizeof(E_Kbd_Int_Key));
if (!ky) continue;
- if (sscanf(buf, "%*s %i %i %i %i\n", &(ky->x), &(ky->y), &(ky->w), &(ky->h)) != 4)
+ if (sscanf(buf, "%*s %i %i %i %i\n", &(ky->x), &(ky->orig_y), &(ky->w), &(ky->orig_h)) != 4)
{
free(ky);
ky = NULL;
Evas_Coord lw, lh;
Eina_List *l;
+ ki->layout.h = ki->layout.orig_h * il_kbd_cfg->scale_height;
+
evas_event_freeze(ki->win->evas);
e_layout_virtual_size_set(ki->layout_obj, ki->layout.w, ki->layout.h);
edje_extern_object_aspect_set(ki->layout_obj, EDJE_ASPECT_CONTROL_BOTH,
E_Kbd_Int_Key_State *st;
const char *label, *icon;
+ ky->y = ky->orig_y * il_kbd_cfg->scale_height;
+ ky->h = ky->orig_h * il_kbd_cfg->scale_height;
+
o = _theme_obj_new(ki->win->evas, ki->themedir,
"e/modules/kbd/key/default");
ky->obj = o;
E_CONFIG_VAL(D, T, zoom_level, INT);
E_CONFIG_VAL(D, T, hold_timer, DOUBLE);
E_CONFIG_VAL(D, T, slide_dim, INT);
-
+ E_CONFIG_VAL(D, T, scale_height, DOUBLE);
+
il_kbd_cfg = e_config_domain_load("module.illume-keyboard", conf_edd);
if ((il_kbd_cfg) &&
((il_kbd_cfg->version >> 16) < IL_CONFIG_MAJ))
il_kbd_cfg->zoom_level = 4;
il_kbd_cfg->slide_dim = 4;
il_kbd_cfg->hold_timer = 0.25;
-
}
if (il_kbd_cfg)
{
/* Add new config variables here */
/* if ((il_kbd_cfg->version & 0xffff) < 1) */
- if ((il_kbd_cfg->version >> 16) < IL_CONFIG_MAJ)
+ if ((il_kbd_cfg->version & 0xffff) < IL_CONFIG_MIN)
{
il_kbd_cfg->zoom_level = 4;
il_kbd_cfg->slide_dim = 4;
il_kbd_cfg->hold_timer = 0.25;
+ il_kbd_cfg->scale_height = 1.0;
}
il_kbd_cfg->version = (IL_CONFIG_MAJ << 16) | IL_CONFIG_MIN;
}
NULL, &(il_kbd_cfg->zoom_level), 150);
e_widget_framelist_object_append(of, sl);
+ ol = e_widget_label_add(evas, _("Height"));
+ e_widget_framelist_object_append(of, ol);
+ sl = e_widget_slider_add(evas, EINA_TRUE, 0, "%.2f", 0.2, 2.0, 0.1, 0,
+ &(il_kbd_cfg->scale_height), NULL, 150);
+ evas_object_smart_callback_add(sl, "changed",
+ _il_kbd_config_changed, NULL);
+
+ e_widget_framelist_object_append(of, sl);
+
e_widget_list_object_append(list, of, 1, 0, 0.0);
return list;
}