diff -r 892c1787d666 -r edde1fe80b3e Documentation/Source/eric5.SqlBrowser.SqlConnectionWidget.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Documentation/Source/eric5.SqlBrowser.SqlConnectionWidget.html Sat Jan 02 18:19:35 2010 +0000 @@ -0,0 +1,182 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' +'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> +<html><head> +<title>eric5.SqlBrowser.SqlConnectionWidget</title> +<style> +b'body {\n background:white;\n margin: 0em 1em 10em 1em;\n color: black;\n}\n\nh1 { color: white; background: #4FA4FF; }\nh2 { color: white; background: #4FA4FF; }\nh3 { color: white; background: #00557F; }\nh4 { color: white; background: #00557F; }\n \na { color: #AA5500; }\n' +</style> +</head> +<body><a NAME="top" ID="top"></a> +<h1>eric5.SqlBrowser.SqlConnectionWidget</h1> +<p> +Module implementing a widget showing the SQL connections. +</p> +<h3>Global Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Classes</h3> +<table> +<tr> +<td><a href="#SqlConnectionWidget">SqlConnectionWidget</a></td> +<td>Class implementing a widget showing the SQL connections.</td> +</tr> +</table> +<h3>Functions</h3> +<table> +<tr><td>None</td></tr> +</table> +<hr /><hr /> +<a NAME="SqlConnectionWidget" ID="SqlConnectionWidget"></a> +<h2>SqlConnectionWidget</h2> +<p> + Class implementing a widget showing the SQL connections. +</p><h4>Signals</h4> +<dl> +<dt>cleared()</dt> +<dd> +emitted after the connection tree has been cleared +</dd><dt>schemaRequested(QString)</dt> +<dd> +emitted when the schema display is requested +</dd><dt>tableActivated(QString)</dt> +<dd> +emitted after the entry for a table has been activated +</dd> +</dl> +<h3>Derived from</h3> +QWidget +<h3>Class Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr> +<td><a href="#SqlConnectionWidget.__init__">SqlConnectionWidget</a></td> +<td>Constructor</td> +</tr><tr> +<td><a href="#SqlConnectionWidget.__currentItemChanged">__currentItemChanged</a></td> +<td>Private slot handling a change of the current item.</td> +</tr><tr> +<td><a href="#SqlConnectionWidget.__dbCaption">__dbCaption</a></td> +<td>Private method to assemble a string for the caption.</td> +</tr><tr> +<td><a href="#SqlConnectionWidget.__itemActivated">__itemActivated</a></td> +<td>Private slot handling the activation of an item.</td> +</tr><tr> +<td><a href="#SqlConnectionWidget.__setActive">__setActive</a></td> +<td>Private slot to set an item to active.</td> +</tr><tr> +<td><a href="#SqlConnectionWidget.__setBold">__setBold</a></td> +<td>Private slot to set the font to bold.</td> +</tr><tr> +<td><a href="#SqlConnectionWidget.currentDatabase">currentDatabase</a></td> +<td>Public method to get the current database.</td> +</tr><tr> +<td><a href="#SqlConnectionWidget.refresh">refresh</a></td> +<td>Public slot to refresh the connection tree.</td> +</tr><tr> +<td><a href="#SqlConnectionWidget.showSchema">showSchema</a></td> +<td>Public slot to show schema data of a database.</td> +</tr> +</table> +<a NAME="SqlConnectionWidget.__init__" ID="SqlConnectionWidget.__init__"></a> +<h4>SqlConnectionWidget (Constructor)</h4> +<b>SqlConnectionWidget</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="SqlConnectionWidget.__currentItemChanged" ID="SqlConnectionWidget.__currentItemChanged"></a> +<h4>SqlConnectionWidget.__currentItemChanged</h4> +<b>__currentItemChanged</b>(<i>current, previous</i>) +<p> + Private slot handling a change of the current item. +</p><dl> +<dt><i>current</i></dt> +<dd> +reference to the new current item (QTreeWidgetItem) +</dd><dt><i>previous</i></dt> +<dd> +reference to the previous current item (QTreeWidgetItem) +</dd> +</dl><a NAME="SqlConnectionWidget.__dbCaption" ID="SqlConnectionWidget.__dbCaption"></a> +<h4>SqlConnectionWidget.__dbCaption</h4> +<b>__dbCaption</b>(<i>db</i>) +<p> + Private method to assemble a string for the caption. +</p><dl> +<dt><i>db</i></dt> +<dd> +reference to the database object (QSqlDatabase) +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +caption string (string) +</dd> +</dl><a NAME="SqlConnectionWidget.__itemActivated" ID="SqlConnectionWidget.__itemActivated"></a> +<h4>SqlConnectionWidget.__itemActivated</h4> +<b>__itemActivated</b>(<i>itm, column</i>) +<p> + Private slot handling the activation of an item. +</p><dl> +<dt><i>itm</i></dt> +<dd> +reference to the item (QTreeWidgetItem) +</dd><dt><i>column</i></dt> +<dd> +column that was activated (integer) +</dd> +</dl><a NAME="SqlConnectionWidget.__setActive" ID="SqlConnectionWidget.__setActive"></a> +<h4>SqlConnectionWidget.__setActive</h4> +<b>__setActive</b>(<i>itm</i>) +<p> + Private slot to set an item to active. +</p><dl> +<dt><i>itm</i></dt> +<dd> +reference to the item to set as the active item (QTreeWidgetItem) +</dd> +</dl><a NAME="SqlConnectionWidget.__setBold" ID="SqlConnectionWidget.__setBold"></a> +<h4>SqlConnectionWidget.__setBold</h4> +<b>__setBold</b>(<i>itm, bold</i>) +<p> + Private slot to set the font to bold. +</p><dl> +<dt><i>itm</i></dt> +<dd> +reference to the item to be changed (QTreeWidgetItem) +</dd><dt><i>bold</i></dt> +<dd> +flag indicating bold (boolean) +</dd> +</dl><a NAME="SqlConnectionWidget.currentDatabase" ID="SqlConnectionWidget.currentDatabase"></a> +<h4>SqlConnectionWidget.currentDatabase</h4> +<b>currentDatabase</b>(<i></i>) +<p> + Public method to get the current database. +</p><dl> +<dt>Returns:</dt> +<dd> +reference to the current database (QSqlDatabase) +</dd> +</dl><a NAME="SqlConnectionWidget.refresh" ID="SqlConnectionWidget.refresh"></a> +<h4>SqlConnectionWidget.refresh</h4> +<b>refresh</b>(<i></i>) +<p> + Public slot to refresh the connection tree. +</p><a NAME="SqlConnectionWidget.showSchema" ID="SqlConnectionWidget.showSchema"></a> +<h4>SqlConnectionWidget.showSchema</h4> +<b>showSchema</b>(<i></i>) +<p> + Public slot to show schema data of a database. +</p> +<div align="right"><a href="#top">Up</a></div> +<hr /> +</body></html> \ No newline at end of file