Tue, 24 Oct 2017 19:09:09 +0200
Changed the logic of the two web browsers in order to put new downloads at the top of the list of downloads and add the download date and time to the shown info.
<!DOCTYPE html> <html><head> <title>eric6.WebBrowser.QtHelp.QtHelpDocumentationSelectionDialog</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>eric6.WebBrowser.QtHelp.QtHelpDocumentationSelectionDialog</h1> <p> Module implementing a dialog to select QtHelp documentation sets to be installed. </p> <h3>Global Attributes</h3> <table> <tr><td>None</td></tr> </table> <h3>Classes</h3> <table> <tr> <td><a href="#QtHelpDocumentationSelectionDialog">QtHelpDocumentationSelectionDialog</a></td> <td>Class implementing a dialog to select QtHelp documentation sets to be installed.</td> </tr> </table> <h3>Functions</h3> <table> <tr><td>None</td></tr> </table> <hr /><hr /> <a NAME="QtHelpDocumentationSelectionDialog" ID="QtHelpDocumentationSelectionDialog"></a> <h2>QtHelpDocumentationSelectionDialog</h2> <p> Class implementing a dialog to select QtHelp documentation sets to be installed. </p> <h3>Derived from</h3> QDialog, Ui_QtHelpDocumentationSelectionDialog <h3>Class Attributes</h3> <table> <tr><td>AddMode</td></tr><tr><td>ManageMode</td></tr> </table> <h3>Class Methods</h3> <table> <tr><td>None</td></tr> </table> <h3>Methods</h3> <table> <tr> <td><a href="#QtHelpDocumentationSelectionDialog.__init__">QtHelpDocumentationSelectionDialog</a></td> <td>Constructor</td> </tr><tr> <td><a href="#QtHelpDocumentationSelectionDialog.__deleteCategory">__deleteCategory</a></td> <td>Private method to delete a category.</td> </tr><tr> <td><a href="#QtHelpDocumentationSelectionDialog.getData">getData</a></td> <td>Public method to retrieve the selected help documents.</td> </tr><tr> <td><a href="#QtHelpDocumentationSelectionDialog.on_deleteAllButton_clicked">on_deleteAllButton_clicked</a></td> <td>Private slot to delete all documentation sets.</td> </tr><tr> <td><a href="#QtHelpDocumentationSelectionDialog.on_deleteButton_clicked">on_deleteButton_clicked</a></td> <td>Private slot to delete the selected documentation sets.</td> </tr><tr> <td><a href="#QtHelpDocumentationSelectionDialog.on_deleteCategoryButton_clicked">on_deleteCategoryButton_clicked</a></td> <td>Private slot to delete the selected documentation set categories.</td> </tr><tr> <td><a href="#QtHelpDocumentationSelectionDialog.on_documentationList_itemSelectionChanged">on_documentationList_itemSelectionChanged</a></td> <td>Private slot handling the selection of items.</td> </tr> </table> <h3>Static Methods</h3> <table> <tr><td>None</td></tr> </table> <a NAME="QtHelpDocumentationSelectionDialog.__init__" ID="QtHelpDocumentationSelectionDialog.__init__"></a> <h4>QtHelpDocumentationSelectionDialog (Constructor)</h4> <b>QtHelpDocumentationSelectionDialog</b>(<i>helpDocuments, mode, parent=None</i>) <p> Constructor </p><dl> <dt><i>helpDocuments</i> (dict of lists of str)</dt> <dd> dictionary containing the lists of help documents to be shown </dd><dt><i>mode</i> (str)</dt> <dd> mode of the dialog </dd><dt><i>parent</i> (QWidget)</dt> <dd> reference to the parent widget </dd> </dl><a NAME="QtHelpDocumentationSelectionDialog.__deleteCategory" ID="QtHelpDocumentationSelectionDialog.__deleteCategory"></a> <h4>QtHelpDocumentationSelectionDialog.__deleteCategory</h4> <b>__deleteCategory</b>(<i>category</i>) <p> Private method to delete a category. </p><dl> <dt><i>category</i> (QTreeWidgetItem)</dt> <dd> reference to the category item </dd> </dl><a NAME="QtHelpDocumentationSelectionDialog.getData" ID="QtHelpDocumentationSelectionDialog.getData"></a> <h4>QtHelpDocumentationSelectionDialog.getData</h4> <b>getData</b>(<i></i>) <p> Public method to retrieve the selected help documents. </p><dl> <dt>Returns:</dt> <dd> list of QtHelp documentation sets to be installed </dd> </dl><dl> <dt>Return Type:</dt> <dd> list of str </dd> </dl><a NAME="QtHelpDocumentationSelectionDialog.on_deleteAllButton_clicked" ID="QtHelpDocumentationSelectionDialog.on_deleteAllButton_clicked"></a> <h4>QtHelpDocumentationSelectionDialog.on_deleteAllButton_clicked</h4> <b>on_deleteAllButton_clicked</b>(<i></i>) <p> Private slot to delete all documentation sets. </p><a NAME="QtHelpDocumentationSelectionDialog.on_deleteButton_clicked" ID="QtHelpDocumentationSelectionDialog.on_deleteButton_clicked"></a> <h4>QtHelpDocumentationSelectionDialog.on_deleteButton_clicked</h4> <b>on_deleteButton_clicked</b>(<i></i>) <p> Private slot to delete the selected documentation sets. </p><a NAME="QtHelpDocumentationSelectionDialog.on_deleteCategoryButton_clicked" ID="QtHelpDocumentationSelectionDialog.on_deleteCategoryButton_clicked"></a> <h4>QtHelpDocumentationSelectionDialog.on_deleteCategoryButton_clicked</h4> <b>on_deleteCategoryButton_clicked</b>(<i></i>) <p> Private slot to delete the selected documentation set categories. </p><a NAME="QtHelpDocumentationSelectionDialog.on_documentationList_itemSelectionChanged" ID="QtHelpDocumentationSelectionDialog.on_documentationList_itemSelectionChanged"></a> <h4>QtHelpDocumentationSelectionDialog.on_documentationList_itemSelectionChanged</h4> <b>on_documentationList_itemSelectionChanged</b>(<i></i>) <p> Private slot handling the selection of items. </p> <div align="right"><a href="#top">Up</a></div> <hr /> </body></html>