20 </style> |
20 </style> |
21 </head> |
21 </head> |
22 <body><a NAME="top" ID="top"></a> |
22 <body><a NAME="top" ID="top"></a> |
23 <h1>eric5.SqlBrowser.SqlConnectionWidget</h1> |
23 <h1>eric5.SqlBrowser.SqlConnectionWidget</h1> |
24 <p> |
24 <p> |
25 Module implementing a widget showing the SQL connections. |
25 Module implementing a widget showing the SQL connections. |
26 </p> |
26 </p> |
27 <h3>Global Attributes</h3> |
27 <h3>Global Attributes</h3> |
28 <table> |
28 <table> |
29 <tr><td>None</td></tr> |
29 <tr><td>None</td></tr> |
30 </table> |
30 </table> |
31 <h3>Classes</h3> |
31 <h3>Classes</h3> |
32 <table> |
32 <table> |
33 <tr> |
33 <tr> |
34 <td><a href="#SqlConnectionWidget">SqlConnectionWidget</a></td> |
34 <td><a href="#SqlConnectionWidget">SqlConnectionWidget</a></td> |
35 <td>Class implementing a widget showing the SQL connections.</td> |
35 <td>Class implementing a widget showing the SQL connections.</td> |
36 </tr> |
36 </tr> |
37 </table> |
37 </table> |
38 <h3>Functions</h3> |
38 <h3>Functions</h3> |
39 <table> |
39 <table> |
40 <tr><td>None</td></tr> |
40 <tr><td>None</td></tr> |
41 </table> |
41 </table> |
42 <hr /><hr /> |
42 <hr /><hr /> |
43 <a NAME="SqlConnectionWidget" ID="SqlConnectionWidget"></a> |
43 <a NAME="SqlConnectionWidget" ID="SqlConnectionWidget"></a> |
44 <h2>SqlConnectionWidget</h2> |
44 <h2>SqlConnectionWidget</h2> |
45 <p> |
45 <p> |
46 Class implementing a widget showing the SQL connections. |
46 Class implementing a widget showing the SQL connections. |
47 </p><h4>Signals</h4> |
47 </p><h4>Signals</h4> |
48 <dl> |
48 <dl> |
49 <dt>cleared()</dt> |
49 <dt>cleared()</dt> |
50 <dd> |
50 <dd> |
51 emitted after the connection tree has been cleared |
51 emitted after the connection tree has been cleared |
52 </dd><dt>schemaRequested(QString)</dt> |
52 </dd><dt>schemaRequested(QString)</dt> |
53 <dd> |
53 <dd> |
54 emitted when the schema display is requested |
54 emitted when the schema display is requested |
55 </dd><dt>tableActivated(QString)</dt> |
55 </dd><dt>tableActivated(QString)</dt> |
56 <dd> |
56 <dd> |
57 emitted after the entry for a table has been activated |
57 emitted after the entry for a table has been activated |
58 </dd> |
58 </dd> |
59 </dl> |
59 </dl> |
60 <h3>Derived from</h3> |
60 <h3>Derived from</h3> |
61 QWidget |
61 QWidget |
62 <h3>Class Attributes</h3> |
62 <h3>Class Attributes</h3> |
65 </table> |
65 </table> |
66 <h3>Methods</h3> |
66 <h3>Methods</h3> |
67 <table> |
67 <table> |
68 <tr> |
68 <tr> |
69 <td><a href="#SqlConnectionWidget.__init__">SqlConnectionWidget</a></td> |
69 <td><a href="#SqlConnectionWidget.__init__">SqlConnectionWidget</a></td> |
70 <td>Constructor</td> |
70 <td>Constructor</td> |
71 </tr><tr> |
71 </tr><tr> |
72 <td><a href="#SqlConnectionWidget.__currentItemChanged">__currentItemChanged</a></td> |
72 <td><a href="#SqlConnectionWidget.__currentItemChanged">__currentItemChanged</a></td> |
73 <td>Private slot handling a change of the current item.</td> |
73 <td>Private slot handling a change of the current item.</td> |
74 </tr><tr> |
74 </tr><tr> |
75 <td><a href="#SqlConnectionWidget.__dbCaption">__dbCaption</a></td> |
75 <td><a href="#SqlConnectionWidget.__dbCaption">__dbCaption</a></td> |
76 <td>Private method to assemble a string for the caption.</td> |
76 <td>Private method to assemble a string for the caption.</td> |
77 </tr><tr> |
77 </tr><tr> |
78 <td><a href="#SqlConnectionWidget.__itemActivated">__itemActivated</a></td> |
78 <td><a href="#SqlConnectionWidget.__itemActivated">__itemActivated</a></td> |
79 <td>Private slot handling the activation of an item.</td> |
79 <td>Private slot handling the activation of an item.</td> |
80 </tr><tr> |
80 </tr><tr> |
81 <td><a href="#SqlConnectionWidget.__setActive">__setActive</a></td> |
81 <td><a href="#SqlConnectionWidget.__setActive">__setActive</a></td> |
82 <td>Private slot to set an item to active.</td> |
82 <td>Private slot to set an item to active.</td> |
83 </tr><tr> |
83 </tr><tr> |
84 <td><a href="#SqlConnectionWidget.__setBold">__setBold</a></td> |
84 <td><a href="#SqlConnectionWidget.__setBold">__setBold</a></td> |
85 <td>Private slot to set the font to bold.</td> |
85 <td>Private slot to set the font to bold.</td> |
86 </tr><tr> |
86 </tr><tr> |
87 <td><a href="#SqlConnectionWidget.currentDatabase">currentDatabase</a></td> |
87 <td><a href="#SqlConnectionWidget.currentDatabase">currentDatabase</a></td> |
88 <td>Public method to get the current database.</td> |
88 <td>Public method to get the current database.</td> |
89 </tr><tr> |
89 </tr><tr> |
90 <td><a href="#SqlConnectionWidget.refresh">refresh</a></td> |
90 <td><a href="#SqlConnectionWidget.refresh">refresh</a></td> |
91 <td>Public slot to refresh the connection tree.</td> |
91 <td>Public slot to refresh the connection tree.</td> |
92 </tr><tr> |
92 </tr><tr> |
93 <td><a href="#SqlConnectionWidget.showSchema">showSchema</a></td> |
93 <td><a href="#SqlConnectionWidget.showSchema">showSchema</a></td> |
94 <td>Public slot to show schema data of a database.</td> |
94 <td>Public slot to show schema data of a database.</td> |
95 </tr> |
95 </tr> |
96 </table> |
96 </table> |
97 <a NAME="SqlConnectionWidget.__init__" ID="SqlConnectionWidget.__init__"></a> |
97 <a NAME="SqlConnectionWidget.__init__" ID="SqlConnectionWidget.__init__"></a> |
98 <h4>SqlConnectionWidget (Constructor)</h4> |
98 <h4>SqlConnectionWidget (Constructor)</h4> |
99 <b>SqlConnectionWidget</b>(<i>parent = None</i>) |
99 <b>SqlConnectionWidget</b>(<i>parent = None</i>) |
100 <p> |
100 <p> |
101 Constructor |
101 Constructor |
102 </p><dl> |
102 </p><dl> |
103 <dt><i>parent</i></dt> |
103 <dt><i>parent</i></dt> |
104 <dd> |
104 <dd> |
105 reference to the parent widget (QWidget) |
105 reference to the parent widget (QWidget) |
106 </dd> |
106 </dd> |
107 </dl><a NAME="SqlConnectionWidget.__currentItemChanged" ID="SqlConnectionWidget.__currentItemChanged"></a> |
107 </dl><a NAME="SqlConnectionWidget.__currentItemChanged" ID="SqlConnectionWidget.__currentItemChanged"></a> |
108 <h4>SqlConnectionWidget.__currentItemChanged</h4> |
108 <h4>SqlConnectionWidget.__currentItemChanged</h4> |
109 <b>__currentItemChanged</b>(<i>current, previous</i>) |
109 <b>__currentItemChanged</b>(<i>current, previous</i>) |
110 <p> |
110 <p> |
111 Private slot handling a change of the current item. |
111 Private slot handling a change of the current item. |
112 </p><dl> |
112 </p><dl> |
113 <dt><i>current</i></dt> |
113 <dt><i>current</i></dt> |
114 <dd> |
114 <dd> |
115 reference to the new current item (QTreeWidgetItem) |
115 reference to the new current item (QTreeWidgetItem) |
116 </dd><dt><i>previous</i></dt> |
116 </dd><dt><i>previous</i></dt> |
117 <dd> |
117 <dd> |
118 reference to the previous current item (QTreeWidgetItem) |
118 reference to the previous current item (QTreeWidgetItem) |
119 </dd> |
119 </dd> |
120 </dl><a NAME="SqlConnectionWidget.__dbCaption" ID="SqlConnectionWidget.__dbCaption"></a> |
120 </dl><a NAME="SqlConnectionWidget.__dbCaption" ID="SqlConnectionWidget.__dbCaption"></a> |
121 <h4>SqlConnectionWidget.__dbCaption</h4> |
121 <h4>SqlConnectionWidget.__dbCaption</h4> |
122 <b>__dbCaption</b>(<i>db</i>) |
122 <b>__dbCaption</b>(<i>db</i>) |
123 <p> |
123 <p> |
124 Private method to assemble a string for the caption. |
124 Private method to assemble a string for the caption. |
125 </p><dl> |
125 </p><dl> |
126 <dt><i>db</i></dt> |
126 <dt><i>db</i></dt> |
127 <dd> |
127 <dd> |
128 reference to the database object (QSqlDatabase) |
128 reference to the database object (QSqlDatabase) |
129 </dd> |
129 </dd> |
130 </dl><dl> |
130 </dl><dl> |
131 <dt>Returns:</dt> |
131 <dt>Returns:</dt> |
132 <dd> |
132 <dd> |
133 caption string (string) |
133 caption string (string) |
134 </dd> |
134 </dd> |
135 </dl><a NAME="SqlConnectionWidget.__itemActivated" ID="SqlConnectionWidget.__itemActivated"></a> |
135 </dl><a NAME="SqlConnectionWidget.__itemActivated" ID="SqlConnectionWidget.__itemActivated"></a> |
136 <h4>SqlConnectionWidget.__itemActivated</h4> |
136 <h4>SqlConnectionWidget.__itemActivated</h4> |
137 <b>__itemActivated</b>(<i>itm, column</i>) |
137 <b>__itemActivated</b>(<i>itm, column</i>) |
138 <p> |
138 <p> |
139 Private slot handling the activation of an item. |
139 Private slot handling the activation of an item. |
140 </p><dl> |
140 </p><dl> |
141 <dt><i>itm</i></dt> |
141 <dt><i>itm</i></dt> |
142 <dd> |
142 <dd> |
143 reference to the item (QTreeWidgetItem) |
143 reference to the item (QTreeWidgetItem) |
144 </dd><dt><i>column</i></dt> |
144 </dd><dt><i>column</i></dt> |
145 <dd> |
145 <dd> |
146 column that was activated (integer) |
146 column that was activated (integer) |
147 </dd> |
147 </dd> |
148 </dl><a NAME="SqlConnectionWidget.__setActive" ID="SqlConnectionWidget.__setActive"></a> |
148 </dl><a NAME="SqlConnectionWidget.__setActive" ID="SqlConnectionWidget.__setActive"></a> |
149 <h4>SqlConnectionWidget.__setActive</h4> |
149 <h4>SqlConnectionWidget.__setActive</h4> |
150 <b>__setActive</b>(<i>itm</i>) |
150 <b>__setActive</b>(<i>itm</i>) |
151 <p> |
151 <p> |
152 Private slot to set an item to active. |
152 Private slot to set an item to active. |
153 </p><dl> |
153 </p><dl> |
154 <dt><i>itm</i></dt> |
154 <dt><i>itm</i></dt> |
155 <dd> |
155 <dd> |
156 reference to the item to set as the active item (QTreeWidgetItem) |
156 reference to the item to set as the active item (QTreeWidgetItem) |
157 </dd> |
157 </dd> |
158 </dl><a NAME="SqlConnectionWidget.__setBold" ID="SqlConnectionWidget.__setBold"></a> |
158 </dl><a NAME="SqlConnectionWidget.__setBold" ID="SqlConnectionWidget.__setBold"></a> |
159 <h4>SqlConnectionWidget.__setBold</h4> |
159 <h4>SqlConnectionWidget.__setBold</h4> |
160 <b>__setBold</b>(<i>itm, bold</i>) |
160 <b>__setBold</b>(<i>itm, bold</i>) |
161 <p> |
161 <p> |
162 Private slot to set the font to bold. |
162 Private slot to set the font to bold. |
163 </p><dl> |
163 </p><dl> |
164 <dt><i>itm</i></dt> |
164 <dt><i>itm</i></dt> |
165 <dd> |
165 <dd> |
166 reference to the item to be changed (QTreeWidgetItem) |
166 reference to the item to be changed (QTreeWidgetItem) |
167 </dd><dt><i>bold</i></dt> |
167 </dd><dt><i>bold</i></dt> |
168 <dd> |
168 <dd> |
169 flag indicating bold (boolean) |
169 flag indicating bold (boolean) |
170 </dd> |
170 </dd> |
171 </dl><a NAME="SqlConnectionWidget.currentDatabase" ID="SqlConnectionWidget.currentDatabase"></a> |
171 </dl><a NAME="SqlConnectionWidget.currentDatabase" ID="SqlConnectionWidget.currentDatabase"></a> |
172 <h4>SqlConnectionWidget.currentDatabase</h4> |
172 <h4>SqlConnectionWidget.currentDatabase</h4> |
173 <b>currentDatabase</b>(<i></i>) |
173 <b>currentDatabase</b>(<i></i>) |
174 <p> |
174 <p> |
175 Public method to get the current database. |
175 Public method to get the current database. |
176 </p><dl> |
176 </p><dl> |
177 <dt>Returns:</dt> |
177 <dt>Returns:</dt> |
178 <dd> |
178 <dd> |
179 reference to the current database (QSqlDatabase) |
179 reference to the current database (QSqlDatabase) |
180 </dd> |
180 </dd> |
181 </dl><a NAME="SqlConnectionWidget.refresh" ID="SqlConnectionWidget.refresh"></a> |
181 </dl><a NAME="SqlConnectionWidget.refresh" ID="SqlConnectionWidget.refresh"></a> |
182 <h4>SqlConnectionWidget.refresh</h4> |
182 <h4>SqlConnectionWidget.refresh</h4> |
183 <b>refresh</b>(<i></i>) |
183 <b>refresh</b>(<i></i>) |
184 <p> |
184 <p> |
185 Public slot to refresh the connection tree. |
185 Public slot to refresh the connection tree. |
186 </p><a NAME="SqlConnectionWidget.showSchema" ID="SqlConnectionWidget.showSchema"></a> |
186 </p><a NAME="SqlConnectionWidget.showSchema" ID="SqlConnectionWidget.showSchema"></a> |
187 <h4>SqlConnectionWidget.showSchema</h4> |
187 <h4>SqlConnectionWidget.showSchema</h4> |
188 <b>showSchema</b>(<i></i>) |
188 <b>showSchema</b>(<i></i>) |
189 <p> |
189 <p> |
190 Public slot to show schema data of a database. |
190 Public slot to show schema data of a database. |
191 </p> |
191 </p> |
192 <div align="right"><a href="#top">Up</a></div> |
192 <div align="right"><a href="#top">Up</a></div> |
193 <hr /> |
193 <hr /> |
194 </body></html> |
194 </body></html> |