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