|
1 # Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric7_default/src/eric7/SqlBrowser/SqlConnectionDialog.ui' |
|
2 # |
|
3 # Created by: PyQt6 UI code generator 6.7.0 |
|
4 # |
|
5 # WARNING: Any manual changes made to this file will be lost when pyuic6 is |
|
6 # run again. Do not edit this file unless you know what you are doing. |
|
7 |
|
8 |
|
9 from PyQt6 import QtCore, QtGui, QtWidgets |
|
10 |
|
11 |
|
12 class Ui_SqlConnectionDialog(object): |
|
13 def setupUi(self, SqlConnectionDialog): |
|
14 SqlConnectionDialog.setObjectName("SqlConnectionDialog") |
|
15 SqlConnectionDialog.resize(500, 210) |
|
16 self.gridLayout = QtWidgets.QGridLayout(SqlConnectionDialog) |
|
17 self.gridLayout.setObjectName("gridLayout") |
|
18 self.textLabel2 = QtWidgets.QLabel(parent=SqlConnectionDialog) |
|
19 self.textLabel2.setObjectName("textLabel2") |
|
20 self.gridLayout.addWidget(self.textLabel2, 0, 0, 1, 1) |
|
21 self.driverCombo = QtWidgets.QComboBox(parent=SqlConnectionDialog) |
|
22 self.driverCombo.setObjectName("driverCombo") |
|
23 self.gridLayout.addWidget(self.driverCombo, 0, 1, 1, 1) |
|
24 self.textLabel3 = QtWidgets.QLabel(parent=SqlConnectionDialog) |
|
25 self.textLabel3.setObjectName("textLabel3") |
|
26 self.gridLayout.addWidget(self.textLabel3, 1, 0, 1, 1) |
|
27 self.databasePicker = EricPathPicker(parent=SqlConnectionDialog) |
|
28 sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Preferred) |
|
29 sizePolicy.setHorizontalStretch(0) |
|
30 sizePolicy.setVerticalStretch(0) |
|
31 sizePolicy.setHeightForWidth(self.databasePicker.sizePolicy().hasHeightForWidth()) |
|
32 self.databasePicker.setSizePolicy(sizePolicy) |
|
33 self.databasePicker.setFocusPolicy(QtCore.Qt.FocusPolicy.StrongFocus) |
|
34 self.databasePicker.setObjectName("databasePicker") |
|
35 self.gridLayout.addWidget(self.databasePicker, 1, 1, 1, 1) |
|
36 self.textLabel4 = QtWidgets.QLabel(parent=SqlConnectionDialog) |
|
37 self.textLabel4.setObjectName("textLabel4") |
|
38 self.gridLayout.addWidget(self.textLabel4, 2, 0, 1, 1) |
|
39 self.usernameEdit = QtWidgets.QLineEdit(parent=SqlConnectionDialog) |
|
40 self.usernameEdit.setObjectName("usernameEdit") |
|
41 self.gridLayout.addWidget(self.usernameEdit, 2, 1, 1, 1) |
|
42 self.textLabel4_2 = QtWidgets.QLabel(parent=SqlConnectionDialog) |
|
43 self.textLabel4_2.setObjectName("textLabel4_2") |
|
44 self.gridLayout.addWidget(self.textLabel4_2, 3, 0, 1, 1) |
|
45 self.passwordEdit = QtWidgets.QLineEdit(parent=SqlConnectionDialog) |
|
46 self.passwordEdit.setEchoMode(QtWidgets.QLineEdit.EchoMode.Password) |
|
47 self.passwordEdit.setObjectName("passwordEdit") |
|
48 self.gridLayout.addWidget(self.passwordEdit, 3, 1, 1, 1) |
|
49 self.textLabel5 = QtWidgets.QLabel(parent=SqlConnectionDialog) |
|
50 self.textLabel5.setObjectName("textLabel5") |
|
51 self.gridLayout.addWidget(self.textLabel5, 4, 0, 1, 1) |
|
52 self.hostnameEdit = QtWidgets.QLineEdit(parent=SqlConnectionDialog) |
|
53 self.hostnameEdit.setObjectName("hostnameEdit") |
|
54 self.gridLayout.addWidget(self.hostnameEdit, 4, 1, 1, 1) |
|
55 self.textLabel5_2 = QtWidgets.QLabel(parent=SqlConnectionDialog) |
|
56 self.textLabel5_2.setObjectName("textLabel5_2") |
|
57 self.gridLayout.addWidget(self.textLabel5_2, 5, 0, 1, 1) |
|
58 self.portSpinBox = QtWidgets.QSpinBox(parent=SqlConnectionDialog) |
|
59 self.portSpinBox.setMinimum(-1) |
|
60 self.portSpinBox.setMaximum(65535) |
|
61 self.portSpinBox.setProperty("value", -1) |
|
62 self.portSpinBox.setObjectName("portSpinBox") |
|
63 self.gridLayout.addWidget(self.portSpinBox, 5, 1, 1, 1) |
|
64 self.buttonBox = QtWidgets.QDialogButtonBox(parent=SqlConnectionDialog) |
|
65 self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal) |
|
66 self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok) |
|
67 self.buttonBox.setObjectName("buttonBox") |
|
68 self.gridLayout.addWidget(self.buttonBox, 6, 0, 1, 2) |
|
69 self.textLabel2.setBuddy(self.driverCombo) |
|
70 self.textLabel3.setBuddy(self.databasePicker) |
|
71 self.textLabel4.setBuddy(self.usernameEdit) |
|
72 self.textLabel4_2.setBuddy(self.passwordEdit) |
|
73 self.textLabel5.setBuddy(self.hostnameEdit) |
|
74 self.textLabel5_2.setBuddy(self.portSpinBox) |
|
75 |
|
76 self.retranslateUi(SqlConnectionDialog) |
|
77 self.buttonBox.accepted.connect(SqlConnectionDialog.accept) # type: ignore |
|
78 self.buttonBox.rejected.connect(SqlConnectionDialog.reject) # type: ignore |
|
79 QtCore.QMetaObject.connectSlotsByName(SqlConnectionDialog) |
|
80 SqlConnectionDialog.setTabOrder(self.driverCombo, self.databasePicker) |
|
81 SqlConnectionDialog.setTabOrder(self.databasePicker, self.usernameEdit) |
|
82 SqlConnectionDialog.setTabOrder(self.usernameEdit, self.passwordEdit) |
|
83 SqlConnectionDialog.setTabOrder(self.passwordEdit, self.hostnameEdit) |
|
84 SqlConnectionDialog.setTabOrder(self.hostnameEdit, self.portSpinBox) |
|
85 |
|
86 def retranslateUi(self, SqlConnectionDialog): |
|
87 _translate = QtCore.QCoreApplication.translate |
|
88 SqlConnectionDialog.setWindowTitle(_translate("SqlConnectionDialog", "Connect...")) |
|
89 self.textLabel2.setText(_translate("SqlConnectionDialog", "D&river:")) |
|
90 self.driverCombo.setToolTip(_translate("SqlConnectionDialog", "Select the database driver")) |
|
91 self.textLabel3.setText(_translate("SqlConnectionDialog", "&Database Name:")) |
|
92 self.databasePicker.setToolTip(_translate("SqlConnectionDialog", "Enter the database name")) |
|
93 self.textLabel4.setText(_translate("SqlConnectionDialog", "&Username:")) |
|
94 self.usernameEdit.setToolTip(_translate("SqlConnectionDialog", "Enter the user name")) |
|
95 self.textLabel4_2.setText(_translate("SqlConnectionDialog", "&Password:")) |
|
96 self.textLabel5.setText(_translate("SqlConnectionDialog", "&Hostname:")) |
|
97 self.hostnameEdit.setToolTip(_translate("SqlConnectionDialog", "Enter the hostname")) |
|
98 self.textLabel5_2.setText(_translate("SqlConnectionDialog", "P&ort:")) |
|
99 self.portSpinBox.setToolTip(_translate("SqlConnectionDialog", "Enter the port number")) |
|
100 self.portSpinBox.setSpecialValueText(_translate("SqlConnectionDialog", "Default")) |
|
101 from eric7.EricWidgets.EricPathPicker import EricPathPicker |