[tekui-devel] tekui: Improved some demos, texts, localizations, and style shee...
Timm S. Mueller
tmueller at schulze-mueller.de
Fri May 15 00:44:17 CEST 2009
details: http://hg.teklib.org/tekui/rev/5534625fcaad
changeset: 110:5534625fcaad
user: Timm S. Mueller <tmueller at schulze-mueller.de>
date: Fri May 15 00:29:54 2009 +0200
description:
Improved some demos, texts, localizations, and style sheets; Compiler: added
commandline arguments; C sources and their symbol names are now better suited
for amalgamed builds; Removed unused memory managers from TEKlib; Application:
Added GCControl; Application, PopupWindow: Removed use of checkDescend();
FloatText: corrected flaky color property evaluation; Gauge, Slider: Added
BackgroundRegion, updateBackgroundRegion(), faster repaint; Region: now
supports a custom datatype for rectangles, renamed overlap...() to
intersect...(), removed free() and intersect() methods, added caching of
rectangle nodes, management and caching of rectangle nodes now more efficient,
removed getRects(), replaced by forEach(); Area, Canvas, FloatText, Gauge,
Group, ImageGadget, ListGadget, ScrollGroup, Slider, Window: Now using
region:forEach() instead of region:getRects(); Default border, Border:
getBorderRegion() renamed to getRegion(), now expecting a border to be
supplied by the caller; UI: added allocRegion(), freeRegion(), newRegion(),
reuseRegion(), ProgDir is now guaranteed to contain a trailing path separator;
Area, Canvas, Frame, Gauge, Group, ListGadget, Slider: added region caching
and reusing; ListGadget, FloatText: innerloop of draw() is now a separate
function - drawPatch(); Element: Added getAttr(); PopItem: implemented
"menuitem-size" via getAttr(); Area:getBackground() renamed to getBG(),
getRectangle() to getRect(), markDamage() to damage(), focusRectangle() to
focusRect(), BackgroundPosition to BGPosition, removed getElement(), added
getChildren(), getSiblings(), getParent(), getGroup(), getNext(), getPrev(),
checkHover(); Application: Renamed CollectGarbage to GCControl, VendorName to
Vendor, VendorDomain to Domain; Canvas: renamed markChildDamage() to
damageChild(); CheckMark, RadioButton: renamed AltImage to SelectImage;
DirList: renamed getDirectoryIterator() to getDirIterator(); Display: renamed
colorNameToRGB() to colorToRGB(); FloatText: renamed Reposition argument from
"bottom" to "tail"; Gadget: renamed EffectName to Effect
diffs (truncated from 10981 to 100 lines):
diff -r 35f4544e480c -r 5534625fcaad CHANGES
--- a/CHANGES Fri May 08 00:16:07 2009 +0200
+++ b/CHANGES Fri May 15 00:29:54 2009 +0200
@@ -1,5 +1,45 @@
== tekUI Changelog ==
+
+ * Improved some demos, texts, localizations, and style sheets
+ * Compiler: added commandline arguments
+ * C sources and their symbol names are now better suited for amalgamed
+ builds
+ * Removed unused memory managers from TEKlib
+ * Application: Added GCControl
+ * Application, PopupWindow: Removed use of checkDescend()
+ * FloatText: corrected flaky color property evaluation
+ * Gauge, Slider: Added BackgroundRegion, updateBackgroundRegion(), faster
+ repaint
+ * Region: now supports a custom datatype for rectangles, renamed
+ overlap...() to intersect...(), removed free() and intersect() methods,
+ added caching of rectangle nodes, management and caching of rectangle
+ nodes now more efficient, removed getRects(), replaced by forEach()
+ * Area, Canvas, FloatText, Gauge, Group, ImageGadget, ListGadget,
+ ScrollGroup, Slider, Window: Now using region:forEach() instead of
+ region:getRects()
+ * Default border, Border: getBorderRegion() renamed to getRegion(), now
+ expecting a border to be supplied by the caller
+ * UI: added allocRegion(), freeRegion(), newRegion(), reuseRegion(),
+ ProgDir is now guaranteed to contain a trailing path separator
+ * Area, Canvas, Frame, Gauge, Group, ListGadget, Slider: added region
+ caching and reusing
+ * ListGadget, FloatText: innerloop of draw() is now a separate function
+ * Element: Added getAttr()
+ * PopItem: implemented "menuitem-size" via getAttr()
+ * Area:getBackground() renamed to getBG(), getRectangle() to getRect()
+ markDamage() to damage(), focusRectangle() to focusRect(),
+ BackgroundPosition to BGPosition, removed getElement(), added
+ getChildren(), getSiblings(), getParent(), getGroup(), getNext(),
+ getPrev(), checkHover()
+ * Application: Renamed CollectGarbage to GCControl, VendorName to Vendor,
+ VendorDomain to Domain
+ * Canvas: renamed markChildDamage() to damageChild()
+ * CheckMark, RadioButton: renamed AltImage to SelectImage
+ * DirList: renamed getDirectoryIterator() to getDirIterator()
+ * Display: renamed colorNameToRGB() to colorToRGB()
+ * FloatText: renamed Reposition argument from "bottom" to "tail"
+ * Gadget: renamed EffectName to Effect
=== 0.8e: ===
diff -r 35f4544e480c -r 5534625fcaad bin/buttonclass.lua
--- a/bin/buttonclass.lua Fri May 08 00:16:07 2009 +0200
+++ b/bin/buttonclass.lua Fri May 15 00:29:54 2009 +0200
@@ -21,7 +21,7 @@
app = ui.Application:new
{
ApplicationId = "tekui-demo",
- VendorDomain = "schulze-mueller.de",
+ Domain = "schulze-mueller.de",
}
-------------------------------------------------------------------------------
diff -r 35f4544e480c -r 5534625fcaad bin/compiler.lua
--- a/bin/compiler.lua Fri May 08 00:16:07 2009 +0200
+++ b/bin/compiler.lua Fri May 15 00:29:54 2009 +0200
@@ -9,12 +9,13 @@
-- Luiz Henrique de Figueiredo <lhf at tecgraf.puc-rio.br>
--
+local Args = require "tek.lib.args"
local lfs = require "lfs"
local ui = require "tek.ui"
local List = require "tek.class.list"
local APP_ID = "lua-compiler"
-local VENDOR = "schulze-mueller.de"
+local DOMAIN = "schulze-mueller.de"
local PROGNAME = "Lua Compiler"
local VERSION = "1.1"
local AUTHOR = "Timm S. Müller"
@@ -70,7 +71,7 @@
end
for i = m + 2, n do
- local mod, fname = arg[i]:match("^%s*([^%s=]+)%s*=%s*(.+)%s*$")
+ local mod, fname = arg[i]:match("^%s*([^%s:]+)%s*:%s*(.+)%s*$")
mod = mod:gsub("^.-([^" .. PS .. "]+)$", "t['%1']=function()end")
table.insert(b, mod)
arg[i] = string.sub(string.dump(assert(loadfile(fname))), 13)
@@ -148,6 +149,43 @@
os.remove(".luac_sample.txt")
end
return mods
+end
+
+-------------------------------------------------------------------------------
+
+function tocsource(outname)
+ local tmpname = outname .. ".tmp"
+ local b = io.open(outname):read("*a")
+ local f = io.open(tmpname, "wb")
More information about the tekui-devel
mailing list