Tue, 01 Jun 2021 19:37:46 +0200
Ported the plug-in to PyQt6 for eric7.
(But it needs rework for recent Pyramid version.)
<!DOCTYPE html> <html><head> <title>Plugin_Project_Pyramid.ProjectPyramid.CreateParametersDialog</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>Plugin_Project_Pyramid.ProjectPyramid.CreateParametersDialog</h1> <p> Module implementing a dialog for entering the create parameters. </p> <h3>Global Attributes</h3> <table> <tr><td>None</td></tr> </table> <h3>Classes</h3> <table> <tr> <td><a href="#CreateParametersDialog">CreateParametersDialog</a></td> <td>Class implementing a dialog for entering the create parameters.</td> </tr> </table> <h3>Functions</h3> <table> <tr><td>None</td></tr> </table> <hr /> <hr /> <a NAME="CreateParametersDialog" ID="CreateParametersDialog"></a> <h2>CreateParametersDialog</h2> <p> Class implementing a dialog for entering the create parameters. </p> <h3>Derived from</h3> QDialog, Ui_CreateParametersDialog <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="#CreateParametersDialog.__init__">CreateParametersDialog</a></td> <td>Constructor</td> </tr> <tr> <td><a href="#CreateParametersDialog.__prepareScaffoldString">__prepareScaffoldString</a></td> <td>Private method to prepare a scaffold string for the combo box.</td> </tr> <tr> <td><a href="#CreateParametersDialog.__updateUi">__updateUi</a></td> <td>Private slot to update the dialog.</td> </tr> <tr> <td><a href="#CreateParametersDialog.getData">getData</a></td> <td>Public method to get the data.</td> </tr> <tr> <td><a href="#CreateParametersDialog.on_nameEdit_textChanged">on_nameEdit_textChanged</a></td> <td>Private slot to handle changes of the site name.</td> </tr> <tr> <td><a href="#CreateParametersDialog.on_scaffoldCombo_currentTextChanged">on_scaffoldCombo_currentTextChanged</a></td> <td>Private slot to handle changes of the selected scaffold.</td> </tr> </table> <h3>Static Methods</h3> <table> <tr><td>None</td></tr> </table> <a NAME="CreateParametersDialog.__init__" ID="CreateParametersDialog.__init__"></a> <h4>CreateParametersDialog (Constructor)</h4> <b>CreateParametersDialog</b>(<i>project, parent=None</i>) <p> Constructor </p> <dl> <dt><i>project</i> (Project)</dt> <dd> reference to the project object </dd> <dt><i>parent</i> (QWidget)</dt> <dd> reference to the parent widget </dd> </dl> <a NAME="CreateParametersDialog.__prepareScaffoldString" ID="CreateParametersDialog.__prepareScaffoldString"></a> <h4>CreateParametersDialog.__prepareScaffoldString</h4> <b>__prepareScaffoldString</b>(<i>line</i>) <p> Private method to prepare a scaffold string for the combo box. </p> <dl> <dt><i>line</i> (str)</dt> <dd> output line containing the scaffold name and some explanatory text </dd> </dl> <dl> <dt>Return:</dt> <dd> prepared scaffold text </dd> </dl> <dl> <dt>Return Type:</dt> <dd> str </dd> </dl> <a NAME="CreateParametersDialog.__updateUi" ID="CreateParametersDialog.__updateUi"></a> <h4>CreateParametersDialog.__updateUi</h4> <b>__updateUi</b>(<i></i>) <p> Private slot to update the dialog. </p> <a NAME="CreateParametersDialog.getData" ID="CreateParametersDialog.getData"></a> <h4>CreateParametersDialog.getData</h4> <b>getData</b>(<i></i>) <p> Public method to get the data. </p> <dl> <dt>Return:</dt> <dd> tuple giving the scaffold, the project name, a flag indicating to overwrite existing files and a flag indicating to simulate the creation </dd> </dl> <dl> <dt>Return Type:</dt> <dd> tuple of (str, str, bool, bool) </dd> </dl> <a NAME="CreateParametersDialog.on_nameEdit_textChanged" ID="CreateParametersDialog.on_nameEdit_textChanged"></a> <h4>CreateParametersDialog.on_nameEdit_textChanged</h4> <b>on_nameEdit_textChanged</b>(<i>text</i>) <p> Private slot to handle changes of the site name. </p> <dl> <dt><i>text</i> (str)</dt> <dd> text of the site entry </dd> </dl> <a NAME="CreateParametersDialog.on_scaffoldCombo_currentTextChanged" ID="CreateParametersDialog.on_scaffoldCombo_currentTextChanged"></a> <h4>CreateParametersDialog.on_scaffoldCombo_currentTextChanged</h4> <b>on_scaffoldCombo_currentTextChanged</b>(<i>text</i>) <p> Private slot to handle changes of the selected scaffold. </p> <dl> <dt><i>text</i> (str)</dt> <dd> text of the combo box </dd> </dl> <div align="right"><a href="#top">Up</a></div> <hr /> </body></html>