11 from PyQt5
import QtCore, QtGui, QtWidgets
16 EncryptionDialog.setObjectName(
"EncryptionDialog")
17 EncryptionDialog.resize(837, 300)
20 self.
line = QtWidgets.QFrame(EncryptionDialog)
21 self.
line.setFrameShape(QtWidgets.QFrame.HLine)
22 self.
line.setFrameShadow(QtWidgets.QFrame.Sunken)
23 self.
line.setObjectName(
"line")
25 self.
label_6 = QtWidgets.QLabel(EncryptionDialog)
26 self.
label_6.setObjectName(
"label_6")
30 self.
label = QtWidgets.QLabel(EncryptionDialog)
31 self.
label.setObjectName(
"label")
33 spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
35 self.
userCert = QtWidgets.QLineEdit(EncryptionDialog)
37 self.
userCert.setMinimumSize(QtCore.QSize(500, 0))
38 self.
userCert.setMaximumSize(QtCore.QSize(16777215, 16777215))
40 self.
userCert.setObjectName(
"userCert")
48 self.
label_2 = QtWidgets.QLabel(EncryptionDialog)
49 self.
label_2.setObjectName(
"label_2")
51 spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
55 self.
privateKey.setMinimumSize(QtCore.QSize(500, 0))
56 self.
privateKey.setMaximumSize(QtCore.QSize(16777215, 16777215))
64 self.
line_2 = QtWidgets.QFrame(EncryptionDialog)
65 self.
line_2.setFrameShape(QtWidgets.QFrame.HLine)
66 self.
line_2.setFrameShadow(QtWidgets.QFrame.Sunken)
67 self.
line_2.setObjectName(
"line_2")
69 self.
label_7 = QtWidgets.QLabel(EncryptionDialog)
70 self.
label_7.setObjectName(
"label_7")
74 self.
label_4 = QtWidgets.QLabel(EncryptionDialog)
75 self.
label_4.setObjectName(
"label_4")
77 spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
79 self.
trustList = QtWidgets.QLineEdit(EncryptionDialog)
81 self.
trustList.setMinimumSize(QtCore.QSize(500, 0))
91 self.
label_3 = QtWidgets.QLabel(EncryptionDialog)
92 self.
label_3.setObjectName(
"label_3")
94 spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
96 self.
blockList = QtWidgets.QLineEdit(EncryptionDialog)
98 self.
blockList.setMinimumSize(QtCore.QSize(500, 0))
100 self.
blockList.setObjectName(
"blockList")
108 self.
label_5 = QtWidgets.QLabel(EncryptionDialog)
109 self.
label_5.setObjectName(
"label_5")
111 spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
115 self.
issuerList.setMinimumSize(QtCore.QSize(500, 0))
123 self.
buttonBox = QtWidgets.QDialogButtonBox(EncryptionDialog)
124 self.
buttonBox.setOrientation(QtCore.Qt.Horizontal)
125 self.
buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
126 self.
buttonBox.setObjectName(
"buttonBox")
130 self.
buttonBox.accepted.connect(EncryptionDialog.accept)
131 self.
buttonBox.rejected.connect(EncryptionDialog.reject)
132 QtCore.QMetaObject.connectSlotsByName(EncryptionDialog)
135 _translate = QtCore.QCoreApplication.translate
136 EncryptionDialog.setWindowTitle(_translate(
"EncryptionDialog",
"Dialog"))
137 self.
label_6.setText(_translate(
"EncryptionDialog",
"Required data:"))
138 self.
label.setText(_translate(
"EncryptionDialog",
"User certificate:"))
139 self.
setUserCert.setText(_translate(
"EncryptionDialog",
"Set"))
140 self.
label_2.setText(_translate(
"EncryptionDialog",
"Private Key:"))
141 self.
setPrivateKey.setText(_translate(
"EncryptionDialog",
"Set"))
142 self.
label_7.setText(_translate(
"EncryptionDialog",
"Optional data (trust list and/or revocation list and issuer list):"))
143 self.
label_4.setText(_translate(
"EncryptionDialog",
"Trust list directory:"))
144 self.
setTrustList.setToolTip(_translate(
"EncryptionDialog",
"<html><head/><body><p>Set directory that includes certificates that should be trusted, i.e. self-signed certificates.</p><p>No certification authority is needed. </p></body></html>"))
145 self.
setTrustList.setText(_translate(
"EncryptionDialog",
"Set"))
146 self.
label_3.setText(_translate(
"EncryptionDialog",
"Revocation lists directory:"))
147 self.
setBlockList.setToolTip(_translate(
"EncryptionDialog",
"<html><head/><body><p>Set directory that includes revocation lists for certificate authorities.</p></body></html>"))
148 self.
setBlockList.setText(_translate(
"EncryptionDialog",
"Set"))
149 self.
label_5.setText(_translate(
"EncryptionDialog",
"Issuer list directory:"))
150 self.
setIssuerList.setToolTip(_translate(
"EncryptionDialog",
"<html><head/><body><p>Set directory that includes certificates of certificate authorities.</p></body></html>"))
151 self.
setIssuerList.setText(_translate(
"EncryptionDialog",
"Set"))