Documentation/Source/eric6.SqlBrowser.SqlConnectionDialog.html

changeset 3673
e26d7d0c1088
child 4602
48cc4820e2c2
equal deleted inserted replaced
3670:f0cb7579c0b4 3673:e26d7d0c1088
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric6.SqlBrowser.SqlConnectionDialog</title>
4 <meta charset="UTF-8">
5 <style>
6 body {
7 background: #EDECE6;
8 margin: 0em 1em 10em 1em;
9 color: black;
10 }
11
12 h1 { color: white; background: #85774A; }
13 h2 { color: white; background: #85774A; }
14 h3 { color: white; background: #9D936E; }
15 h4 { color: white; background: #9D936E; }
16
17 a { color: #BA6D36; }
18
19 </style>
20 </head>
21 <body><a NAME="top" ID="top"></a>
22 <h1>eric6.SqlBrowser.SqlConnectionDialog</h1>
23 <p>
24 Module implementing a dialog to enter the connection parameters.
25 </p>
26 <h3>Global Attributes</h3>
27 <table>
28 <tr><td>None</td></tr>
29 </table>
30 <h3>Classes</h3>
31 <table>
32 <tr>
33 <td><a href="#SqlConnectionDialog">SqlConnectionDialog</a></td>
34 <td>Class implementing a dialog to enter the connection parameters.</td>
35 </tr>
36 </table>
37 <h3>Functions</h3>
38 <table>
39 <tr><td>None</td></tr>
40 </table>
41 <hr /><hr />
42 <a NAME="SqlConnectionDialog" ID="SqlConnectionDialog"></a>
43 <h2>SqlConnectionDialog</h2>
44 <p>
45 Class implementing a dialog to enter the connection parameters.
46 </p>
47 <h3>Derived from</h3>
48 QDialog, Ui_SqlConnectionDialog
49 <h3>Class Attributes</h3>
50 <table>
51 <tr><td>None</td></tr>
52 </table>
53 <h3>Class Methods</h3>
54 <table>
55 <tr><td>None</td></tr>
56 </table>
57 <h3>Methods</h3>
58 <table>
59 <tr>
60 <td><a href="#SqlConnectionDialog.__init__">SqlConnectionDialog</a></td>
61 <td>Constructor</td>
62 </tr><tr>
63 <td><a href="#SqlConnectionDialog.__updateDialog">__updateDialog</a></td>
64 <td>Private slot to update the dialog depending on its contents.</td>
65 </tr><tr>
66 <td><a href="#SqlConnectionDialog.getData">getData</a></td>
67 <td>Public method to retrieve the connection data.</td>
68 </tr><tr>
69 <td><a href="#SqlConnectionDialog.on_databaseEdit_textChanged">on_databaseEdit_textChanged</a></td>
70 <td>Private slot handling the change of the database name.</td>
71 </tr><tr>
72 <td><a href="#SqlConnectionDialog.on_databaseFileButton_clicked">on_databaseFileButton_clicked</a></td>
73 <td>Private slot to open a database file via a file selection dialog.</td>
74 </tr><tr>
75 <td><a href="#SqlConnectionDialog.on_driverCombo_activated">on_driverCombo_activated</a></td>
76 <td>Private slot handling the selection of a database driver.</td>
77 </tr>
78 </table>
79 <h3>Static Methods</h3>
80 <table>
81 <tr><td>None</td></tr>
82 </table>
83 <a NAME="SqlConnectionDialog.__init__" ID="SqlConnectionDialog.__init__"></a>
84 <h4>SqlConnectionDialog (Constructor)</h4>
85 <b>SqlConnectionDialog</b>(<i>parent=None</i>)
86 <p>
87 Constructor
88 </p><dl>
89 <dt><i>parent</i></dt>
90 <dd>
91 reference to the parent widget (QWidget)
92 </dd>
93 </dl><a NAME="SqlConnectionDialog.__updateDialog" ID="SqlConnectionDialog.__updateDialog"></a>
94 <h4>SqlConnectionDialog.__updateDialog</h4>
95 <b>__updateDialog</b>(<i></i>)
96 <p>
97 Private slot to update the dialog depending on its contents.
98 </p><a NAME="SqlConnectionDialog.getData" ID="SqlConnectionDialog.getData"></a>
99 <h4>SqlConnectionDialog.getData</h4>
100 <b>getData</b>(<i></i>)
101 <p>
102 Public method to retrieve the connection data.
103 </p><dl>
104 <dt>Returns:</dt>
105 <dd>
106 tuple giving the driver name (string), the database name
107 (string), the user name (string), the password (string), the
108 host name (string) and the port (integer)
109 </dd>
110 </dl><a NAME="SqlConnectionDialog.on_databaseEdit_textChanged" ID="SqlConnectionDialog.on_databaseEdit_textChanged"></a>
111 <h4>SqlConnectionDialog.on_databaseEdit_textChanged</h4>
112 <b>on_databaseEdit_textChanged</b>(<i>txt</i>)
113 <p>
114 Private slot handling the change of the database name.
115 </p><dl>
116 <dt><i>txt</i></dt>
117 <dd>
118 text of the edit (string)
119 </dd>
120 </dl><a NAME="SqlConnectionDialog.on_databaseFileButton_clicked" ID="SqlConnectionDialog.on_databaseFileButton_clicked"></a>
121 <h4>SqlConnectionDialog.on_databaseFileButton_clicked</h4>
122 <b>on_databaseFileButton_clicked</b>(<i></i>)
123 <p>
124 Private slot to open a database file via a file selection dialog.
125 </p><a NAME="SqlConnectionDialog.on_driverCombo_activated" ID="SqlConnectionDialog.on_driverCombo_activated"></a>
126 <h4>SqlConnectionDialog.on_driverCombo_activated</h4>
127 <b>on_driverCombo_activated</b>(<i>txt</i>)
128 <p>
129 Private slot handling the selection of a database driver.
130 </p><dl>
131 <dt><i>txt</i></dt>
132 <dd>
133 text of the driver combo (string)
134 </dd>
135 </dl>
136 <div align="right"><a href="#top">Up</a></div>
137 <hr />
138 </body></html>

eric ide

mercurial