[tekui-devel] tekui: improved demo; border.group now visualizes Focus state; C...
Timm S. Mueller
tmueller at neoscientists.org
Sun Mar 23 18:35:34 CET 2008
details: http://hg.teklib.org/tekui/rev/a2d5321715bb
changeset: 376:a2d5321715bb
user: Timm S. Mueller <tmueller at neoscientists.org>
date: Fri Mar 21 15:34:40 2008 +0100
description:
improved demo; border.group now visualizes Focus state; Canvas: added
FreeHeight support to layout(); FloatText: Added prepareText() to precalculate
word lengths to accelerate text layout; ScrollGroup: added experimental
automatic VSlider enable/disable support; Window:update() now takes into
account that while processing LayoutGroup it may accumulate new layout
requests; cycleElement()/getNextElement() restructured
diffs (truncated from 1052 to 100 lines):
diff -r 519f77cf735e -r a2d5321715bb tek/app/ui/demo.lua
--- a/tek/app/ui/demo.lua Thu Mar 20 23:38:15 2008 +0100
+++ b/tek/app/ui/demo.lua Fri Mar 21 15:34:40 2008 +0100
@@ -4,311 +4,335 @@ local ui = require "tek.lib.ui"
local ui = require "tek.lib.ui"
-- ui.DEBUG = true
-local notificationswindow = ui.window:new {
- HMax = true,
- VMax = true,
- Id = "notifications-window",
- Title = "Notifications",
- Status = "hidden",
- Notifications = {
- ["Status"] = {
- ["open"] = { { "notifications-button", "setValue", "Selected", true } },
- ["hidden"] = { { "notifications-button", "setValue", "Selected", false } },
- },
- },
- Children = {
- ui.group:new {
- Orientation = 1,
- Legend = "Connections",
+ui.Application:new
+{
+ Title = "tekUI Demo",
+ Children =
+ {
+ ui.Window:new
+ {
+ Id = "about-window",
+ Status = "hidden",
+ Title = "About tekUI",
+ Children =
+ {
+ ui.Text:new { FontSpec = ":24", Label = "About tekUI" },
+ ui.FloatText:new
+ {
+ Text = [[ Blafasel ]]
+ }
+ }
+ },
+
+ ui.Window:new
+ {
+ Id = "anims-window",
+ Title = "Anims",
+ Status = "hidden",
+ Notifications =
+ {
+ ["Status"] =
+ {
+ ["open"] = { { "anims-button", "setValue", "Selected", true } },
+ ["hidden"] = { { "anims-button", "setValue", "Selected", false } },
+ },
+ },
+ GridW = 2,
Children = {
- ui.slider:new { VFreedom = true, VMax = true },
- ui.slider:new { VFreedom = true, VMax = true },
- ui.group:new {
- HMax = true,
- VAlign = 1,
- Children = {
- ui.slider:new { HFreedom = true, HMax = true },
- ui.group:new {
- Orientation = 1,
- Children = {
- ui.slider:new { HFreedom = true, HMax = true },
- ui.slider:new { HFreedom = true, HMax = true },
- },
- },
- },
- },
- ui.slider:new { VFreedom = true, VMax = true },
- ui.slider:new { VFreedom = true, VMax = true },
- },
- },
- },
-}
-
-local animswindow = ui.window:new {
- Id = "anims-window",
- Title = "Anims",
- Status = "hidden",
- Notifications = {
- ["Status"] = {
- ["open"] = { { "anims-button", "setValue", "Selected", true } },
- ["hidden"] = { { "anims-button", "setValue", "Selected", false } },
- },
- },
- GridW = 2,
- Children = {
- ui.lissa:new { },
- ui.lissa:new { },
- ui.lissa:new { },
- ui.lissa:new { },
- },
-}
-
More information about the tekui-devel
mailing list