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