[squeak-dev] [Ann] SquickReferenceGuide: a Squeak Quick Reference
Guide
Enrico Spinielli
enrico.spinielli at googlemail.com
Sat Aug 14 16:28:57 UTC 2010
Hi all,
I have been studying/playing around with HelpSystem and assembled the first
topics of SquickReferenceGuide to appear inside Help Browser.
(NOTE: Squick not Squeak, it is not a typo !-)
Please find it as a change set in attachment.
It would be great to have these artifacts (Tutorial, QRG ...) in a
separate repository
where everybody could contribute...then from time to time (or
automatically) they can be
merged in a corresponding version in Trunk
Bye
Enrico
PS: I noticed that subtrees are added after all pages while I would like
to have them intermixed, i.e. I wanted 'FAQ' subtree before 'changeLog'.
For example SquickReferenceGuideHelp>>pages would then be coded:
SquickReferenceGuideHelp>>pages
"Returns a collection of method selectors to return the pages of the
custom help book"
^#(mouse shortcuts SquickReferenceGuideFAQHelp changeLog todo acknowledgments)
I tried to to change the logic in as follows:
CustomHelpHelpBuilder>>createTopicFrom: aDescription
"Create a topic from a description stored on a class"
|topic page |
topic := HelpTopic named: aDescription bookName.
topic key: aDescription key.
topic icon: aDescription icon.
aDescription pages do: [:pageSelector|
(aDescription subclasses contains: pageSelector asString)
ifFalse: [page := aDescription perform: pageSelector.
topic addSubtopic: page.]
ifTrue: [topic subtopics add: pageSelector asString asHelpTopic].
].
(aDescription subclasses removeAllFoundIn: (aDescription pages
collect: [:p| p asString])) do: [:subclass |
topic subtopics add: subclass asHelpTopic ].
^topic
but when I instantiate a new Help Browser I get a dialog with
Error: Help for the help system is removed
so I reverted it back (lack of time) and it is not in the change set attached.
Nevertheless I would be interested in the feature if somebody else
find it useful and
the time to implement it.
Hope it helps
Bye
--
Enrico Spinielli
"Do Androids dream of electric sheep?"— Philip K. Dick
"Hear and forget; see and remember;do and understand."—Mitchel Resnick
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SquickReferenceGuide.1.cs
Type: application/octet-stream
Size: 5026 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20100814/b235b20d/SquickReferenceGuide.1.obj
More information about the Squeak-dev
mailing list
|