|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.SqlBrowser.SqlConnectionDialog</title> |
|
4 <meta charset="UTF-8"> |
|
5 <link rel="stylesheet" href="styles.css"> |
|
6 </head> |
|
7 <body> |
|
8 <a NAME="top" ID="top"></a> |
|
9 <h1>eric7.SqlBrowser.SqlConnectionDialog</h1> |
|
10 |
|
11 <p> |
|
12 Module implementing a dialog to enter the connection parameters. |
|
13 </p> |
|
14 <h3>Global Attributes</h3> |
|
15 |
|
16 <table> |
|
17 <tr><td>None</td></tr> |
|
18 </table> |
|
19 <h3>Classes</h3> |
|
20 |
|
21 <table> |
|
22 |
|
23 <tr> |
|
24 <td><a href="#SqlConnectionDialog">SqlConnectionDialog</a></td> |
|
25 <td>Class implementing a dialog to enter the connection parameters.</td> |
|
26 </tr> |
|
27 </table> |
|
28 <h3>Functions</h3> |
|
29 |
|
30 <table> |
|
31 <tr><td>None</td></tr> |
|
32 </table> |
|
33 <hr /> |
|
34 <hr /> |
|
35 <a NAME="SqlConnectionDialog" ID="SqlConnectionDialog"></a> |
|
36 <h2>SqlConnectionDialog</h2> |
|
37 |
|
38 <p> |
|
39 Class implementing a dialog to enter the connection parameters. |
|
40 </p> |
|
41 <h3>Derived from</h3> |
|
42 QDialog, Ui_SqlConnectionDialog |
|
43 <h3>Class Attributes</h3> |
|
44 |
|
45 <table> |
|
46 <tr><td>None</td></tr> |
|
47 </table> |
|
48 <h3>Class Methods</h3> |
|
49 |
|
50 <table> |
|
51 <tr><td>None</td></tr> |
|
52 </table> |
|
53 <h3>Methods</h3> |
|
54 |
|
55 <table> |
|
56 |
|
57 <tr> |
|
58 <td><a href="#SqlConnectionDialog.__init__">SqlConnectionDialog</a></td> |
|
59 <td>Constructor</td> |
|
60 </tr> |
|
61 <tr> |
|
62 <td><a href="#SqlConnectionDialog.__updateDialog">__updateDialog</a></td> |
|
63 <td>Private slot to update the dialog depending on its contents.</td> |
|
64 </tr> |
|
65 <tr> |
|
66 <td><a href="#SqlConnectionDialog.getData">getData</a></td> |
|
67 <td>Public method to retrieve the connection data.</td> |
|
68 </tr> |
|
69 <tr> |
|
70 <td><a href="#SqlConnectionDialog.on_databasePicker_textChanged">on_databasePicker_textChanged</a></td> |
|
71 <td>Private slot handling the change of the database name.</td> |
|
72 </tr> |
|
73 <tr> |
|
74 <td><a href="#SqlConnectionDialog.on_driverCombo_activated">on_driverCombo_activated</a></td> |
|
75 <td>Private slot handling the selection of a database driver.</td> |
|
76 </tr> |
|
77 </table> |
|
78 <h3>Static Methods</h3> |
|
79 |
|
80 <table> |
|
81 <tr><td>None</td></tr> |
|
82 </table> |
|
83 |
|
84 <a NAME="SqlConnectionDialog.__init__" ID="SqlConnectionDialog.__init__"></a> |
|
85 <h4>SqlConnectionDialog (Constructor)</h4> |
|
86 <b>SqlConnectionDialog</b>(<i>parent=None</i>) |
|
87 |
|
88 <p> |
|
89 Constructor |
|
90 </p> |
|
91 <dl> |
|
92 |
|
93 <dt><i>parent</i></dt> |
|
94 <dd> |
|
95 reference to the parent widget (QWidget) |
|
96 </dd> |
|
97 </dl> |
|
98 <a NAME="SqlConnectionDialog.__updateDialog" ID="SqlConnectionDialog.__updateDialog"></a> |
|
99 <h4>SqlConnectionDialog.__updateDialog</h4> |
|
100 <b>__updateDialog</b>(<i></i>) |
|
101 |
|
102 <p> |
|
103 Private slot to update the dialog depending on its contents. |
|
104 </p> |
|
105 <a NAME="SqlConnectionDialog.getData" ID="SqlConnectionDialog.getData"></a> |
|
106 <h4>SqlConnectionDialog.getData</h4> |
|
107 <b>getData</b>(<i></i>) |
|
108 |
|
109 <p> |
|
110 Public method to retrieve the connection data. |
|
111 </p> |
|
112 <dl> |
|
113 <dt>Return:</dt> |
|
114 <dd> |
|
115 tuple giving the driver name (string), the database name |
|
116 (string), the user name (string), the password (string), the |
|
117 host name (string) and the port (integer) |
|
118 </dd> |
|
119 </dl> |
|
120 <a NAME="SqlConnectionDialog.on_databasePicker_textChanged" ID="SqlConnectionDialog.on_databasePicker_textChanged"></a> |
|
121 <h4>SqlConnectionDialog.on_databasePicker_textChanged</h4> |
|
122 <b>on_databasePicker_textChanged</b>(<i>txt</i>) |
|
123 |
|
124 <p> |
|
125 Private slot handling the change of the database name. |
|
126 </p> |
|
127 <dl> |
|
128 |
|
129 <dt><i>txt</i></dt> |
|
130 <dd> |
|
131 text of the edit (string) |
|
132 </dd> |
|
133 </dl> |
|
134 <a NAME="SqlConnectionDialog.on_driverCombo_activated" ID="SqlConnectionDialog.on_driverCombo_activated"></a> |
|
135 <h4>SqlConnectionDialog.on_driverCombo_activated</h4> |
|
136 <b>on_driverCombo_activated</b>(<i>index</i>) |
|
137 |
|
138 <p> |
|
139 Private slot handling the selection of a database driver. |
|
140 </p> |
|
141 <dl> |
|
142 |
|
143 <dt><i>index</i> (int)</dt> |
|
144 <dd> |
|
145 index of the selected entry |
|
146 </dd> |
|
147 </dl> |
|
148 <div align="right"><a href="#top">Up</a></div> |
|
149 <hr /> |
|
150 </body></html> |