1 # -*- coding: utf-8 -*-
3 # Form implementation generated from reading ui file 'NotificationDialog.ui'
5 # Created: Thu Oct 2 13:20:07 2014
6 # by: PyQt4 UI code generator 4.11.2
8 # WARNING! All changes made in this file will be lost!
10 from PyQt4 import QtCore, QtGui
13 _fromUtf8 = QtCore.QString.fromUtf8
14 except AttributeError:
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)
26 class Ui_NotificationDialog(object):
27 def setupUi(self, NotificationDialog):
28 NotificationDialog.setObjectName(_fromUtf8("NotificationDialog"))
29 NotificationDialog.resize(420, 120)
30 sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
31 sizePolicy.setHorizontalStretch(0)
32 sizePolicy.setVerticalStretch(0)
33 sizePolicy.setHeightForWidth(NotificationDialog.sizePolicy().hasHeightForWidth())
34 NotificationDialog.setSizePolicy(sizePolicy)
36 icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/opensecurity/gfx/opensecurity_icon_64.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
37 NotificationDialog.setWindowIcon(icon)
38 self.lyMain = QtGui.QVBoxLayout(NotificationDialog)
39 self.lyMain.setObjectName(_fromUtf8("lyMain"))
40 self.lyContent = QtGui.QHBoxLayout()
41 self.lyContent.setSpacing(16)
42 self.lyContent.setObjectName(_fromUtf8("lyContent"))
43 self.lblIcon = QtGui.QLabel(NotificationDialog)
44 self.lblIcon.setText(_fromUtf8(""))
45 self.lblIcon.setPixmap(QtGui.QPixmap(_fromUtf8(":/opensecurity/gfx/opensecurity_icon_64.png")))
46 self.lblIcon.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
47 self.lblIcon.setObjectName(_fromUtf8("lblIcon"))
48 self.lyContent.addWidget(self.lblIcon)
49 self.lyMessage = QtGui.QVBoxLayout()
50 self.lyMessage.setObjectName(_fromUtf8("lyMessage"))
51 self.lblMessage = QtGui.QLabel(NotificationDialog)
52 self.lblMessage.setObjectName(_fromUtf8("lblMessage"))
53 self.lyMessage.addWidget(self.lblMessage)
54 spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
55 self.lyMessage.addItem(spacerItem)
56 self.lyContent.addLayout(self.lyMessage)
57 self.lyContent.setStretch(1, 1)
58 self.lyMain.addLayout(self.lyContent)
59 self.lyButtons = QtGui.QHBoxLayout()
60 self.lyButtons.setObjectName(_fromUtf8("lyButtons"))
61 spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
62 self.lyButtons.addItem(spacerItem1)
63 self.btnAbout = QtGui.QPushButton(NotificationDialog)
64 self.btnAbout.setMinimumSize(QtCore.QSize(100, 0))
65 self.btnAbout.setObjectName(_fromUtf8("btnAbout"))
66 self.lyButtons.addWidget(self.btnAbout)
67 self.btnOk = QtGui.QPushButton(NotificationDialog)
68 self.btnOk.setMinimumSize(QtCore.QSize(100, 0))
69 self.btnOk.setDefault(True)
70 self.btnOk.setObjectName(_fromUtf8("btnOk"))
71 self.lyButtons.addWidget(self.btnOk)
72 self.lyMain.addLayout(self.lyButtons)
74 self.retranslateUi(NotificationDialog)
75 QtCore.QMetaObject.connectSlotsByName(NotificationDialog)
76 NotificationDialog.setTabOrder(self.btnAbout, self.btnOk)
78 def retranslateUi(self, NotificationDialog):
79 NotificationDialog.setWindowTitle(_translate("NotificationDialog", "OpenSecurity Notification", None))
80 self.lblMessage.setText(_translate("NotificationDialog", "TextLabel", None))
81 self.btnAbout.setText(_translate("NotificationDialog", "&About", None))
82 self.btnOk.setText(_translate("NotificationDialog", "&Ok", None))
84 import opensecurity_rc