Wed, 24 Mar 2010 18:38:44 +0000
Added a few methods to Project.py to support the cooperation stuff.
<?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.SqlConnectionDialog</title> <style> body { background:white; margin: 0em 1em 10em 1em; color: black; } h1 { color: white; background: #4FA4FF; } h2 { color: white; background: #4FA4FF; } h3 { color: white; background: #00557F; } h4 { color: white; background: #00557F; } a { color: #AA5500; } </style> </head> <body><a NAME="top" ID="top"></a> <h1>eric5.SqlBrowser.SqlConnectionDialog</h1> <p> Module implementing a dialog to enter the connection parameters. </p> <h3>Global Attributes</h3> <table> <tr><td>None</td></tr> </table> <h3>Classes</h3> <table> <tr> <td><a href="#SqlConnectionDialog">SqlConnectionDialog</a></td> <td>Class implementing a dialog to enter the connection parameters.</td> </tr> </table> <h3>Functions</h3> <table> <tr><td>None</td></tr> </table> <hr /><hr /> <a NAME="SqlConnectionDialog" ID="SqlConnectionDialog"></a> <h2>SqlConnectionDialog</h2> <p> Class implementing a dialog to enter the connection parameters. </p> <h3>Derived from</h3> QDialog, Ui_SqlConnectionDialog <h3>Class Attributes</h3> <table> <tr><td>None</td></tr> </table> <h3>Methods</h3> <table> <tr> <td><a href="#SqlConnectionDialog.__init__">SqlConnectionDialog</a></td> <td>Constructor</td> </tr><tr> <td><a href="#SqlConnectionDialog.__updateDialog">__updateDialog</a></td> <td>Private slot to update the dialog depending on it's contents.</td> </tr><tr> <td><a href="#SqlConnectionDialog.getData">getData</a></td> <td>Public method to retrieve the connection data.</td> </tr><tr> <td><a href="#SqlConnectionDialog.on_databaseEdit_textChanged">on_databaseEdit_textChanged</a></td> <td>Private slot handling the change of the database name.</td> </tr><tr> <td><a href="#SqlConnectionDialog.on_databaseFileButton_clicked">on_databaseFileButton_clicked</a></td> <td>Private slot to open a database file via a file selection dialog.</td> </tr><tr> <td><a href="#SqlConnectionDialog.on_driverCombo_activated">on_driverCombo_activated</a></td> <td>Private slot handling the selection of a database driver.</td> </tr> </table> <a NAME="SqlConnectionDialog.__init__" ID="SqlConnectionDialog.__init__"></a> <h4>SqlConnectionDialog (Constructor)</h4> <b>SqlConnectionDialog</b>(<i>parent = None</i>) <p> Constructor </p><a NAME="SqlConnectionDialog.__updateDialog" ID="SqlConnectionDialog.__updateDialog"></a> <h4>SqlConnectionDialog.__updateDialog</h4> <b>__updateDialog</b>(<i></i>) <p> Private slot to update the dialog depending on it's contents. </p><a NAME="SqlConnectionDialog.getData" ID="SqlConnectionDialog.getData"></a> <h4>SqlConnectionDialog.getData</h4> <b>getData</b>(<i></i>) <p> Public method to retrieve the connection data. </p><dl> <dt>Returns:</dt> <dd> tuple giving the driver name (string), the database name (string), the user name (string), the password (string), the host name (string) and the port (integer) </dd> </dl><a NAME="SqlConnectionDialog.on_databaseEdit_textChanged" ID="SqlConnectionDialog.on_databaseEdit_textChanged"></a> <h4>SqlConnectionDialog.on_databaseEdit_textChanged</h4> <b>on_databaseEdit_textChanged</b>(<i>p0</i>) <p> Private slot handling the change of the database name. </p><a NAME="SqlConnectionDialog.on_databaseFileButton_clicked" ID="SqlConnectionDialog.on_databaseFileButton_clicked"></a> <h4>SqlConnectionDialog.on_databaseFileButton_clicked</h4> <b>on_databaseFileButton_clicked</b>(<i></i>) <p> Private slot to open a database file via a file selection dialog. </p><a NAME="SqlConnectionDialog.on_driverCombo_activated" ID="SqlConnectionDialog.on_driverCombo_activated"></a> <h4>SqlConnectionDialog.on_driverCombo_activated</h4> <b>on_driverCombo_activated</b>(<i>txt</i>) <p> Private slot handling the selection of a database driver. </p> <div align="right"><a href="#top">Up</a></div> <hr /> </body></html>