diff -r e3cb581b4653 -r db83e46b35da ProjectPyramid/Documentation/source/Plugin_Project_Pyramid.PluginProjectPyramid.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ProjectPyramid/Documentation/source/Plugin_Project_Pyramid.PluginProjectPyramid.html Thu Aug 30 14:27:35 2012 +0200 @@ -0,0 +1,306 @@ +<?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>Plugin_Project_Pyramid.PluginProjectPyramid</title> +<style> +body { + background: #EDECE6; + margin: 0em 1em 10em 1em; + color: black; +} + +h1 { color: white; background: #85774A; } +h2 { color: white; background: #85774A; } +h3 { color: white; background: #9D936E; } +h4 { color: white; background: #9D936E; } + +a { color: #BA6D36; } + +</style> +</head> +<body><a NAME="top" ID="top"></a> +<h1>Plugin_Project_Pyramid.PluginProjectPyramid</h1> +<p> +Module implementing the Pyramid project plugin. +</p> +<h3>Global Attributes</h3> +<table> +<tr><td>author</td></tr><tr><td>autoactivate</td></tr><tr><td>className</td></tr><tr><td>deactivateable</td></tr><tr><td>error</td></tr><tr><td>longDescription</td></tr><tr><td>name</td></tr><tr><td>needsRestart</td></tr><tr><td>packageName</td></tr><tr><td>pyqtApi</td></tr><tr><td>pyramidPluginObject</td></tr><tr><td>shortDescription</td></tr><tr><td>version</td></tr> +</table> +<h3>Classes</h3> +<table> +<tr> +<td><a href="#ProjectPyramidPlugin">ProjectPyramidPlugin</a></td> +<td>Class implementing the Pyramid project plugin.</td> +</tr> +</table> +<h3>Functions</h3> +<table> +<tr> +<td><a href="#apiFiles">apiFiles</a></td> +<td>Module function to return the API files made available by this plugin.</td> +</tr><tr> +<td><a href="#createPyramidPage">createPyramidPage</a></td> +<td>Module function to create the Pyramid configuration page.</td> +</tr><tr> +<td><a href="#getConfigData">getConfigData</a></td> +<td>Module function returning data as required by the configuration dialog.</td> +</tr><tr> +<td><a href="#prepareUninstall">prepareUninstall</a></td> +<td>Module function to prepare for an uninstallation.</td> +</tr> +</table> +<hr /><hr /> +<a NAME="ProjectPyramidPlugin" ID="ProjectPyramidPlugin"></a> +<h2>ProjectPyramidPlugin</h2> +<p> + Class implementing the Pyramid project plugin. +</p> +<h3>Derived from</h3> +QObject +<h3>Class Attributes</h3> +<table> +<tr><td>lexerAssociations</td></tr> +</table> +<h3>Class Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr> +<td><a href="#ProjectPyramidPlugin.__init__">ProjectPyramidPlugin</a></td> +<td>Constructor</td> +</tr><tr> +<td><a href="#ProjectPyramidPlugin.__checkVersions">__checkVersions</a></td> +<td>Private function to check that the eric5 version is ok.</td> +</tr><tr> +<td><a href="#ProjectPyramidPlugin.__initialize">__initialize</a></td> +<td>Private slot to (re)initialize the plugin.</td> +</tr><tr> +<td><a href="#ProjectPyramidPlugin.__loadTranslator">__loadTranslator</a></td> +<td>Private method to load the translation file.</td> +</tr><tr> +<td><a href="#ProjectPyramidPlugin.__projectClosed">__projectClosed</a></td> +<td>Private slot to handle the projectClosed signal.</td> +</tr><tr> +<td><a href="#ProjectPyramidPlugin.__projectOpened">__projectOpened</a></td> +<td>Private slot to handle the projectOpened signal.</td> +</tr><tr> +<td><a href="#ProjectPyramidPlugin.activate">activate</a></td> +<td>Public method to activate this plugin.</td> +</tr><tr> +<td><a href="#ProjectPyramidPlugin.binaryTranslationsCallback">binaryTranslationsCallback</a></td> +<td>Public method to determine the filename of a compiled translation file given the translation source file.</td> +</tr><tr> +<td><a href="#ProjectPyramidPlugin.deactivate">deactivate</a></td> +<td>Public method to deactivate this plugin.</td> +</tr><tr> +<td><a href="#ProjectPyramidPlugin.fileTypesCallback">fileTypesCallback</a></td> +<td>Public method get the filetype associations of the Pyramid project type.</td> +</tr><tr> +<td><a href="#ProjectPyramidPlugin.getPreferences">getPreferences</a></td> +<td>Public method to retrieve the various settings.</td> +</tr><tr> +<td><a href="#ProjectPyramidPlugin.lexerAssociationCallback">lexerAssociationCallback</a></td> +<td>Public method to get the lexer association of the Pyramid project type for a file.</td> +</tr><tr> +<td><a href="#ProjectPyramidPlugin.prepareUninstall">prepareUninstall</a></td> +<td>Public method to prepare for an uninstallation.</td> +</tr><tr> +<td><a href="#ProjectPyramidPlugin.setPreferences">setPreferences</a></td> +<td>Public method to store the various settings.</td> +</tr> +</table> +<h3>Static Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<a NAME="ProjectPyramidPlugin.__init__" ID="ProjectPyramidPlugin.__init__"></a> +<h4>ProjectPyramidPlugin (Constructor)</h4> +<b>ProjectPyramidPlugin</b>(<i>ui</i>) +<p> + Constructor +</p><dl> +<dt><i>ui</i></dt> +<dd> +reference to the user interface object (UI.UserInterface) +</dd> +</dl><a NAME="ProjectPyramidPlugin.__checkVersions" ID="ProjectPyramidPlugin.__checkVersions"></a> +<h4>ProjectPyramidPlugin.__checkVersions</h4> +<b>__checkVersions</b>(<i></i>) +<p> + Private function to check that the eric5 version is ok. +</p><dl> +<dt>Returns:</dt> +<dd> +flag indicating version is ok (boolean) +</dd> +</dl><a NAME="ProjectPyramidPlugin.__initialize" ID="ProjectPyramidPlugin.__initialize"></a> +<h4>ProjectPyramidPlugin.__initialize</h4> +<b>__initialize</b>(<i></i>) +<p> + Private slot to (re)initialize the plugin. +</p><a NAME="ProjectPyramidPlugin.__loadTranslator" ID="ProjectPyramidPlugin.__loadTranslator"></a> +<h4>ProjectPyramidPlugin.__loadTranslator</h4> +<b>__loadTranslator</b>(<i></i>) +<p> + Private method to load the translation file. +</p><a NAME="ProjectPyramidPlugin.__projectClosed" ID="ProjectPyramidPlugin.__projectClosed"></a> +<h4>ProjectPyramidPlugin.__projectClosed</h4> +<b>__projectClosed</b>(<i></i>) +<p> + Private slot to handle the projectClosed signal. +</p><a NAME="ProjectPyramidPlugin.__projectOpened" ID="ProjectPyramidPlugin.__projectOpened"></a> +<h4>ProjectPyramidPlugin.__projectOpened</h4> +<b>__projectOpened</b>(<i></i>) +<p> + Private slot to handle the projectOpened signal. +</p><a NAME="ProjectPyramidPlugin.activate" ID="ProjectPyramidPlugin.activate"></a> +<h4>ProjectPyramidPlugin.activate</h4> +<b>activate</b>(<i></i>) +<p> + Public method to activate this plugin. +</p><dl> +<dt>Returns:</dt> +<dd> +tuple of None and activation status (boolean) +</dd> +</dl><a NAME="ProjectPyramidPlugin.binaryTranslationsCallback" ID="ProjectPyramidPlugin.binaryTranslationsCallback"></a> +<h4>ProjectPyramidPlugin.binaryTranslationsCallback</h4> +<b>binaryTranslationsCallback</b>(<i>filename</i>) +<p> + Public method to determine the filename of a compiled translation file + given the translation source file. +</p><dl> +<dt><i>filename</i></dt> +<dd> +name of the translation source file (string) +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +name of the binary translation file (string) +</dd> +</dl><a NAME="ProjectPyramidPlugin.deactivate" ID="ProjectPyramidPlugin.deactivate"></a> +<h4>ProjectPyramidPlugin.deactivate</h4> +<b>deactivate</b>(<i></i>) +<p> + Public method to deactivate this plugin. +</p><a NAME="ProjectPyramidPlugin.fileTypesCallback" ID="ProjectPyramidPlugin.fileTypesCallback"></a> +<h4>ProjectPyramidPlugin.fileTypesCallback</h4> +<b>fileTypesCallback</b>(<i></i>) +<p> + Public method get the filetype associations of the Pyramid project type. +</p><dl> +<dt>Returns:</dt> +<dd> +dictionary with file type associations +</dd> +</dl><a NAME="ProjectPyramidPlugin.getPreferences" ID="ProjectPyramidPlugin.getPreferences"></a> +<h4>ProjectPyramidPlugin.getPreferences</h4> +<b>getPreferences</b>(<i>key</i>) +<p> + Public method to retrieve the various settings. +</p><dl> +<dt><i>key</i></dt> +<dd> +the key of the value to get +</dd><dt><i>prefClass</i></dt> +<dd> +preferences class used as the storage area +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +the requested setting +</dd> +</dl><a NAME="ProjectPyramidPlugin.lexerAssociationCallback" ID="ProjectPyramidPlugin.lexerAssociationCallback"></a> +<h4>ProjectPyramidPlugin.lexerAssociationCallback</h4> +<b>lexerAssociationCallback</b>(<i>filename</i>) +<p> + Public method to get the lexer association of the Pyramid project type for + a file. +</p><dl> +<dt><i>filename</i></dt> +<dd> +name of the file (string) +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +name of the lexer (string) (Pygments lexers are prefixed with 'Pygments|') +</dd> +</dl><a NAME="ProjectPyramidPlugin.prepareUninstall" ID="ProjectPyramidPlugin.prepareUninstall"></a> +<h4>ProjectPyramidPlugin.prepareUninstall</h4> +<b>prepareUninstall</b>(<i></i>) +<p> + Public method to prepare for an uninstallation. +</p><a NAME="ProjectPyramidPlugin.setPreferences" ID="ProjectPyramidPlugin.setPreferences"></a> +<h4>ProjectPyramidPlugin.setPreferences</h4> +<b>setPreferences</b>(<i>key, value</i>) +<p> + Public method to store the various settings. +</p><dl> +<dt><i>key</i></dt> +<dd> +the key of the setting to be set (string) +</dd><dt><i>value</i></dt> +<dd> +the value to be set +</dd><dt><i>prefClass</i></dt> +<dd> +preferences class used as the storage area +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="apiFiles" ID="apiFiles"></a> +<h2>apiFiles</h2> +<b>apiFiles</b>(<i>language</i>) +<p> + Module function to return the API files made available by this plugin. +</p><dl> +<dt>Returns:</dt> +<dd> +list of API filenames (list of string) +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="createPyramidPage" ID="createPyramidPage"></a> +<h2>createPyramidPage</h2> +<b>createPyramidPage</b>(<i>configDlg</i>) +<p> + Module function to create the Pyramid configuration page. +</p><dl> +<dt>Returns:</dt> +<dd> +reference to the configuration page +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="getConfigData" ID="getConfigData"></a> +<h2>getConfigData</h2> +<b>getConfigData</b>(<i></i>) +<p> + Module function returning data as required by the configuration dialog. +</p><dl> +<dt>Returns:</dt> +<dd> +dictionary containing the relevant data +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="prepareUninstall" ID="prepareUninstall"></a> +<h2>prepareUninstall</h2> +<b>prepareUninstall</b>(<i></i>) +<p> + Module function to prepare for an uninstallation. +</p> +<div align="right"><a href="#top">Up</a></div> +<hr /> +</body></html> \ No newline at end of file