[tekui-devel] tekui: UTF8String: find(), chars() added, problems corrected in ...

Timm S. Mueller tmueller at schulze-mueller.de
Sun Sep 6 22:59:01 CEST 2009


details:   http://hg.teklib.org/tekui/rev/6084da38c247
changeset: 120:6084da38c247
user:      Timm S. Mueller <tmueller at schulze-mueller.de>
date:      Fri Aug 21 01:28:36 2009 +0200
description:
UTF8String: find(), chars() added, problems corrected in handling of
non-existing string ranges; Args: now handles cases in which a value is
missing for keys expecting an argument, some unit tests added;
Window:refresh() now handles clip rects added during addBlit(); Application:
fixed initial double refresh bug; Area, Window, ScrollGroup: renamed CopyArea
to Blits, CopyObjects to BlitObjects, CopyAreaList to BlitList; DirList: Added
AutoWidth option; Area:layout() now handles blits in shifted areas, return
value added to focusRect(); Drawable:getClipRect() added; ListGadget:
Regression (absence of a cursor border) corrected; Canvas: added SmoothFactor
attribute and decelerating positioning option in focusRect(); Text: now uses
the "IgnoreAltShift" peudo qualifier for Keycode shortcuts; Window, UI:
Doubleclick jitter and timeout are now defined in UI; Gendoc: NAME argument is
now /K, HEADER is now /K/M, allowing multiple header files. An implicit
reference document is now also supplied to normal jumps, not only to function
jumps

diffs (truncated from 1856 to 100 lines):

diff -r d8f182a078e6 -r 6084da38c247 CHANGES
--- a/CHANGES	Sat Aug 08 11:22:05 2009 +0200
+++ b/CHANGES	Fri Aug 21 01:28:36 2009 +0200
@@ -1,6 +1,17 @@
 
 == tekUI Changelog ==
 
+ * Group:onActivateGroup() added
+ * Window, UI: Doubleclick jitter and timeout are now defined in UI
+ * Gendoc: NAME argument is now /K, HEADER is now /K/M, allowing multiple
+ header files. A reference document is now supplied to normal jumps
+ * UTF8String: find(), chars() added
+ * Canvas: added SmoothFactor attribute and incremental scroll
+ positioning in focusRect()
+ * ListGadget: fixed regression: the cursor border, if unset in a
+ stylesheet, was initialized to zero width, changed to 1;
+ * Text: now uses the "IgnoreAltShift" peudo qualifier for Keycode
+ shortcuts
  * Raw Framebuffer display driver: added
  * 64bit fixes and source code maintenance adjustments merged in from
  TEKlib
@@ -12,7 +23,9 @@
  * Args: Partly rewritten, now handles missing keywords correctly in
  /M/K modifiers
  * Region: added trans(), isNull()
+ * Application: fixed initial double refresh bug
  * Area:layout() now handles blits in transposed drawing contexts
+ * DirList: Added AutoWidth attribute
  * Drawable:getClipRect() added
  * Frame:layoutBorder() split off from layout()
  * ListGadget: fixedto work in absence of a style sheet
diff -r d8f182a078e6 -r 6084da38c247 Makefile
--- a/Makefile	Sat Aug 08 11:22:05 2009 +0200
+++ b/Makefile	Fri Aug 21 01:28:36 2009 +0200
@@ -40,11 +40,11 @@
 	-find src tek -type d -name build | xargs $(RMDIR)
 
 docs:
-	bin/gendoc.lua README --header VERSION -i 32 -n tekUI > doc/index.html
-	bin/gendoc.lua COPYRIGHT -i 32 -n tekUI Copyright > doc/copyright.html
-	bin/gendoc.lua TODO -i 32 -n tekUI TODO > doc/todo.html
-	bin/gendoc.lua CHANGES -i 32 -r manual.html -n tekUI Changelog > doc/changes.html
-	bin/gendoc.lua tek/ --header VERSION -n Class Reference Manual > doc/manual.html
+	bin/gendoc.lua README --header VERSION -i 32 -n "tekUI" > doc/index.html
+	bin/gendoc.lua COPYRIGHT -i 32 -n "tekUI Copyright" > doc/copyright.html
+	bin/gendoc.lua TODO -i 32 -n "tekUI TODO" > doc/todo.html
+	bin/gendoc.lua CHANGES -i 32 -r manual.html -n "tekUI Changelog" > doc/changes.html
+	bin/gendoc.lua tek/ --header VERSION --adddate -n "tekUI Class Reference Manual" > doc/manual.html
 
 
 kdiff:
diff -r d8f182a078e6 -r 6084da38c247 README
--- a/README	Sat Aug 08 11:22:05 2009 +0200
+++ b/README	Fri Aug 21 01:28:36 2009 +0200
@@ -43,6 +43,9 @@
  - 6. [[manual.html : Class Reference Manual]]
  
  - 7. [[changes.html : Changelog]]
+
+The entrypoint to the toolkit is the [[tek.ui][manual.html#tek.ui]]
+module. See there for a quick start.
 
 ---------------------------------------------------------------------
 
diff -r d8f182a078e6 -r 6084da38c247 bin/gendoc.lua
--- a/bin/gendoc.lua	Sat Aug 08 11:22:05 2009 +0200
+++ b/bin/gendoc.lua	Fri Aug 21 01:28:36 2009 +0200
@@ -533,13 +533,17 @@
 		-- function links uniformly use colons; replace dots:
 		link = funclink:gsub("%.", ":")
 	end
-	
-	local func = link:match("^(.*)%(%)$")
-	if func and self.refdoc then
-		return ('<a href="%s#%s"><code>'):format(self.refdoc, func), 
-			'</code></a>'
+	if self.refdoc then
+		local jump = link:match("^%#(.*)$")
+		if jump then
+			link = ("%s#%s"):format(self.refdoc, jump)
+		end
+		local func = link:match("^(.*)%(%)$")
+		if func then
+			return ('<a href="%s#%s"><code>'):format(self.refdoc, func), 
+				'</code></a>'
+		end
 	end
-	
 	return Markup.link(self, link)
 end
 
@@ -548,8 +552,8 @@
 -------------------------------------------------------------------------------
 
 local template = "-f=FROM/A,-p=PLAIN/S,-i=IINDENT/N/K,-h=HELP/S," ..
-	"-e=EMPTY/S,--heading/K,--header/K,--author/K,--created/K,--adddate/S," ..
-	"-r=REFDOC/K,-n=NAME/F"
+	"-e=EMPTY/S,--heading/K,--header/K/M,--author/K,--created/K," ..
+	"--adddate/S,-r=REFDOC/K,-n=NAME/K"
 


More information about the tekui-devel mailing list