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