[tekui-devel] tekui: Gadget renamed to Widget, ListGadget renamed to Lister, I...

Timm S. Mueller tmueller at neoscientists.org
Mon Mar 15 16:12:39 CET 2010


details:   http://hg.teklib.org/tekui/rev/1eab40694900
changeset: 129:1eab40694900
user:      Timm S. Mueller <tmueller at neoscientists.org>
date:      Mon Mar 15 15:51:00 2010 +0100
description:
Gadget renamed to Widget, ListGadget renamed to Lister, ImageGadget renamed to
ImageWidget; Drawable class: removed; Object: Added class-wide handlers and a
copy-on-write mechanism for duplicating handlers on object-level on demand;
static initialization of handlers is no longer supported * Element: added
onSetStyle() and obSetClass(), some bugs fixed in style sheet processing;
Application: hide() hardened for side-effects from shutting down while hide()
is still in progress; Area: removed Drawable attribute, show() no longer has a
drawable argument, removed Margin, added getMargin() and getMinmax(), MinMax,
Rect are Region objects now; Widget:onClick(), onHold(), onDblClick() added;
Group:addMember() now allows elements to be added to uninitialized groups;
Lister:onDoubleClick() renamed to onDblClick() and documented; Slider:onHold()
documented; Visual: added setTextureOrigin(), pushClipRect(), popClipRect(),
drawing functions no longer receive texture origins as arguments, added
setBGPen(), which can be used to set a background color or a texture for
fillRect(), renamed copyarea() to blitArea(), function names are now in
lowerCamelCase; ScrollGroup: copyArea() renamed to blitArea(); Window:
Drawable attribute added, it is now created in show() and destroyed in hide(),
removed Visible and Pens attributes, invalid color specifications are now
silently converted to the 'background' color; UI: Changed meaning of MSG_ALL,
now excluding MSG_INTERVAL; added tek.ui.style.desktop, removed Theme class;
Improved documentation and stylesheet, added Windows platform installation
note; Display: Simpler and faster color allocation, added newDrawable(),
Drawable now encapsulated by Display; Object:doNotify() added, now processes
all notifications regardless of esoteric side-effects during traversal,
addNotify() positional argument removed; UI: Added FL_POPITEM, added
getStyleSheet() from former Theme class, removed region functions; PopItem:
sets FL_POPITEM during connect, overwrites doNotify() to filter out
notifications in items which have been neither setup nor connected before;
Demos: cleanup; Region: added get() function, class check is now based on
upvalue; Optimized default layouter, now using more C structures and fewer Lua
stack; Editor, Sizeable and EditWindow classes added (not installed globally)

diffstat:

 CHANGES                                                  |    45 +
 Makefile                                                 |     2 +-
 README                                                   |   232 +-
 VERSION                                                  |     2 +-
 bin/canvas.lua                                           |    37 +-
 bin/compiler.lua                                         |   141 +-
 bin/demo.lua                                             |    84 +-
 bin/demo_animations.lua                                  |   112 +-
 bin/demo_buttons.lua                                     |    18 +-
 bin/demo_choices.lua                                     |    72 +-
 bin/demo_custom.lua                                      |    29 +-
 bin/demo_graphics.lua                                    |     6 +-
 bin/demo_list.lua                                        |     2 +-
 bin/demo_popups.lua                                      |     7 +-
 bin/dynamic.lua                                          |    37 +-
 bin/editor.lua                                           |    39 +
 bin/filereq.lua                                          |    42 +-
 bin/gendoc.lua                                           |    16 +-
 bin/gridalign.lua                                        |    88 +-
 bin/helloworld.lua                                       |    17 +-
 bin/imagetest.lua                                        |    16 +-
 bin/layouthook.lua                                       |    33 +-
 bin/meter.lua                                            |    10 +-
 bin/plasma.lua                                           |     6 +-
 bin/style.lua                                            |    66 +
 bin/tek/ui/class/boing.lua                               |     9 +-
 bin/tek/ui/class/editwindow.lua                          |   415 +
 bin/tek/ui/class/input.lua                               |  1222 ++++
 bin/tek/ui/class/meter.lua                               |    33 +-
 bin/tek/ui/class/plasma.lua                              |     6 +-
 bin/tek/ui/class/sizeable.lua                            |   168 +
 bin/tek/ui/class/tunnel.lua                              |     6 +-
 bin/tek/ui/locale/schulze-mueller.de/editwindow-class/de |    18 +
 bin/tek/ui/locale/schulze-mueller.de/editwindow-class/en |    18 +
 bin/tsp.lua                                              |    17 +-
 bin/tutorial-2.lua                                       |     7 +-
 bin/tutorial-4.lua                                       |    10 +-
 bin/tutorial-5.lua                                       |    16 +-
 bin/tutorial-6.lua                                       |    64 -
 doc/changes.html                                         |    97 +
 doc/index.html                                           |   534 +-
 doc/manual.css                                           |    24 +-
 doc/manual.html                                          |  5850 +++++++++----------
 include/tek/lib/tekui.h                                  |    16 +-
 src/display_directfb/display_dfb_api.c                   |     4 +-
 tek/class.lua                                            |     4 +-
 tek/class/list.lua                                       |     1 +
 tek/class/object.lua                                     |   192 +-
 tek/lib/region.c                                         |   283 +-
 tek/lib/visual_api.c                                     |   505 +-
 tek/lib/visual_lua.c                                     |   109 +-
 tek/lib/visual_lua.h                                     |    47 +-
 tek/ui.lua                                               |   140 +-
 tek/ui/Makefile                                          |    11 +-
 tek/ui/border/default.lua                                |   129 +-
 tek/ui/class/application.lua                             |    52 +-
 tek/ui/class/area.lua                                    |   196 +-
 tek/ui/class/border.lua                                  |    14 +-
 tek/ui/class/button.lua                                  |     5 +-
 tek/ui/class/canvas.lua                                  |   123 +-
 tek/ui/class/checkmark.lua                               |    30 +-
 tek/ui/class/dirlist.lua                                 |   110 +-
 tek/ui/class/display.lua                                 |   274 +-
 tek/ui/class/drawable.lua                                |   353 -
 tek/ui/class/element.lua                                 |   124 +-
 tek/ui/class/floattext.lua                               |   114 +-
 tek/ui/class/frame.lua                                   |    60 +-
 tek/ui/class/gadget.lua                                  |   284 -
 tek/ui/class/gauge.lua                                   |    50 +-
 tek/ui/class/group.lua                                   |    76 +-
 tek/ui/class/handle.lua                                  |    30 +-
 tek/ui/class/image.lua                                   |     6 +-
 tek/ui/class/imagegadget.lua                             |   151 -
 tek/ui/class/imagewidget.lua                             |   170 +
 tek/ui/class/lister.lua                                  |  1003 +++
 tek/ui/class/listgadget.lua                              |   773 --
 tek/ui/class/listview.lua                                |    27 +-
 tek/ui/class/menuitem.lua                                |    11 +-
 tek/ui/class/numeric.lua                                 |    57 +-
 tek/ui/class/pagegroup.lua                               |    72 +-
 tek/ui/class/popitem.lua                                 |   152 +-
 tek/ui/class/poplist.lua                                 |    74 +-
 tek/ui/class/popupwindow.lua                             |     9 +-
 tek/ui/class/radiobutton.lua                             |    11 +-
 tek/ui/class/scrollbar.lua                               |   108 +-
 tek/ui/class/scrollgroup.lua                             |    79 +-
 tek/ui/class/slider.lua                                  |   141 +-
 tek/ui/class/spacer.lua                                  |     4 +-
 tek/ui/class/text.lua                                    |    64 +-
 tek/ui/class/textinput.lua                               |    84 +-
 tek/ui/class/theme.lua                                   |   244 -
 tek/ui/class/widget.lua                                  |   516 +
 tek/ui/class/window.lua                                  |   149 +-
 tek/ui/hook/ripple.lua                                   |     8 +-
 tek/ui/layout/default.c                                  |   269 +-
 tek/ui/locale/schulze-mueller.de/tekui-demo/de           |     4 +-
 tek/ui/locale/schulze-mueller.de/tekui-demo/en           |     4 +-
 tek/ui/style/dark.css                                    |    37 +-
 tek/ui/style/default.css                                 |    36 +-
 tek/ui/style/desktop.lua                                 |   150 +
 tek/ui/style/industrial.css                              |     3 +-
 tek/ui/style/texture.css                                 |     2 +-
 tek/ui/style/tutorial.css                                |     2 +-
 103 files changed, 10276 insertions(+), 7153 deletions(-)

diffs (truncated from 25413 to 100 lines):

diff -r f314208f7bcd -r 1eab40694900 CHANGES
--- a/CHANGES	Tue Jan 05 20:19:00 2010 +0100
+++ b/CHANGES	Mon Mar 15 15:51:00 2010 +0100
@@ -1,6 +1,51 @@
 
 == tekUI Changelog ==
 
+=== 0.8j: ===
+ 
+ * Gadget renamed to Widget, ListGadget renamed to Lister, ImageGadget renamed
+ to ImageWidget
+ * Drawable class: removed
+ * Object: Added class-wide handlers and a copy-on-write mechanism for
+ duplicating handlers on object-level on demand; static initialization of
+ handlers is no longer supported
+ * Element: added onSetStyle() and obSetClass(), some bugs fixed in style
+ sheet processing
+ * Application: hide() hardened for side-effects from shutting down while
+ hide() is still in progress
+ * Area: removed Drawable attribute, show() no longer has a drawable argument,
+ removed Margin, added getMargin() and getMinmax(), MinMax, Rect are Region
+ objects now
+ * Widget:onClick(), onHold(), onDblClick() added
+ * Group:addMember() now allows elements to be added to uninitialized groups
+ * Lister:onDoubleClick() renamed to onDblClick() and documented
+ * Slider:onHold() documented
+ * Visual: added setTextureOrigin(), pushClipRect(), popClipRect(), drawing
+ functions no longer receive texture origins as arguments, added setBGPen(),
+ which can be used to set a background color or a texture for fillRect(),
+ renamed copyarea() to blitArea(), function names are now in lowerCamelCase
+ * ScrollGroup: copyArea() renamed to blitArea()
+ * Window: Drawable attribute added, it is now created in show() and
+ destroyed in hide(), removed Visible and Pens attributes, invalid color
+ specifications are now silently converted to the 'background' color
+ * UI: Changed meaning of MSG_ALL, now excluding MSG_INTERVAL
+ * added tek.ui.style.desktop, removed Theme class
+ * Improved documentation and stylesheet, added Windows platform installation
+ note
+ * Display: Simpler and faster color allocation, added newDrawable(), Drawable
+ now encapsulated by Display
+ * Object:doNotify() added, now processes all notifications regardless of
+ esoteric side-effects during traversal, addNotify() positional argument
+ removed
+ * UI: Added FL_POPITEM, added getStyleSheet() from former Theme class, removed
+ region functions
+ * PopItem: sets FL_POPITEM during connect, overwrites doNotify() to filter
+ out notifications in items which have been neither setup nor connected before
+ * Demos: cleanup
+ * Region: added get() function, class check is now based on upvalue
+ * Optimized default layouter, now using more C structures and fewer Lua stack
+ * Editor, Sizeable and EditWindow classes added (not installed globally)
+
 === 0.8i: ===
  
  * Display, Visual: Removed numerical pens, all pens are symbolic now, 
diff -r f314208f7bcd -r 1eab40694900 Makefile
--- a/Makefile	Tue Jan 05 20:19:00 2010 +0100
+++ b/Makefile	Mon Mar 15 15:51:00 2010 +0100
@@ -40,7 +40,7 @@
 	-find src tek -type d -name build | xargs $(RMDIR)
 
 docs:
-	bin/gendoc.lua README --header VERSION -i 32 -n "tekUI" > doc/index.html
+	bin/gendoc.lua README -r manual.html --header VERSION -i 32 -n "tekUI" > doc/index.html
 	bin/gendoc.lua COPYRIGHT -i 32 -n "tekUI Copyright" > doc/copyright.html
 	bin/gendoc.lua TODO -i 32 -n "tekUI TODO" > doc/todo.html
 	bin/gendoc.lua CHANGES -i 32 -r manual.html -n "tekUI Changelog" > doc/changes.html
diff -r f314208f7bcd -r 1eab40694900 README
--- a/README	Tue Jan 05 20:19:00 2010 +0100
+++ b/README	Mon Mar 15 15:51:00 2010 +0100
@@ -22,9 +22,10 @@
   - 3.1. [[#requirements : Requirements]]
   - 3.2. [[#buildenv : Adjusting the build environment]]
    - 3.2.1 [[#notefbsd : FreeBSD notes]]
-   - 3.2.2 [[#notex11 : X11 notes]]
-   - 3.2.3 [[#notenanox : Nano-X notes]]
-   - 3.2.4 [[#noterawfb : Raw framebuffer notes]]
+   - 3.2.2 [[#notewindows : Windows notes]]
+   - 3.2.3 [[#notex11 : X11 notes]]
+   - 3.2.4 [[#notenanox : Nano-X notes]]
+   - 3.2.5 [[#noterawfb : Raw framebuffer notes]]
   - 3.3. [[#building : Building]]
   - 3.4. [[#installation : Installation]]
   - 3.5. [[#envvariables : Environment variables]]
@@ -32,7 +33,8 @@
  - 4. [[#usersguide : User's Guide]]
   - 4.1. [[#helloworld : Hello, World!]]
   - 4.2. [[#reactingoninput : Reacting on input]]
-  - 4.3. [[#adhocclasses : Ad-hoc setup of classes]]
+  - 4.3. [[#handlers : List of predefined handlers]]
+  - 4.4. [[#adhocclasses : Ad-hoc setup of classes]]
 
  - 5. [[#developersguide : Developer's Guide]]
   - 5.1. [[#lifecycle : The lifecycle of an element]]
@@ -198,17 +200,18 @@
 
 ==( themes : 2.4. Style sheets and themes )==
 
-The only admission to a more common appearance is that tekUI tries to
-import the color scheme found in a GTK+ configuration file. It can be


More information about the tekui-devel mailing list