1 # -*- coding: utf-8 -*-
3 # Form implementation generated from reading ui file 'CredentialsDialog.ui'
5 # Created: Tue Sep 30 11:47:50 2014
6 # by: PyQt4 UI code generator 4.11.2
8 # WARNING! All changes made in this file will be lost!
10 from PyQt4 import QtCore, QtGui
13 _fromUtf8 = QtCore.QString.fromUtf8
14 except AttributeError:
19 _encoding = QtGui.QApplication.UnicodeUTF8
20 def _translate(context, text, disambig):
21 return QtGui.QApplication.translate(context, text, disambig, _encoding)
22 except AttributeError:
23 def _translate(context, text, disambig):
24 return QtGui.QApplication.translate(context, text, disambig)
26 class Ui_CredentialsDialog(object):
27 def setupUi(self, CredentialsDialog):
28 CredentialsDialog.setObjectName(_fromUtf8("CredentialsDialog"))
29 CredentialsDialog.setWindowModality(QtCore.Qt.ApplicationModal)
30 CredentialsDialog.resize(420, 120)
31 sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
32 sizePolicy.setHorizontalStretch(0)
33 sizePolicy.setVerticalStretch(0)
34 sizePolicy.setHeightForWidth(CredentialsDialog.sizePolicy().hasHeightForWidth())
35 CredentialsDialog.setSizePolicy(sizePolicy)
37 icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/opensecurity/gfx/opensecurity_icon_64.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
38 CredentialsDialog.setWindowIcon(icon)
39 CredentialsDialog.setModal(True)
40 self.lyMain = QtGui.QVBoxLayout(CredentialsDialog)
41 self.lyMain.setObjectName(_fromUtf8("lyMain"))
42 self.lyContent = QtGui.QHBoxLayout()
43 self.lyContent.setSpacing(16)
44 self.lyContent.setObjectName(_fromUtf8("lyContent"))
45 self.lblIcon = QtGui.QLabel(CredentialsDialog)
46 self.lblIcon.setText(_fromUtf8(""))
47 self.lblIcon.setPixmap(QtGui.QPixmap(_fromUtf8(":/opensecurity/gfx/opensecurity_icon_64.png")))
48 self.lblIcon.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
49 self.lblIcon.setObjectName(_fromUtf8("lblIcon"))
50 self.lyContent.addWidget(self.lblIcon)
51 self.lyCredentials = QtGui.QGridLayout()
52 self.lyCredentials.setSpacing(4)
53 self.lyCredentials.setObjectName(_fromUtf8("lyCredentials"))
54 self.wdCredentialsSpacer = QtGui.QWidget(CredentialsDialog)
55 self.wdCredentialsSpacer.setObjectName(_fromUtf8("wdCredentialsSpacer"))
56 self.lyCredentials.addWidget(self.wdCredentialsSpacer, 3, 0, 1, 2)
57 self.edtUser = QtGui.QLineEdit(CredentialsDialog)
58 self.edtUser.setObjectName(_fromUtf8("edtUser"))
59 self.lyCredentials.addWidget(self.edtUser, 1, 1, 1, 1)
60 self.lblPassword = QtGui.QLabel(CredentialsDialog)
61 self.lblPassword.setObjectName(_fromUtf8("lblPassword"))
62 self.lyCredentials.addWidget(self.lblPassword, 2, 0, 1, 1)
63 self.edtPassword = QtGui.QLineEdit(CredentialsDialog)
64 self.edtPassword.setEchoMode(QtGui.QLineEdit.Password)
65 self.edtPassword.setObjectName(_fromUtf8("edtPassword"))
66 self.lyCredentials.addWidget(self.edtPassword, 2, 1, 1, 1)
67 self.lblUser = QtGui.QLabel(CredentialsDialog)
68 self.lblUser.setObjectName(_fromUtf8("lblUser"))
69 self.lyCredentials.addWidget(self.lblUser, 1, 0, 1, 1)
70 self.lblText = QtGui.QLabel(CredentialsDialog)
71 self.lblText.setObjectName(_fromUtf8("lblText"))
72 self.lyCredentials.addWidget(self.lblText, 0, 0, 1, 2)
73 self.lyCredentials.setColumnStretch(1, 1)
74 self.lyCredentials.setRowStretch(3, 1)
75 self.lyContent.addLayout(self.lyCredentials)
76 self.lyMain.addLayout(self.lyContent)
77 self.lyButtons = QtGui.QHBoxLayout()
78 self.lyButtons.setObjectName(_fromUtf8("lyButtons"))
79 spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
80 self.lyButtons.addItem(spacerItem)
81 self.btnAbout = QtGui.QPushButton(CredentialsDialog)
82 self.btnAbout.setMinimumSize(QtCore.QSize(100, 0))
83 self.btnAbout.setObjectName(_fromUtf8("btnAbout"))
84 self.lyButtons.addWidget(self.btnAbout)
85 self.btnCancel = QtGui.QPushButton(CredentialsDialog)
86 self.btnCancel.setMinimumSize(QtCore.QSize(100, 0))
87 self.btnCancel.setObjectName(_fromUtf8("btnCancel"))
88 self.lyButtons.addWidget(self.btnCancel)
89 self.btnOk = QtGui.QPushButton(CredentialsDialog)
90 self.btnOk.setMinimumSize(QtCore.QSize(100, 0))
91 self.btnOk.setDefault(True)
92 self.btnOk.setObjectName(_fromUtf8("btnOk"))
93 self.lyButtons.addWidget(self.btnOk)
94 self.lyMain.addLayout(self.lyButtons)
95 self.lblPassword.setBuddy(self.edtPassword)
96 self.lblUser.setBuddy(self.edtUser)
98 self.retranslateUi(CredentialsDialog)
99 QtCore.QMetaObject.connectSlotsByName(CredentialsDialog)
100 CredentialsDialog.setTabOrder(self.edtUser, self.edtPassword)
101 CredentialsDialog.setTabOrder(self.edtPassword, self.btnAbout)
102 CredentialsDialog.setTabOrder(self.btnAbout, self.btnCancel)
103 CredentialsDialog.setTabOrder(self.btnCancel, self.btnOk)
105 def retranslateUi(self, CredentialsDialog):
106 CredentialsDialog.setWindowTitle(_translate("CredentialsDialog", "OpenSecuirty Credentials Request", None))
107 self.lblPassword.setText(_translate("CredentialsDialog", "&Password:", None))
108 self.lblUser.setText(_translate("CredentialsDialog", "&User:", None))
109 self.lblText.setText(_translate("CredentialsDialog", "TextLabel", None))
110 self.btnAbout.setText(_translate("CredentialsDialog", "&About", None))
111 self.btnCancel.setText(_translate("CredentialsDialog", "&Cancel", None))
112 self.btnOk.setText(_translate("CredentialsDialog", "&Ok", None))
114 import opensecurity_rc