[tekui-devel] tekui: UI: now using manipulated package.path for loading classe...
Timm S. Mueller
tmueller at neoscientists.org
Fri May 9 14:26:20 CEST 2008
details: http://hg.teklib.org/tekui/rev/c87c97321aa5
changeset: 474:c87c97321aa5
user: Timm S. Mueller <tmueller at neoscientists.org>
date: Thu May 08 20:51:29 2008 +0200
description:
UI: now using manipulated package.path for loading classes from program
directory; separated Boing class, moved Lissa and Tunnel class to example
directory; Lissa and Tunnel classes are no longer installed globally;
ListView: bug fixed during initialization; many examples corrected in regard
to ListView class
diffs (truncated from 1015 to 100 lines):
diff -r 13d30aa05a9f -r c87c97321aa5 bin/bashing.lua
--- a/bin/bashing.lua Thu May 08 19:06:01 2008 +0200
+++ b/bin/bashing.lua Thu May 08 20:51:29 2008 +0200
@@ -9,10 +9,10 @@ ui.application:new {
ui.window:new {
GridW = 2,
Children = {
- ui.lissa:new { MaxWidth = 400, VAlign = "bottom" },
- ui.lissa:new { MaxHeight = 400 },
- ui.lissa:new { MaxHeight = 400, HAlign = "right" },
- ui.lissa:new { MaxWidth = 400 },
+ ui.lissa:new { MaxWidth = 400, MaxHeight = 200, VAlign = "bottom" },
+ ui.lissa:new { MaxWidth = 200, MaxHeight = 400 },
+ ui.lissa:new { MaxWidth = 200, MaxHeight = 400, HAlign = "right" },
+ ui.lissa:new { MaxWidth = 400, MaxHeight = 200 },
},
},
},
diff -r 13d30aa05a9f -r c87c97321aa5 bin/filereq.lua
--- a/bin/filereq.lua Thu May 08 19:06:01 2008 +0200
+++ b/bin/filereq.lua Thu May 08 20:51:29 2008 +0200
@@ -41,9 +41,12 @@ ui.Application:new
{
HSliderMode = "off",
AutoWidth = true,
- Object = ui.List:new
+ Object = ui.ListView:new
{
- List = { { "Hallo" } }
+ ListObject = ui.List:new
+ {
+ Items = { { "Hallo" } }
+ }
}
}
}
diff -r 13d30aa05a9f -r c87c97321aa5 bin/pop.lua
--- a/bin/pop.lua Thu May 08 19:06:01 2008 +0200
+++ b/bin/pop.lua Thu May 08 20:51:29 2008 +0200
@@ -139,9 +139,8 @@ local success, state = ui.application:ne
HSliderMode = "off",
VSliderMode = "on",
AutoWidth = true,
- Object = ui.List:new
+ Object = ui.ListView:new
{
- List = { {"eins"}, {"zwei"} }
}
}
}
diff -r 13d30aa05a9f -r c87c97321aa5 bin/tabs.lua
--- a/bin/tabs.lua Thu May 08 19:06:01 2008 +0200
+++ b/bin/tabs.lua Thu May 08 20:51:29 2008 +0200
@@ -52,9 +52,12 @@ ui.application:new {
{
TabName = "List",
AutoWidth = true,
- Object = ui.List:new
+ Object = ui.ListView:new
{
- List = { { "One" }, { "Two" } }
+ ListObject = ui.List:new
+ {
+ Items = { { "One" }, { "Two" } }
+ }
},
},
ui.group:new {
@@ -79,9 +82,12 @@ ui.application:new {
{
TabName = "List",
AutoWidth = true,
- Object = ui.List:new
+ Object = ui.ListView:new
{
- List = { { "One" }, { "Two" } }
+ ListObject = ui.List:new
+ {
+ Items = { { "One" }, { "Two" } }
+ }
},
},
ui.group:new {
diff -r 13d30aa05a9f -r c87c97321aa5 bin/tek/class/ui/boing.lua
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/tek/class/ui/boing.lua Thu May 08 20:51:29 2008 +0200
@@ -0,0 +1,75 @@
+
+--
+-- tek.class.ui.boing
+-- Written by Timm S. Mueller <tmueller at schulze-mueller.de>
+-- See copyright notice in COPYRIGHT
+--
+
+local ui = require "tek.lib.ui"
+local Frame = ui.Frame
+
+local floor = math.floor
+local max = math.max
+local min = math.min
More information about the tekui-devel
mailing list