<div class="gmail_quote">On Mon, Feb 23, 2009 at 5:37 AM, Tomeu Vizoso <span dir="ltr"><<a href="mailto:tomeu@sugarlabs.org">tomeu@sugarlabs.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Sun, Feb 22, 2009 at 19:16, <<a href="mailto:pgf@laptop.org">pgf@laptop.org</a>> wrote:<br>
> i promised simon on irc that i'd raise this on the sugar devel<br>
> list, so thanks for replying and reminding me.<br>
><br>
> (to recap: my "legacy" activity would like to be able to present<br>
> help and documentation info to the user via the local browser.)<br>
><br>
> s page wrote:<br>
> > <a href="mailto:pgf@laptop.org">pgf@laptop.org</a> wrote:<br>
> > > can someone remind me if there's any reasonable way for an<br>
> > > activity to display html help or documentation using Browse?<br>
> > ><br>
> > > normally i'd simply have the app run "firefox file:///path-to-file",<br>
> > > but that won't work.<br>
> ><br>
> > In candidate-800, Browse can view<br>
> > file:///home/olpc/Activities/Maze.activity/activity/activity-maze.svg ,<br>
> > so you would think you could tell it to launch and show your HTML help.<br>
> ><br>
> > I dunno if Rainbow restricts one activity from launching another.<br>
><br>
> i believe it does, which has always been the problem for doing what<br>
> i would like to do.<br>
><br>
> i think what might be useful (if rainbow is to be accomodated) is<br>
> a minimal-functionality html viewer. i'd be okay, in my<br>
> activity, if the viewer didn't allow any off-page clicks or<br>
> scripts -- just html rendering. doesn't seem like that would<br>
> cause a security issue, would it?<br>
<br>
</div>Another possibility is for Sugar to provide a dialog similar to the<br>
object chooser and view source windows with the mozilla widget<br>
embedded there.<br>
</blockquote><div><br>This would be my preference. A standard "Help" toolbar button that opens a modal (Object Chooser-like) HTML window which displays a html file from the bundle. An activity callback could be provided to return the base html filename at runtime, for context sensitive help.<br>
<br>-Wade<br><br> <br></div></div><br>