src/eric7/Documentation/Source/eric7.WebBrowser.AdBlock.AdBlockDialog.html

Sat, 26 Apr 2025 12:34:32 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 26 Apr 2025 12:34:32 +0200
branch
eric7
changeset 11240
c48c615c04a3
parent 10692
9becf9ca115c
permissions
-rw-r--r--

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.AdBlock.AdBlockDialog</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<a NAME="top" ID="top"></a>
<h1>eric7.WebBrowser.AdBlock.AdBlockDialog</h1>
<p>
Module implementing the AdBlock configuration dialog.
</p>

<h3>Global Attributes</h3>
<table>
<tr><td>None</td></tr>
</table>

<h3>Classes</h3>
<table>
<tr>
<td><a href="#AdBlockDialog">AdBlockDialog</a></td>
<td>Class implementing the AdBlock configuration dialog.</td>
</tr>
</table>

<h3>Functions</h3>
<table>
<tr><td>None</td></tr>
</table>

<hr />
<hr />
<a NAME="AdBlockDialog" ID="AdBlockDialog"></a>
<h2>AdBlockDialog</h2>
<p>
    Class implementing the AdBlock configuration dialog.
</p>

<h3>Derived from</h3>
QDialog, Ui_AdBlockDialog
<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="#AdBlockDialog.__init__">AdBlockDialog</a></td>
<td>Constructor</td>
</tr>
<tr>
<td><a href="#AdBlockDialog.__aboutToShowActionMenu">__aboutToShowActionMenu</a></td>
<td>Private slot to show the actions menu.</td>
</tr>
<tr>
<td><a href="#AdBlockDialog.__addCustomRule">__addCustomRule</a></td>
<td>Private slot to add a custom AdBlock rule.</td>
</tr>
<tr>
<td><a href="#AdBlockDialog.__browseSubscriptions">__browseSubscriptions</a></td>
<td>Private slot to browse the list of available AdBlock subscriptions.</td>
</tr>
<tr>
<td><a href="#AdBlockDialog.__learnAboutWritingFilters">__learnAboutWritingFilters</a></td>
<td>Private slot to show the web page about how to write filters.</td>
</tr>
<tr>
<td><a href="#AdBlockDialog.__load">__load</a></td>
<td>Private slot to populate the tab widget with subscriptions.</td>
</tr>
<tr>
<td><a href="#AdBlockDialog.__loadSubscriptions">__loadSubscriptions</a></td>
<td>Private slot to load the AdBlock subscription rules.</td>
</tr>
<tr>
<td><a href="#AdBlockDialog.__managerEnabledChanged">__managerEnabledChanged</a></td>
<td>Private slot handling a change of the AdBlock manager enabled state.</td>
</tr>
<tr>
<td><a href="#AdBlockDialog.__removeCustomRule">__removeCustomRule</a></td>
<td>Private slot to remove a custom AdBlock rule.</td>
</tr>
<tr>
<td><a href="#AdBlockDialog.__removeSubscription">__removeSubscription</a></td>
<td>Private slot to remove the selected subscription.</td>
</tr>
<tr>
<td><a href="#AdBlockDialog.__setSubscriptionEnabled">__setSubscriptionEnabled</a></td>
<td>Private slot to set the enabled state of a subscription.</td>
</tr>
<tr>
<td><a href="#AdBlockDialog.__switchSubscriptionEnabled">__switchSubscriptionEnabled</a></td>
<td>Private slot to switch the enabled state of the selected subscription.</td>
</tr>
<tr>
<td><a href="#AdBlockDialog.__updateAllSubscriptions">__updateAllSubscriptions</a></td>
<td>Private slot to update all subscriptions.</td>
</tr>
<tr>
<td><a href="#AdBlockDialog.__updateSubscription">__updateSubscription</a></td>
<td>Private slot to update the selected subscription.</td>
</tr>
<tr>
<td><a href="#AdBlockDialog.addCustomRule">addCustomRule</a></td>
<td>Public slot to add a custom AdBlock rule.</td>
</tr>
<tr>
<td><a href="#AdBlockDialog.addSubscription">addSubscription</a></td>
<td>Public slot adding a subscription to the list.</td>
</tr>
<tr>
<td><a href="#AdBlockDialog.on_adBlockGroup_toggled">on_adBlockGroup_toggled</a></td>
<td>Private slot handling the enabling/disabling of AdBlock.</td>
</tr>
<tr>
<td><a href="#AdBlockDialog.on_searchEdit_textChanged">on_searchEdit_textChanged</a></td>
<td>Private slot to set a new filter on the current widget.</td>
</tr>
<tr>
<td><a href="#AdBlockDialog.on_subscriptionsTabWidget_currentChanged">on_subscriptionsTabWidget_currentChanged</a></td>
<td>Private slot handling the selection of another tab.</td>
</tr>
<tr>
<td><a href="#AdBlockDialog.on_updateSpinBox_valueChanged">on_updateSpinBox_valueChanged</a></td>
<td>Private slot to handle changes of the update period.</td>
</tr>
<tr>
<td><a href="#AdBlockDialog.on_useLimitedEasyListCheckBox_clicked">on_useLimitedEasyListCheckBox_clicked</a></td>
<td>Private slot handling the selection of the limited EasyList.</td>
</tr>
</table>

<h3>Static Methods</h3>
<table>
<tr><td>None</td></tr>
</table>


<a NAME="AdBlockDialog.__init__" ID="AdBlockDialog.__init__"></a>
<h4>AdBlockDialog (Constructor)</h4>
<b>AdBlockDialog</b>(<i>manager, parent=None</i>)
<p>
        Constructor
</p>

<dl>

<dt><i>manager</i> (AdBlockManager)</dt>
<dd>
reference to the AdBlock manager
</dd>
<dt><i>parent</i> (QWidget)</dt>
<dd>
reference to the parent object
</dd>
</dl>
<a NAME="AdBlockDialog.__aboutToShowActionMenu" ID="AdBlockDialog.__aboutToShowActionMenu"></a>
<h4>AdBlockDialog.__aboutToShowActionMenu</h4>
<b>__aboutToShowActionMenu</b>(<i></i>)
<p>
        Private slot to show the actions menu.
</p>

<a NAME="AdBlockDialog.__addCustomRule" ID="AdBlockDialog.__addCustomRule"></a>
<h4>AdBlockDialog.__addCustomRule</h4>
<b>__addCustomRule</b>(<i></i>)
<p>
        Private slot to add a custom AdBlock rule.
</p>

<a NAME="AdBlockDialog.__browseSubscriptions" ID="AdBlockDialog.__browseSubscriptions"></a>
<h4>AdBlockDialog.__browseSubscriptions</h4>
<b>__browseSubscriptions</b>(<i></i>)
<p>
        Private slot to browse the list of available AdBlock subscriptions.
</p>

<a NAME="AdBlockDialog.__learnAboutWritingFilters" ID="AdBlockDialog.__learnAboutWritingFilters"></a>
<h4>AdBlockDialog.__learnAboutWritingFilters</h4>
<b>__learnAboutWritingFilters</b>(<i></i>)
<p>
        Private slot to show the web page about how to write filters.
</p>

<a NAME="AdBlockDialog.__load" ID="AdBlockDialog.__load"></a>
<h4>AdBlockDialog.__load</h4>
<b>__load</b>(<i></i>)
<p>
        Private slot to populate the tab widget with subscriptions.
</p>

<a NAME="AdBlockDialog.__loadSubscriptions" ID="AdBlockDialog.__loadSubscriptions"></a>
<h4>AdBlockDialog.__loadSubscriptions</h4>
<b>__loadSubscriptions</b>(<i></i>)
<p>
        Private slot to load the AdBlock subscription rules.
</p>

<a NAME="AdBlockDialog.__managerEnabledChanged" ID="AdBlockDialog.__managerEnabledChanged"></a>
<h4>AdBlockDialog.__managerEnabledChanged</h4>
<b>__managerEnabledChanged</b>(<i>enabled</i>)
<p>
        Private slot handling a change of the AdBlock manager enabled state.
</p>

<dl>

<dt><i>enabled</i> (bool)</dt>
<dd>
flag indicating the enabled state
</dd>
</dl>
<a NAME="AdBlockDialog.__removeCustomRule" ID="AdBlockDialog.__removeCustomRule"></a>
<h4>AdBlockDialog.__removeCustomRule</h4>
<b>__removeCustomRule</b>(<i></i>)
<p>
        Private slot to remove a custom AdBlock rule.
</p>

<a NAME="AdBlockDialog.__removeSubscription" ID="AdBlockDialog.__removeSubscription"></a>
<h4>AdBlockDialog.__removeSubscription</h4>
<b>__removeSubscription</b>(<i></i>)
<p>
        Private slot to remove the selected subscription.
</p>

<a NAME="AdBlockDialog.__setSubscriptionEnabled" ID="AdBlockDialog.__setSubscriptionEnabled"></a>
<h4>AdBlockDialog.__setSubscriptionEnabled</h4>
<b>__setSubscriptionEnabled</b>(<i>subscription, enable</i>)
<p>
        Private slot to set the enabled state of a subscription.
</p>

<dl>

<dt><i>subscription</i> (AdBlockSubscription)</dt>
<dd>
subscription to set the state for
</dd>
<dt><i>enable</i> (bool)</dt>
<dd>
state to set to
</dd>
</dl>
<a NAME="AdBlockDialog.__switchSubscriptionEnabled" ID="AdBlockDialog.__switchSubscriptionEnabled"></a>
<h4>AdBlockDialog.__switchSubscriptionEnabled</h4>
<b>__switchSubscriptionEnabled</b>(<i></i>)
<p>
        Private slot to switch the enabled state of the selected subscription.
</p>

<a NAME="AdBlockDialog.__updateAllSubscriptions" ID="AdBlockDialog.__updateAllSubscriptions"></a>
<h4>AdBlockDialog.__updateAllSubscriptions</h4>
<b>__updateAllSubscriptions</b>(<i></i>)
<p>
        Private slot to update all subscriptions.
</p>

<a NAME="AdBlockDialog.__updateSubscription" ID="AdBlockDialog.__updateSubscription"></a>
<h4>AdBlockDialog.__updateSubscription</h4>
<b>__updateSubscription</b>(<i></i>)
<p>
        Private slot to update the selected subscription.
</p>

<a NAME="AdBlockDialog.addCustomRule" ID="AdBlockDialog.addCustomRule"></a>
<h4>AdBlockDialog.addCustomRule</h4>
<b>addCustomRule</b>(<i>filterRule</i>)
<p>
        Public slot to add a custom AdBlock rule.
</p>

<dl>

<dt><i>filterRule</i> (string)</dt>
<dd>
filter to be added
</dd>
</dl>
<a NAME="AdBlockDialog.addSubscription" ID="AdBlockDialog.addSubscription"></a>
<h4>AdBlockDialog.addSubscription</h4>
<b>addSubscription</b>(<i>subscription, refresh=True</i>)
<p>
        Public slot adding a subscription to the list.
</p>

<dl>

<dt><i>subscription</i> (AdBlockSubscription)</dt>
<dd>
reference to the subscription to be
            added
</dd>
<dt><i>refresh</i> (bool)</dt>
<dd>
flag indicating to refresh the tree
</dd>
</dl>
<a NAME="AdBlockDialog.on_adBlockGroup_toggled" ID="AdBlockDialog.on_adBlockGroup_toggled"></a>
<h4>AdBlockDialog.on_adBlockGroup_toggled</h4>
<b>on_adBlockGroup_toggled</b>(<i>state</i>)
<p>
        Private slot handling the enabling/disabling of AdBlock.
</p>

<dl>

<dt><i>state</i> (bool)</dt>
<dd>
state of the toggle
</dd>
</dl>
<a NAME="AdBlockDialog.on_searchEdit_textChanged" ID="AdBlockDialog.on_searchEdit_textChanged"></a>
<h4>AdBlockDialog.on_searchEdit_textChanged</h4>
<b>on_searchEdit_textChanged</b>(<i>filterRule</i>)
<p>
        Private slot to set a new filter on the current widget.
</p>

<dl>

<dt><i>filterRule</i> (str)</dt>
<dd>
filter to be set
</dd>
</dl>
<a NAME="AdBlockDialog.on_subscriptionsTabWidget_currentChanged" ID="AdBlockDialog.on_subscriptionsTabWidget_currentChanged"></a>
<h4>AdBlockDialog.on_subscriptionsTabWidget_currentChanged</h4>
<b>on_subscriptionsTabWidget_currentChanged</b>(<i>index</i>)
<p>
        Private slot handling the selection of another tab.
</p>

<dl>

<dt><i>index</i> (int)</dt>
<dd>
index of the new current tab
</dd>
</dl>
<a NAME="AdBlockDialog.on_updateSpinBox_valueChanged" ID="AdBlockDialog.on_updateSpinBox_valueChanged"></a>
<h4>AdBlockDialog.on_updateSpinBox_valueChanged</h4>
<b>on_updateSpinBox_valueChanged</b>(<i>value</i>)
<p>
        Private slot to handle changes of the update period.
</p>

<dl>

<dt><i>value</i> (int)</dt>
<dd>
update period
</dd>
</dl>
<a NAME="AdBlockDialog.on_useLimitedEasyListCheckBox_clicked" ID="AdBlockDialog.on_useLimitedEasyListCheckBox_clicked"></a>
<h4>AdBlockDialog.on_useLimitedEasyListCheckBox_clicked</h4>
<b>on_useLimitedEasyListCheckBox_clicked</b>(<i>_checked</i>)
<p>
        Private slot handling the selection of the limited EasyList.
</p>

<dl>

<dt><i>_checked</i> (bool)</dt>
<dd>
flag indicating the state of the check box (unused)
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
</body></html>

eric ide

mercurial