[tekui-devel] tekui: Application: More verbose connect(); Area:askMinMax() now...

Timm S. Mueller tmueller at neoscientists.org
Mon Apr 7 03:42:24 CEST 2008


details:   http://hg.teklib.org/tekui/rev/3e3676b7e3f6
changeset: 405:3e3676b7e3f6
user:      Timm S. Mueller <tmueller at neoscientists.org>
date:      Fri Apr 04 22:03:06 2008 +0200
description:
Application: More verbose connect(); Area:askMinMax() now respects MaxWidth,
MaxHeight and places results in MinMax[]; Canvas: simplified askMinMax(),
filterInput() checks for availability of layouted rectangle; CheckMark,
FloatText, Frame: simplified askMinMax(); Group: tabgroup creation now
performed by class:new(), which allows all descendants of a Group to act as a
tabgroup, checkMember() checks for children of tabgroups to be Groups,
getMinMax() removed, askMinMax() rewritten; Handle: simplified askMinMax() and
detection of parent group orientation; Image: simplified askMinMax(); Layout:
now respecting MinWidth; Lissa now using Min/Max/Width/Height, removed
askMinMax(); List, MenuItem, PopRadioItem, ScrollGroup, Slider, Spacer, Text,
TextInput: simplified askMinMax(); Window, Group, Canvas: calls to getMinMax()
replaced by askMinMax(); updated examples and TODO

diffs (truncated from 1013 to 100 lines):

diff -r 55ffa190618c -r 3e3676b7e3f6 TODO
--- a/TODO	Thu Apr 03 12:59:11 2008 +0200
+++ b/TODO	Fri Apr 04 22:03:06 2008 +0200
@@ -26,10 +26,12 @@
  * Keyboard shortcuts
  * Localisation
  * Run in TEKlib-Lua-Interpreter
+ * Document generator should be compatible with LFS
  * realtime modification of attributes affecting layout [ok]
 
 === Bugs ===
 
+ * tabbed Group refresh
  * overlong group headings
  * potential memory leak in visual.drawimage()
  * Foreign elements are getting hilited during move
@@ -37,4 +39,3 @@
  * Initial Window refresh problem: layout/rendered twice
  * Initial Window refresh problem: not layout/rendered at all
  * Memory leak in visual/lua
-
diff -r 55ffa190618c -r 3e3676b7e3f6 tek/app/ui/bashing.lua
--- a/tek/app/ui/bashing.lua	Thu Apr 03 12:59:11 2008 +0200
+++ b/tek/app/ui/bashing.lua	Fri Apr 04 22:03:06 2008 +0200
@@ -7,12 +7,12 @@ ui.application:new {
 		ui.window:new {
 			GridW = 3,
 			Children = {
-				ui.lissa:new { MaxWidth = ui.HUGE, MaxHeight = ui.HUGE},
-				ui.lissa:new { MaxWidth = ui.HUGE, MaxHeight = ui.HUGE},
-				ui.lissa:new { MaxWidth = ui.HUGE, MaxHeight = ui.HUGE},
-				ui.lissa:new { MaxWidth = ui.HUGE, MaxHeight = ui.HUGE},
-				ui.lissa:new { MaxWidth = ui.HUGE, MaxHeight = ui.HUGE},
-				ui.lissa:new { MaxWidth = ui.HUGE, MaxHeight = ui.HUGE},
+				ui.lissa:new { MaxWidth = 400 },
+				ui.lissa:new { },
+				ui.lissa:new { },
+				ui.lissa:new { },
+				ui.lissa:new { MaxHeight = 400 },
+				ui.lissa:new { },
 			},
 		},
 	},
diff -r 55ffa190618c -r 3e3676b7e3f6 tek/app/ui/sudoku.lua
--- a/tek/app/ui/sudoku.lua	Thu Apr 03 12:59:11 2008 +0200
+++ b/tek/app/ui/sudoku.lua	Fri Apr 04 22:03:06 2008 +0200
@@ -441,7 +441,6 @@ ui.application:new {
 								},
 								ui.textinput:new {
 									Id = "code",
-									Label = "",
 									Notifications = {
 										["Label"] = {
 											[ui.NOTIFY_ALWAYS] = {
diff -r 55ffa190618c -r 3e3676b7e3f6 tek/app/ui/tabs.lua
--- a/tek/app/ui/tabs.lua	Thu Apr 03 12:59:11 2008 +0200
+++ b/tek/app/ui/tabs.lua	Fri Apr 04 22:03:06 2008 +0200
@@ -37,7 +37,11 @@ ui.application:new {
 					Style = "tab",
 					TabNumber = 1,
 					Children = {
-						ui.lissa:new { TabName = "Eins" },
+						ui.group:new {
+							Children = {
+								ui.lissa:new { TabName = "Eins" },
+							}
+						},
 						ui.list:new { TabName = "Zwei" },
 						ui.group:new {
 							TabName = "Drei",
@@ -51,7 +55,11 @@ ui.application:new {
 							Style = "tab",
 							TabName = "Register",
 							Children = {
-								ui.lissa:new { TabName = "Eins" },
+								ui.group:new {
+									Children = {
+		 								ui.lissa:new { TabName = "Eins" },
+		 							}
+		 						},
 								ui.list:new { TabName = "Zwei" },
 								ui.group:new {
 									MaxWidth = ui.HUGE,
diff -r 55ffa190618c -r 3e3676b7e3f6 tek/app/ui/weight.lua
--- a/tek/app/ui/weight.lua	Thu Apr 03 12:59:11 2008 +0200
+++ b/tek/app/ui/weight.lua	Fri Apr 04 22:03:06 2008 +0200
@@ -1,17 +1,7 @@
 #!/usr/bin/env lua
 
-require "tek.lib.debug".level = 3
+require "tek.lib.debug".level = 4
 local ui = require "tek.lib.ui"
-
-local block = ui.frame:newClass()
-function block:askMinMax()
-	return 100, 100, 200, 200
-end
-
-local block2 = ui.frame:newClass()
-function block2:askMinMax()


More information about the tekui-devel mailing list