[tekui-devel] tekui: Gendoc: Added --heading option; Visual module: Added VISU...

Timm S. Mueller tmueller at schulze-mueller.de
Tue Jun 16 00:43:10 CEST 2009


details:   http://hg.teklib.org/tekui/rev/2f04b59f4674
changeset: 116:2f04b59f4674
user:      Timm S. Mueller <tmueller at schulze-mueller.de>
date:      Mon Jun 15 23:41:41 2009 +0200
description:
Gendoc: Added --heading option; Visual module: Added VISUAL_USE_INTERNAL_HASH
build option; Theme, internal stylesheet: Changed looks of handles

diffs (truncated from 380 to 100 lines):

diff -r 79c491759499 -r 2f04b59f4674 CHANGES
--- a/CHANGES	Wed Jun 10 09:59:27 2009 +0200
+++ b/CHANGES	Mon Jun 15 23:41:41 2009 +0200
@@ -1,5 +1,7 @@
 
 == tekUI Changelog ==
+
+=== 0.8g: ===
 
  * Argument parser: Arguments with whitespaces were treated incorrectly 
  even if they were surrounded by quotes, corrected
@@ -32,6 +34,9 @@
  cleanup
  * Application, Area and demos: Some cleanup, improved documentation,
  demos, texts and imagery
+ * Visual module: Added VISUAL_USE_INTERNAL_HASH compile-time option
+ * Gendoc: Added --heading option
+ * Theme, internal stylesheet: Slightly changed looks of handles
 
 === 0.8f: ===
 
diff -r 79c491759499 -r 2f04b59f4674 TODO
--- a/TODO	Wed Jun 10 09:59:27 2009 +0200
+++ b/TODO	Mon Jun 15 23:41:41 2009 +0200
@@ -3,6 +3,7 @@
 
 === General ===
 
+ * Multiline input field
  * Clipboard support
  * Context menus
  * Bubble help
diff -r 79c491759499 -r 2f04b59f4674 VERSION
--- a/VERSION	Wed Jun 10 09:59:27 2009 +0200
+++ b/VERSION	Mon Jun 15 23:41:41 2009 +0200
@@ -1,3 +1,5 @@
 = tekUI GUI Toolkit =
 
-Version 0.8f
+Version 0.8g
+
+---------------------------------------------------------------------
diff -r 79c491759499 -r 2f04b59f4674 bin/gendoc.lua
--- a/bin/gendoc.lua	Wed Jun 10 09:59:27 2009 +0200
+++ b/bin/gendoc.lua	Mon Jun 15 23:41:41 2009 +0200
@@ -428,7 +428,9 @@
 		-- Class index:
 
 		state.classdiagram = { }
-		insert(state.classdiagram, RULE .. "\n")
+		if state.heading then
+			insert(state.classdiagram, RULE .. "\n")
+		end
 		insert(state.classdiagram, "==( Class Overview )==\n")
 
 		for key, val in pairs(state.index) do
@@ -513,8 +515,8 @@
 	insert(state.documentation, "\n" .. PAGE .. "\n\n")
 	insert(state.documentation, "Document generated on " .. os.date() .. "\n")
 
-	if state.docname then
-		insert(state.documentation, 1, "\n= " .. state.docname .. " =\n\n")
+	if state.heading then
+		insert(state.documentation, 1, "\n= " .. state.heading .. " =\n\n")
 	end
 
 end
@@ -546,7 +548,7 @@
 -------------------------------------------------------------------------------
 
 local template = "-f=FROM/A,-p=PLAIN/S,-i=IINDENT/N/K,-h=HELP/S," ..
-	"-e=EMPTY/S,--header/K,--author/K,--created/K,--adddate/S," ..
+	"-e=EMPTY/S,--heading/K,--header/K,--author/K,--created/K,--adddate/S," ..
 	"-r=REFDOC/K,-n=NAME/F"
 
 local args = Args.read(template, arg)
@@ -560,6 +562,7 @@
 	print("  -i=IINDENT/N/K indent character code in input [default 9]")
 	print("  -p=PLAIN/S     generate formatted plain text instead of HTML")
 	print("  -e=EMPTY/S     also show empty (undocumented) modules in index")
+	print("  --heading/K    single-line document heading")
 	print("  --header/K     read a header from the specified file")
 	print("  --author/K     document author (HTML generator metadata)")
 	print("  --created/K    creation date (HTML generator metadata)")
@@ -576,14 +579,20 @@
 
 else
 
-	local state = { from = args["-f"], plain = args["-p"],
-		docname = args["-n"], showempty = args["-e"] }
+	local state = 
+	{
+		from = args["-f"], 
+		plain = args["-p"],
+		docname = args["-n"], 
+		heading = args["--heading"],
+		showempty = args["-e"]
+	}
 
 	state.textdoc = ""


More information about the tekui-devel mailing list