--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/eric7/Documentation/Source/eric7.Plugins.PluginWizardQFileDialog.html Mon May 24 11:19:57 2021 +0200 @@ -0,0 +1,225 @@ +<!DOCTYPE html> +<html><head> +<title>eric7.Plugins.PluginWizardQFileDialog</title> +<meta charset="UTF-8"> +<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>eric7.Plugins.PluginWizardQFileDialog</h1> + +<p> +Module implementing the QFileDialog wizard 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>packageName</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="#FileDialogWizard">FileDialogWizard</a></td> +<td>Class implementing the QFileDialog wizard plugin.</td> +</tr> +</table> +<h3>Functions</h3> + +<table> +<tr><td>None</td></tr> +</table> +<hr /> +<hr /> +<a NAME="FileDialogWizard" ID="FileDialogWizard"></a> +<h2>FileDialogWizard</h2> + +<p> + Class implementing the QFileDialog wizard plugin. +</p> +<h3>Derived from</h3> +QObject +<h3>Class Attributes</h3> + +<table> +<tr><td>None</td></tr> +</table> +<h3>Class Methods</h3> + +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> + +<table> + +<tr> +<td><a href="#FileDialogWizard.__init__">FileDialogWizard</a></td> +<td>Constructor</td> +</tr> +<tr> +<td><a href="#FileDialogWizard.__callForm">__callForm</a></td> +<td>Private method to display a dialog and get the code.</td> +</tr> +<tr> +<td><a href="#FileDialogWizard.__handle">__handle</a></td> +<td>Private method to handle the wizards action.</td> +</tr> +<tr> +<td><a href="#FileDialogWizard.__handleEricFileDialog">__handleEricFileDialog</a></td> +<td>Private slot to handle the wizard EricFileDialog action.</td> +</tr> +<tr> +<td><a href="#FileDialogWizard.__handleQFileDialog">__handleQFileDialog</a></td> +<td>Private slot to handle the wizard QFileDialog action.</td> +</tr> +<tr> +<td><a href="#FileDialogWizard.__initActions">__initActions</a></td> +<td>Private method to initialize the actions.</td> +</tr> +<tr> +<td><a href="#FileDialogWizard.__initMenu">__initMenu</a></td> +<td>Private method to add the actions to the right menu.</td> +</tr> +<tr> +<td><a href="#FileDialogWizard.activate">activate</a></td> +<td>Public method to activate this plugin.</td> +</tr> +<tr> +<td><a href="#FileDialogWizard.deactivate">deactivate</a></td> +<td>Public method to deactivate this plugin.</td> +</tr> +</table> +<h3>Static Methods</h3> + +<table> +<tr><td>None</td></tr> +</table> + +<a NAME="FileDialogWizard.__init__" ID="FileDialogWizard.__init__"></a> +<h4>FileDialogWizard (Constructor)</h4> +<b>FileDialogWizard</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="FileDialogWizard.__callForm" ID="FileDialogWizard.__callForm"></a> +<h4>FileDialogWizard.__callForm</h4> +<b>__callForm</b>(<i>editor, variant</i>) + +<p> + Private method to display a dialog and get the code. +</p> +<dl> + +<dt><i>editor</i> (Editor)</dt> +<dd> +reference to the current editor +</dd> +<dt><i>variant</i> (int)</dt> +<dd> +variant of code to be generated + (-1 = EricFileDialog, 0 = unknown, 5 = PyQt5) +</dd> +</dl> +<dl> +<dt>Return:</dt> +<dd> +the generated code (string) +</dd> +</dl> +<a NAME="FileDialogWizard.__handle" ID="FileDialogWizard.__handle"></a> +<h4>FileDialogWizard.__handle</h4> +<b>__handle</b>(<i>variant</i>) + +<p> + Private method to handle the wizards action. +</p> +<dl> + +<dt><i>variant</i> (str)</dt> +<dd> +dialog variant to be generated + (EricFileDialog or QFileDialog) +</dd> +</dl> +<dl> + +<dt>Raises <b>ValueError</b>:</dt> +<dd> +raised to indicate an illegal file dialog variant +</dd> +</dl> +<a NAME="FileDialogWizard.__handleEricFileDialog" ID="FileDialogWizard.__handleEricFileDialog"></a> +<h4>FileDialogWizard.__handleEricFileDialog</h4> +<b>__handleEricFileDialog</b>(<i></i>) + +<p> + Private slot to handle the wizard EricFileDialog action. +</p> +<a NAME="FileDialogWizard.__handleQFileDialog" ID="FileDialogWizard.__handleQFileDialog"></a> +<h4>FileDialogWizard.__handleQFileDialog</h4> +<b>__handleQFileDialog</b>(<i></i>) + +<p> + Private slot to handle the wizard QFileDialog action. +</p> +<a NAME="FileDialogWizard.__initActions" ID="FileDialogWizard.__initActions"></a> +<h4>FileDialogWizard.__initActions</h4> +<b>__initActions</b>(<i></i>) + +<p> + Private method to initialize the actions. +</p> +<a NAME="FileDialogWizard.__initMenu" ID="FileDialogWizard.__initMenu"></a> +<h4>FileDialogWizard.__initMenu</h4> +<b>__initMenu</b>(<i></i>) + +<p> + Private method to add the actions to the right menu. +</p> +<a NAME="FileDialogWizard.activate" ID="FileDialogWizard.activate"></a> +<h4>FileDialogWizard.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 status (boolean) +</dd> +</dl> +<a NAME="FileDialogWizard.deactivate" ID="FileDialogWizard.deactivate"></a> +<h4>FileDialogWizard.deactivate</h4> +<b>deactivate</b>(<i></i>) + +<p> + Public method to deactivate this plugin. +</p> +<div align="right"><a href="#top">Up</a></div> +<hr /> +</body></html> \ No newline at end of file