Tornado API Reference : GUI Tcl Library (UNIX)

windHelpLib [unix]

NAME

windHelpLib [unix] - Tornado help Tcl library

TCL PROCEDURES

windHelpInit - initialises the help data base
windHelpDisplay - displays specified link in a web browser
windHelpDocDirGet - gets the current doc directory
windHelpDocDirSet - sets the current doc directory
windHelpEntryLookup - gets the entry number in entry names list
windHelpIndexGet - gets the current complete help index
windHelpLinkGet - gets the helpTopic hyper link
windHelpListGet - gets the list of help entries

DESCRIPTION

This library contains all the Wind River Systems help related procedures. Those procedures allow to easily access to the Wind River Systems HTML reference help

RESOURCE FILES

fileLib.tcl htmlLib.tcl

FILES

docDir/INDEX.WRS
This is the raw text file containing the whole WRS help data base. Its location is docDir. See windHelpDocDirGet for more details.

docDir/TREE.WRS
This file is a raw text file that contains a description of the WRS help tree as given to a controlValuesSet function. See windHelpDocDirGet for more informations on docDir

SEE ALSO

windHelpLib


GUI Tcl Library (UNIX) : Tcl Procedures

windHelpInit

NAME

windHelpInit - initialises the help data base

SYNOPSIS

windHelpInit [inDir]

DESCRIPTION

This routine populates the help data base list with entries got from the LIB and RTN files from the inDir directory.

inDir default value is set to windHelpDocDirGet. If inDir is specified, a windHelpDocDirSet is proceeded with path argument set to inDir. Thus, all new calls to windHelpLib procedures will refer to that directory for doc directory

PARAMETERS

inDir - docs subdirectory to look LIB and RTN files in

RETURNS

N/A

ERRORS

N/A

SEE ALSO

windHelpLib


GUI Tcl Library (UNIX) : Tcl Procedures

windHelpDisplay

NAME

windHelpDisplay - displays specified link in a web browser

SYNOPSIS

windHelpDisplay helpLink [-usetarget | -notarget]

DESCRIPTION

This routine displays in a navigator the specified helpLink.

The default value for option is set to -usetarget

PARAMETERS

helpLink - the link to the file to display in the browser
option - either -usetarget or -notarget for calling targetted URL or not

KNOWN PROBLEMS

When htmlBrowser is iexplore 3.0 or less, calling for an URL that contains a target (URLName#targetName) fails. The iexplore 3.0 doesn't support call of targeted URL. As far as it is the only browser (Netscape Navigator, Netscape Communicator and iexplore 4.0 do support targetted URL calls), it is the users responsibility to get rid of the target by using the -noanchor option if he uses iexplore 3.0 (or any other browser that doesn't support targetted URL calls)

RETURNS

The execution status. First member of returned list is OK or ERROR. On ERROR, the remaining members of list are the error messages.

ERRORS

N/A

SEE ALSO

windHelpLib


GUI Tcl Library (UNIX) : Tcl Procedures

windHelpDocDirGet

NAME

windHelpDocDirGet - gets the current doc directory

SYNOPSIS

windHelpDocDirGet

DESCRIPTION

This procedure returns the path to the currently used doc directory. This directory must be set through windHelpInit, or through windHelpDocDirSet

Its default value is set to wtxPath/docs

PARAMETERS

N/A

ERRORS

N/A

SEE ALSO

windHelpLib, wtxPath


GUI Tcl Library (UNIX) : Tcl Procedures

windHelpDocDirSet

NAME

windHelpDocDirSet - sets the current doc directory

SYNOPSIS

windHelpDocDirSet path

DESCRIPTION

This procedure sets the path to the doc directory to be used. After that setting, all the help entries reachable through windHelpListGet or through windHelpLinkGet procedures, will be those visible from the path directory.

If operation failed (see ERRORS), then the docDirectory keeps its original value.

PARAMETERS

path - the path to set the doc directory

RETURNS

a list which first element is OK or ERROR. On ERROR, the remaining elements of list ar the error codes.

ERRORS

on error, the first element of the returned list is ERROR, next elements are error codes. The following error codes may happen :

PATH_IS_NOT_DIR
the specified path is not a directory

PATH_IS_NOT_READABLE
the specified path is not a readable directory

PATH_DOESNT_EXIST
the specified path does not exist

SEE ALSO

windHelpLib


GUI Tcl Library (UNIX) : Tcl Procedures

windHelpEntryLookup

NAME

windHelpEntryLookup - gets the entry number in entry names list

SYNOPSIS

windHelpEntryLookup rule entryPattern entryNameList

DESCRIPTION

This procedure looks up for the help entry value, and selects the closer help topic index (alphabeticaly speaking).

rule should be set to either -exact or to -regexp.

If set to -exact, then the entryPattern must be the exact match in entryNameList

If set to -regexp, lookup is done through a regexp that begins with the given entryPattern, and then, any other character. The first occurrence is then returned.

PARAMETERS

rule - the rule to lookup for entryPattern pattern
entryPattern - the help pattern to look for in entryNameList
entryNameList - list of entry names in which to look for entryPattern

RETURNS

the index of the designed entry.

ERRORS

N/A

SEE ALSO

windHelpLib


GUI Tcl Library (UNIX) : Tcl Procedures

windHelpIndexGet

NAME

windHelpIndexGet - gets the current complete help index

SYNOPSIS

windHelpIndexGet [inDir]

DESCRIPTION

This procedure just reads the inDir/INDEX.WRS file in order to have a quick and complete access to the WRS reference help index.

The returned list is a list of help entries with the following format :
  { {entryName} {shortDescription} {entryLink} {bookName} {chapterName} 
    {category} }

entryName
This is the name of the help entry.
shortDescription
The help entry short description. Some few words to describe the entry and its use.
entryLink
The help entry html link. This value can directly be used through a call to windHelpDisplay.
bookName
The book name the help entry belongs to.
chapterName
The chapter name the help entry belongs to.
category
This parameter is to differenciate several help entries that could have the same name (for example, sysLib for several BSPs)

FILES

inDir/INDEX.WRS : this file is generated when the windHelpIndexGet procedure is called and doesn't find the INDEX.WRS file.

PARAMETERS

inDir - the directory where to read / write the INDEX.WRS file

RETURNS

the list of available help entries or {} if INDEX.WRS is not readable

ERRORS

N/A

SEE ALSO

windHelpLib


GUI Tcl Library (UNIX) : Tcl Procedures

windHelpLinkGet

NAME

windHelpLinkGet - gets the helpTopic hyper link

SYNOPSIS

windHelpLinkGet rule helpTopic [keyWords]

DESCRIPTION

According to the rule parameter, this routine gets the list of hyperlinks the helpTopic refers to.

If rule is set to -name, the result should be empty or unique. If set to -desc, it returns all the hyperlinks that have descriptions matching helpTopic

PARAMETERS

rule - retreiving rule
helpTopic - the help topic to look for
keyword - a pipe separated list of kewords to look for in order to make the # help research more precise.

RETURNS

The list of links or {} if no links found

ERRORS

N/A

SEE ALSO

windHelpLib


GUI Tcl Library (UNIX) : Tcl Procedures

windHelpListGet

NAME

windHelpListGet - gets the list of help entries

SYNOPSIS

windHelpListGet [type]

DESCRIPTION

This routine returns the list of help entries according to the type parameter. This allow to get a list of the entries name / link / desc or all of them. If type is set to all, then a list of help entries is returned. Those help entries are made of : name, description, extracted link, book name, chapter name and category name. Default type is set to all.

PARAMETERS

type - the returned help entry type [desc link name all]

RETURNS

The list of asked type(s) or {} if none

ERRORS

N/A

SEE ALSO

windHelpLib