[tekui-devel] tekui: Text: Transparent attribute is now merged in Mode = "capt...

Timm S. Mueller tmueller at neoscientists.org
Fri Apr 11 00:30:27 CEST 2008


details:   http://hg.teklib.org/tekui/rev/cd2ce9f795b7
changeset: 421:cd2ce9f795b7
user:      Timm S. Mueller <tmueller at neoscientists.org>
date:      Fri Apr 11 00:26:58 2008 +0200
description:
Text: Transparent attribute is now merged in Mode = "caption"; Tunnel example
removed; Canvas, ScrollGroup: askMinMax() no longer called with initial
Min/MaxWidth/Height

diffs (truncated from 206 to 100 lines):

diff -r ab2720141015 -r cd2ce9f795b7 tek/app/ui/sudoku.lua
--- a/tek/app/ui/sudoku.lua	Thu Apr 10 23:55:59 2008 +0200
+++ b/tek/app/ui/sudoku.lua	Fri Apr 11 00:26:58 2008 +0200
@@ -428,7 +428,7 @@ ui.application:new {
 								ui.Text:new {
 									Label = "Code:",
 									FontSpec = ":20",
-									Transparent = true,
+									Mode = "caption",
 								},
 								ui.textinput:new {
 									Id = "code",
diff -r ab2720141015 -r cd2ce9f795b7 tek/app/ui/tekui.lua
--- a/tek/app/ui/tekui.lua	Thu Apr 10 23:55:59 2008 +0200
+++ b/tek/app/ui/tekui.lua	Fri Apr 11 00:26:58 2008 +0200
@@ -237,7 +237,7 @@ ui.application:new
 													Legend = "Parameters",
 													GridW = 2,
 													Children = {
-														ui.text:new { Label = "Speed", Width = "fill" },
+														ui.text:new { Label = "Speed", Mode = "caption", Width = "fill" },
 														ui.Slider:new {
 															Width = "free",
 															HFreedom = true,
@@ -250,7 +250,7 @@ ui.application:new
 																},
 															},
 														},
-														ui.text:new { Label = "Focus", Width = "fill" },
+														ui.text:new { Label = "Focus", Mode = "caption", Width = "fill" },
 														ui.Slider:new {
 															HFreedom = true,
 															Position = { 0x10000 * 0x50 / 0x400, 0, 0x10000 * 0x51 / 0x400, 0 },
@@ -262,7 +262,7 @@ ui.application:new
 																},
 															},
 														},
-														ui.text:new { Label = "Segments", Width = "fill" },
+														ui.text:new { Label = "Segments", Mode = "caption", Width = "fill" },
 														ui.Slider:new {
 															StepX = 0x10000 / 32,
 															HFreedom = true,
@@ -294,10 +294,10 @@ ui.application:new
 					VAlign = 1,
 					Children =
 					{
-						ui.text:new { Label = "Dir:", Transparent = true, Width = "fill" },
+						ui.text:new { Label = "Dir:", Mode = "caption", Width = "fill" },
 						ui.textinput:new { Label = "Directory", Disabled = true },
 						ui.text:new { Mode = "button", Label = "Reload", Disabled = true, Width = "auto" },
-						ui.text:new { Label = "Filename:", Transparent = true, Width = "fill" },
+						ui.text:new { Label = "Filename:", Mode = "caption", Width = "fill" },
 						ui.textinput:new { Label = "Filename" },
 						ui.text:new { Mode = "button", Label = "Hidden", Width = "auto" },
 					},
diff -r ab2720141015 -r cd2ce9f795b7 tek/app/ui/tunnel.lua
--- a/tek/app/ui/tunnel.lua	Thu Apr 10 23:55:59 2008 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,57 +0,0 @@
-#!/usr/bin/env lua
-
-local ui = require "tek.lib.ui"
-local db = require "tek.lib.debug"
-db.level = 3
-
-ui.Application:new {
-	Children = {
-		ui.Window:new {
-			Children = {
-				ui.Tunnel:new { Id = "tunnel", HAlign = 1 },
-				ui.Group:new {
-					GridW = 2,
-					Children = {
-						ui.Text:new { Label = "Speed", Transparent = true },
-						ui.Slider:new {
-							MaxWidth = ui.HUGE,
-							HFreedom = true,
-							Position = { 0x10000 * 13 / 128, 0, 0x10000 * 13 / 128, 0 },
-							Notifications = {
-								["XPosition"] = {
-									[ui.NOTIFY_ALWAYS] = {
-										{ "tunnel", "setSpeed", ui.NOTIFY_VALUE },
-									},
-								},
-							},
-						},
-						ui.Text:new { Label = "Focus", Transparent = true },
-						ui.Slider:new {
-							HFreedom = true,
-							Position = { 0x10000 * 0x50 / 0x400, 0, 0x10000 * 0x50 / 0x400, 0 },
-							Notifications = {
-								["XPosition"] = {
-									[ui.NOTIFY_ALWAYS] = {
-										{ "tunnel", "setViewZ", ui.NOTIFY_VALUE },
-									},
-								},
-							},
-						},
-						ui.Text:new { Label = "Segments", Transparent = true },
-						ui.Slider:new {


More information about the tekui-devel mailing list