[tekui-devel] tekui: Group: Style attribute added, Tabbed removed, is now Styl...
Timm S. Mueller
tmueller at neoscientists.org
Tue Apr 1 15:36:32 CEST 2008
details: http://hg.teklib.org/tekui/rev/2039cf5134fd
changeset: 402:2039cf5134fd
user: Timm S. Mueller <tmueller at neoscientists.org>
date: Tue Apr 01 01:52:06 2008 +0200
description:
Group: Style attribute added, Tabbed removed, is now Style = "tab"; MenuBar:
removed, is now Group.Style = "menubar"; FloatText and List: default mode for
SliderMode is now "on" instead of "auto"
diffs (truncated from 260 to 100 lines):
diff -r 7572b1f8c60c -r 2039cf5134fd tek/app/ui/demo.lua
--- a/tek/app/ui/demo.lua Mon Mar 31 22:43:49 2008 +0200
+++ b/tek/app/ui/demo.lua Tue Apr 01 01:52:06 2008 +0200
@@ -210,8 +210,9 @@ ui.Application:new
MaxHeight = ui.HUGE,
Children =
{
- ui.MenuBar:new
- {
+ ui.Group:new
+ {
+ Style = "menubar",
Children =
{
ui.MenuItem:new
diff -r 7572b1f8c60c -r 2039cf5134fd tek/app/ui/tabs.lua
--- a/tek/app/ui/tabs.lua Mon Mar 31 22:43:49 2008 +0200
+++ b/tek/app/ui/tabs.lua Tue Apr 01 01:52:06 2008 +0200
@@ -33,7 +33,7 @@ ui.application:new {
ui.group:new {
MaxWidth = ui.HUGE,
MaxHeight = ui.HUGE,
- Tabbed = true,
+ Style = "tab",
TabNumber = 1,
Children = {
ui.lissa:new { TabName = "Eins" },
@@ -47,7 +47,7 @@ ui.application:new {
},
},
ui.group:new {
- Tabbed = true,
+ Style = "tab",
TabName = "Register",
Children = {
ui.lissa:new { TabName = "Eins" },
diff -r 7572b1f8c60c -r 2039cf5134fd tek/app/ui/tekui.lua
--- a/tek/app/ui/tekui.lua Mon Mar 31 22:43:49 2008 +0200
+++ b/tek/app/ui/tekui.lua Tue Apr 01 01:52:06 2008 +0200
@@ -84,7 +84,8 @@ ui.application:new
MaxHeight = 800,
Children =
{
- ui.menubar:new {
+ ui.group:new {
+ Style = "menubar",
Children = {
ui.menuitem:new {
Label = "File",
@@ -175,7 +176,7 @@ ui.application:new
{
ui.group:new
{
- Tabbed = true,
+ Style = "tab",
TabNumber = 3,
Legend = "Animation",
MaxWidth = ui.HUGE,
diff -r 7572b1f8c60c -r 2039cf5134fd tek/class/ui/floattext.lua
--- a/tek/class/ui/floattext.lua Mon Mar 31 22:43:49 2008 +0200
+++ b/tek/class/ui/floattext.lua Tue Apr 01 01:52:06 2008 +0200
@@ -18,7 +18,7 @@ local max = math.max
local max = math.max
module("tek.class.ui.floattext", tek.class.ui.scrollgroup)
-_VERSION = "FloatText 1.3"
+_VERSION = "FloatText 1.4"
local FloatText = _M
-------------------------------------------------------------------------------
@@ -199,7 +199,7 @@ function FloatText.new(class, self)
self.MaxWidth = ui.HUGE
self.MaxHeight = ui.HUGE
- self.VSliderMode = self.VSliderMode or "auto"
+ self.VSliderMode = self.VSliderMode or "on" -- "auto"
self.HSliderMode = "off"
self.KeepMinWidth = true
diff -r 7572b1f8c60c -r 2039cf5134fd tek/class/ui/group.lua
--- a/tek/class/ui/group.lua Mon Mar 31 22:43:49 2008 +0200
+++ b/tek/class/ui/group.lua Tue Apr 01 01:52:06 2008 +0200
@@ -20,7 +20,7 @@ local unpack = unpack
local unpack = unpack
module("tek.class.ui.group", tek.class.ui.gadget)
-_VERSION = "Group 2.6"
+_VERSION = "Group 3.0"
local Group = _M
-------------------------------------------------------------------------------
@@ -40,6 +40,10 @@ local DEF_TABGROUPMARGIN = { 2, 2, 2, 0
local DEF_TABGROUPMARGIN = { 2, 2, 2, 0 }
local DEF_TABGROUPPADDING = { 0, 0, 0, 0 }
+local DEF_BORDERSTYLE_MENUBAR = "group"
+local DEF_BORDER_MENUBAR = { 0, 0, 0, 1 }
+local DEF_BACKPEN_MENUBAR = ui.PEN_MENUBACK
+
local NOTIFY_DISABLE = { ui.NOTIFY_SELF, "setDisabled", ui.NOTIFY_VALUE }
More information about the tekui-devel
mailing list