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