[tekui-devel] tekui: Established new layouter properties Width, Height; group ...
Timm S. Mueller
tmueller at neoscientists.org
Fri Apr 11 00:30:26 CEST 2008
details: http://hg.teklib.org/tekui/rev/949057c16cab
changeset: 418:949057c16cab
user: Timm S. Mueller <tmueller at neoscientists.org>
date: Thu Apr 10 14:28:43 2008 +0200
description:
Established new layouter properties Width, Height; group example removed, now
part of demo
diffs (truncated from 1485 to 100 lines):
diff -r 42299fbdbcaa -r 949057c16cab tek/app/ui/alignment.lua
--- a/tek/app/ui/alignment.lua Thu Apr 10 07:44:51 2008 +0200
+++ b/tek/app/ui/alignment.lua Thu Apr 10 14:28:43 2008 +0200
@@ -1,6 +1,8 @@
#!/usr/bin/env lua
local ui = require "tek.lib.ui"
+local db = require "tek.lib.debug"
+db.level = 4
ui.Application:new
{
@@ -13,27 +15,25 @@ ui.Application:new
{
ui.Group:new
{
- MaxWidth = ui.HUGE,
- MaxHeight = ui.HUGE,
+ Width = "free",
Legend = "Align Horizontal",
Children =
{
- ui.text:new { Label = "Begin", Mode = "button", MaxWidth = 0, MaxHeight = ui.HUGE, HAlign = 0 },
- ui.text:new { Label = "Center", Mode = "button", MaxWidth = 0, MaxHeight = ui.HUGE, HAlign = 1 },
- ui.text:new { Label = "End", Mode = "button", MaxWidth = 0, MaxHeight = ui.HUGE, HAlign = 2 },
+ ui.text:new { Label = "Begin", Mode = "button", Width = "auto", Height = "free", HAlign = 0 },
+ ui.text:new { Label = "Center", Mode = "button", Width = "auto", Height = "free", HAlign = 1 },
+ ui.text:new { Label = "End", Mode = "button", Width = "auto", Height = "free", HAlign = 2 },
},
},
ui.group:new
{
+ Height = "free",
Orientation = 1,
- MaxWidth = ui.HUGE,
- MaxHeight = ui.HUGE,
Legend = "Align Vertical",
Children =
{
- ui.text:new { Label = "Begin", Mode = "button", MaxWidth = ui.HUGE, VAlign = 0 },
- ui.text:new { Label = "Center", Mode = "button", MaxWidth = ui.HUGE, VAlign = 1 },
- ui.text:new { Label = "End", Mode = "button", MaxWidth = ui.HUGE, VAlign = 2 },
+ ui.text:new { Label = "Begin", Mode = "button", Width = "free", Height = "auto", VAlign = 0 },
+ ui.text:new { Label = "Center", Mode = "button", Width = "free", Height = "auto", VAlign = 1 },
+ ui.text:new { Label = "End", Mode = "button", Width = "free", Height = "auto", VAlign = 2 },
},
},
},
diff -r 42299fbdbcaa -r 949057c16cab tek/app/ui/bashing.lua
--- a/tek/app/ui/bashing.lua Thu Apr 10 07:44:51 2008 +0200
+++ b/tek/app/ui/bashing.lua Thu Apr 10 14:28:43 2008 +0200
@@ -5,14 +5,12 @@ ui.application:new {
ui.application:new {
Children = {
ui.window:new {
- GridW = 3,
+ GridW = 2,
Children = {
+ ui.lissa:new { MaxWidth = 400, VAlign = 2 },
+ ui.lissa:new { MaxHeight = 400 },
+ ui.lissa:new { MaxHeight = 400, HAlign = 2 },
ui.lissa:new { MaxWidth = 400 },
- ui.lissa:new { },
- ui.lissa:new { },
- ui.lissa:new { },
- ui.lissa:new { MaxHeight = 400 },
- ui.lissa:new { },
},
},
},
diff -r 42299fbdbcaa -r 949057c16cab tek/app/ui/choices.lua
--- a/tek/app/ui/choices.lua Thu Apr 10 07:44:51 2008 +0200
+++ b/tek/app/ui/choices.lua Thu Apr 10 14:28:43 2008 +0200
@@ -7,7 +7,8 @@ ui.application:new {
ui.application:new {
Children = {
ui.window:new {
- MaxWidth = 0,
+ Width = "auto",
+ Height = "auto",
Title = "Choices",
Orientation = 1,
Legend = "Choices",
@@ -15,7 +16,6 @@ ui.application:new {
Children = {
ui.group:new {
Legend = "Order Beverages",
- MaxWidth = ui.HUGE,
Children = {
ui.CheckMark:new { Label = "Water" },
ui.CheckMark:new { Label = "Juice" },
@@ -30,7 +30,6 @@ ui.application:new {
},
ui.group:new {
Legend = "Are you impressed?",
- MaxWidth = ui.HUGE,
Children = {
ui.RadioButton:new { Label = "Yes" },
ui.RadioButton:new { Label = "No" },
diff -r 42299fbdbcaa -r 949057c16cab tek/app/ui/demo.lua
More information about the tekui-devel
mailing list