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