Enlightenment CVS committal

Author  : moom
Project : e17
Module  : proto

Dir     : e17/proto/etk/src/bin


Modified Files:
        etk_text_view_test.c 


Log Message:
* More TB work. It now supports more tags and all the format are 
correctly rendered. You can change the wrapping whenever you want, the 
textblock object will be automatically updated. Lines are also 
clipped, and only the visible lines are actually created.
Now, let's edit!! :) 


===================================================================
RCS file: /cvs/e/e17/proto/etk/src/bin/etk_text_view_test.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- etk_text_view_test.c        4 Jul 2006 00:20:04 -0000       1.9
+++ etk_text_view_test.c        4 Jul 2006 21:37:25 -0000       1.10
@@ -15,7 +15,8 @@
   
    win = etk_window_new();
    etk_window_title_set(ETK_WINDOW(win), "Etk Text View Test");
-   etk_widget_size_request_set(ETK_WIDGET(win), 400, 300);
+   etk_widget_size_request_set(win, 150, 150);
+   etk_window_resize(ETK_WINDOW(win), 400, 300);
    etk_signal_connect("delete_event", ETK_OBJECT(win), 
ETK_CALLBACK(etk_window_hide_on_delete), NULL);
    
    vbox = etk_vbox_new(ETK_FALSE, 0);
@@ -29,24 +30,39 @@
          "<b>&lt;b&gt;:</b> <b>Bold</b>\n"
          "<b>&lt;i&gt;:</b> <i>Italic</i>\n"
          "<b>&lt;u&gt;:</b> <u>Underline</u>\n"
+      "</p>"
+      "<p left_margin=60>"
+            "<i>type:</i> Whether the text is single or double underlined\n"
+            "<i>color1:</i> The color of the first underline\n"
+            "<i>color2:</i> The color of the second underline\n"
+      "</p>"
+      "<p left_margin=30>"
+         "<b>&lt;s&gt;:</b> <s>Strikethrough</s>\n"
+      "</p>"
+      "<p left_margin=60>"
+            "<i>color:</i> The color of the strikethrough\n"
+      "</p>"
+      "<p left_margin=30>"
          "<b>&lt;font&gt;:</b>\n"
       "</p>"
       "<p left_margin=60>"
-            "<i>face:</i> Defines the face of the font\n"
-            "<i>size:</i> Defines the size of the font\n"
-            "<i>color:</i> Defines the color of the font\n"
+            "<i>face:</i> The face of the font\n"
+            "<i>size:</i> The size of the font\n"
+            "<i>color:</i> The color of the font\n"
       "</p>"
       "<p left_margin=30>"
          "<b>&lt;style&gt;:</b>\n"
       "</p>"
       "<p left_margin=60>"
-            "<i>effect:</i> Defines the effect to apply on the text\n"
-            "<i>color1:</i> Defines the first color of the effect\n"
-            "<i>color2:</i> Defines the second color of the effect\n"
+            "<i>effect:</i> The type of effect to apply on the text\n"
+            "<i>color1:</i> The first color of the effect\n"
+            "<i>color2:</i> The second color of the effect\n"
       "</p>",
       ETK_TRUE);
    
    etk_box_pack_start(ETK_BOX(vbox), text_view, ETK_TRUE, ETK_TRUE, 0);
+   
+   printf("%s\n", 
etk_string_get(etk_textblock_text_get(ETK_TEXT_VIEW(text_view)->textblock, 
ETK_FALSE)));
    
    etk_widget_show_all(win);
 }



Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to