[tekui-devel] tekui: Improved demo application and classes; Application, Windo...
Timm S. Mueller
tmueller at neoscientists.org
Fri May 9 14:26:22 CEST 2008
details: http://hg.teklib.org/tekui/rev/a055b18284eb
changeset: 478:a055b18284eb
user: Timm S. Mueller <tmueller at neoscientists.org>
date: Fri May 09 14:24:43 2008 +0200
description:
Improved demo application and classes; Application, Window: Status "open",
"hide" and "hidden" have been renamed and unified to "show" and "hide";
Application: cleaned up debug messages; FloatText: added notification on
"Text"; Group: refreshing bug in changeTab() fixed, now tab groups propagate
"Status" to their encapsulated Group; Window: added notification on "Status"
diffs (truncated from 1040 to 100 lines):
diff -r 7a7dfd785384 -r a055b18284eb bin/demo.lua
--- a/bin/demo.lua Fri May 09 10:16:40 2008 +0200
+++ b/bin/demo.lua Fri May 09 14:24:43 2008 +0200
@@ -1,7 +1,7 @@
#!/usr/bin/env lua
local db = require "tek.lib.debug"
--- db.level = 4
+db.level = 4
local ui = require "tek.lib.ui"
-- ui.DEBUG = true
@@ -10,13 +10,31 @@ ui.Application:new
Title = "tekUI Demo",
Children =
{
+ -------------------------------------------------
+ -- about-window
+ -------------------------------------------------
+
ui.Window:new
{
Center = true,
Direction = "vertical",
Id = "about-window",
- Status = "hidden",
+ Status = "hide",
Title = "About tekUI",
+ Notifications =
+ {
+ ["Status"] =
+ {
+ ["show"] =
+ {
+ { ui.NOTIFY_ID, "about-button", "setValue", "Selected", true }
+ },
+ ["hide"] =
+ {
+ { ui.NOTIFY_ID, "about-button", "setValue", "Selected", false }
+ },
+ },
+ },
Children =
{
ui.Text:new { FontSpec = "__large", Label = "About tekUI" },
@@ -39,8 +57,7 @@ ui.Application:new
{
[false] =
{
- { ui.NOTIFY_WINDOW, "setValue", "Status",
- "hide" }
+ { ui.NOTIFY_WINDOW, "setValue", "Status", "hide" }
}
}
}
@@ -48,53 +65,183 @@ ui.Application:new
}
},
+ -------------------------------------------------
+ -- anims-window
+ -------------------------------------------------
+
ui.Window:new
{
Id = "anims-window",
- Title = "Anims",
- Status = "hidden",
+ Title = "Animations",
+ Status = "hide",
Notifications =
{
["Status"] =
{
- ["open"] =
+ ["show"] =
{
{ ui.NOTIFY_ID, "anims-button", "setValue", "Selected", true }
},
- ["hidden"] =
+ ["hide"] =
{
{ ui.NOTIFY_ID, "anims-button", "setValue", "Selected", false }
},
},
},
- GridW = 2,
- Children = {
- ui.Lissa:new { },
- ui.Lissa:new { },
- ui.Lissa:new { },
- ui.Lissa:new { },
+ Style = "tab",
+ Children =
+ {
+ ui.Group:new
+ {
+ TabName = "Lissa",
+ Children =
+ {
More information about the tekui-devel
mailing list