Wed, 02 Jun 2021 17:30:01 +0200
Ported the plug-in to PyQt6 for eric7.
<!DOCTYPE html> <html><head> <title>Plugin_Wizard_DataUriEncoder.WizardDataUriEncoder.DataUriEncoderWizardDialog</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_Wizard_DataUriEncoder.WizardDataUriEncoder.DataUriEncoderWizardDialog</h1> <p> Module implementing the base64 data URI encoder wizard dialog. </p> <h3>Global Attributes</h3> <table> <tr><td>DataUriTemplates</td></tr> </table> <h3>Classes</h3> <table> <tr> <td><a href="#DataUriEncoderWizardDialog">DataUriEncoderWizardDialog</a></td> <td>Class implementing the base64 data URI encoder wizard dialog.</td> </tr> </table> <h3>Functions</h3> <table> <tr><td>None</td></tr> </table> <hr /> <hr /> <a NAME="DataUriEncoderWizardDialog" ID="DataUriEncoderWizardDialog"></a> <h2>DataUriEncoderWizardDialog</h2> <p> Class implementing the base64 data URI encoder wizard dialog. </p> <h3>Derived from</h3> QDialog, Ui_DataUriEncoderWizardDialog <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="#DataUriEncoderWizardDialog.__init__">DataUriEncoderWizardDialog</a></td> <td>Constructor</td> </tr> <tr> <td><a href="#DataUriEncoderWizardDialog.__askMime">__askMime</a></td> <td>Private method to get the mime type from the user.</td> </tr> <tr> <td><a href="#DataUriEncoderWizardDialog.getCode">getCode</a></td> <td>Public method to get the code.</td> </tr> <tr> <td><a href="#DataUriEncoderWizardDialog.on_copyButton_clicked">on_copyButton_clicked</a></td> <td>Private slot to copy the output to the clipboard.</td> </tr> <tr> <td><a href="#DataUriEncoderWizardDialog.on_embeddingComboBox_currentIndexChanged">on_embeddingComboBox_currentIndexChanged</a></td> <td>Private slot to handle the selection of an embedding method.</td> </tr> <tr> <td><a href="#DataUriEncoderWizardDialog.on_encodeButton_clicked">on_encodeButton_clicked</a></td> <td>Private slot to encode the contents of the given file.</td> </tr> <tr> <td><a href="#DataUriEncoderWizardDialog.on_filePicker_textChanged">on_filePicker_textChanged</a></td> <td>Private slot to handle the editing of the file name.</td> </tr> <tr> <td><a href="#DataUriEncoderWizardDialog.on_outputTextEdit_textChanged">on_outputTextEdit_textChanged</a></td> <td>Private slot to handle the existence of some output text.</td> </tr> </table> <h3>Static Methods</h3> <table> <tr><td>None</td></tr> </table> <a NAME="DataUriEncoderWizardDialog.__init__" ID="DataUriEncoderWizardDialog.__init__"></a> <h4>DataUriEncoderWizardDialog (Constructor)</h4> <b>DataUriEncoderWizardDialog</b>(<i>parent=None</i>) <p> Constructor </p> <dl> <dt><i>parent</i> (QWidget)</dt> <dd> reference to the parent widget </dd> </dl> <a NAME="DataUriEncoderWizardDialog.__askMime" ID="DataUriEncoderWizardDialog.__askMime"></a> <h4>DataUriEncoderWizardDialog.__askMime</h4> <b>__askMime</b>(<i></i>) <p> Private method to get the mime type from the user. </p> <dl> <dt>Return:</dt> <dd> entered mime type </dd> </dl> <dl> <dt>Return Type:</dt> <dd> str </dd> </dl> <a NAME="DataUriEncoderWizardDialog.getCode" ID="DataUriEncoderWizardDialog.getCode"></a> <h4>DataUriEncoderWizardDialog.getCode</h4> <b>getCode</b>(<i></i>) <p> Public method to get the code. </p> <dl> <dt>Return:</dt> <dd> generated code </dd> </dl> <dl> <dt>Return Type:</dt> <dd> str </dd> </dl> <a NAME="DataUriEncoderWizardDialog.on_copyButton_clicked" ID="DataUriEncoderWizardDialog.on_copyButton_clicked"></a> <h4>DataUriEncoderWizardDialog.on_copyButton_clicked</h4> <b>on_copyButton_clicked</b>(<i></i>) <p> Private slot to copy the output to the clipboard. </p> <a NAME="DataUriEncoderWizardDialog.on_embeddingComboBox_currentIndexChanged" ID="DataUriEncoderWizardDialog.on_embeddingComboBox_currentIndexChanged"></a> <h4>DataUriEncoderWizardDialog.on_embeddingComboBox_currentIndexChanged</h4> <b>on_embeddingComboBox_currentIndexChanged</b>(<i>index</i>) <p> Private slot to handle the selection of an embedding method. </p> <dl> <dt><i>index</i> (int)</dt> <dd> index of the selected entry </dd> </dl> <a NAME="DataUriEncoderWizardDialog.on_encodeButton_clicked" ID="DataUriEncoderWizardDialog.on_encodeButton_clicked"></a> <h4>DataUriEncoderWizardDialog.on_encodeButton_clicked</h4> <b>on_encodeButton_clicked</b>(<i></i>) <p> Private slot to encode the contents of the given file. </p> <a NAME="DataUriEncoderWizardDialog.on_filePicker_textChanged" ID="DataUriEncoderWizardDialog.on_filePicker_textChanged"></a> <h4>DataUriEncoderWizardDialog.on_filePicker_textChanged</h4> <b>on_filePicker_textChanged</b>(<i>txt</i>) <p> Private slot to handle the editing of the file name. </p> <dl> <dt><i>txt</i> (str)</dt> <dd> current file name </dd> </dl> <a NAME="DataUriEncoderWizardDialog.on_outputTextEdit_textChanged" ID="DataUriEncoderWizardDialog.on_outputTextEdit_textChanged"></a> <h4>DataUriEncoderWizardDialog.on_outputTextEdit_textChanged</h4> <b>on_outputTextEdit_textChanged</b>(<i></i>) <p> Private slot to handle the existence of some output text. </p> <div align="right"><a href="#top">Up</a></div> <hr /> </body></html>