GRASS Programmer's Manual  6.5.svn(2012)-r51648
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
ghelp.HelpWindow Class Reference

This panel holds the text from GRASS docs. More...

Public Member Functions

def __init__
 If grass_command is given, the corresponding HTML help file will be presented, with all links pointing to absolute paths of local files.
def OnLinkClicked
def fillContentsFromFile
 Load content from file.

Data Fields

 parent
 loaded
 FIXME: calling LoadPage() is strangely time-consuming (only first call) self.LoadPage(self.fspath + grass_command + ".html")
 history
 historyIdx
 fspath

Detailed Description

This panel holds the text from GRASS docs.

GISBASE must be set in the environment to find the html docs dir. The SYNOPSIS section is skipped, since this Panel is supposed to be integrated into the cmdPanel and options are obvious there.

Definition at line 733 of file ghelp.py.


Constructor & Destructor Documentation

def ghelp.HelpWindow.__init__ (   self,
  parent,
  grass_command,
  text,
  skip_description,
  kwargs 
)

If grass_command is given, the corresponding HTML help file will be presented, with all links pointing to absolute paths of local files.

If 'skip_description' is True, the HTML corresponding to SYNOPSIS will be skipped, thus only presenting the help file from the DESCRIPTION section onwards.

If 'text' is given, it must be the HTML text to be presented in the Panel.

Definition at line 741 of file ghelp.py.


Member Function Documentation

def ghelp.HelpWindow.fillContentsFromFile (   self,
  htmlFile,
  skip_description = True 
)

Load content from file.

Definition at line 791 of file ghelp.py.

References ghelp.HelpWindow.fspath, ghelp.HelpWindow.loaded, and frame.PsMapBufferedWindow.SetPage().

def ghelp.HelpWindow.OnLinkClicked (   self,
  linkinfo 
)

Definition at line 781 of file ghelp.py.

References ghelp.HelpWindow.fspath, and ghelp.HelpWindow.historyIdx.


Field Documentation

Definition at line 759 of file ghelp.py.

Definition at line 760 of file ghelp.py.

Referenced by ghelp.HelpWindow.OnLinkClicked().

FIXME: calling LoadPage() is strangely time-consuming (only first call) self.LoadPage(self.fspath + grass_command + ".html")

Definition at line 758 of file ghelp.py.

Referenced by ghelp.HelpWindow.fillContentsFromFile().


The documentation for this class was generated from the following file: