Documentation/Source/eric5.DocumentationTools.QtHelpGenerator.html

Sat, 15 May 2010 15:29:39 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 15 May 2010 15:29:39 +0200
changeset 253
3ccdf551bde7
parent 103
59137afca666
child 409
0ea528e80202
permissions
-rw-r--r--

Changed code to improve development on multiple platforms.

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'
'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
<html><head>
<title>eric5.DocumentationTools.QtHelpGenerator</title>
<style>
body {
    background:white;
    margin: 0em 1em 10em 1em;
    color: black;
}

h1 { color: white; background: #4FA4FF; }
h2 { color: white; background: #4FA4FF; }
h3 { color: white; background: #00557F; }
h4 { color: white; background: #00557F; }
    
a { color: #AA5500; }

</style>
</head>
<body><a NAME="top" ID="top"></a>
<h1>eric5.DocumentationTools.QtHelpGenerator</h1>
<p>
Module implementing the QtHelp generator for the builtin documentation generator.
</p>
<h3>Global Attributes</h3>
<table>
<tr><td>HelpCollection</td></tr><tr><td>HelpCollectionFile</td></tr><tr><td>HelpCollectionProjectFile</td></tr><tr><td>HelpHelpFile</td></tr><tr><td>HelpProject</td></tr><tr><td>HelpProjectFile</td></tr>
</table>
<h3>Classes</h3>
<table>
<tr>
<td><a href="#QtHelpGenerator">QtHelpGenerator</a></td>
<td>Class implementing the QtHelp generator for the builtin documentation generator.</td>
</tr>
</table>
<h3>Functions</h3>
<table>
<tr><td>None</td></tr>
</table>
<hr /><hr />
<a NAME="QtHelpGenerator" ID="QtHelpGenerator"></a>
<h2>QtHelpGenerator</h2>
<p>
    Class implementing the QtHelp generator for the builtin documentation generator.
</p>
<h3>Derived from</h3>
object
<h3>Class Attributes</h3>
<table>
<tr><td>None</td></tr>
</table>
<h3>Methods</h3>
<table>
<tr>
<td><a href="#QtHelpGenerator.__init__">QtHelpGenerator</a></td>
<td>Constructor</td>
</tr><tr>
<td><a href="#QtHelpGenerator.__convertEol">__convertEol</a></td>
<td>Private method to convert the newline characters.</td>
</tr><tr>
<td><a href="#QtHelpGenerator.__generateSections">__generateSections</a></td>
<td>Private method to generate the sections part.</td>
</tr><tr>
<td><a href="#QtHelpGenerator.generateFiles">generateFiles</a></td>
<td>Public method to generate all index files.</td>
</tr><tr>
<td><a href="#QtHelpGenerator.remember">remember</a></td>
<td>Public method to remember a documentation file.</td>
</tr>
</table>
<a NAME="QtHelpGenerator.__init__" ID="QtHelpGenerator.__init__"></a>
<h4>QtHelpGenerator (Constructor)</h4>
<b>QtHelpGenerator</b>(<i>htmlDir, outputDir, namespace, virtualFolder, filterName, filterAttributes, title, createCollection</i>)
<p>
        Constructor
</p><dl>
<dt><i>htmlDir</i></dt>
<dd>
directory containing the HTML files (string)
</dd><dt><i>outputDir</i></dt>
<dd>
output directory for the files (string)
</dd><dt><i>namespace</i></dt>
<dd>
namespace to be used (string)
</dd><dt><i>virtualFolder</i></dt>
<dd>
virtual folder to be used (string)
</dd><dt><i>filterName</i></dt>
<dd>
name of the custom filter (string)
</dd><dt><i>filterAttributes</i></dt>
<dd>
':' separated list of filter attributes (string)
</dd><dt><i>title</i></dt>
<dd>
title to be used for the generated help (string)
</dd><dt><i>createCollection</i></dt>
<dd>
flag indicating the generation of the collection
            files (boolean)
</dd>
</dl><a NAME="QtHelpGenerator.__convertEol" ID="QtHelpGenerator.__convertEol"></a>
<h4>QtHelpGenerator.__convertEol</h4>
<b>__convertEol</b>(<i>txt, newline</i>)
<p>
        Private method to convert the newline characters.
</p><dl>
<dt><i>txt</i></dt>
<dd>
text to be converted (string)
</dd><dt><i>newline</i></dt>
<dd>
newline character to be used (string)
</dd>
</dl><dl>
<dt>Returns:</dt>
<dd>
converted text (string)
</dd>
</dl><a NAME="QtHelpGenerator.__generateSections" ID="QtHelpGenerator.__generateSections"></a>
<h4>QtHelpGenerator.__generateSections</h4>
<b>__generateSections</b>(<i>package, level</i>)
<p>
        Private method to generate the sections part.
</p><dl>
<dt><i>package</i></dt>
<dd>
name of the package to process (string)
</dd><dt><i>level</i></dt>
<dd>
indentation level (integer)
</dd>
</dl><dl>
<dt>Returns:</dt>
<dd>
sections part (string)
</dd>
</dl><a NAME="QtHelpGenerator.generateFiles" ID="QtHelpGenerator.generateFiles"></a>
<h4>QtHelpGenerator.generateFiles</h4>
<b>generateFiles</b>(<i>basename = "", newline = None</i>)
<p>
        Public method to generate all index files.
</p><dl>
<dt><i>basename</i></dt>
<dd>
The basename of the file hierarchy to be documented.
            The basename is stripped off the filename if it starts with
            the basename.
</dd><dt><i>newline</i></dt>
<dd>
newline character to be used (string)
</dd>
</dl><a NAME="QtHelpGenerator.remember" ID="QtHelpGenerator.remember"></a>
<h4>QtHelpGenerator.remember</h4>
<b>remember</b>(<i>file, moduleDocument, basename=""</i>)
<p>
        Public method to remember a documentation file.
</p><dl>
<dt><i>file</i></dt>
<dd>
The filename to be remembered. (string)
</dd><dt><i>moduleDocument</i></dt>
<dd>
The ModuleDocument object containing the
            information for the file.
</dd><dt><i>basename</i></dt>
<dd>
The basename of the file hierarchy to be documented.
            The basename is stripped off the filename if it starts with
            the basename.
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
</body></html>

eric ide

mercurial