On Fri, Apr 29, 2011 at 5:31 PM, Torsten Bergmann <[email protected]> wrote:
> Hi, > > these requirements have nothing to do with a help system > and is more oriented towards a "teaching Smalltalk" tool > HelpBrowser should stay generic as possible. One addition > I can imagine in the future is to use rich text (HTML) > instead of plain ASCII, of we find the time to look at > Scamper again. > It seems putting Scamper into the game is not so easy..... However a few notes: > - you can subclass HelpBrowser or implement another tool > "TutorialBrowser" using HelpBrowser as template > OK. May be an HelpSystem book could specify its default viewer class... > - highlighting: PluggableTextMorph is used, see > PluggableTextMorph>>defaultViewerClass which can be > overwritten by subclasses > dont know if PluggableTextMorph supports SH out of the > box after the recent shout refactoring > (I think there is now also SmalltalkEditor) > - a help book is a tree, displaying page numbers makes > more sense for linear tutorials like ProfStef, doesnt it? > OK. I will add the page number in front of the page title like the 'Metacello Development Cycle' tutorial. Indeed, the title of the HelpBrowser window could be updated with the title of the current page. - see HelpBrowser>>initWindow to see how the UI is done > again you can overwrite it in subclasses or after > a super call adjust the UI > OK thanks. > > Did you ever try ScriptManager (WorldMenu - Tools - ScriptManager) > Yes > It has Syntax highl. out of the box and you can save the results > in files. Should be easy to extend with buttons if you need too. > Personnally I like browsing ProfStef tutorials (and there's 7 tutorials in Pharo 1.2) in HelpBrowser. Thanks Torsten. I may have some time in the next days to improve this. Laurent > > Bye > T. > > > > > > > > > > > > Hi all, > > > > > > I'm teaching smalltalk to my pupils using a ProfStef-tutorial ( > > > > > > http://www.lsh-marquartstein.de/schule/unterricht/faecher/informatik/unterrichtsmaterial/info10/smalltalk/MS-info10-ProfStef-MarkusSchlager.mcz/view > > > ). > > > > > > Currently we're using pharo 1.1. In pharo 1.2 ProfStefBrowser obviously > > got > > > replaced by another HelpBrowser. (What you get with Help->ProfStef > > > Tutorials). > > > > > > > Yes I removed ProfStefBrowser because it was not maintained anymore and > > > > didn't have the courage to fix it. > > > > HelpBrowser was here and interfacing it with ProfStef was almost free > > so.... > > > > > > I'm missing two things: > > > > > > - syntax-highlighting: Is there any way, I can activate this easily? > > > > > > > Torsten, is it possible to activate syntax-highlighting for an > HelpSystem > > book ? > > > > - navigation-buttons and page-counter (at the moment, my tutorial has > > about > > > 60 pages): any chance to get these back? > > > > > > I think this may be useful for all HelpSystem books.... Torsten, what do > > you > > think ? > > > > Indeed, to create a navigator just evaluate: > > > > DockingBarMorph new > > addMorph: (UITheme builder newButtonFor: ProfStef action: #last label: > > '>>' > > help: 'Last lesson'); > > addMorph: (UITheme builder newButtonFor: ProfStef action: #next label: > > '>' > > help: 'Next lesson'); > > addMorph:(UITheme builder newButtonFor: ProfStef action: #previous label: > > '<' help: 'Previous lesson'); > > addMorph: (UITheme builder newButtonFor: ProfStef action: #first label: > > '<<' help: 'First lesson'); > > addMorph: (UITheme builder newLabel: 'ProfStef navigator'); > > adhereTo: #top; > > color: (Color white alpha: 0.4); > > borderWidth: 0; > > openInWorld. > > > > Should be fun to have it in the tutorial :) > > > > Laurent. > > > > > > > > > Markus > > > > > > > > -- > Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir > belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de >
