[tekui-devel] tekui: Argument parser: Arguments with whitespaces were treated ...
Timm S. Mueller
tmueller at schulze-mueller.de
Wed Jun 10 10:00:42 CEST 2009
details: http://hg.teklib.org/tekui/rev/79c491759499
changeset: 115:79c491759499
user: Timm S. Mueller <tmueller at schulze-mueller.de>
date: Wed Jun 10 09:59:27 2009 +0200
description:
Argument parser: Arguments with whitespaces were treated incorrectly even if
they were surrounded by quotes, corrected; Documentation generator: Added
--author, --created, --adddate options; Markup: Added metadata options for
"author" and "created"; Drawable: drawPlot() renamed to drawPoint(); Theme,
stylesheet: Handles are smaller now; Improved documentation;
Canvas:damageChild() can now be called without a layout, allowing
ListGadget:repaint() to work outside Application:run(); Area:getElementByXY()
renamed to Area:getByXY(); DirList: added onSelectEntry() handler
diffs (truncated from 4273 to 100 lines):
diff -r e715257b329b -r 79c491759499 CHANGES
--- a/CHANGES Sat Jun 06 20:16:59 2009 +0200
+++ b/CHANGES Wed Jun 10 09:59:27 2009 +0200
@@ -1,12 +1,20 @@
== tekUI Changelog ==
+ * Argument parser: Arguments with whitespaces were treated incorrectly
+ even if they were surrounded by quotes, corrected
+ * Documentation generator: Added --author, --created, --adddate options
+ * Markup: Added metadata options for "author" and "created"
+ * Canvas:damageChild() can now be called without a layout, allowing
+ ListGadget:repaint() to work outside Application:run()
+ * DirList: added onSelectEntry() handler
* 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()
+ BGPen renamed to BGColor, getElementByXY() renamed to Area:getByXY()
+ * Drawable: removed closeFont(), fitMinAspect(), openFont(), drawPlot()
+ renamed to drawPoint()
* Gadget: Effect renamed to EffectClass, BGPen... to BG..., FGPen... to
FG..., InitialFocus is now functional, removed onHold(), simplified
* Gadget, FloatText: FGPen renamed to FGColor
@@ -15,7 +23,7 @@
* 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
+ * Theme, stylesheets: effect renamed to effect-class, smaller handles
* Default Border, DrawHook, Border, Ripple Hook: show() renamed to
setup(), hide() renamed to cleanup()
* Frame, ListGadget, TextInput: simplified
diff -r e715257b329b -r 79c491759499 bin/demo_buttons.lua
--- a/bin/demo_buttons.lua Sat Jun 06 20:16:59 2009 +0200
+++ b/bin/demo_buttons.lua Wed Jun 10 09:59:27 2009 +0200
@@ -102,10 +102,52 @@
SameSize = "height",
Children =
{
- Button:new { Text = L.BUTTONS_TOP_LEFT, Style = "text-align: left; vertical-align: top; height: auto" },
- Button:new { Text = L.BUTTONS_CENTER, Style = "text-align: center; vertical-align: center; height: auto" },
- Button:new { Text = L.BUTTONS_RIGHT_BOTTOM, Style = "text-align: right; vertical-align: bottom; height: auto" },
+ Button:new { Text = L.BUTTONS_TOP_LEFT, Style = "text-align: left; vertical-align: top; height: free" },
+ Button:new { Text = L.BUTTONS_CENTER, Style = "text-align: center; vertical-align: center; height: free" },
+ Button:new { Text = L.BUTTONS_RIGHT_BOTTOM, Style = "text-align: right; vertical-align: bottom; height: free" },
}
+ }
+ }
+ },
+ Group:new
+ {
+ Legend = L.GADGET_MODES,
+ Children =
+ {
+ Button:new
+ {
+ Text = "inert", Mode = "inert",
+ },
+ Button:new
+ {
+ Text = "toggle", Mode = "toggle",
+ },
+ Button:new
+ {
+ Text = "button", Mode = "button",
+ },
+ Button:new
+ {
+ Id = "buttons-touch",
+ Font = "ui-fixed", Text = "touch", Mode = "touch",
+ onSelect = function(self, selected)
+ Button.onSelect(self, selected)
+ self:getById("buttons-unselect"):
+ setValue("Disabled", not selected)
+ end
+ },
+ Button:new
+ {
+ Id = "buttons-unselect",
+ Width = "auto",
+ Disabled = true,
+ Text = "« " .. L.GADGET_UNSELECT,
+ onPress = function(self, pressed)
+ if pressed == false then
+ self:getById("buttons-touch"):
+ setValue("Selected", false)
+ end
+ end
}
}
}
diff -r e715257b329b -r 79c491759499 bin/gendoc.lua
--- a/bin/gendoc.lua Sat Jun 06 20:16:59 2009 +0200
+++ b/bin/gendoc.lua Wed Jun 10 09:59:27 2009 +0200
@@ -365,7 +365,7 @@
sort(set, function(a, b) return a.cmp < b.cmp end)
More information about the tekui-devel
mailing list