src/eric7/Documentation/Source/eric7.SqlBrowser.SqlConnectionWidget.html

branch
eric7
changeset 10479
856476537696
parent 10431
64157aeb0312
child 10692
9becf9ca115c
equal deleted inserted replaced
10478:de9106c55c3d 10479:856476537696
5 <link rel="stylesheet" href="styles.css"> 5 <link rel="stylesheet" href="styles.css">
6 </head> 6 </head>
7 <body> 7 <body>
8 <a NAME="top" ID="top"></a> 8 <a NAME="top" ID="top"></a>
9 <h1>eric7.SqlBrowser.SqlConnectionWidget</h1> 9 <h1>eric7.SqlBrowser.SqlConnectionWidget</h1>
10
11 <p> 10 <p>
12 Module implementing a widget showing the SQL connections. 11 Module implementing a widget showing the SQL connections.
13 </p> 12 </p>
13
14 <h3>Global Attributes</h3> 14 <h3>Global Attributes</h3>
15 15 <table>
16 <table> 16 <tr><td>None</td></tr>
17 <tr><td>None</td></tr> 17 </table>
18 </table> 18
19 <h3>Classes</h3> 19 <h3>Classes</h3>
20 20 <table>
21 <table>
22
23 <tr> 21 <tr>
24 <td><a href="#SqlConnectionWidget">SqlConnectionWidget</a></td> 22 <td><a href="#SqlConnectionWidget">SqlConnectionWidget</a></td>
25 <td>Class implementing a widget showing the SQL connections.</td> 23 <td>Class implementing a widget showing the SQL connections.</td>
26 </tr> 24 </tr>
27 </table> 25 </table>
26
28 <h3>Functions</h3> 27 <h3>Functions</h3>
29 28 <table>
30 <table> 29 <tr><td>None</td></tr>
31 <tr><td>None</td></tr> 30 </table>
32 </table> 31
33 <hr /> 32 <hr />
34 <hr /> 33 <hr />
35 <a NAME="SqlConnectionWidget" ID="SqlConnectionWidget"></a> 34 <a NAME="SqlConnectionWidget" ID="SqlConnectionWidget"></a>
36 <h2>SqlConnectionWidget</h2> 35 <h2>SqlConnectionWidget</h2>
37
38 <p> 36 <p>
39 Class implementing a widget showing the SQL connections. 37 Class implementing a widget showing the SQL connections.
40 </p> 38 </p>
39
41 <h3>Signals</h3> 40 <h3>Signals</h3>
42 <dl> 41 <dl>
43 42
44 <dt>cleared()</dt> 43 <dt>cleared()</dt>
45 <dd> 44 <dd>
56 </dd> 55 </dd>
57 </dl> 56 </dl>
58 <h3>Derived from</h3> 57 <h3>Derived from</h3>
59 QWidget 58 QWidget
60 <h3>Class Attributes</h3> 59 <h3>Class Attributes</h3>
61 60 <table>
62 <table> 61 <tr><td>None</td></tr>
63 <tr><td>None</td></tr> 62 </table>
64 </table> 63
65 <h3>Class Methods</h3> 64 <h3>Class Methods</h3>
66 65 <table>
67 <table> 66 <tr><td>None</td></tr>
68 <tr><td>None</td></tr> 67 </table>
69 </table> 68
70 <h3>Methods</h3> 69 <h3>Methods</h3>
71 70 <table>
72 <table>
73
74 <tr> 71 <tr>
75 <td><a href="#SqlConnectionWidget.__init__">SqlConnectionWidget</a></td> 72 <td><a href="#SqlConnectionWidget.__init__">SqlConnectionWidget</a></td>
76 <td>Constructor</td> 73 <td>Constructor</td>
77 </tr> 74 </tr>
78 <tr> 75 <tr>
106 <tr> 103 <tr>
107 <td><a href="#SqlConnectionWidget.showSchema">showSchema</a></td> 104 <td><a href="#SqlConnectionWidget.showSchema">showSchema</a></td>
108 <td>Public slot to show schema data of a database.</td> 105 <td>Public slot to show schema data of a database.</td>
109 </tr> 106 </tr>
110 </table> 107 </table>
108
111 <h3>Static Methods</h3> 109 <h3>Static Methods</h3>
112 110 <table>
113 <table> 111 <tr><td>None</td></tr>
114 <tr><td>None</td></tr> 112 </table>
115 </table> 113
116 114
117 <a NAME="SqlConnectionWidget.__init__" ID="SqlConnectionWidget.__init__"></a> 115 <a NAME="SqlConnectionWidget.__init__" ID="SqlConnectionWidget.__init__"></a>
118 <h4>SqlConnectionWidget (Constructor)</h4> 116 <h4>SqlConnectionWidget (Constructor)</h4>
119 <b>SqlConnectionWidget</b>(<i>parent=None</i>) 117 <b>SqlConnectionWidget</b>(<i>parent=None</i>)
120
121 <p> 118 <p>
122 Constructor 119 Constructor
123 </p> 120 </p>
121
124 <dl> 122 <dl>
125 123
126 <dt><i>parent</i> (QWidget)</dt> 124 <dt><i>parent</i> (QWidget)</dt>
127 <dd> 125 <dd>
128 reference to the parent widget 126 reference to the parent widget
129 </dd> 127 </dd>
130 </dl> 128 </dl>
131 <a NAME="SqlConnectionWidget.__currentItemChanged" ID="SqlConnectionWidget.__currentItemChanged"></a> 129 <a NAME="SqlConnectionWidget.__currentItemChanged" ID="SqlConnectionWidget.__currentItemChanged"></a>
132 <h4>SqlConnectionWidget.__currentItemChanged</h4> 130 <h4>SqlConnectionWidget.__currentItemChanged</h4>
133 <b>__currentItemChanged</b>(<i>current, previous</i>) 131 <b>__currentItemChanged</b>(<i>current, previous</i>)
134
135 <p> 132 <p>
136 Private slot handling a change of the current item. 133 Private slot handling a change of the current item.
137 </p> 134 </p>
135
138 <dl> 136 <dl>
139 137
140 <dt><i>current</i> (QTreeWidgetItem)</dt> 138 <dt><i>current</i> (QTreeWidgetItem)</dt>
141 <dd> 139 <dd>
142 reference to the new current item 140 reference to the new current item
147 </dd> 145 </dd>
148 </dl> 146 </dl>
149 <a NAME="SqlConnectionWidget.__dbCaption" ID="SqlConnectionWidget.__dbCaption"></a> 147 <a NAME="SqlConnectionWidget.__dbCaption" ID="SqlConnectionWidget.__dbCaption"></a>
150 <h4>SqlConnectionWidget.__dbCaption</h4> 148 <h4>SqlConnectionWidget.__dbCaption</h4>
151 <b>__dbCaption</b>(<i>db</i>) 149 <b>__dbCaption</b>(<i>db</i>)
152
153 <p> 150 <p>
154 Private method to assemble a string for the caption. 151 Private method to assemble a string for the caption.
155 </p> 152 </p>
153
156 <dl> 154 <dl>
157 155
158 <dt><i>db</i> (QSqlDatabase)</dt> 156 <dt><i>db</i> (QSqlDatabase)</dt>
159 <dd> 157 <dd>
160 reference to the database object 158 reference to the database object
173 </dd> 171 </dd>
174 </dl> 172 </dl>
175 <a NAME="SqlConnectionWidget.__itemActivated" ID="SqlConnectionWidget.__itemActivated"></a> 173 <a NAME="SqlConnectionWidget.__itemActivated" ID="SqlConnectionWidget.__itemActivated"></a>
176 <h4>SqlConnectionWidget.__itemActivated</h4> 174 <h4>SqlConnectionWidget.__itemActivated</h4>
177 <b>__itemActivated</b>(<i>itm, column</i>) 175 <b>__itemActivated</b>(<i>itm, column</i>)
178
179 <p> 176 <p>
180 Private slot handling the activation of an item. 177 Private slot handling the activation of an item.
181 </p> 178 </p>
179
182 <dl> 180 <dl>
183 181
184 <dt><i>itm</i> (QTreeWidgetItem)</dt> 182 <dt><i>itm</i> (QTreeWidgetItem)</dt>
185 <dd> 183 <dd>
186 reference to the item 184 reference to the item
191 </dd> 189 </dd>
192 </dl> 190 </dl>
193 <a NAME="SqlConnectionWidget.__setActive" ID="SqlConnectionWidget.__setActive"></a> 191 <a NAME="SqlConnectionWidget.__setActive" ID="SqlConnectionWidget.__setActive"></a>
194 <h4>SqlConnectionWidget.__setActive</h4> 192 <h4>SqlConnectionWidget.__setActive</h4>
195 <b>__setActive</b>(<i>itm</i>) 193 <b>__setActive</b>(<i>itm</i>)
196
197 <p> 194 <p>
198 Private slot to set an item to active. 195 Private slot to set an item to active.
199 </p> 196 </p>
197
200 <dl> 198 <dl>
201 199
202 <dt><i>itm</i> (QTreeWidgetItem)</dt> 200 <dt><i>itm</i> (QTreeWidgetItem)</dt>
203 <dd> 201 <dd>
204 reference to the item to set as the active item 202 reference to the item to set as the active item
205 </dd> 203 </dd>
206 </dl> 204 </dl>
207 <a NAME="SqlConnectionWidget.__setBold" ID="SqlConnectionWidget.__setBold"></a> 205 <a NAME="SqlConnectionWidget.__setBold" ID="SqlConnectionWidget.__setBold"></a>
208 <h4>SqlConnectionWidget.__setBold</h4> 206 <h4>SqlConnectionWidget.__setBold</h4>
209 <b>__setBold</b>(<i>itm, bold</i>) 207 <b>__setBold</b>(<i>itm, bold</i>)
210
211 <p> 208 <p>
212 Private slot to set the font to bold. 209 Private slot to set the font to bold.
213 </p> 210 </p>
211
214 <dl> 212 <dl>
215 213
216 <dt><i>itm</i> (QTreeWidgetItem)</dt> 214 <dt><i>itm</i> (QTreeWidgetItem)</dt>
217 <dd> 215 <dd>
218 reference to the item to be changed 216 reference to the item to be changed
223 </dd> 221 </dd>
224 </dl> 222 </dl>
225 <a NAME="SqlConnectionWidget.currentDatabase" ID="SqlConnectionWidget.currentDatabase"></a> 223 <a NAME="SqlConnectionWidget.currentDatabase" ID="SqlConnectionWidget.currentDatabase"></a>
226 <h4>SqlConnectionWidget.currentDatabase</h4> 224 <h4>SqlConnectionWidget.currentDatabase</h4>
227 <b>currentDatabase</b>(<i></i>) 225 <b>currentDatabase</b>(<i></i>)
228
229 <p> 226 <p>
230 Public method to get the current database. 227 Public method to get the current database.
231 </p> 228 </p>
229
232 <dl> 230 <dl>
233 <dt>Return:</dt> 231 <dt>Return:</dt>
234 <dd> 232 <dd>
235 reference to the current database 233 reference to the current database
236 </dd> 234 </dd>
242 </dd> 240 </dd>
243 </dl> 241 </dl>
244 <a NAME="SqlConnectionWidget.refresh" ID="SqlConnectionWidget.refresh"></a> 242 <a NAME="SqlConnectionWidget.refresh" ID="SqlConnectionWidget.refresh"></a>
245 <h4>SqlConnectionWidget.refresh</h4> 243 <h4>SqlConnectionWidget.refresh</h4>
246 <b>refresh</b>(<i></i>) 244 <b>refresh</b>(<i></i>)
247
248 <p> 245 <p>
249 Public slot to refresh the connection tree. 246 Public slot to refresh the connection tree.
250 </p> 247 </p>
248
251 <a NAME="SqlConnectionWidget.showSchema" ID="SqlConnectionWidget.showSchema"></a> 249 <a NAME="SqlConnectionWidget.showSchema" ID="SqlConnectionWidget.showSchema"></a>
252 <h4>SqlConnectionWidget.showSchema</h4> 250 <h4>SqlConnectionWidget.showSchema</h4>
253 <b>showSchema</b>(<i></i>) 251 <b>showSchema</b>(<i></i>)
254
255 <p> 252 <p>
256 Public slot to show schema data of a database. 253 Public slot to show schema data of a database.
257 </p> 254 </p>
255
258 <div align="right"><a href="#top">Up</a></div> 256 <div align="right"><a href="#top">Up</a></div>
259 <hr /> 257 <hr />
260 </body></html> 258 </body></html>

eric ide

mercurial