PrintRemover/Documentation/source/Plugin_Tools_Print_Remover.PluginPrintRemover.html

Tue, 10 Dec 2024 15:49:04 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 10 Dec 2024 15:49:04 +0100
branch
eric7
changeset 70
40e98b382639
parent 60
176c0b5b7a61
permissions
-rw-r--r--

Updated copyright for 2025.

<!DOCTYPE html>
<html><head>
<title>Plugin_Tools_Print_Remover.PluginPrintRemover</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<a NAME="top" ID="top"></a>
<h1>Plugin_Tools_Print_Remover.PluginPrintRemover</h1>

<p>
Module implementing the Print Remover plug-in.
</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>printRemoverPluginObject</td></tr><tr><td>pyqtApi</td></tr><tr><td>shortDescription</td></tr><tr><td>version</td></tr>
</table>
<h3>Classes</h3>

<table>

<tr>
<td><a href="#PrintRemoverPlugin">PrintRemoverPlugin</a></td>
<td>Class implementing the Print Remover plugin.</td>
</tr>
</table>
<h3>Functions</h3>

<table>

<tr>
<td><a href="#createPrintRemoverPage">createPrintRemoverPage</a></td>
<td>Module function to create the Print Remover 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="PrintRemoverPlugin" ID="PrintRemoverPlugin"></a>
<h2>PrintRemoverPlugin</h2>

<p>
    Class implementing the Print Remover plugin.
</p>
<h3>Derived from</h3>
QObject
<h3>Class Attributes</h3>

<table>
<tr><td>PreferencesKey</td></tr>
</table>
<h3>Class Methods</h3>

<table>
<tr><td>None</td></tr>
</table>
<h3>Methods</h3>

<table>

<tr>
<td><a href="#PrintRemoverPlugin.__init__">PrintRemoverPlugin</a></td>
<td>Constructor</td>
</tr>
<tr>
<td><a href="#PrintRemoverPlugin.__editorClosed">__editorClosed</a></td>
<td>Private slot called, when an editor was closed.</td>
</tr>
<tr>
<td><a href="#PrintRemoverPlugin.__editorOpened">__editorOpened</a></td>
<td>Private slot called, when a new editor was opened.</td>
</tr>
<tr>
<td><a href="#PrintRemoverPlugin.__editorShowMenu">__editorShowMenu</a></td>
<td>Private slot called, when the the editor context menu or a submenu is about to be shown.</td>
</tr>
<tr>
<td><a href="#PrintRemoverPlugin.__initMenu">__initMenu</a></td>
<td>Private method to initialize the menu.</td>
</tr>
<tr>
<td><a href="#PrintRemoverPlugin.__loadTranslator">__loadTranslator</a></td>
<td>Private method to load the translation file.</td>
</tr>
<tr>
<td><a href="#PrintRemoverPlugin.__populateMenu">__populateMenu</a></td>
<td>Private slot to populate the tools menu with our entries.</td>
</tr>
<tr>
<td><a href="#PrintRemoverPlugin.__removeLine">__removeLine</a></td>
<td>Private slot to remove lines starting with the selected pattern.</td>
</tr>
<tr>
<td><a href="#PrintRemoverPlugin.__showMenu">__showMenu</a></td>
<td>Private slot to build the menu hierarchy.</td>
</tr>
<tr>
<td><a href="#PrintRemoverPlugin.activate">activate</a></td>
<td>Public method to activate this plugin.</td>
</tr>
<tr>
<td><a href="#PrintRemoverPlugin.deactivate">deactivate</a></td>
<td>Public method to deactivate this plugin.</td>
</tr>
<tr>
<td><a href="#PrintRemoverPlugin.getPreferences">getPreferences</a></td>
<td>Public method to retrieve the various settings.</td>
</tr>
<tr>
<td><a href="#PrintRemoverPlugin.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="PrintRemoverPlugin.__init__" ID="PrintRemoverPlugin.__init__"></a>
<h4>PrintRemoverPlugin (Constructor)</h4>
<b>PrintRemoverPlugin</b>(<i>ui</i>)

<p>
        Constructor
</p>
<dl>

<dt><i>ui</i> (UserInterface)</dt>
<dd>
reference to the user interface object
</dd>
</dl>
<a NAME="PrintRemoverPlugin.__editorClosed" ID="PrintRemoverPlugin.__editorClosed"></a>
<h4>PrintRemoverPlugin.__editorClosed</h4>
<b>__editorClosed</b>(<i>editor</i>)

<p>
        Private slot called, when an editor was closed.
</p>
<dl>

<dt><i>editor</i> (Editor)</dt>
<dd>
reference to the editor
</dd>
</dl>
<a NAME="PrintRemoverPlugin.__editorOpened" ID="PrintRemoverPlugin.__editorOpened"></a>
<h4>PrintRemoverPlugin.__editorOpened</h4>
<b>__editorOpened</b>(<i>editor</i>)

<p>
        Private slot called, when a new editor was opened.
</p>
<dl>

<dt><i>editor</i> (Editor)</dt>
<dd>
reference to the new editor
</dd>
</dl>
<a NAME="PrintRemoverPlugin.__editorShowMenu" ID="PrintRemoverPlugin.__editorShowMenu"></a>
<h4>PrintRemoverPlugin.__editorShowMenu</h4>
<b>__editorShowMenu</b>(<i>menuName, menu, editor</i>)

<p>
        Private slot called, when the the editor context menu or a submenu is
        about to be shown.
</p>
<dl>

<dt><i>menuName</i> (str)</dt>
<dd>
name of the menu to be shown
</dd>
<dt><i>menu</i> (QMenu)</dt>
<dd>
reference to the menu
</dd>
<dt><i>editor</i> (Editor)</dt>
<dd>
reference to the editor
</dd>
</dl>
<a NAME="PrintRemoverPlugin.__initMenu" ID="PrintRemoverPlugin.__initMenu"></a>
<h4>PrintRemoverPlugin.__initMenu</h4>
<b>__initMenu</b>(<i></i>)

<p>
        Private method to initialize the menu.
</p>
<a NAME="PrintRemoverPlugin.__loadTranslator" ID="PrintRemoverPlugin.__loadTranslator"></a>
<h4>PrintRemoverPlugin.__loadTranslator</h4>
<b>__loadTranslator</b>(<i></i>)

<p>
        Private method to load the translation file.
</p>
<a NAME="PrintRemoverPlugin.__populateMenu" ID="PrintRemoverPlugin.__populateMenu"></a>
<h4>PrintRemoverPlugin.__populateMenu</h4>
<b>__populateMenu</b>(<i>name, menu</i>)

<p>
        Private slot to populate the tools menu with our entries.
</p>
<dl>

<dt><i>name</i> (str)</dt>
<dd>
name of the menu
</dd>
<dt><i>menu</i> (QMenu)</dt>
<dd>
reference to the menu to be populated
</dd>
</dl>
<a NAME="PrintRemoverPlugin.__removeLine" ID="PrintRemoverPlugin.__removeLine"></a>
<h4>PrintRemoverPlugin.__removeLine</h4>
<b>__removeLine</b>(<i>act</i>)

<p>
        Private slot to remove lines starting with the selected pattern.
</p>
<dl>

<dt><i>act</i> (QAction)</dt>
<dd>
reference to the action that was triggered
</dd>
</dl>
<a NAME="PrintRemoverPlugin.__showMenu" ID="PrintRemoverPlugin.__showMenu"></a>
<h4>PrintRemoverPlugin.__showMenu</h4>
<b>__showMenu</b>(<i></i>)

<p>
        Private slot to build the menu hierarchy.
</p>
<a NAME="PrintRemoverPlugin.activate" ID="PrintRemoverPlugin.activate"></a>
<h4>PrintRemoverPlugin.activate</h4>
<b>activate</b>(<i></i>)

<p>
        Public method to activate this plugin.
</p>
<dl>
<dt>Return:</dt>
<dd>
tuple of None and activation statu
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
tuple of (None, bool)
</dd>
</dl>
<a NAME="PrintRemoverPlugin.deactivate" ID="PrintRemoverPlugin.deactivate"></a>
<h4>PrintRemoverPlugin.deactivate</h4>
<b>deactivate</b>(<i></i>)

<p>
        Public method to deactivate this plugin.
</p>
<a NAME="PrintRemoverPlugin.getPreferences" ID="PrintRemoverPlugin.getPreferences"></a>
<h4>PrintRemoverPlugin.getPreferences</h4>
<b>getPreferences</b>(<i>key</i>)

<p>
        Public method to retrieve the various settings.
</p>
<dl>

<dt><i>key</i> (str)</dt>
<dd>
the key of the value to get
</dd>
</dl>
<dl>
<dt>Return:</dt>
<dd>
value of the requested setting
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
Any
</dd>
</dl>
<a NAME="PrintRemoverPlugin.setPreferences" ID="PrintRemoverPlugin.setPreferences"></a>
<h4>PrintRemoverPlugin.setPreferences</h4>
<b>setPreferences</b>(<i>key, value</i>)

<p>
        Public method to store the various settings.
</p>
<dl>

<dt><i>key</i> (str)</dt>
<dd>
key of the setting to be set
</dd>
<dt><i>value</i> (Any)</dt>
<dd>
value to be set
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
<hr />
<a NAME="createPrintRemoverPage" ID="createPrintRemoverPage"></a>
<h2>createPrintRemoverPage</h2>
<b>createPrintRemoverPage</b>(<i>configDlg</i>)

<p>
    Module function to create the Print Remover configuration page.
</p>
<dl>

<dt><i>configDlg</i> (ConfigurationWidget)</dt>
<dd>
reference to the configuration dialog
</dd>
</dl>
<dl>
<dt>Return:</dt>
<dd>
reference to the configuration page
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
PrintRemoverPage
</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>Return:</dt>
<dd>
dictionary containing the relevant data
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
dict
</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>

eric ide

mercurial