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
     1 # -*- coding: utf-8 -*-
     2 
     3 # Form implementation generated from reading ui file 'PasswordDialog.ui'
     4 #
     5 # Created: Thu Oct  2 13:20:07 2014
     6 #      by: PyQt4 UI code generator 4.11.2
     7 #
     8 # WARNING! All changes made in this file will be lost!
     9 
    10 from PyQt4 import QtCore, QtGui
    11 
    12 try:
    13     _fromUtf8 = QtCore.QString.fromUtf8
    14 except AttributeError:
    15     def _fromUtf8(s):
    16         return s
    17 
    18 try:
    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)
    25 
    26 class Ui_PasswordDialog(object):
    27     def setupUi(self, PasswordDialog):
    28         PasswordDialog.setObjectName(_fromUtf8("PasswordDialog"))
    29         PasswordDialog.setWindowModality(QtCore.Qt.ApplicationModal)
    30         PasswordDialog.resize(420, 120)
    31         sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
    32         sizePolicy.setHorizontalStretch(0)
    33         sizePolicy.setVerticalStretch(0)
    34         sizePolicy.setHeightForWidth(PasswordDialog.sizePolicy().hasHeightForWidth())
    35         PasswordDialog.setSizePolicy(sizePolicy)
    36         icon = QtGui.QIcon()
    37         icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/opensecurity/gfx/opensecurity_icon_64.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
    38         PasswordDialog.setWindowIcon(icon)
    39         PasswordDialog.setModal(True)
    40         self.lyMain = QtGui.QVBoxLayout(PasswordDialog)
    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(PasswordDialog)
    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.edtPassword = QtGui.QLineEdit(PasswordDialog)
    55         self.edtPassword.setEchoMode(QtGui.QLineEdit.Password)
    56         self.edtPassword.setObjectName(_fromUtf8("edtPassword"))
    57         self.lyCredentials.addWidget(self.edtPassword, 1, 1, 1, 1)
    58         self.lblText = QtGui.QLabel(PasswordDialog)
    59         self.lblText.setObjectName(_fromUtf8("lblText"))
    60         self.lyCredentials.addWidget(self.lblText, 0, 0, 1, 2)
    61         self.wdCredentialsSpacer = QtGui.QWidget(PasswordDialog)
    62         self.wdCredentialsSpacer.setObjectName(_fromUtf8("wdCredentialsSpacer"))
    63         self.lyCredentials.addWidget(self.wdCredentialsSpacer, 2, 0, 1, 2)
    64         self.lblPassword = QtGui.QLabel(PasswordDialog)
    65         self.lblPassword.setObjectName(_fromUtf8("lblPassword"))
    66         self.lyCredentials.addWidget(self.lblPassword, 1, 0, 1, 1)
    67         self.lyContent.addLayout(self.lyCredentials)
    68         self.lyMain.addLayout(self.lyContent)
    69         self.lyButtons = QtGui.QHBoxLayout()
    70         self.lyButtons.setObjectName(_fromUtf8("lyButtons"))
    71         spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
    72         self.lyButtons.addItem(spacerItem)
    73         self.btnAbout = QtGui.QPushButton(PasswordDialog)
    74         self.btnAbout.setMinimumSize(QtCore.QSize(100, 0))
    75         self.btnAbout.setObjectName(_fromUtf8("btnAbout"))
    76         self.lyButtons.addWidget(self.btnAbout)
    77         self.btnCancel = QtGui.QPushButton(PasswordDialog)
    78         self.btnCancel.setMinimumSize(QtCore.QSize(100, 0))
    79         self.btnCancel.setObjectName(_fromUtf8("btnCancel"))
    80         self.lyButtons.addWidget(self.btnCancel)
    81         self.btnOk = QtGui.QPushButton(PasswordDialog)
    82         self.btnOk.setMinimumSize(QtCore.QSize(100, 0))
    83         self.btnOk.setDefault(True)
    84         self.btnOk.setObjectName(_fromUtf8("btnOk"))
    85         self.lyButtons.addWidget(self.btnOk)
    86         self.lyMain.addLayout(self.lyButtons)
    87         self.lblPassword.setBuddy(self.edtPassword)
    88 
    89         self.retranslateUi(PasswordDialog)
    90         QtCore.QMetaObject.connectSlotsByName(PasswordDialog)
    91         PasswordDialog.setTabOrder(self.edtPassword, self.btnAbout)
    92         PasswordDialog.setTabOrder(self.btnAbout, self.btnCancel)
    93         PasswordDialog.setTabOrder(self.btnCancel, self.btnOk)
    94 
    95     def retranslateUi(self, PasswordDialog):
    96         PasswordDialog.setWindowTitle(_translate("PasswordDialog", "OpenSecurity Password Request", None))
    97         self.lblText.setText(_translate("PasswordDialog", "TextLabel", None))
    98         self.lblPassword.setText(_translate("PasswordDialog", "&Password:", None))
    99         self.btnAbout.setText(_translate("PasswordDialog", "&About", None))
   100         self.btnCancel.setText(_translate("PasswordDialog", "&Cancel", None))
   101         self.btnOk.setText(_translate("PasswordDialog", "&Ok", None))
   102 
   103 import opensecurity_rc