[tekui-devel] tekui: Group.Orientation renamed to Direction, default is now "h...

Timm S. Mueller tmueller at neoscientists.org
Sat Apr 12 15:53:54 CEST 2008


details:   http://hg.teklib.org/tekui/rev/0fe920bcc681
changeset: 423:0fe920bcc681
user:      Timm S. Mueller <tmueller at neoscientists.org>
date:      Fri Apr 11 02:16:05 2008 +0200
description:
Group.Orientation renamed to Direction, default is now "horizontal", demos
adjusted

diffs (truncated from 743 to 100 lines):

diff -r b70fdccdfb34 -r 0fe920bcc681 tek/app/ui/alignment.lua
--- a/tek/app/ui/alignment.lua	Fri Apr 11 01:28:23 2008 +0200
+++ b/tek/app/ui/alignment.lua	Fri Apr 11 02:16:05 2008 +0200
@@ -10,6 +10,7 @@ ui.Application:new
 	{
 		ui.Window:new
 		{
+			Direction = "vertical",
 			MaxWidth = 700,
 			MaxHeight = 700,
 			Title = "Alignment Demo",
@@ -17,6 +18,7 @@ ui.Application:new
 			{
 				ui.Group:new
 				{
+					Direction = "vertical",
 					Width = "free",
 					Legend = "Align Horizontal",
 					Children =
@@ -29,7 +31,6 @@ ui.Application:new
 				ui.group:new
 				{
 					Height = "free",
-					Orientation = 1,
 					Legend = "Align Vertical",
 					Children =
 					{
diff -r b70fdccdfb34 -r 0fe920bcc681 tek/app/ui/choices.lua
--- a/tek/app/ui/choices.lua	Fri Apr 11 01:28:23 2008 +0200
+++ b/tek/app/ui/choices.lua	Fri Apr 11 02:16:05 2008 +0200
@@ -4,19 +4,25 @@ local ui = require "tek.lib.ui"
 local ui = require "tek.lib.ui"
 db.level = 4
 
-ui.application:new {
-	Children = {
-		ui.window:new {
+ui.Application:new
+{
+	Children =
+	{
+		ui.Window:new
+		{
 			Width = "auto",
 			Height = "auto",
 			Title = "Choices",
-			Orientation = 1,
 			Legend = "Choices",
 			SameSize = true,
-			Children = {
-				ui.group:new {
+			Children =
+			{
+				ui.Group:new
+				{
+					Direction = "vertical",
 					Legend = "Order Beverages",
-					Children = {
+					Children =
+					{
 						ui.CheckMark:new { Label = "Water" },
 						ui.CheckMark:new { Label = "Juice" },
 						ui.CheckMark:new { Label = "Milk" },
@@ -28,9 +34,12 @@ ui.application:new {
 						ui.CheckMark:new { Label = "Wine" },
 					},
 				},
-				ui.group:new {
+				ui.Group:new
+				{
+					Direction = "vertical",
 					Legend = "Are you impressed?",
-					Children = {
+					Children =
+					{
 						ui.RadioButton:new { Label = "Yes" },
 						ui.RadioButton:new { Label = "No" },
 						ui.Spacer:new { },
diff -r b70fdccdfb34 -r 0fe920bcc681 tek/app/ui/demo.lua
--- a/tek/app/ui/demo.lua	Fri Apr 11 01:28:23 2008 +0200
+++ b/tek/app/ui/demo.lua	Fri Apr 11 02:16:05 2008 +0200
@@ -11,6 +11,7 @@ ui.Application:new
 	{
 		ui.Window:new
 		{
+			Direction = "vertical",
 			Id = "about-window",
 			Status = "hidden",
 			Title = "About tekUI",
@@ -48,6 +49,7 @@ ui.Application:new
 
 		ui.Window:new
 		{
+			Direction = "vertical",
 			Id = "notifications-window",
 			Title = "Notifications",
 			Status = "hidden",
@@ -65,7 +67,6 @@ ui.Application:new
 				{
 					Width = "free",


More information about the tekui-devel mailing list