1 # -*- coding: utf-8 -*-
3 # Form implementation generated from reading ui file 'FormatDriveDialog.ui'
5 # Created: Thu Oct 2 13:20:07 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_FormatDriveDialog(object):
27 def setupUi(self, FormatDriveDialog):
28 FormatDriveDialog.setObjectName(_fromUtf8("FormatDriveDialog"))
29 FormatDriveDialog.resize(420, 120)
30 sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
31 sizePolicy.setHorizontalStretch(0)
32 sizePolicy.setVerticalStretch(0)
33 sizePolicy.setHeightForWidth(FormatDriveDialog.sizePolicy().hasHeightForWidth())
34 FormatDriveDialog.setSizePolicy(sizePolicy)
36 icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/opensecurity/gfx/opensecurity_icon_64.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
37 FormatDriveDialog.setWindowIcon(icon)
38 self.lyMain = QtGui.QVBoxLayout(FormatDriveDialog)
39 self.lyMain.setObjectName(_fromUtf8("lyMain"))
40 self.lyContent = QtGui.QHBoxLayout()
41 self.lyContent.setSpacing(16)
42 self.lyContent.setObjectName(_fromUtf8("lyContent"))
43 self.lblIcon = QtGui.QLabel(FormatDriveDialog)
44 self.lblIcon.setText(_fromUtf8(""))
45 self.lblIcon.setPixmap(QtGui.QPixmap(_fromUtf8(":/opensecurity/gfx/emblem-important.png")))
46 self.lblIcon.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
47 self.lblIcon.setObjectName(_fromUtf8("lblIcon"))
48 self.lyContent.addWidget(self.lblIcon)
49 self.lyCredentials = QtGui.QGridLayout()
50 self.lyCredentials.setSpacing(4)
51 self.lyCredentials.setObjectName(_fromUtf8("lyCredentials"))
52 self.lblText = QtGui.QLabel(FormatDriveDialog)
53 self.lblText.setTextFormat(QtCore.Qt.RichText)
54 self.lblText.setObjectName(_fromUtf8("lblText"))
55 self.lyCredentials.addWidget(self.lblText, 0, 0, 1, 2)
56 self.wdCredentialsSpacer = QtGui.QWidget(FormatDriveDialog)
57 self.wdCredentialsSpacer.setObjectName(_fromUtf8("wdCredentialsSpacer"))
58 self.lyCredentials.addWidget(self.wdCredentialsSpacer, 3, 0, 1, 2)
59 self.lblPassword = QtGui.QLabel(FormatDriveDialog)
60 self.lblPassword.setObjectName(_fromUtf8("lblPassword"))
61 self.lyCredentials.addWidget(self.lblPassword, 1, 0, 1, 1)
62 self.lblKeyfile = QtGui.QLabel(FormatDriveDialog)
63 self.lblKeyfile.setObjectName(_fromUtf8("lblKeyfile"))
64 self.lyCredentials.addWidget(self.lblKeyfile, 2, 0, 1, 1)
65 self.edtKeyfile = QtGui.QLineEdit(FormatDriveDialog)
66 self.edtKeyfile.setObjectName(_fromUtf8("edtKeyfile"))
67 self.lyCredentials.addWidget(self.edtKeyfile, 2, 1, 1, 1)
68 self.btnBrowse = QtGui.QToolButton(FormatDriveDialog)
69 self.btnBrowse.setObjectName(_fromUtf8("btnBrowse"))
70 self.lyCredentials.addWidget(self.btnBrowse, 2, 2, 1, 1)
71 self.edtPassword = QtGui.QLineEdit(FormatDriveDialog)
72 self.edtPassword.setEchoMode(QtGui.QLineEdit.Password)
73 self.edtPassword.setObjectName(_fromUtf8("edtPassword"))
74 self.lyCredentials.addWidget(self.edtPassword, 1, 1, 1, 2)
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(FormatDriveDialog)
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(FormatDriveDialog)
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(FormatDriveDialog)
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.lblKeyfile.setBuddy(self.edtKeyfile)
98 self.retranslateUi(FormatDriveDialog)
99 QtCore.QMetaObject.connectSlotsByName(FormatDriveDialog)
100 FormatDriveDialog.setTabOrder(self.edtPassword, self.edtKeyfile)
101 FormatDriveDialog.setTabOrder(self.edtKeyfile, self.btnBrowse)
102 FormatDriveDialog.setTabOrder(self.btnBrowse, self.btnAbout)
103 FormatDriveDialog.setTabOrder(self.btnAbout, self.btnCancel)
104 FormatDriveDialog.setTabOrder(self.btnCancel, self.btnOk)
106 def retranslateUi(self, FormatDriveDialog):
107 FormatDriveDialog.setWindowTitle(_translate("FormatDriveDialog", "OpenSecurity Format Drive", None))
108 self.lblText.setText(_translate("FormatDriveDialog", "<b>Attention!</b>TextLabel", None))
109 self.lblPassword.setText(_translate("FormatDriveDialog", "&Password:", None))
110 self.lblKeyfile.setText(_translate("FormatDriveDialog", "&Keyfile:", None))
111 self.btnBrowse.setText(_translate("FormatDriveDialog", "...", None))
112 self.btnAbout.setText(_translate("FormatDriveDialog", "&About", None))
113 self.btnCancel.setText(_translate("FormatDriveDialog", "&Cancel", None))
114 self.btnOk.setText(_translate("FormatDriveDialog", "&Ok", None))
116 import opensecurity_rc