Sat, 26 Apr 2025 12:34:32 +0200
MicroPython
- Added a configuration option to disable the support for the no longer produced Pimoroni Pico Wireless Pack.
<!DOCTYPE html> <html><head> <title>eric7.WebBrowser.Bookmarks.AddBookmarkDialog</title> <meta charset="UTF-8"> <link rel="stylesheet" href="styles.css"> </head> <body> <a NAME="top" ID="top"></a> <h1>eric7.WebBrowser.Bookmarks.AddBookmarkDialog</h1> <p> Module implementing a dialog to add a bookmark or a bookmark folder. </p> <h3>Global Attributes</h3> <table> <tr><td>None</td></tr> </table> <h3>Classes</h3> <table> <tr> <td><a href="#AddBookmarkDialog">AddBookmarkDialog</a></td> <td>Class implementing a dialog to add a bookmark or a bookmark folder.</td> </tr> <tr> <td><a href="#AddBookmarkProxyModel">AddBookmarkProxyModel</a></td> <td>Class implementing a proxy model used by the AddBookmarkDialog dialog.</td> </tr> </table> <h3>Functions</h3> <table> <tr><td>None</td></tr> </table> <hr /> <hr /> <a NAME="AddBookmarkDialog" ID="AddBookmarkDialog"></a> <h2>AddBookmarkDialog</h2> <p> Class implementing a dialog to add a bookmark or a bookmark folder. </p> <h3>Derived from</h3> QDialog, Ui_AddBookmarkDialog <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="#AddBookmarkDialog.__init__">AddBookmarkDialog</a></td> <td>Constructor</td> </tr> <tr> <td><a href="#AddBookmarkDialog.accept">accept</a></td> <td>Public slot handling the acceptance of the dialog.</td> </tr> <tr> <td><a href="#AddBookmarkDialog.addedNode">addedNode</a></td> <td>Public method to get a reference to the added bookmark node.</td> </tr> <tr> <td><a href="#AddBookmarkDialog.currentIndex">currentIndex</a></td> <td>Public method to get the current index.</td> </tr> <tr> <td><a href="#AddBookmarkDialog.description">description</a></td> <td>Public method to get the description of the bookmark.</td> </tr> <tr> <td><a href="#AddBookmarkDialog.isFolder">isFolder</a></td> <td>Public method to test, if the dialog is in "Add Folder" mode.</td> </tr> <tr> <td><a href="#AddBookmarkDialog.setCurrentIndex">setCurrentIndex</a></td> <td>Public method to set the current index.</td> </tr> <tr> <td><a href="#AddBookmarkDialog.setDescription">setDescription</a></td> <td>Public method to set the description of the new bookmark.</td> </tr> <tr> <td><a href="#AddBookmarkDialog.setFolder">setFolder</a></td> <td>Public method to set the dialog to "Add Folder" mode.</td> </tr> <tr> <td><a href="#AddBookmarkDialog.setTitle">setTitle</a></td> <td>Public method to set the title of the new bookmark.</td> </tr> <tr> <td><a href="#AddBookmarkDialog.setUrl">setUrl</a></td> <td>Public slot to set the URL of the new bookmark.</td> </tr> <tr> <td><a href="#AddBookmarkDialog.title">title</a></td> <td>Public method to get the title of the bookmark.</td> </tr> <tr> <td><a href="#AddBookmarkDialog.url">url</a></td> <td>Public method to get the URL of the bookmark.</td> </tr> </table> <h3>Static Methods</h3> <table> <tr><td>None</td></tr> </table> <a NAME="AddBookmarkDialog.__init__" ID="AddBookmarkDialog.__init__"></a> <h4>AddBookmarkDialog (Constructor)</h4> <b>AddBookmarkDialog</b>(<i>parent=None, bookmarksManager=None</i>) <p> Constructor </p> <dl> <dt><i>parent</i> (QWidget)</dt> <dd> reference to the parent widget </dd> <dt><i>bookmarksManager</i> (BookmarksManager)</dt> <dd> reference to the bookmarks manager object </dd> </dl> <a NAME="AddBookmarkDialog.accept" ID="AddBookmarkDialog.accept"></a> <h4>AddBookmarkDialog.accept</h4> <b>accept</b>(<i></i>) <p> Public slot handling the acceptance of the dialog. </p> <a NAME="AddBookmarkDialog.addedNode" ID="AddBookmarkDialog.addedNode"></a> <h4>AddBookmarkDialog.addedNode</h4> <b>addedNode</b>(<i></i>) <p> Public method to get a reference to the added bookmark node. </p> <dl> <dt>Return:</dt> <dd> reference to the added bookmark node </dd> </dl> <dl> <dt>Return Type:</dt> <dd> BookmarkNode </dd> </dl> <a NAME="AddBookmarkDialog.currentIndex" ID="AddBookmarkDialog.currentIndex"></a> <h4>AddBookmarkDialog.currentIndex</h4> <b>currentIndex</b>(<i></i>) <p> Public method to get the current index. </p> <dl> <dt>Return:</dt> <dd> current index </dd> </dl> <dl> <dt>Return Type:</dt> <dd> QModelIndex </dd> </dl> <a NAME="AddBookmarkDialog.description" ID="AddBookmarkDialog.description"></a> <h4>AddBookmarkDialog.description</h4> <b>description</b>(<i></i>) <p> Public method to get the description of the bookmark. </p> <dl> <dt>Return:</dt> <dd> description of the bookamrk </dd> </dl> <dl> <dt>Return Type:</dt> <dd> str </dd> </dl> <a NAME="AddBookmarkDialog.isFolder" ID="AddBookmarkDialog.isFolder"></a> <h4>AddBookmarkDialog.isFolder</h4> <b>isFolder</b>(<i></i>) <p> Public method to test, if the dialog is in "Add Folder" mode. </p> <dl> <dt>Return:</dt> <dd> flag indicating "Add Folder" mode </dd> </dl> <dl> <dt>Return Type:</dt> <dd> bool </dd> </dl> <a NAME="AddBookmarkDialog.setCurrentIndex" ID="AddBookmarkDialog.setCurrentIndex"></a> <h4>AddBookmarkDialog.setCurrentIndex</h4> <b>setCurrentIndex</b>(<i>idx</i>) <p> Public method to set the current index. </p> <dl> <dt><i>idx</i> (QModelIndex)</dt> <dd> current index to be set </dd> </dl> <a NAME="AddBookmarkDialog.setDescription" ID="AddBookmarkDialog.setDescription"></a> <h4>AddBookmarkDialog.setDescription</h4> <b>setDescription</b>(<i>description</i>) <p> Public method to set the description of the new bookmark. </p> <dl> <dt><i>description</i> (str)</dt> <dd> description of the bookamrk </dd> </dl> <a NAME="AddBookmarkDialog.setFolder" ID="AddBookmarkDialog.setFolder"></a> <h4>AddBookmarkDialog.setFolder</h4> <b>setFolder</b>(<i>folder</i>) <p> Public method to set the dialog to "Add Folder" mode. </p> <dl> <dt><i>folder</i> (bool)</dt> <dd> flag indicating "Add Folder" mode </dd> </dl> <a NAME="AddBookmarkDialog.setTitle" ID="AddBookmarkDialog.setTitle"></a> <h4>AddBookmarkDialog.setTitle</h4> <b>setTitle</b>(<i>title</i>) <p> Public method to set the title of the new bookmark. </p> <dl> <dt><i>title</i> (str)</dt> <dd> title of the bookmark </dd> </dl> <a NAME="AddBookmarkDialog.setUrl" ID="AddBookmarkDialog.setUrl"></a> <h4>AddBookmarkDialog.setUrl</h4> <b>setUrl</b>(<i>url</i>) <p> Public slot to set the URL of the new bookmark. </p> <dl> <dt><i>url</i> (str)</dt> <dd> URL of the bookmark </dd> </dl> <a NAME="AddBookmarkDialog.title" ID="AddBookmarkDialog.title"></a> <h4>AddBookmarkDialog.title</h4> <b>title</b>(<i></i>) <p> Public method to get the title of the bookmark. </p> <dl> <dt>Return:</dt> <dd> title of the bookmark </dd> </dl> <dl> <dt>Return Type:</dt> <dd> str </dd> </dl> <a NAME="AddBookmarkDialog.url" ID="AddBookmarkDialog.url"></a> <h4>AddBookmarkDialog.url</h4> <b>url</b>(<i></i>) <p> Public method to get the URL of the bookmark. </p> <dl> <dt>Return:</dt> <dd> URL of the bookmark </dd> </dl> <dl> <dt>Return Type:</dt> <dd> str </dd> </dl> <div align="right"><a href="#top">Up</a></div> <hr /> <hr /> <a NAME="AddBookmarkProxyModel" ID="AddBookmarkProxyModel"></a> <h2>AddBookmarkProxyModel</h2> <p> Class implementing a proxy model used by the AddBookmarkDialog dialog. </p> <h3>Derived from</h3> QSortFilterProxyModel <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="#AddBookmarkProxyModel.__init__">AddBookmarkProxyModel</a></td> <td>Constructor</td> </tr> <tr> <td><a href="#AddBookmarkProxyModel.columnCount">columnCount</a></td> <td>Public method to return the number of columns.</td> </tr> <tr> <td><a href="#AddBookmarkProxyModel.filterAcceptsColumn">filterAcceptsColumn</a></td> <td>Public method to determine, if the column is acceptable.</td> </tr> <tr> <td><a href="#AddBookmarkProxyModel.filterAcceptsRow">filterAcceptsRow</a></td> <td>Public method to determine, if the row is acceptable.</td> </tr> <tr> <td><a href="#AddBookmarkProxyModel.hasChildren">hasChildren</a></td> <td>Public method to check, if a parent node has some children.</td> </tr> </table> <h3>Static Methods</h3> <table> <tr><td>None</td></tr> </table> <a NAME="AddBookmarkProxyModel.__init__" ID="AddBookmarkProxyModel.__init__"></a> <h4>AddBookmarkProxyModel (Constructor)</h4> <b>AddBookmarkProxyModel</b>(<i>parent=None</i>) <p> Constructor </p> <dl> <dt><i>parent</i> (QObject)</dt> <dd> reference to the parent object </dd> </dl> <a NAME="AddBookmarkProxyModel.columnCount" ID="AddBookmarkProxyModel.columnCount"></a> <h4>AddBookmarkProxyModel.columnCount</h4> <b>columnCount</b>(<i>parent</i>) <p> Public method to return the number of columns. </p> <dl> <dt><i>parent</i> (QModelIndex)</dt> <dd> index of the parent </dd> </dl> <dl> <dt>Return:</dt> <dd> number of columns </dd> </dl> <dl> <dt>Return Type:</dt> <dd> int </dd> </dl> <a NAME="AddBookmarkProxyModel.filterAcceptsColumn" ID="AddBookmarkProxyModel.filterAcceptsColumn"></a> <h4>AddBookmarkProxyModel.filterAcceptsColumn</h4> <b>filterAcceptsColumn</b>(<i>sourceColumn, _sourceParent</i>) <p> Public method to determine, if the column is acceptable. </p> <dl> <dt><i>sourceColumn</i> (int)</dt> <dd> column number in the source model </dd> <dt><i>_sourceParent</i> (QModelIndex)</dt> <dd> index of the source item (unused) </dd> </dl> <dl> <dt>Return:</dt> <dd> flag indicating acceptance </dd> </dl> <dl> <dt>Return Type:</dt> <dd> bool </dd> </dl> <a NAME="AddBookmarkProxyModel.filterAcceptsRow" ID="AddBookmarkProxyModel.filterAcceptsRow"></a> <h4>AddBookmarkProxyModel.filterAcceptsRow</h4> <b>filterAcceptsRow</b>(<i>sourceRow, sourceParent</i>) <p> Public method to determine, if the row is acceptable. </p> <dl> <dt><i>sourceRow</i> (int)</dt> <dd> row number in the source model </dd> <dt><i>sourceParent</i> (QModelIndex)</dt> <dd> index of the source item </dd> </dl> <dl> <dt>Return:</dt> <dd> flag indicating acceptance </dd> </dl> <dl> <dt>Return Type:</dt> <dd> bool </dd> </dl> <a NAME="AddBookmarkProxyModel.hasChildren" ID="AddBookmarkProxyModel.hasChildren"></a> <h4>AddBookmarkProxyModel.hasChildren</h4> <b>hasChildren</b>(<i>parent=None</i>) <p> Public method to check, if a parent node has some children. </p> <dl> <dt><i>parent</i> (QModelIndex)</dt> <dd> index of the parent node </dd> </dl> <dl> <dt>Return:</dt> <dd> flag indicating the presence of children </dd> </dl> <dl> <dt>Return Type:</dt> <dd> bool </dd> </dl> <div align="right"><a href="#top">Up</a></div> <hr /> </body></html>