Ui_ConnectionDialog   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 53
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 53
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A retranslateUi() 0 11 1
B setupUi() 0 40 1
1
# -*- coding: utf-8 -*-
2
3
# Form implementation generated from reading ui file 'uaclient/connection_ui.ui'
4
#
5
# Created by: PyQt5 UI code generator 5.10.1
6
#
7
# WARNING! All changes made in this file will be lost!
8
9
from PyQt5 import QtCore, QtGui, QtWidgets
10
11
class Ui_ConnectionDialog(object):
12
    def setupUi(self, ConnectionDialog):
13
        ConnectionDialog.setObjectName("ConnectionDialog")
14
        ConnectionDialog.resize(400, 300)
15
        self.gridLayout = QtWidgets.QGridLayout(ConnectionDialog)
16
        self.gridLayout.setContentsMargins(11, 11, 11, 11)
17
        self.gridLayout.setSpacing(6)
18
        self.gridLayout.setObjectName("gridLayout")
19
        self.queryButton = QtWidgets.QPushButton(ConnectionDialog)
20
        self.queryButton.setObjectName("queryButton")
21
        self.gridLayout.addWidget(self.queryButton, 0, 0, 1, 2)
22
        self.label = QtWidgets.QLabel(ConnectionDialog)
23
        self.label.setObjectName("label")
24
        self.gridLayout.addWidget(self.label, 1, 0, 1, 1)
25
        self.policyComboBox = QtWidgets.QComboBox(ConnectionDialog)
26
        self.policyComboBox.setObjectName("policyComboBox")
27
        self.gridLayout.addWidget(self.policyComboBox, 1, 1, 1, 2)
28
        self.label_2 = QtWidgets.QLabel(ConnectionDialog)
29
        self.label_2.setObjectName("label_2")
30
        self.gridLayout.addWidget(self.label_2, 2, 0, 1, 1)
31
        self.modeComboBox = QtWidgets.QComboBox(ConnectionDialog)
32
        self.modeComboBox.setObjectName("modeComboBox")
33
        self.gridLayout.addWidget(self.modeComboBox, 2, 1, 1, 2)
34
        self.certificateLabel = QtWidgets.QLabel(ConnectionDialog)
35
        self.certificateLabel.setObjectName("certificateLabel")
36
        self.gridLayout.addWidget(self.certificateLabel, 3, 0, 1, 1)
37
        self.certificateButton = QtWidgets.QPushButton(ConnectionDialog)
38
        self.certificateButton.setObjectName("certificateButton")
39
        self.gridLayout.addWidget(self.certificateButton, 3, 1, 1, 2)
40
        self.privateKeyLabel = QtWidgets.QLabel(ConnectionDialog)
41
        self.privateKeyLabel.setObjectName("privateKeyLabel")
42
        self.gridLayout.addWidget(self.privateKeyLabel, 4, 0, 1, 1)
43
        self.privateKeyButton = QtWidgets.QPushButton(ConnectionDialog)
44
        self.privateKeyButton.setObjectName("privateKeyButton")
45
        self.gridLayout.addWidget(self.privateKeyButton, 4, 1, 1, 2)
46
        self.closeButton = QtWidgets.QPushButton(ConnectionDialog)
47
        self.closeButton.setObjectName("closeButton")
48
        self.gridLayout.addWidget(self.closeButton, 5, 2, 1, 1)
49
50
        self.retranslateUi(ConnectionDialog)
51
        QtCore.QMetaObject.connectSlotsByName(ConnectionDialog)
52
53
    def retranslateUi(self, ConnectionDialog):
54
        _translate = QtCore.QCoreApplication.translate
55
        ConnectionDialog.setWindowTitle(_translate("ConnectionDialog", "ConnectionDialog"))
56
        self.queryButton.setText(_translate("ConnectionDialog", "Query server capability"))
57
        self.label.setText(_translate("ConnectionDialog", "Security Policy"))
58
        self.label_2.setText(_translate("ConnectionDialog", "Message Security Mode"))
59
        self.certificateLabel.setText(_translate("ConnectionDialog", "None"))
60
        self.certificateButton.setText(_translate("ConnectionDialog", "Select certificate"))
61
        self.privateKeyLabel.setText(_translate("ConnectionDialog", "None"))
62
        self.privateKeyButton.setText(_translate("ConnectionDialog", "Select private key"))
63
        self.closeButton.setText(_translate("ConnectionDialog", "Close"))
64
65