[tekui-devel] tekui: Gadget, PopList, X11 driver, Window: Several fixes to bet...
Timm S. Mueller
tmueller at schulze-mueller.de
Thu Mar 12 17:40:49 CET 2009
details: http://hg.teklib.org/tekui/rev/16c5b0400b77
changeset: 51:16c5b0400b77
user: Timm S. Mueller <tmueller at schulze-mueller.de>
date: Thu Mar 12 17:31:41 2009 +0100
description:
Gadget, PopList, X11 driver, Window: Several fixes to better support
touchscreens; Previously, each new window consumed two signals from the task's
signal pool, now handles any number of open visuals and should be more
efficient; X11 driver: Added build option for disabling the mouse pointer (to
support touchscreen displays), amalgamed build added; 'Boing' class: now
repaints only damaged regions; 'Plasma' class: now based on Frame, many
runtime coefficients added; Choices, Floattext, List demos: now part of the
general tekUI demo, many new demos added; Theme, UI, internal stylesheet:
minor fixes; Exemplary internal stylesheet contained syntax errors, corrected;
Windows display: Implemented cliprects, scrolling and more input types, popups
are half working now; Display: Improved font matching, added Windows font
names to defaults; DLLs added to .ignore; Window: Added DblClickTimeout and
DblClickJitter attributes, onChangeStatus() has no longer an OLDVALUE
argument, added a message queue and postMsg() method, minor correction in
MSG_FOCUS message handler; Slider: ClickDirection attribute added, direction
when holding LMB in the container is no longer reevaluated; ScrollGroup:
ScrollStep attribute added, which is propagated to the embedded Slider;
PopList: Style attributes are now propagated to embedded ListGadget;
ListGadget: Now based on Text to better support text styling attributes;
Drawable: drawPPM() added; Application:run(): assertion removed to support
application restarts Visual, X11, Windows, DirectFB Display: Added UserData,
CmdRPort and IMsgPort tags. Userdata can be associated with and will be copied
to input messages originating from the given visual. The Visual module passes
a newly created instance of itself as userdata by default, Lua/Visual binding
passes a Lua references to the Visual, creates a single replyport/input
message port pair for all visuals, wait() and getmsg() are no longer bound to
visuals, simplified wait(), added getuserdata() and an userdata argument to
openvisual(). Visual shutdown mechanism is more complex now, to remove pending
messages from the input queue; Application: message handling and dispatching
has been greatly simplified; Display: added getMsg(); Drawable: added passing
userdata to visuals; Window: now operates on pre-allocated messages for
Refresh and Newsize bundling; Improved dependencies in some Makefiles
diffs (truncated from 8616 to 100 lines):
diff -r 12db62d868fd -r 16c5b0400b77 .hgignore
--- a/.hgignore Sun Feb 22 15:31:59 2009 +0100
+++ b/.hgignore Thu Mar 12 17:31:41 2009 +0100
@@ -1,3 +1,5 @@
.*\.so
.*\.lo
.*\.a
+.*\.dll
+
diff -r 12db62d868fd -r 16c5b0400b77 bin/alignment.lua
--- a/bin/alignment.lua Sun Feb 22 15:31:59 2009 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,111 +0,0 @@
-#!/usr/bin/env lua
-
-local ui = require "tek.ui"
-
-local APP_ID = "tekui-demo"
-local VENDOR = "schulze-mueller.de"
-
-local L = ui.getLocale(APP_ID, VENDOR)
-
-ui.Application:new
-{
- ApplicationId = APP_ID,
- VendorDomain = VENDOR,
- Children =
- {
- ui.Window:new
- {
- Orientation = "vertical",
- Title = L.ALIGNMENT_DEMO,
- Children =
- {
- ui.Group:new
- {
- Orientation = "vertical",
- Width = "free",
- Legend = L.ALIGN_HORIZONTAL,
- Children =
- {
- ui.Text:new
- {
- Class = "button",
- Mode = "button",
- Text = L.BEGIN,
- Width = "auto",
- Height = "free",
- HAlign = "left"
- },
- ui.Text:new
- {
- Class = "button",
- Mode = "button",
- Text = L.CENTER,
- Width = "auto",
- Height = "free",
- HAlign = "center"
- },
- ui.Group:new
- {
- Legend = L.GROUP,
- Width = "auto",
- Height = "free",
- HAlign = "right",
- Children =
- {
- ui.Text:new
- {
- Class = "button",
- Mode = "button",
- Text = L.END,
- Width = "auto",
- Height = "free"
- },
- },
- },
- },
- },
- ui.Group:new
- {
- Height = "free",
- Legend = L.ALIGN_VERTICAL,
- Children =
- {
- ui.Text:new
- {
- Class = "button",
- Mode = "button",
- Text = L.BEGIN,
- Width = "free",
- VAlign = "top",
- Legend = L.BORDER_LEGEND,
- },
- ui.Text:new
- {
- Class = "button",
- Mode = "button",
- Text = L.CENTER,
- Width = "free",
More information about the tekui-devel
mailing list