1 # -*- coding: utf-8 -*-
3 # Form implementation generated from reading ui file 'KeyfileDialog.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_KeyfileDialog(object):
27 def setupUi(self, KeyfileDialog):
28 KeyfileDialog.setObjectName(_fromUtf8("KeyfileDialog"))
29 KeyfileDialog.setWindowModality(QtCore.Qt.ApplicationModal)
30 KeyfileDialog.resize(420, 120)
31 sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
32 sizePolicy.setHorizontalStretch(0)
33 sizePolicy.setVerticalStretch(0)
34 sizePolicy.setHeightForWidth(KeyfileDialog.sizePolicy().hasHeightForWidth())
35 KeyfileDialog.setSizePolicy(sizePolicy)
37 icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/opensecurity/gfx/opensecurity_icon_64.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
38 KeyfileDialog.setWindowIcon(icon)
39 KeyfileDialog.setModal(True)
40 self.lyMain = QtGui.QVBoxLayout(KeyfileDialog)
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(KeyfileDialog)
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.lblText = QtGui.QLabel(KeyfileDialog)
55 self.lblText.setObjectName(_fromUtf8("lblText"))
56 self.lyCredentials.addWidget(self.lblText, 0, 0, 1, 2)
57 self.wdCredentialsSpacer = QtGui.QWidget(KeyfileDialog)
58 self.wdCredentialsSpacer.setObjectName(_fromUtf8("wdCredentialsSpacer"))
59 self.lyCredentials.addWidget(self.wdCredentialsSpacer, 3, 0, 1, 2)
60 self.lblPassword = QtGui.QLabel(KeyfileDialog)
61 self.lblPassword.setObjectName(_fromUtf8("lblPassword"))
62 self.lyCredentials.addWidget(self.lblPassword, 1, 0, 1, 1)
63 self.lblKeyfile = QtGui.QLabel(KeyfileDialog)
64 self.lblKeyfile.setObjectName(_fromUtf8("lblKeyfile"))
65 self.lyCredentials.addWidget(self.lblKeyfile, 2, 0, 1, 1)
66 self.edtKeyfile = QtGui.QLineEdit(KeyfileDialog)
67 self.edtKeyfile.setObjectName(_fromUtf8("edtKeyfile"))
68 self.lyCredentials.addWidget(self.edtKeyfile, 2, 1, 1, 1)
69 self.btnBrowse = QtGui.QToolButton(KeyfileDialog)
70 self.btnBrowse.setObjectName(_fromUtf8("btnBrowse"))
71 self.lyCredentials.addWidget(self.btnBrowse, 2, 2, 1, 1)
72 self.edtPassword = QtGui.QLineEdit(KeyfileDialog)
73 self.edtPassword.setEchoMode(QtGui.QLineEdit.Password)
74 self.edtPassword.setObjectName(_fromUtf8("edtPassword"))
75 self.lyCredentials.addWidget(self.edtPassword, 1, 1, 1, 2)
76 self.lyContent.addLayout(self.lyCredentials)
77 self.lyMain.addLayout(self.lyContent)
78 self.lyButtons = QtGui.QHBoxLayout()
79 self.lyButtons.setObjectName(_fromUtf8("lyButtons"))
80 spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
81 self.lyButtons.addItem(spacerItem)
82 self.btnAbout = QtGui.QPushButton(KeyfileDialog)
83 self.btnAbout.setMinimumSize(QtCore.QSize(100, 0))
84 self.btnAbout.setObjectName(_fromUtf8("btnAbout"))
85 self.lyButtons.addWidget(self.btnAbout)
86 self.btnCancel = QtGui.QPushButton(KeyfileDialog)
87 self.btnCancel.setMinimumSize(QtCore.QSize(100, 0))
88 self.btnCancel.setObjectName(_fromUtf8("btnCancel"))
89 self.lyButtons.addWidget(self.btnCancel)
90 self.btnOk = QtGui.QPushButton(KeyfileDialog)
91 self.btnOk.setMinimumSize(QtCore.QSize(100, 0))
92 self.btnOk.setDefault(True)
93 self.btnOk.setObjectName(_fromUtf8("btnOk"))
94 self.lyButtons.addWidget(self.btnOk)
95 self.lyMain.addLayout(self.lyButtons)
96 self.lblPassword.setBuddy(self.edtPassword)
97 self.lblKeyfile.setBuddy(self.edtKeyfile)
99 self.retranslateUi(KeyfileDialog)
100 QtCore.QMetaObject.connectSlotsByName(KeyfileDialog)
101 KeyfileDialog.setTabOrder(self.edtPassword, self.edtKeyfile)
102 KeyfileDialog.setTabOrder(self.edtKeyfile, self.btnBrowse)
103 KeyfileDialog.setTabOrder(self.btnBrowse, self.btnAbout)
104 KeyfileDialog.setTabOrder(self.btnAbout, self.btnCancel)
105 KeyfileDialog.setTabOrder(self.btnCancel, self.btnOk)
107 def retranslateUi(self, KeyfileDialog):
108 KeyfileDialog.setWindowTitle(_translate("KeyfileDialog", "OpenSecuirty Keyfile Request", None))
109 self.lblText.setText(_translate("KeyfileDialog", "TextLabel", None))
110 self.lblPassword.setText(_translate("KeyfileDialog", "&Password:", None))
111 self.lblKeyfile.setText(_translate("KeyfileDialog", "&Keyfile:", None))
112 self.btnBrowse.setText(_translate("KeyfileDialog", "...", None))
113 self.btnAbout.setText(_translate("KeyfileDialog", "&About", None))
114 self.btnCancel.setText(_translate("KeyfileDialog", "&Cancel", None))
115 self.btnOk.setText(_translate("KeyfileDialog", "&Ok", None))
117 import opensecurity_rc