[Activities] [Sugar-devel] using the browser to display help/docs
wadetb at gmail.com
Mon Feb 23 10:25:18 EST 2009
On Mon, Feb 23, 2009 at 5:37 AM, Tomeu Vizoso <tomeu at sugarlabs.org> wrote:
> On Sun, Feb 22, 2009 at 19:16, <pgf at laptop.org> wrote:
> > i promised simon on irc that i'd raise this on the sugar devel
> > list, so thanks for replying and reminding me.
> > (to recap: my "legacy" activity would like to be able to present
> > help and documentation info to the user via the local browser.)
> > s page wrote:
> > > pgf at laptop.org wrote:
> > > > can someone remind me if there's any reasonable way for an
> > > > activity to display html help or documentation using Browse?
> > > >
> > > > normally i'd simply have the app run "firefox file:///path-to-file",
> > > > but that won't work.
> > >
> > > In candidate-800, Browse can view
> > > file:///home/olpc/Activities/Maze.activity/activity/activity-maze.svg
> > > so you would think you could tell it to launch and show your HTML
> > >
> > > I dunno if Rainbow restricts one activity from launching another.
> > i believe it does, which has always been the problem for doing what
> > i would like to do.
> > i think what might be useful (if rainbow is to be accomodated) is
> > a minimal-functionality html viewer. i'd be okay, in my
> > activity, if the viewer didn't allow any off-page clicks or
> > scripts -- just html rendering. doesn't seem like that would
> > cause a security issue, would it?
> Another possibility is for Sugar to provide a dialog similar to the
> object chooser and view source windows with the mozilla widget
> embedded there.
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Activities