[tekui-devel] tekui: Application, Window: Major simplification in setup and cl...

Timm S. Mueller tmueller at schulze-mueller.de
Sat Jun 6 20:23:30 CEST 2009


details:   http://hg.teklib.org/tekui/rev/e715257b329b
changeset: 114:e715257b329b
user:      Timm S. Mueller <tmueller at schulze-mueller.de>
date:      Sat Jun 06 20:16:59 2009 +0200
description:
Application, Window: Major simplification in setup and closedown procedure,
the show() method is now invoked shortly after opening the window; Area:
Changed meaning of the EraseBG attribute, removed calcOffset, BGPen renamed to
BGColor; Drawable: removed closeFont(), fitMinAspect(), openFont(); Gadget:
Effect renamed to EffectClass, BGPen... to BG..., FGPen... to FG...,
InitialFocus is now functional, removed onHold(), simplified; Gadget,
FloatText: FGPen renamed to FGColor; ListGadget: Renamed BGPenAlt to BGAlt;
TextInput: Renamed BGPenCursor to BGCursor; Window:getWindowDimensions()
renamed to askMinMax(), show() now invokes Group.show() before askMinMax(),
now creates a Drawable during setup() and passes it to its superclass during
show(); Theme, stylesheets: effect renamed to effect-class; Default Border,
DrawHook, Border, Ripple Hook: show() renamed to setup(), hide() renamed to
cleanup(); Frame, ListGadget, TextInput: simplified; ScrollBar, Slider: now
register Hold notification themselves; Application: Status can now be "init",
"error", "run" and "quit", some cleanup; Application, Area and demos: Some
cleanup, improved documentation, demos, texts and imagery

diffs (truncated from 4722 to 100 lines):

diff -r 00e19b1b942b -r e715257b329b CHANGES
--- a/CHANGES	Sat May 23 15:08:46 2009 +0200
+++ b/CHANGES	Sat Jun 06 20:16:59 2009 +0200
@@ -1,6 +1,30 @@
 
 == tekUI Changelog ==
- 
+
+ * Application, Window: Major simplification in setup and closedown 
+ procedure, the show() method is now invoked shortly after opening the
+ window
+ * Area: Changed meaning of the EraseBG attribute, removed calcOffset,
+ BGPen renamed to BGColor
+ * Drawable: removed closeFont(), fitMinAspect(), openFont()
+ * Gadget: Effect renamed to EffectClass, BGPen... to BG..., FGPen... to
+ FG..., InitialFocus is now functional, removed onHold(), simplified
+ * Gadget, FloatText: FGPen renamed to FGColor
+ * ListGadget: Renamed BGPenAlt to BGAlt
+ * TextInput: Renamed BGPenCursor to BGCursor
+ * Window:getWindowDimensions() renamed to askMinMax(), show() now invokes
+ Group.show() before askMinMax(), now creates a Drawable during setup()
+ and passes it to its superclass during show()
+ * Theme, stylesheets: effect renamed to effect-class
+ * Default Border, DrawHook, Border, Ripple Hook: show() renamed to
+ setup(), hide() renamed to cleanup() 
+ * Frame, ListGadget, TextInput: simplified
+ * ScrollBar, Slider: now register Hold notification themselves
+ * Application: Status can now be "init", "error", "run" and "quit", some
+ cleanup
+ * Application, Area and demos: Some cleanup, improved documentation,
+ demos, texts and imagery
+
 === 0.8f: ===
 
  * Element: Major speedup in parsing style properties
diff -r 00e19b1b942b -r e715257b329b bin/demo.lua
--- a/bin/demo.lua	Sat May 23 15:08:46 2009 +0200
+++ b/bin/demo.lua	Sat Jun 06 20:16:59 2009 +0200
@@ -322,6 +322,7 @@
 															Id = "text-gcpause",
 															Style = "width: fill",
 															KeepMinWidth = true,
+															Text = "0000",
 														},
 														ui.Text:new
 														{
@@ -353,6 +354,7 @@
 															Id = "text-gcstepmul",
 															Style = "width: fill",
 															KeepMinWidth = true,
+															Text = "0000",
 														},
 													}
 												},
@@ -555,7 +557,6 @@
 								ui.ScrollGroup:new
 								{
 									Legend = L.AVAILABLE_DEMOS,
-									Style = "max-width: free",
 									VSliderMode = "auto",
 									Child = ui.Canvas:new
 									{
@@ -566,7 +567,6 @@
 										Child = ui.Group:new
 										{
 											Id = "demo-group",
-											Style = "max-width: free",
 											Orientation = "vertical",
 										}
 									}
diff -r 00e19b1b942b -r e715257b329b bin/demo_alignment.lua
--- a/bin/demo_alignment.lua	Sat May 23 15:08:46 2009 +0200
+++ b/bin/demo_alignment.lua	Sat Jun 06 20:16:59 2009 +0200
@@ -27,6 +27,7 @@
 		{
 			Orientation = "vertical",
 			Width = "free",
+			Height = "free",
 			Legend = L.ALIGN_HORIZONTAL,
 			Children =
 			{
@@ -55,7 +56,6 @@
 						Button:new
 						{
 							Text = L.RIGHT,
-							Width = "auto",
 							Height = "free"
 						}
 					}
@@ -71,26 +71,22 @@
 				Button:new
 				{
 					Text = L.TOP,
-					Width = "free",
 					VAlign = "top", -- Style = "vertical-grid-align: top",
 				},
 				Button:new
 				{
 					Text = L.CENTER,
-					Width = "free",


More information about the tekui-devel mailing list