1 # -*- coding: utf-8 -*-
3 # Form implementation generated from reading ui file 'ConfigureDialog.ui'
5 # Created: Wed Apr 2 12:54:20 2014
6 # by: PyQt4 UI code generator 4.10.3
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_ConfigureDialog(object):
27 def setupUi(self, ConfigureDialog):
28 ConfigureDialog.setObjectName(_fromUtf8("ConfigureDialog"))
29 ConfigureDialog.resize(400, 455)
31 icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/opensecurity/gfx/opensecurity_icon_64.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
32 ConfigureDialog.setWindowIcon(icon)
33 ConfigureDialog.setSizeGripEnabled(True)
34 self.verticalLayout_3 = QtGui.QVBoxLayout(ConfigureDialog)
35 self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
36 self.lyHeading = QtGui.QHBoxLayout()
37 self.lyHeading.setSpacing(8)
38 self.lyHeading.setContentsMargins(8, -1, -1, 8)
39 self.lyHeading.setObjectName(_fromUtf8("lyHeading"))
40 self.lblIcon = QtGui.QLabel(ConfigureDialog)
41 self.lblIcon.setText(_fromUtf8(""))
42 self.lblIcon.setPixmap(QtGui.QPixmap(_fromUtf8(":/opensecurity/gfx/opensecurity_configure_64.png")))
43 self.lblIcon.setObjectName(_fromUtf8("lblIcon"))
44 self.lyHeading.addWidget(self.lblIcon)
45 self.lyStatus = QtGui.QGridLayout()
46 self.lyStatus.setObjectName(_fromUtf8("lyStatus"))
47 self.edtStatus = QtGui.QLineEdit(ConfigureDialog)
48 self.edtStatus.setReadOnly(True)
49 self.edtStatus.setObjectName(_fromUtf8("edtStatus"))
50 self.lyStatus.addWidget(self.edtStatus, 0, 1, 1, 1)
51 self.lblVersion = QtGui.QLabel(ConfigureDialog)
52 self.lblVersion.setObjectName(_fromUtf8("lblVersion"))
53 self.lyStatus.addWidget(self.lblVersion, 1, 0, 1, 1)
54 self.edtVersion = QtGui.QLineEdit(ConfigureDialog)
55 self.edtVersion.setReadOnly(True)
56 self.edtVersion.setObjectName(_fromUtf8("edtVersion"))
57 self.lyStatus.addWidget(self.edtVersion, 1, 1, 1, 1)
58 self.lblStatus = QtGui.QLabel(ConfigureDialog)
59 self.lblStatus.setObjectName(_fromUtf8("lblStatus"))
60 self.lyStatus.addWidget(self.lblStatus, 0, 0, 1, 1)
61 self.wdStatus = QtGui.QWidget(ConfigureDialog)
62 self.wdStatus.setObjectName(_fromUtf8("wdStatus"))
63 self.lyStatus.addWidget(self.wdStatus, 2, 0, 1, 2)
64 self.lyHeading.addLayout(self.lyStatus)
65 self.verticalLayout_3.addLayout(self.lyHeading)
66 self.tabConfig = QtGui.QTabWidget(ConfigureDialog)
67 self.tabConfig.setObjectName(_fromUtf8("tabConfig"))
68 self.tbConfig = QtGui.QWidget()
69 self.tbConfig.setObjectName(_fromUtf8("tbConfig"))
70 self.lyConfig = QtGui.QVBoxLayout(self.tbConfig)
71 self.lyConfig.setObjectName(_fromUtf8("lyConfig"))
72 self.lblTemplate = QtGui.QLabel(self.tbConfig)
73 self.lblTemplate.setObjectName(_fromUtf8("lblTemplate"))
74 self.lyConfig.addWidget(self.lblTemplate)
75 self.tvTemplate = QtGui.QTreeWidget(self.tbConfig)
76 self.tvTemplate.setMaximumSize(QtCore.QSize(16777215, 64))
77 self.tvTemplate.setRootIsDecorated(False)
78 self.tvTemplate.setItemsExpandable(False)
79 self.tvTemplate.setAllColumnsShowFocus(True)
80 self.tvTemplate.setObjectName(_fromUtf8("tvTemplate"))
81 self.lyConfig.addWidget(self.tvTemplate)
82 self.lyDownload = QtGui.QHBoxLayout()
83 self.lyDownload.setObjectName(_fromUtf8("lyDownload"))
84 spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
85 self.lyDownload.addItem(spacerItem)
86 self.btnDownload = QtGui.QPushButton(self.tbConfig)
87 self.btnDownload.setMinimumSize(QtCore.QSize(100, 0))
88 self.btnDownload.setObjectName(_fromUtf8("btnDownload"))
89 self.lyDownload.addWidget(self.btnDownload)
90 self.btnImport = QtGui.QPushButton(self.tbConfig)
91 self.btnImport.setMinimumSize(QtCore.QSize(100, 0))
92 self.btnImport.setObjectName(_fromUtf8("btnImport"))
93 self.lyDownload.addWidget(self.btnImport)
94 self.lyConfig.addLayout(self.lyDownload)
95 self.lblMachines = QtGui.QLabel(self.tbConfig)
96 self.lblMachines.setObjectName(_fromUtf8("lblMachines"))
97 self.lyConfig.addWidget(self.lblMachines)
98 self.tvMachines = QtGui.QTreeWidget(self.tbConfig)
99 self.tvMachines.setMaximumSize(QtCore.QSize(16777215, 128))
100 self.tvMachines.setRootIsDecorated(False)
101 self.tvMachines.setItemsExpandable(False)
102 self.tvMachines.setAllColumnsShowFocus(True)
103 self.tvMachines.setObjectName(_fromUtf8("tvMachines"))
104 self.lyConfig.addWidget(self.tvMachines)
105 self.lblProgress = QtGui.QLabel(self.tbConfig)
106 self.lblProgress.setObjectName(_fromUtf8("lblProgress"))
107 self.lyConfig.addWidget(self.lblProgress)
108 self.edtProgress = QtGui.QPlainTextEdit(self.tbConfig)
110 font.setFamily(_fromUtf8("Monospace"))
111 font.setPointSize(10)
112 self.edtProgress.setFont(font)
113 self.edtProgress.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
114 self.edtProgress.setLineWrapMode(QtGui.QPlainTextEdit.NoWrap)
115 self.edtProgress.setReadOnly(True)
116 self.edtProgress.setPlainText(_fromUtf8(""))
117 self.edtProgress.setObjectName(_fromUtf8("edtProgress"))
118 self.lyConfig.addWidget(self.edtProgress)
119 self.tabConfig.addTab(self.tbConfig, _fromUtf8(""))
120 self.tbLog = QtGui.QWidget()
121 self.tbLog.setObjectName(_fromUtf8("tbLog"))
122 self.lyLog = QtGui.QVBoxLayout(self.tbLog)
123 self.lyLog.setObjectName(_fromUtf8("lyLog"))
124 self.edtLog = QtGui.QPlainTextEdit(self.tbLog)
125 self.edtLog.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
126 self.edtLog.setLineWrapMode(QtGui.QPlainTextEdit.NoWrap)
127 self.edtLog.setReadOnly(True)
128 self.edtLog.setObjectName(_fromUtf8("edtLog"))
129 self.lyLog.addWidget(self.edtLog)
130 self.tabConfig.addTab(self.tbLog, _fromUtf8(""))
131 self.verticalLayout_3.addWidget(self.tabConfig)
132 self.lyButton = QtGui.QHBoxLayout()
133 self.lyButton.setObjectName(_fromUtf8("lyButton"))
134 spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
135 self.lyButton.addItem(spacerItem1)
136 self.btnRefresh = QtGui.QPushButton(ConfigureDialog)
137 self.btnRefresh.setMinimumSize(QtCore.QSize(100, 0))
138 self.btnRefresh.setObjectName(_fromUtf8("btnRefresh"))
139 self.lyButton.addWidget(self.btnRefresh)
140 self.btnAbout = QtGui.QPushButton(ConfigureDialog)
141 self.btnAbout.setMinimumSize(QtCore.QSize(100, 0))
142 self.btnAbout.setObjectName(_fromUtf8("btnAbout"))
143 self.lyButton.addWidget(self.btnAbout)
144 self.btnClose = QtGui.QPushButton(ConfigureDialog)
145 self.btnClose.setMinimumSize(QtCore.QSize(100, 0))
146 self.btnClose.setDefault(True)
147 self.btnClose.setObjectName(_fromUtf8("btnClose"))
148 self.lyButton.addWidget(self.btnClose)
149 self.verticalLayout_3.addLayout(self.lyButton)
151 self.retranslateUi(ConfigureDialog)
152 self.tabConfig.setCurrentIndex(0)
153 QtCore.QMetaObject.connectSlotsByName(ConfigureDialog)
154 ConfigureDialog.setTabOrder(self.edtStatus, self.edtVersion)
155 ConfigureDialog.setTabOrder(self.edtVersion, self.tvTemplate)
156 ConfigureDialog.setTabOrder(self.tvTemplate, self.btnDownload)
157 ConfigureDialog.setTabOrder(self.btnDownload, self.btnImport)
158 ConfigureDialog.setTabOrder(self.btnImport, self.tvMachines)
159 ConfigureDialog.setTabOrder(self.tvMachines, self.edtProgress)
160 ConfigureDialog.setTabOrder(self.edtProgress, self.btnRefresh)
161 ConfigureDialog.setTabOrder(self.btnRefresh, self.btnAbout)
162 ConfigureDialog.setTabOrder(self.btnAbout, self.btnClose)
164 def retranslateUi(self, ConfigureDialog):
165 ConfigureDialog.setWindowTitle(_translate("ConfigureDialog", "OpenSecurity Configuration", None))
166 self.lblVersion.setText(_translate("ConfigureDialog", "Version:", None))
167 self.lblStatus.setText(_translate("ConfigureDialog", "Service status:", None))
168 self.lblTemplate.setText(_translate("ConfigureDialog", "Initial Template:", None))
169 self.tvTemplate.headerItem().setText(0, _translate("ConfigureDialog", "Name", None))
170 self.tvTemplate.headerItem().setText(1, _translate("ConfigureDialog", "Date", None))
171 self.tvTemplate.headerItem().setText(2, _translate("ConfigureDialog", "Size", None))
172 self.tvTemplate.headerItem().setText(3, _translate("ConfigureDialog", "Path", None))
173 self.btnDownload.setText(_translate("ConfigureDialog", "&Download", None))
174 self.btnImport.setText(_translate("ConfigureDialog", "&Import", None))
175 self.lblMachines.setText(_translate("ConfigureDialog", "Machines:", None))
176 self.tvMachines.headerItem().setText(0, _translate("ConfigureDialog", "Name", None))
177 self.lblProgress.setText(_translate("ConfigureDialog", "Progress:", None))
178 self.tabConfig.setTabText(self.tabConfig.indexOf(self.tbConfig), _translate("ConfigureDialog", "Configuration", None))
179 self.tabConfig.setTabText(self.tabConfig.indexOf(self.tbLog), _translate("ConfigureDialog", "Log", None))
180 self.btnRefresh.setText(_translate("ConfigureDialog", "&Refresh", None))
181 self.btnAbout.setText(_translate("ConfigureDialog", "&About", None))
182 self.btnClose.setText(_translate("ConfigureDialog", "&Close", None))
184 import opensecurity_rc