--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/eric7/Documentation/Source/eric7.WebBrowser.WebBrowserLanguagesDialog.html Mon May 24 11:19:57 2021 +0200 @@ -0,0 +1,247 @@ +<!DOCTYPE html> +<html><head> +<title>eric7.WebBrowser.WebBrowserLanguagesDialog</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>eric7.WebBrowser.WebBrowserLanguagesDialog</h1> + +<p> +Module implementing a dialog to configure the preferred languages. +</p> +<h3>Global Attributes</h3> + +<table> +<tr><td>None</td></tr> +</table> +<h3>Classes</h3> + +<table> + +<tr> +<td><a href="#WebBrowserLanguagesDialog">WebBrowserLanguagesDialog</a></td> +<td>Class implementing a dialog to configure the preferred languages.</td> +</tr> +</table> +<h3>Functions</h3> + +<table> +<tr><td>None</td></tr> +</table> +<hr /> +<hr /> +<a NAME="WebBrowserLanguagesDialog" ID="WebBrowserLanguagesDialog"></a> +<h2>WebBrowserLanguagesDialog</h2> + +<p> + Class implementing a dialog to configure the preferred languages. +</p> +<h3>Derived from</h3> +QDialog, Ui_WebBrowserLanguagesDialog +<h3>Class Attributes</h3> + +<table> +<tr><td>None</td></tr> +</table> +<h3>Class Methods</h3> + +<table> + +<tr> +<td><a href="#WebBrowserLanguagesDialog.defaultAcceptLanguages">defaultAcceptLanguages</a></td> +<td>Class method to get the list of default accept languages.</td> +</tr> +<tr> +<td><a href="#WebBrowserLanguagesDialog.expand">expand</a></td> +<td>Class method to expand a language enum to a readable languages list.</td> +</tr> +<tr> +<td><a href="#WebBrowserLanguagesDialog.httpString">httpString</a></td> +<td>Class method to convert a list of acceptable languages into a byte array.</td> +</tr> +</table> +<h3>Methods</h3> + +<table> + +<tr> +<td><a href="#WebBrowserLanguagesDialog.__init__">WebBrowserLanguagesDialog</a></td> +<td>Constructor</td> +</tr> +<tr> +<td><a href="#WebBrowserLanguagesDialog.__currentChanged">__currentChanged</a></td> +<td>Private slot to handle a change of the current selection.</td> +</tr> +<tr> +<td><a href="#WebBrowserLanguagesDialog.accept">accept</a></td> +<td>Public method to accept the data entered.</td> +</tr> +<tr> +<td><a href="#WebBrowserLanguagesDialog.on_addButton_clicked">on_addButton_clicked</a></td> +<td>Private slot to add a language to the list of acceptable languages.</td> +</tr> +<tr> +<td><a href="#WebBrowserLanguagesDialog.on_downButton_clicked">on_downButton_clicked</a></td> +<td>Private slot to move a language down.</td> +</tr> +<tr> +<td><a href="#WebBrowserLanguagesDialog.on_removeButton_clicked">on_removeButton_clicked</a></td> +<td>Private slot to remove a language from the list of acceptable languages.</td> +</tr> +<tr> +<td><a href="#WebBrowserLanguagesDialog.on_upButton_clicked">on_upButton_clicked</a></td> +<td>Private slot to move a language up.</td> +</tr> +</table> +<h3>Static Methods</h3> + +<table> +<tr><td>None</td></tr> +</table> + +<a NAME="WebBrowserLanguagesDialog.defaultAcceptLanguages" ID="WebBrowserLanguagesDialog.defaultAcceptLanguages"></a> +<h4>WebBrowserLanguagesDialog.defaultAcceptLanguages (class method)</h4> +<b>defaultAcceptLanguages</b>(<i></i>) + +<p> + Class method to get the list of default accept languages. +</p> +<dl> +<dt>Return:</dt> +<dd> +list of acceptable languages (list of strings) +</dd> +</dl> +<a NAME="WebBrowserLanguagesDialog.expand" ID="WebBrowserLanguagesDialog.expand"></a> +<h4>WebBrowserLanguagesDialog.expand (class method)</h4> +<b>expand</b>(<i>language</i>) + +<p> + Class method to expand a language enum to a readable languages + list. +</p> +<dl> + +<dt><i>language</i></dt> +<dd> +language number (QLocale.Language) +</dd> +</dl> +<dl> +<dt>Return:</dt> +<dd> +list of expanded language names (list of strings) +</dd> +</dl> +<a NAME="WebBrowserLanguagesDialog.httpString" ID="WebBrowserLanguagesDialog.httpString"></a> +<h4>WebBrowserLanguagesDialog.httpString (class method)</h4> +<b>httpString</b>(<i>languages</i>) + +<p> + Class method to convert a list of acceptable languages into a + byte array. +</p> +<p> + The byte array can be sent along with the Accept-Language http header + (see RFC 2616). +</p> +<dl> + +<dt><i>languages</i></dt> +<dd> +list of acceptable languages (list of strings) +</dd> +</dl> +<dl> +<dt>Return:</dt> +<dd> +converted list (QByteArray) +</dd> +</dl> +<a NAME="WebBrowserLanguagesDialog.__init__" ID="WebBrowserLanguagesDialog.__init__"></a> +<h4>WebBrowserLanguagesDialog (Constructor)</h4> +<b>WebBrowserLanguagesDialog</b>(<i>parent=None</i>) + +<p> + Constructor +</p> +<dl> + +<dt><i>parent</i></dt> +<dd> +reference to the parent widget (QWidget) +</dd> +</dl> +<a NAME="WebBrowserLanguagesDialog.__currentChanged" ID="WebBrowserLanguagesDialog.__currentChanged"></a> +<h4>WebBrowserLanguagesDialog.__currentChanged</h4> +<b>__currentChanged</b>(<i>current, previous</i>) + +<p> + Private slot to handle a change of the current selection. +</p> +<dl> + +<dt><i>current</i></dt> +<dd> +index of the currently selected item (QModelIndex) +</dd> +<dt><i>previous</i></dt> +<dd> +index of the previously selected item (QModelIndex) +</dd> +</dl> +<a NAME="WebBrowserLanguagesDialog.accept" ID="WebBrowserLanguagesDialog.accept"></a> +<h4>WebBrowserLanguagesDialog.accept</h4> +<b>accept</b>(<i></i>) + +<p> + Public method to accept the data entered. +</p> +<a NAME="WebBrowserLanguagesDialog.on_addButton_clicked" ID="WebBrowserLanguagesDialog.on_addButton_clicked"></a> +<h4>WebBrowserLanguagesDialog.on_addButton_clicked</h4> +<b>on_addButton_clicked</b>(<i></i>) + +<p> + Private slot to add a language to the list of acceptable languages. +</p> +<a NAME="WebBrowserLanguagesDialog.on_downButton_clicked" ID="WebBrowserLanguagesDialog.on_downButton_clicked"></a> +<h4>WebBrowserLanguagesDialog.on_downButton_clicked</h4> +<b>on_downButton_clicked</b>(<i></i>) + +<p> + Private slot to move a language down. +</p> +<a NAME="WebBrowserLanguagesDialog.on_removeButton_clicked" ID="WebBrowserLanguagesDialog.on_removeButton_clicked"></a> +<h4>WebBrowserLanguagesDialog.on_removeButton_clicked</h4> +<b>on_removeButton_clicked</b>(<i></i>) + +<p> + Private slot to remove a language from the list of acceptable + languages. +</p> +<a NAME="WebBrowserLanguagesDialog.on_upButton_clicked" ID="WebBrowserLanguagesDialog.on_upButton_clicked"></a> +<h4>WebBrowserLanguagesDialog.on_upButton_clicked</h4> +<b>on_upButton_clicked</b>(<i></i>) + +<p> + Private slot to move a language up. +</p> +<div align="right"><a href="#top">Up</a></div> +<hr /> +</body></html> \ No newline at end of file