Documentation/Source/eric5.SqlBrowser.SqlConnectionDialog.html

changeset 58
37f0444c3479
parent 21
b88a0e6268bd
child 110
c9a969db1469
equal deleted inserted replaced
57:81326a94fdca 58:37f0444c3479
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.SqlConnectionDialog</h1> 23 <h1>eric5.SqlBrowser.SqlConnectionDialog</h1>
24 <p> 24 <p>
25 &#77;&#111;&#100;&#117;&#108;&#101; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#97; &#100;&#105;&#97;&#108;&#111;&#103; &#116;&#111; &#101;&#110;&#116;&#101;&#114; &#116;&#104;&#101; &#99;&#111;&#110;&#110;&#101;&#99;&#116;&#105;&#111;&#110; &#112;&#97;&#114;&#97;&#109;&#101;&#116;&#101;&#114;&#115;. 25 Module implementing a dialog to enter the connection parameters.
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="#SqlConnectionDialog">SqlConnectionDialog</a></td> 34 <td><a href="#SqlConnectionDialog">SqlConnectionDialog</a></td>
35 <td>&#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#97; &#100;&#105;&#97;&#108;&#111;&#103; &#116;&#111; &#101;&#110;&#116;&#101;&#114; &#116;&#104;&#101; &#99;&#111;&#110;&#110;&#101;&#99;&#116;&#105;&#111;&#110; &#112;&#97;&#114;&#97;&#109;&#101;&#116;&#101;&#114;&#115;.</td> 35 <td>Class implementing a dialog to enter the connection parameters.</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="SqlConnectionDialog" ID="SqlConnectionDialog"></a> 43 <a NAME="SqlConnectionDialog" ID="SqlConnectionDialog"></a>
44 <h2>SqlConnectionDialog</h2> 44 <h2>SqlConnectionDialog</h2>
45 <p> 45 <p>
46 &#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#97; &#100;&#105;&#97;&#108;&#111;&#103; &#116;&#111; &#101;&#110;&#116;&#101;&#114; &#116;&#104;&#101; &#99;&#111;&#110;&#110;&#101;&#99;&#116;&#105;&#111;&#110; &#112;&#97;&#114;&#97;&#109;&#101;&#116;&#101;&#114;&#115;. 46 Class implementing a dialog to enter the connection parameters.
47 </p> 47 </p>
48 <h3>Derived from</h3> 48 <h3>Derived from</h3>
49 QDialog, Ui_SqlConnectionDialog 49 QDialog, Ui_SqlConnectionDialog
50 <h3>Class Attributes</h3> 50 <h3>Class Attributes</h3>
51 <table> 51 <table>
53 </table> 53 </table>
54 <h3>Methods</h3> 54 <h3>Methods</h3>
55 <table> 55 <table>
56 <tr> 56 <tr>
57 <td><a href="#SqlConnectionDialog.__init__">SqlConnectionDialog</a></td> 57 <td><a href="#SqlConnectionDialog.__init__">SqlConnectionDialog</a></td>
58 <td>&#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;</td> 58 <td>Constructor</td>
59 </tr><tr> 59 </tr><tr>
60 <td><a href="#SqlConnectionDialog.__updateDialog">__updateDialog</a></td> 60 <td><a href="#SqlConnectionDialog.__updateDialog">__updateDialog</a></td>
61 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#117;&#112;&#100;&#97;&#116;&#101; &#116;&#104;&#101; &#100;&#105;&#97;&#108;&#111;&#103; &#100;&#101;&#112;&#101;&#110;&#100;&#105;&#110;&#103; &#111;&#110; &#105;&#116;'&#115; &#99;&#111;&#110;&#116;&#101;&#110;&#116;&#115;.</td> 61 <td>Private slot to update the dialog depending on it's contents.</td>
62 </tr><tr> 62 </tr><tr>
63 <td><a href="#SqlConnectionDialog.getData">getData</a></td> 63 <td><a href="#SqlConnectionDialog.getData">getData</a></td>
64 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#101;&#116;&#114;&#105;&#101;v&#101; &#116;&#104;&#101; &#99;&#111;&#110;&#110;&#101;&#99;&#116;&#105;&#111;&#110; &#100;&#97;&#116;&#97;.</td> 64 <td>Public method to retrieve the connection data.</td>
65 </tr><tr> 65 </tr><tr>
66 <td><a href="#SqlConnectionDialog.on_databaseEdit_textChanged">on_databaseEdit_textChanged</a></td> 66 <td><a href="#SqlConnectionDialog.on_databaseEdit_textChanged">on_databaseEdit_textChanged</a></td>
67 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#104;&#97;&#110;&#100;&#108;&#105;&#110;&#103; &#116;&#104;&#101; &#99;&#104;&#97;&#110;&#103;&#101; &#111;&#102; &#116;&#104;&#101; &#100;&#97;&#116;&#97;&#98;&#97;&#115;&#101; &#110;&#97;&#109;&#101;.</td> 67 <td>Private slot handling the change of the database name.</td>
68 </tr><tr> 68 </tr><tr>
69 <td><a href="#SqlConnectionDialog.on_databaseFileButton_clicked">on_databaseFileButton_clicked</a></td> 69 <td><a href="#SqlConnectionDialog.on_databaseFileButton_clicked">on_databaseFileButton_clicked</a></td>
70 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#111;&#112;&#101;&#110; &#97; &#100;&#97;&#116;&#97;&#98;&#97;&#115;&#101; &#102;&#105;&#108;&#101; v&#105;&#97; &#97; &#102;&#105;&#108;&#101; &#115;&#101;&#108;&#101;&#99;&#116;&#105;&#111;&#110; &#100;&#105;&#97;&#108;&#111;&#103;.</td> 70 <td>Private slot to open a database file via a file selection dialog.</td>
71 </tr><tr> 71 </tr><tr>
72 <td><a href="#SqlConnectionDialog.on_driverCombo_activated">on_driverCombo_activated</a></td> 72 <td><a href="#SqlConnectionDialog.on_driverCombo_activated">on_driverCombo_activated</a></td>
73 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#104;&#97;&#110;&#100;&#108;&#105;&#110;&#103; &#116;&#104;&#101; &#115;&#101;&#108;&#101;&#99;&#116;&#105;&#111;&#110; &#111;&#102; &#97; &#100;&#97;&#116;&#97;&#98;&#97;&#115;&#101; &#100;&#114;&#105;v&#101;&#114;.</td> 73 <td>Private slot handling the selection of a database driver.</td>
74 </tr> 74 </tr>
75 </table> 75 </table>
76 <a NAME="SqlConnectionDialog.__init__" ID="SqlConnectionDialog.__init__"></a> 76 <a NAME="SqlConnectionDialog.__init__" ID="SqlConnectionDialog.__init__"></a>
77 <h4>SqlConnectionDialog (Constructor)</h4> 77 <h4>SqlConnectionDialog (Constructor)</h4>
78 <b>SqlConnectionDialog</b>(<i>parent = None</i>) 78 <b>SqlConnectionDialog</b>(<i>parent = None</i>)
79 <p> 79 <p>
80 &#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114; 80 Constructor
81 </p><a NAME="SqlConnectionDialog.__updateDialog" ID="SqlConnectionDialog.__updateDialog"></a> 81 </p><a NAME="SqlConnectionDialog.__updateDialog" ID="SqlConnectionDialog.__updateDialog"></a>
82 <h4>SqlConnectionDialog.__updateDialog</h4> 82 <h4>SqlConnectionDialog.__updateDialog</h4>
83 <b>__updateDialog</b>(<i></i>) 83 <b>__updateDialog</b>(<i></i>)
84 <p> 84 <p>
85 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#117;&#112;&#100;&#97;&#116;&#101; &#116;&#104;&#101; &#100;&#105;&#97;&#108;&#111;&#103; &#100;&#101;&#112;&#101;&#110;&#100;&#105;&#110;&#103; &#111;&#110; &#105;&#116;'&#115; &#99;&#111;&#110;&#116;&#101;&#110;&#116;&#115;. 85 Private slot to update the dialog depending on it's contents.
86 </p><a NAME="SqlConnectionDialog.getData" ID="SqlConnectionDialog.getData"></a> 86 </p><a NAME="SqlConnectionDialog.getData" ID="SqlConnectionDialog.getData"></a>
87 <h4>SqlConnectionDialog.getData</h4> 87 <h4>SqlConnectionDialog.getData</h4>
88 <b>getData</b>(<i></i>) 88 <b>getData</b>(<i></i>)
89 <p> 89 <p>
90 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#101;&#116;&#114;&#105;&#101;v&#101; &#116;&#104;&#101; &#99;&#111;&#110;&#110;&#101;&#99;&#116;&#105;&#111;&#110; &#100;&#97;&#116;&#97;. 90 Public method to retrieve the connection data.
91 </p><dl> 91 </p><dl>
92 <dt>Returns:</dt> 92 <dt>Returns:</dt>
93 <dd> 93 <dd>
94 &#116;&#117;&#112;&#108;&#101; &#103;&#105;v&#105;&#110;&#103; &#116;&#104;&#101; &#100;&#114;&#105;v&#101;&#114; &#110;&#97;&#109;&#101; (&#81;&#83;&#116;&#114;&#105;&#110;&#103;), &#116;&#104;&#101; &#100;&#97;&#116;&#97;&#98;&#97;&#115;&#101; &#110;&#97;&#109;&#101; (&#81;&#83;&#116;&#114;&#105;&#110;&#103;), 94 tuple giving the driver name (QString), the database name (QString),
95 &#116;&#104;&#101; &#117;&#115;&#101;&#114; &#110;&#97;&#109;&#101; (&#81;&#83;&#116;&#114;&#105;&#110;&#103;), &#116;&#104;&#101; &#112;&#97;&#115;&#115;w&#111;&#114;&#100; (&#81;&#83;&#116;&#114;&#105;&#110;&#103;), &#116;&#104;&#101; &#104;&#111;&#115;&#116; &#110;&#97;&#109;&#101; (&#81;&#83;&#116;&#114;&#105;&#110;&#103;) 95 the user name (QString), the password (QString), the host name (QString)
96 &#97;&#110;&#100; &#116;&#104;&#101; &#112;&#111;&#114;&#116; (&#105;&#110;&#116;&#101;&#103;&#101;&#114;) 96 and the port (integer)
97 </dd> 97 </dd>
98 </dl><a NAME="SqlConnectionDialog.on_databaseEdit_textChanged" ID="SqlConnectionDialog.on_databaseEdit_textChanged"></a> 98 </dl><a NAME="SqlConnectionDialog.on_databaseEdit_textChanged" ID="SqlConnectionDialog.on_databaseEdit_textChanged"></a>
99 <h4>SqlConnectionDialog.on_databaseEdit_textChanged</h4> 99 <h4>SqlConnectionDialog.on_databaseEdit_textChanged</h4>
100 <b>on_databaseEdit_textChanged</b>(<i>p0</i>) 100 <b>on_databaseEdit_textChanged</b>(<i>p0</i>)
101 <p> 101 <p>
102 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#104;&#97;&#110;&#100;&#108;&#105;&#110;&#103; &#116;&#104;&#101; &#99;&#104;&#97;&#110;&#103;&#101; &#111;&#102; &#116;&#104;&#101; &#100;&#97;&#116;&#97;&#98;&#97;&#115;&#101; &#110;&#97;&#109;&#101;. 102 Private slot handling the change of the database name.
103 </p><a NAME="SqlConnectionDialog.on_databaseFileButton_clicked" ID="SqlConnectionDialog.on_databaseFileButton_clicked"></a> 103 </p><a NAME="SqlConnectionDialog.on_databaseFileButton_clicked" ID="SqlConnectionDialog.on_databaseFileButton_clicked"></a>
104 <h4>SqlConnectionDialog.on_databaseFileButton_clicked</h4> 104 <h4>SqlConnectionDialog.on_databaseFileButton_clicked</h4>
105 <b>on_databaseFileButton_clicked</b>(<i></i>) 105 <b>on_databaseFileButton_clicked</b>(<i></i>)
106 <p> 106 <p>
107 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#111;&#112;&#101;&#110; &#97; &#100;&#97;&#116;&#97;&#98;&#97;&#115;&#101; &#102;&#105;&#108;&#101; v&#105;&#97; &#97; &#102;&#105;&#108;&#101; &#115;&#101;&#108;&#101;&#99;&#116;&#105;&#111;&#110; &#100;&#105;&#97;&#108;&#111;&#103;. 107 Private slot to open a database file via a file selection dialog.
108 </p><a NAME="SqlConnectionDialog.on_driverCombo_activated" ID="SqlConnectionDialog.on_driverCombo_activated"></a> 108 </p><a NAME="SqlConnectionDialog.on_driverCombo_activated" ID="SqlConnectionDialog.on_driverCombo_activated"></a>
109 <h4>SqlConnectionDialog.on_driverCombo_activated</h4> 109 <h4>SqlConnectionDialog.on_driverCombo_activated</h4>
110 <b>on_driverCombo_activated</b>(<i>txt</i>) 110 <b>on_driverCombo_activated</b>(<i>txt</i>)
111 <p> 111 <p>
112 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#104;&#97;&#110;&#100;&#108;&#105;&#110;&#103; &#116;&#104;&#101; &#115;&#101;&#108;&#101;&#99;&#116;&#105;&#111;&#110; &#111;&#102; &#97; &#100;&#97;&#116;&#97;&#98;&#97;&#115;&#101; &#100;&#114;&#105;v&#101;&#114;. 112 Private slot handling the selection of a database driver.
113 </p> 113 </p>
114 <div align="right"><a href="#top">Up</a></div> 114 <div align="right"><a href="#top">Up</a></div>
115 <hr /> 115 <hr />
116 </body></html> 116 </body></html>

eric ide

mercurial