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