summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavemds <dave@gurumeditation.it>2014-02-08 20:09:42 +0100
committerdavemds <dave@gurumeditation.it>2014-02-08 20:14:49 +0100
commit2e1351c23b519a13ce77329dab44ca0f461df0b8 (patch)
treee0dc992735af8fc251245fc5c82a544826cf63c3
parentd80dd5ada7e2751e60635e8acfe8fb0ad52505f7 (diff)
New textblock tags for elm entry widget.
This commit add the following new tags: title, subtitle, bigger, big, small, smaller, code, comment, string, number, brace, type, class, function, param, keyword, preprocessor, line_added, line_removed, line_changed. Tags has been unified in 3 new utility macros: COMMON_TEXTBLOCK_TAGS, ENABLED_TEXTBLOCK_TAGS, and DISABLED_TEXTBLOCK_TAGS to avoid repeating too much in the theme. Also a new test is in: "Entry Style Default" that show all the new styles. Docs will follow soon.
-rw-r--r--data/themes/edc/elm/entry.edc72
-rw-r--r--data/themes/fonts.edc48
-rw-r--r--src/bin/test.c4
-rw-r--r--src/bin/test_entry.c128
4 files changed, 203 insertions, 49 deletions
diff --git a/data/themes/edc/elm/entry.edc b/data/themes/edc/elm/entry.edc
index fccab82cf..09c527bfa 100644
--- a/data/themes/edc/elm/entry.edc
+++ b/data/themes/edc/elm/entry.edc
@@ -436,24 +436,18 @@ group { name: "elm/entry/base/default";
436 styles { 436 styles {
437 style { name: "entry_style"; 437 style { name: "entry_style";
438 base: "font="FN" font_size=10 color=#ffffff style=shadow,bottom shadow_color=#00000080 wrap=word text_class=entry color_class=entry left_margin=2 right_margin=2"; 438 base: "font="FN" font_size=10 color=#ffffff style=shadow,bottom shadow_color=#00000080 wrap=word text_class=entry color_class=entry left_margin=2 right_margin=2";
439 tag: "em" "+ font_style=Oblique"; 439 COMMON_TEXTBLOCK_TAGS
440 tag: "link" "+ color=#3399ff underline=on underline_color=#3399ff"; 440 ENABLED_TEXTBLOCK_TAGS
441 tag: "hilight" "+ font_weight=Bold";
442 tag: "preedit" "+ underline=on underline_color=#3399ff";
443 tag: "preedit_sel" "+ backing=on backing_color=#000000 color=#ffffff";
444 } 441 }
445 style { name: "entry_disabled_style"; 442 style { name: "entry_disabled_style";
446 base: "font="FN" font_size=10 color=#151515 style=shadow,bottom shadow_color=#ffffff19 wrap=word text_class=entry color_class=entry_disabled left_margin=2 right_margin=2"; 443 base: "font="FN" font_size=10 color=#151515 style=shadow,bottom shadow_color=#ffffff19 wrap=word text_class=entry color_class=entry_disabled left_margin=2 right_margin=2";
447 tag: "em" "+ font_style=Oblique"; 444 COMMON_TEXTBLOCK_TAGS
448 tag: "link" "+ color=#3399ff88 underline=on underline_color=#3399ff88"; 445 DISABLED_TEXTBLOCK_TAGS
449 tag: "hilight" "+ font_weight=Bold";
450 tag: "preedit" "+ underline=on underline_color=#3399ff88";
451 tag: "preedit_sel" "+ backing=on backing_color=#000 color=#888888";
452 } 446 }
453 style { name: "entry_guide_style"; 447 style { name: "entry_guide_style";
454 base: "font="FN" font_size=10 color=#000000 style=shadow,bottom shadow_color=#ffffff19 wrap=word text_class=entry color_class=entry_guide left_margin=2 right_margin=2 ellipsis=0.0"; 448 base: "font="FN" font_size=10 color=#000000 style=shadow,bottom shadow_color=#ffffff19 wrap=word text_class=entry color_class=entry_guide left_margin=2 right_margin=2 ellipsis=0.0";
455 tag: "em" "+ font_style=Oblique"; 449 COMMON_TEXTBLOCK_TAGS
456 tag: "hilight" "+ font_weight=Bold"; 450 DISABLED_TEXTBLOCK_TAGS
457 } 451 }
458 } 452 }
459// data.item: "context_menu_orientation" "horizontal"; 453// data.item: "context_menu_orientation" "horizontal";
@@ -561,24 +555,18 @@ group { name: "elm/entry/base-mixedwrap/default";
561 styles { 555 styles {
562 style { name: "entry_style_mixedwrap"; 556 style { name: "entry_style_mixedwrap";
563 base: "font="FN" font_size=10 color=#ffffff style=shadow,bottom shadow_color=#00000080 wrap=mixed text_class=entry color_class=entry left_margin=2 right_margin=2"; 557 base: "font="FN" font_size=10 color=#ffffff style=shadow,bottom shadow_color=#00000080 wrap=mixed text_class=entry color_class=entry left_margin=2 right_margin=2";
564 tag: "em" "+ font_style=Oblique"; 558 COMMON_TEXTBLOCK_TAGS
565 tag: "link" "+ color=#3399ff underline=on underline_color=#3399ff"; 559 ENABLED_TEXTBLOCK_TAGS
566 tag: "hilight" "+ font_weight=Bold";
567 tag: "preedit" "+ underline=on underline_color=#3399ff";
568 tag: "preedit_sel" "+ backing=on backing_color=#000000 color=#ffffff";
569 } 560 }
570 style { name: "entry_disabled_style_mixedwrap"; 561 style { name: "entry_disabled_style_mixedwrap";
571 base: "font="FN" font_size=10 color=#151515 style=shadow,bottom shadow_color=#ffffff19 wrap=mixed text_class=entry color_class=entry_disabled left_margin=2 right_margin=2"; 562 base: "font="FN" font_size=10 color=#151515 style=shadow,bottom shadow_color=#ffffff19 wrap=mixed text_class=entry color_class=entry_disabled left_margin=2 right_margin=2";
572 tag: "em" "+ font_style=Oblique"; 563 COMMON_TEXTBLOCK_TAGS
573 tag: "link" "+ color=#3399ff88 underline=on underline_color=#3399ff88"; 564 DISABLED_TEXTBLOCK_TAGS
574 tag: "hilight" "+ font_weight=Bold";
575 tag: "preedit" "+ underline=on underline_color=#3399ff88";
576 tag: "preedit_sel" "+ backing=on backing_color=#000 color=#888888";
577 } 565 }
578 style { name: "entry_guide_style_mixedwrap"; 566 style { name: "entry_guide_style_mixedwrap";
579 base: "font="FN" font_size=10 color=#000000 style=shadow,bottom shadow_color=#ffffff19 wrap=mixed text_class=entry color_class=entry_guide left_margin=2 right_margin=2 ellipsis=0.0"; 567 base: "font="FN" font_size=10 color=#000000 style=shadow,bottom shadow_color=#ffffff19 wrap=mixed text_class=entry color_class=entry_guide left_margin=2 right_margin=2 ellipsis=0.0";
580 tag: "em" "+ font_style=Oblique"; 568 COMMON_TEXTBLOCK_TAGS
581 tag: "hilight" "+ font_weight=Bold"; 569 DISABLED_TEXTBLOCK_TAGS
582 } 570 }
583 } 571 }
584 parts { 572 parts {
@@ -620,24 +608,18 @@ group { name: "elm/entry/base-charwrap/default";
620 styles { 608 styles {
621 style { name: "entry_style_charwrap"; 609 style { name: "entry_style_charwrap";
622 base: "font="FN" font_size=10 color=#ffffff style=shadow,bottom shadow_color=#00000080 wrap=char text_class=entry color_class=entry left_margin=2 right_margin=2"; 610 base: "font="FN" font_size=10 color=#ffffff style=shadow,bottom shadow_color=#00000080 wrap=char text_class=entry color_class=entry left_margin=2 right_margin=2";
623 tag: "em" "+ font_style=Oblique"; 611 COMMON_TEXTBLOCK_TAGS
624 tag: "link" "+ color=#3399ff underline=on underline_color=#3399ff"; 612 ENABLED_TEXTBLOCK_TAGS
625 tag: "hilight" "+ font_weight=Bold";
626 tag: "preedit" "+ underline=on underline_color=#3399ff";
627 tag: "preedit_sel" "+ backing=on backing_color=#000000 color=#ffffff";
628 } 613 }
629 style { name: "entry_disabled_style_charwrap"; 614 style { name: "entry_disabled_style_charwrap";
630 base: "font="FN" font_size=10 color=#151515 style=shadow,bottom shadow_color=#ffffff19 wrap=char text_class=entry color_class=entry_disabled left_margin=2 right_margin=2"; 615 base: "font="FN" font_size=10 color=#151515 style=shadow,bottom shadow_color=#ffffff19 wrap=char text_class=entry color_class=entry_disabled left_margin=2 right_margin=2";
631 tag: "em" "+ font_style=Oblique"; 616 COMMON_TEXTBLOCK_TAGS
632 tag: "link" "+ color=#3399ff88 underline=on underline_color=#3399ff88"; 617 DISABLED_TEXTBLOCK_TAGS
633 tag: "hilight" "+ font_weight=Bold";
634 tag: "preedit" "+ underline=on underline_color=#3399ff88";
635 tag: "preedit_sel" "+ backing=on backing_color=#000 color=#888888";
636 } 618 }
637 style { name: "entry_guide_style_charwrap"; 619 style { name: "entry_guide_style_charwrap";
638 base: "font="FN" font_size=10 color=#000000 style=shadow,bottom shadow_color=#ffffff19 wrap=char text_class=entry color_class=entry_guide left_margin=2 right_margin=2 ellipsis=0.0"; 620 base: "font="FN" font_size=10 color=#000000 style=shadow,bottom shadow_color=#ffffff19 wrap=char text_class=entry color_class=entry_guide left_margin=2 right_margin=2 ellipsis=0.0";
639 tag: "em" "+ font_style=Oblique"; 621 COMMON_TEXTBLOCK_TAGS
640 tag: "hilight" "+ font_weight=Bold"; 622 DISABLED_TEXTBLOCK_TAGS
641 } 623 }
642 } 624 }
643 parts { 625 parts {
@@ -714,24 +696,18 @@ group { name: "elm/entry/base-single/default";
714 styles { 696 styles {
715 style { name: "entry_single_style"; 697 style { name: "entry_single_style";
716 base: "font="FN" font_size=10 color=#ffffff style=shadow,bottom shadow_color=#00000080 wrap=none text_class=entry color_class=entry left_margin=2 right_margin=2"; 698 base: "font="FN" font_size=10 color=#ffffff style=shadow,bottom shadow_color=#00000080 wrap=none text_class=entry color_class=entry left_margin=2 right_margin=2";
717 tag: "em" "+ font_style=Oblique"; 699 COMMON_TEXTBLOCK_TAGS
718 tag: "link" "+ color=#3399ff underline=on underline_color=#3399ff"; 700 ENABLED_TEXTBLOCK_TAGS
719 tag: "hilight" "+ font_weight=Bold";
720 tag: "preedit" "+ underline=on underline_color=#3399ff";
721 tag: "preedit_sel" "+ backing=on backing_color=#000000 color=#ffffff";
722 } 701 }
723 style { name: "entry_single_disabled_style"; 702 style { name: "entry_single_disabled_style";
724 base: "font="FN" font_size=10 color=#151515 style=shadow,bottom shadow_color=#ffffff19 wrap=none text_class=entry color_class=entry_disabled left_margin=2 right_margin=2"; 703 base: "font="FN" font_size=10 color=#151515 style=shadow,bottom shadow_color=#ffffff19 wrap=none text_class=entry color_class=entry_disabled left_margin=2 right_margin=2";
725 tag: "em" "+ font_style=Oblique"; 704 COMMON_TEXTBLOCK_TAGS
726 tag: "link" "+ color=#3399ff88 underline=on underline_color=#3399ff88"; 705 DISABLED_TEXTBLOCK_TAGS
727 tag: "hilight" "+ font_weight=Bold";
728 tag: "preedit" "+ underline=on underline_color=#3399ff88";
729 tag: "preedit_sel" "+ backing=on backing_color=#000 color=#888888";
730 } 706 }
731 style { name: "entry_single_guide_style"; 707 style { name: "entry_single_guide_style";
732 base: "font="FN" font_size=10 color=#000000 style=shadow,bottom shadow_color=#ffffff19 wrap=none text_class=entry color_class=entry_guide left_margin=2 right_margin=2 ellipsis=0.0"; 708 base: "font="FN" font_size=10 color=#000000 style=shadow,bottom shadow_color=#ffffff19 wrap=none text_class=entry color_class=entry_guide left_margin=2 right_margin=2 ellipsis=0.0";
733 tag: "em" "+ font_style=Oblique"; 709 COMMON_TEXTBLOCK_TAGS
734 tag: "hilight" "+ font_weight=Bold"; 710 DISABLED_TEXTBLOCK_TAGS
735 } 711 }
736 } 712 }
737 parts { 713 parts {
diff --git a/data/themes/fonts.edc b/data/themes/fonts.edc
index a926e76b5..fb8fae4d6 100644
--- a/data/themes/fonts.edc
+++ b/data/themes/fonts.edc
@@ -18,3 +18,51 @@
18#define FN_COL_DEFAULT 255 255 255 255; color3: 0 0 0 128 18#define FN_COL_DEFAULT 255 255 255 255; color3: 0 0 0 128
19#define FN_COL_HIGHLIGHT 51 153 255 255; color2: 51 153 255 24; color3: 51 153 255 18 19#define FN_COL_HIGHLIGHT 51 153 255 255; color2: 51 153 255 24; color3: 51 153 255 18
20#define FN_COL_DISABLE 21 21 21 255; color3: 255 255 255 25; 20#define FN_COL_DISABLE 21 21 21 255; color3: 255 255 255 25;
21
22
23#define COMMON_TEXTBLOCK_TAGS \
24 tag: "em" "+ font_style=Oblique"; \
25 tag: "title" "+ font_size=26"; \
26 tag: "subtitle" "+ font_size=18"; \
27 tag: "bigger" "+ font_size=12"; \
28 tag: "big" "+ font_size=11"; \
29 tag: "small" "+ font_size=8"; \
30 tag: "smaller" "+ font_size=7"; \
31 tag: "code" "+ font=Mono style=plain color=#ffffff"; \
32 tag: "comment" "+ color=#00B000"; \
33 tag: "string" "+ color=#ff3a35"; \
34 tag: "number" "+ color=#D4D42A font_weight=Bold"; \
35 tag: "brace" "+ color=#656565"; \
36 tag: "type" "+ color=#3399ff"; \
37 tag: "class" "+ color=#72AAD4 font_weight=Bold"; \
38 tag: "function" "+ color=#72AAD4 font_weight=Bold"; \
39 tag: "param" "+ color=#ffffff"; \
40 tag: "keyword" "+ color=#f90 font_weight=Bold"; \
41 tag: "preprocessor" "+ color=#3399ff font_weight=Bold"; \
42 tag: "line_added" "+ color=#00B000"; \
43 tag: "line_removed" "+ color=#ff3a35"; \
44 tag: "line_changed" "+ color=#f90";
45
46#define ENABLED_TEXTBLOCK_TAGS \
47 tag: "hilight" "+ font_weight=Bold style=glow glow_color=#3399ff80"; \
48 tag: "link" "+ color=#3399ff underline=on underline_color=#3399ff"; \
49 tag: "preedit" "+ underline=on underline_color=#3399ff"; \
50 tag: "preedit_sel" "+ backing=on backing_color=#000000 color=#ffffff"; \
51 tag: "name" "+ color=#888888"; \
52 tag: "val" "+ color=#ffffff"; \
53 tag: "info" "+ color=#3399ff style=glow glow_color=#3399ff40"; \
54 tag: "success" "+ color=#00cc00 style=glow glow_color=#00cc0040"; \
55 tag: "warning" "+ color=#ff7c00 style=glow glow_color=#ff7c0040"; \
56 tag: "failure" "+ color=#ff0000 style=glow glow_color=#ff000040";
57
58#define DISABLED_TEXTBLOCK_TAGS \
59 tag: "hilight" "+ font_weight=Bold style=glow glow_color=#3399ff20"; \
60 tag: "link" "+ color=#3399ff88 underline=on underline_color=#3399ff88"; \
61 tag: "preedit" "+ underline=on underline_color=#3399ff88"; \
62 tag: "preedit_sel" "+ backing=on backing_color=#000 color=#888888"; \
63 tag: "name" "+ color=#666666"; \
64 tag: "val" "+ color=#151515"; \
65 tag: "info" "+ color=#174878 style=glow glow_color=#17487820"; \
66 tag: "success" "+ color=#006600 style=glow glow_color=#00440020"; \
67 tag: "warning" "+ color=#703700 style=glow glow_color=#70370020"; \
68 tag: "failure" "+ color=#660000 style=glow glow_color=#66000020";
diff --git a/src/bin/test.c b/src/bin/test.c
index f3cdfeec4..75e806125 100644
--- a/src/bin/test.c
+++ b/src/bin/test.c
@@ -50,6 +50,7 @@ void test_hover2(void *data, Evas_Object *obj, void *event_info);
50void test_hover3(void *data, Evas_Object *obj, void *event_info); 50void test_hover3(void *data, Evas_Object *obj, void *event_info);
51void test_entry(void *data, Evas_Object *obj, void *event_info); 51void test_entry(void *data, Evas_Object *obj, void *event_info);
52void test_entry_style_user(void *data, Evas_Object *obj, void *event_info); 52void test_entry_style_user(void *data, Evas_Object *obj, void *event_info);
53void test_entry_style_default(void *data, Evas_Object *obj, void *event_info);
53void test_entry_scrolled(void *data, Evas_Object *obj, void *event_info); 54void test_entry_scrolled(void *data, Evas_Object *obj, void *event_info);
54void test_entry3(void *data, Evas_Object *obj, void *event_info); 55void test_entry3(void *data, Evas_Object *obj, void *event_info);
55void test_entry4(void *data, Evas_Object *obj, void *event_info); 56void test_entry4(void *data, Evas_Object *obj, void *event_info);
@@ -549,7 +550,8 @@ add_tests:
549 550
550 //------------------------------// 551 //------------------------------//
551 ADD_TEST(NULL, "Entries", "Entry", test_entry); 552 ADD_TEST(NULL, "Entries", "Entry", test_entry);
552 ADD_TEST(NULL, "Entries", "Entry Style", test_entry_style_user); 553 ADD_TEST(NULL, "Entries", "Entry Style Default", test_entry_style_default);
554 ADD_TEST(NULL, "Entries", "Entry Style User", test_entry_style_user);
553 ADD_TEST(NULL, "Entries", "Entry Scrolled", test_entry_scrolled); 555 ADD_TEST(NULL, "Entries", "Entry Scrolled", test_entry_scrolled);
554 ADD_TEST(NULL, "Entries", "Entry 3", test_entry3); 556 ADD_TEST(NULL, "Entries", "Entry 3", test_entry3);
555 ADD_TEST(NULL, "Entries", "Entry 4", test_entry4); 557 ADD_TEST(NULL, "Entries", "Entry 4", test_entry4);
diff --git a/src/bin/test_entry.c b/src/bin/test_entry.c
index 937169227..7aa04f06d 100644
--- a/src/bin/test_entry.c
+++ b/src/bin/test_entry.c
@@ -854,6 +854,134 @@ test_entry_style_user(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void
854 evas_object_show(win); 854 evas_object_show(win);
855} 855}
856 856
857
858static char *default_style_text =
859 "<title>Elementary typography</title><br>"
860 "<ps>"
861 "<subtitle>Basic tags</subtitle><br>"
862 "Elm by default provide the <b>bold</b>, the <i>italic</i>, the "
863 "<hilight>hilight</hilight> and the <link>link</link> tags.<br>"
864 "<ps>"
865 "<subtitle>Font sizes</subtitle><br>"
866 "You can also use the <big>big</big> or <bigger>bigger</bigger> and "
867 "the <small>small</small> or <smaller>smaller</smaller> tags.<br>"
868 "<ps>"
869 "<subtitle>Status indicators</subtitle><br>"
870 "<info>info</info>, <success>success</success>, <warning>warning</warning> and <failure>failure</failure><br>"
871 "<ps>"
872 "<subtitle>Forms attributes</subtitle><br>"
873 "<name>Song:</name> <val>The show must go on</val><br>"
874 "<name>Artist:</name> <val>Queen</val><br>"
875 "<name>Album:</name> <val>Innuendo</val><br>"
876 "<ps>"
877 "<subtitle>Syntax highlight</subtitle><br>"
878 "<code>"
879 "<preprocessor>#include</preprocessor> <string>&lt;stdlib.h&gt;</string><br>"
880 "<preprocessor>#include</preprocessor> <string>&lt;Evas.h&gt;</string><br>"
881 "<br>"
882 "<preprocessor>#define</preprocessor> MESSAGE <string>\"Hello World\"</string><br>"
883 "<br>"
884 "<comment>/* Prints a message to standard output */</comment><br>"
885 "<type>void</type> <function>print_message</function><brace>(</brace><type>const char</type> *msg<brace>)</brace> <brace>{</brace><br>"
886 " printf<brace>(</brace><string>\"%s\\n\"</string>, msg<brace>)</brace>;<br>"
887 "<brace>}</brace><br>"
888 "<br>"
889 "<type>int</type> <function>main</function><brace>(</brace><type>int</type> argc, <type>char</type> *argv[]<brace>)</brace> <brace>{</brace><br>"
890 " <type>int</type> num_int = <number>123</number>;<br>"
891 " <type>float</type> num_float = <number>0.999</number>;<br>"
892 " <type>char</type> *str = <string>\"This is a string\"</string>;<br>"
893 " <type>Evas_Object</type> *obj = <keyword>NULL</keyword>;<br>"
894 " print_message<brace>(</brace>MESSAGE<brace>)</brace>;<br>"
895 " <keyword>return</keyword> <number>0</number>;<br>"
896 "<brace>}</brace><br>"
897 "<ps>"
898 "<line_added>+diff line added</line_added><br>"
899 "<line_removed>-diff line removed</line_removed><br>"
900 "<line_changed> diff line changed</line_changed><br>"
901 "</code>";
902
903static void
904ent_bt_def_style_disabled(void *data, Evas_Object *obj, void *event_info EINA_UNUSED)
905{
906 Evas_Object *en = data;
907 elm_object_disabled_set(en, elm_check_state_get(obj));
908}
909
910static void
911ent_bt_def_style_scrollable(void *data, Evas_Object *obj, void *event_info EINA_UNUSED)
912{
913 Evas_Object *en = data;
914 elm_entry_scrollable_set(en, elm_check_state_get(obj));
915}
916
917static void
918ent_bt_def_style_markup(void *data, Evas_Object *obj, void *event_info EINA_UNUSED)
919{
920 Evas_Object *en = data;
921
922 if (elm_check_state_get(obj))
923 {
924 char *markup = elm_entry_utf8_to_markup(default_style_text);
925 elm_object_text_set(en, markup);
926 free(markup);
927 }
928 else
929 elm_object_text_set(en, default_style_text);
930}
931
932void
933test_entry_style_default(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
934{
935 Evas_Object *win, *bx, *vbx, *en, *o;
936
937 win = elm_win_util_standard_add("entry-style", "Entry Default Style");
938 elm_win_autodel_set(win, EINA_TRUE);
939 evas_object_resize(win, 400, 400);
940
941 bx = elm_box_add(win);
942 evas_object_size_hint_weight_set(bx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
943 elm_win_resize_object_add(win, bx);
944 evas_object_show(bx);
945
946 en = elm_entry_add(win);
947 evas_object_size_hint_weight_set(en, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
948 evas_object_size_hint_align_set(en, EVAS_HINT_FILL, EVAS_HINT_FILL);
949 elm_object_text_set(en, default_style_text);
950 elm_entry_editable_set(en, EINA_TRUE);
951 elm_box_pack_end(bx, en);
952 evas_object_show(en);
953
954 o = elm_separator_add(win);
955 elm_separator_horizontal_set(o, EINA_TRUE);
956 elm_box_pack_end(bx, o);
957 evas_object_show(o);
958
959 vbx = elm_box_add(win);
960 elm_box_horizontal_set(vbx, EINA_TRUE);
961 elm_box_pack_end(bx, vbx);
962 evas_object_show(vbx);
963
964 o = elm_check_add(win);
965 elm_object_text_set(o, "show markup");
966 evas_object_smart_callback_add(o, "changed", ent_bt_def_style_markup, en);
967 elm_box_pack_end(vbx, o);
968 evas_object_show(o);
969
970 o = elm_check_add(win);
971 elm_object_text_set(o, "disabled");
972 evas_object_smart_callback_add(o, "changed", ent_bt_def_style_disabled, en);
973 elm_box_pack_end(vbx, o);
974 evas_object_show(o);
975
976 o = elm_check_add(win);
977 elm_object_text_set(o, "scrollable");
978 evas_object_smart_callback_add(o, "changed", ent_bt_def_style_scrollable, en);
979 elm_box_pack_end(vbx, o);
980 evas_object_show(o);
981
982 evas_object_show(win);
983}
984
857static void 985static void
858_entry_activated_cb(void *data EINA_UNUSED, Evas_Object *obj, 986_entry_activated_cb(void *data EINA_UNUSED, Evas_Object *obj,
859 void *event_info EINA_UNUSED) 987 void *event_info EINA_UNUSED)