Documentation/Source/eric5.SqlBrowser.SqlConnectionWidget.html

Mon, 26 Jul 2010 19:59:27 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 26 Jul 2010 19:59:27 +0200
changeset 409
0ea528e80202
parent 58
37f0444c3479
child 440
69ace3e2dcf6
permissions
-rw-r--r--

Added another style for the source docu.

<?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>
body {
    background: white;
    margin: 0em 1em 10em 1em;
    color: black;
}

h1 { color: white; background: #85774A; }
h2 { color: white; background: #85774A; }
h3 { color: black; background: #C1BBA4; }
h4 { color: black; background: #C1BBA4; }
    
a { color: #C07037; }

</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>

eric ide

mercurial