oliver@100
|
1 |
# -*- coding: utf-8 -*-
|
oliver@100
|
2 |
|
oliver@100
|
3 |
# Form implementation generated from reading ui file 'ConfigureDialog.ui'
|
oliver@100
|
4 |
#
|
oliver@200
|
5 |
# Created: Wed Jun 25 20:39:32 2014
|
oliver@100
|
6 |
# by: PyQt4 UI code generator 4.10.3
|
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_ConfigureDialog(object):
|
oliver@100
|
27 |
def setupUi(self, ConfigureDialog):
|
oliver@100
|
28 |
ConfigureDialog.setObjectName(_fromUtf8("ConfigureDialog"))
|
oliver@197
|
29 |
ConfigureDialog.resize(722, 521)
|
oliver@100
|
30 |
icon = QtGui.QIcon()
|
oliver@100
|
31 |
icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/opensecurity/gfx/opensecurity_icon_64.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
oliver@100
|
32 |
ConfigureDialog.setWindowIcon(icon)
|
oliver@100
|
33 |
ConfigureDialog.setSizeGripEnabled(True)
|
oliver@123
|
34 |
self.lyMain = QtGui.QVBoxLayout(ConfigureDialog)
|
oliver@123
|
35 |
self.lyMain.setObjectName(_fromUtf8("lyMain"))
|
oliver@100
|
36 |
self.lyHeading = QtGui.QHBoxLayout()
|
oliver@100
|
37 |
self.lyHeading.setSpacing(8)
|
oliver@100
|
38 |
self.lyHeading.setContentsMargins(8, -1, -1, 8)
|
oliver@100
|
39 |
self.lyHeading.setObjectName(_fromUtf8("lyHeading"))
|
oliver@106
|
40 |
self.lblIcon = QtGui.QLabel(ConfigureDialog)
|
oliver@106
|
41 |
self.lblIcon.setText(_fromUtf8(""))
|
oliver@106
|
42 |
self.lblIcon.setPixmap(QtGui.QPixmap(_fromUtf8(":/opensecurity/gfx/opensecurity_configure_64.png")))
|
oliver@106
|
43 |
self.lblIcon.setObjectName(_fromUtf8("lblIcon"))
|
oliver@106
|
44 |
self.lyHeading.addWidget(self.lblIcon)
|
oliver@100
|
45 |
self.lyStatus = QtGui.QGridLayout()
|
oliver@100
|
46 |
self.lyStatus.setObjectName(_fromUtf8("lyStatus"))
|
oliver@106
|
47 |
self.edtStatus = QtGui.QLineEdit(ConfigureDialog)
|
oliver@106
|
48 |
self.edtStatus.setReadOnly(True)
|
oliver@106
|
49 |
self.edtStatus.setObjectName(_fromUtf8("edtStatus"))
|
oliver@106
|
50 |
self.lyStatus.addWidget(self.edtStatus, 0, 1, 1, 1)
|
oliver@106
|
51 |
self.lblVersion = QtGui.QLabel(ConfigureDialog)
|
oliver@106
|
52 |
self.lblVersion.setObjectName(_fromUtf8("lblVersion"))
|
oliver@106
|
53 |
self.lyStatus.addWidget(self.lblVersion, 1, 0, 1, 1)
|
oliver@106
|
54 |
self.edtVersion = QtGui.QLineEdit(ConfigureDialog)
|
oliver@106
|
55 |
self.edtVersion.setReadOnly(True)
|
oliver@106
|
56 |
self.edtVersion.setObjectName(_fromUtf8("edtVersion"))
|
oliver@106
|
57 |
self.lyStatus.addWidget(self.edtVersion, 1, 1, 1, 1)
|
oliver@106
|
58 |
self.lblStatus = QtGui.QLabel(ConfigureDialog)
|
oliver@106
|
59 |
self.lblStatus.setObjectName(_fromUtf8("lblStatus"))
|
oliver@106
|
60 |
self.lyStatus.addWidget(self.lblStatus, 0, 0, 1, 1)
|
oliver@106
|
61 |
self.wdStatus = QtGui.QWidget(ConfigureDialog)
|
oliver@106
|
62 |
self.wdStatus.setObjectName(_fromUtf8("wdStatus"))
|
oliver@106
|
63 |
self.lyStatus.addWidget(self.wdStatus, 2, 0, 1, 2)
|
oliver@100
|
64 |
self.lyHeading.addLayout(self.lyStatus)
|
oliver@123
|
65 |
self.lyMain.addLayout(self.lyHeading)
|
oliver@186
|
66 |
self.tabWidget = QtGui.QTabWidget(ConfigureDialog)
|
oliver@186
|
67 |
self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
|
oliver@186
|
68 |
self.tabConfiguration = QtGui.QWidget()
|
oliver@186
|
69 |
self.tabConfiguration.setObjectName(_fromUtf8("tabConfiguration"))
|
oliver@186
|
70 |
self.lyTabConfig = QtGui.QVBoxLayout(self.tabConfiguration)
|
oliver@186
|
71 |
self.lyTabConfig.setObjectName(_fromUtf8("lyTabConfig"))
|
oliver@186
|
72 |
self.lblTemplate = QtGui.QLabel(self.tabConfiguration)
|
oliver@106
|
73 |
self.lblTemplate.setObjectName(_fromUtf8("lblTemplate"))
|
oliver@186
|
74 |
self.lyTabConfig.addWidget(self.lblTemplate)
|
oliver@186
|
75 |
self.tvTemplate = QtGui.QTreeWidget(self.tabConfiguration)
|
oliver@100
|
76 |
self.tvTemplate.setMaximumSize(QtCore.QSize(16777215, 64))
|
oliver@108
|
77 |
self.tvTemplate.setRootIsDecorated(False)
|
oliver@108
|
78 |
self.tvTemplate.setItemsExpandable(False)
|
oliver@108
|
79 |
self.tvTemplate.setAllColumnsShowFocus(True)
|
oliver@100
|
80 |
self.tvTemplate.setObjectName(_fromUtf8("tvTemplate"))
|
oliver@186
|
81 |
self.lyTabConfig.addWidget(self.tvTemplate)
|
oliver@100
|
82 |
self.lyDownload = QtGui.QHBoxLayout()
|
oliver@100
|
83 |
self.lyDownload.setObjectName(_fromUtf8("lyDownload"))
|
oliver@100
|
84 |
spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
|
oliver@100
|
85 |
self.lyDownload.addItem(spacerItem)
|
oliver@186
|
86 |
self.btnDownload = QtGui.QPushButton(self.tabConfiguration)
|
oliver@100
|
87 |
self.btnDownload.setMinimumSize(QtCore.QSize(100, 0))
|
oliver@100
|
88 |
self.btnDownload.setObjectName(_fromUtf8("btnDownload"))
|
oliver@100
|
89 |
self.lyDownload.addWidget(self.btnDownload)
|
oliver@186
|
90 |
self.btnImport = QtGui.QPushButton(self.tabConfiguration)
|
oliver@100
|
91 |
self.btnImport.setMinimumSize(QtCore.QSize(100, 0))
|
oliver@100
|
92 |
self.btnImport.setObjectName(_fromUtf8("btnImport"))
|
BarthaM@220
|
93 |
self.btnInitialize = QtGui.QPushButton(self.tabConfiguration)
|
BarthaM@220
|
94 |
self.btnInitialize.setMinimumSize(QtCore.QSize(100, 0))
|
BarthaM@220
|
95 |
self.btnInitialize.setObjectName(_fromUtf8("btnInitialize"))
|
oliver@100
|
96 |
self.lyDownload.addWidget(self.btnImport)
|
BarthaM@220
|
97 |
self.lyDownload.addWidget(self.btnInitialize)
|
oliver@186
|
98 |
self.lyTabConfig.addLayout(self.lyDownload)
|
oliver@186
|
99 |
self.lblProgress = QtGui.QLabel(self.tabConfiguration)
|
oliver@106
|
100 |
self.lblProgress.setObjectName(_fromUtf8("lblProgress"))
|
oliver@186
|
101 |
self.lyTabConfig.addWidget(self.lblProgress)
|
oliver@186
|
102 |
self.edtProgress = QtGui.QPlainTextEdit(self.tabConfiguration)
|
oliver@100
|
103 |
font = QtGui.QFont()
|
oliver@100
|
104 |
font.setFamily(_fromUtf8("Monospace"))
|
oliver@100
|
105 |
font.setPointSize(10)
|
oliver@106
|
106 |
self.edtProgress.setFont(font)
|
oliver@106
|
107 |
self.edtProgress.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
|
oliver@109
|
108 |
self.edtProgress.setLineWrapMode(QtGui.QPlainTextEdit.NoWrap)
|
oliver@106
|
109 |
self.edtProgress.setReadOnly(True)
|
oliver@108
|
110 |
self.edtProgress.setPlainText(_fromUtf8(""))
|
oliver@106
|
111 |
self.edtProgress.setObjectName(_fromUtf8("edtProgress"))
|
oliver@186
|
112 |
self.lyTabConfig.addWidget(self.edtProgress)
|
oliver@197
|
113 |
icon1 = QtGui.QIcon()
|
oliver@197
|
114 |
icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/opensecurity/gfx/preferences-system.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
oliver@197
|
115 |
self.tabWidget.addTab(self.tabConfiguration, icon1, _fromUtf8(""))
|
oliver@197
|
116 |
self.tabMachines = QtGui.QWidget()
|
oliver@197
|
117 |
self.tabMachines.setObjectName(_fromUtf8("tabMachines"))
|
oliver@197
|
118 |
self.verticalLayout_2 = QtGui.QVBoxLayout(self.tabMachines)
|
oliver@197
|
119 |
self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
|
oliver@197
|
120 |
self.tvMachines = QtGui.QTreeWidget(self.tabMachines)
|
oliver@197
|
121 |
self.tvMachines.setRootIsDecorated(True)
|
oliver@197
|
122 |
self.tvMachines.setUniformRowHeights(True)
|
oliver@197
|
123 |
self.tvMachines.setItemsExpandable(True)
|
oliver@197
|
124 |
self.tvMachines.setAnimated(True)
|
oliver@197
|
125 |
self.tvMachines.setAllColumnsShowFocus(True)
|
oliver@198
|
126 |
self.tvMachines.setColumnCount(2)
|
oliver@197
|
127 |
self.tvMachines.setObjectName(_fromUtf8("tvMachines"))
|
oliver@197
|
128 |
self.verticalLayout_2.addWidget(self.tvMachines)
|
oliver@197
|
129 |
icon2 = QtGui.QIcon()
|
oliver@197
|
130 |
icon2.addPixmap(QtGui.QPixmap(_fromUtf8(":/opensecurity/gfx/cpu.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
oliver@197
|
131 |
self.tabWidget.addTab(self.tabMachines, icon2, _fromUtf8(""))
|
oliver@186
|
132 |
self.tabLog = QtGui.QWidget()
|
oliver@186
|
133 |
self.tabLog.setObjectName(_fromUtf8("tabLog"))
|
oliver@197
|
134 |
self.verticalLayout = QtGui.QVBoxLayout(self.tabLog)
|
oliver@197
|
135 |
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
|
oliver@186
|
136 |
self.edtLog = QtGui.QPlainTextEdit(self.tabLog)
|
oliver@190
|
137 |
font = QtGui.QFont()
|
oliver@190
|
138 |
font.setFamily(_fromUtf8("Monospace"))
|
oliver@190
|
139 |
font.setPointSize(10)
|
oliver@190
|
140 |
self.edtLog.setFont(font)
|
oliver@186
|
141 |
self.edtLog.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
|
oliver@190
|
142 |
self.edtLog.setLineWrapMode(QtGui.QPlainTextEdit.NoWrap)
|
oliver@186
|
143 |
self.edtLog.setReadOnly(True)
|
oliver@186
|
144 |
self.edtLog.setObjectName(_fromUtf8("edtLog"))
|
oliver@197
|
145 |
self.verticalLayout.addWidget(self.edtLog)
|
oliver@197
|
146 |
self.lyLog = QtGui.QHBoxLayout()
|
oliver@197
|
147 |
self.lyLog.setObjectName(_fromUtf8("lyLog"))
|
oliver@197
|
148 |
spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
|
oliver@197
|
149 |
self.lyLog.addItem(spacerItem1)
|
oliver@197
|
150 |
self.btnExplorer = QtGui.QPushButton(self.tabLog)
|
oliver@197
|
151 |
self.btnExplorer.setMinimumSize(QtCore.QSize(100, 0))
|
oliver@197
|
152 |
self.btnExplorer.setObjectName(_fromUtf8("btnExplorer"))
|
oliver@197
|
153 |
self.lyLog.addWidget(self.btnExplorer)
|
oliver@197
|
154 |
self.verticalLayout.addLayout(self.lyLog)
|
oliver@197
|
155 |
icon3 = QtGui.QIcon()
|
oliver@197
|
156 |
icon3.addPixmap(QtGui.QPixmap(_fromUtf8(":/opensecurity/gfx/text-x-log.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
oliver@197
|
157 |
self.tabWidget.addTab(self.tabLog, icon3, _fromUtf8(""))
|
oliver@186
|
158 |
self.lyMain.addWidget(self.tabWidget)
|
oliver@100
|
159 |
self.lyButton = QtGui.QHBoxLayout()
|
oliver@100
|
160 |
self.lyButton.setObjectName(_fromUtf8("lyButton"))
|
oliver@197
|
161 |
spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
|
oliver@197
|
162 |
self.lyButton.addItem(spacerItem2)
|
oliver@100
|
163 |
self.btnRefresh = QtGui.QPushButton(ConfigureDialog)
|
oliver@100
|
164 |
self.btnRefresh.setMinimumSize(QtCore.QSize(100, 0))
|
oliver@100
|
165 |
self.btnRefresh.setObjectName(_fromUtf8("btnRefresh"))
|
oliver@100
|
166 |
self.lyButton.addWidget(self.btnRefresh)
|
oliver@100
|
167 |
self.btnAbout = QtGui.QPushButton(ConfigureDialog)
|
oliver@100
|
168 |
self.btnAbout.setMinimumSize(QtCore.QSize(100, 0))
|
oliver@100
|
169 |
self.btnAbout.setObjectName(_fromUtf8("btnAbout"))
|
oliver@100
|
170 |
self.lyButton.addWidget(self.btnAbout)
|
oliver@100
|
171 |
self.btnClose = QtGui.QPushButton(ConfigureDialog)
|
oliver@100
|
172 |
self.btnClose.setMinimumSize(QtCore.QSize(100, 0))
|
oliver@100
|
173 |
self.btnClose.setDefault(True)
|
oliver@100
|
174 |
self.btnClose.setObjectName(_fromUtf8("btnClose"))
|
oliver@100
|
175 |
self.lyButton.addWidget(self.btnClose)
|
oliver@123
|
176 |
self.lyMain.addLayout(self.lyButton)
|
oliver@123
|
177 |
self.lblVersion.setBuddy(self.edtVersion)
|
oliver@123
|
178 |
self.lblStatus.setBuddy(self.edtStatus)
|
oliver@123
|
179 |
self.lblTemplate.setBuddy(self.tvTemplate)
|
oliver@123
|
180 |
self.lblProgress.setBuddy(self.edtProgress)
|
oliver@100
|
181 |
|
oliver@100
|
182 |
self.retranslateUi(ConfigureDialog)
|
oliver@186
|
183 |
self.tabWidget.setCurrentIndex(0)
|
oliver@100
|
184 |
QtCore.QMetaObject.connectSlotsByName(ConfigureDialog)
|
oliver@106
|
185 |
ConfigureDialog.setTabOrder(self.edtStatus, self.edtVersion)
|
oliver@197
|
186 |
ConfigureDialog.setTabOrder(self.edtVersion, self.btnImport)
|
oliver@197
|
187 |
ConfigureDialog.setTabOrder(self.btnImport, self.btnAbout)
|
oliver@100
|
188 |
ConfigureDialog.setTabOrder(self.btnAbout, self.btnClose)
|
oliver@100
|
189 |
|
oliver@100
|
190 |
def retranslateUi(self, ConfigureDialog):
|
oliver@100
|
191 |
ConfigureDialog.setWindowTitle(_translate("ConfigureDialog", "OpenSecurity Configuration", None))
|
oliver@106
|
192 |
self.lblVersion.setText(_translate("ConfigureDialog", "Version:", None))
|
oliver@106
|
193 |
self.lblStatus.setText(_translate("ConfigureDialog", "Service status:", None))
|
oliver@106
|
194 |
self.lblTemplate.setText(_translate("ConfigureDialog", "Initial Template:", None))
|
oliver@100
|
195 |
self.tvTemplate.headerItem().setText(0, _translate("ConfigureDialog", "Name", None))
|
oliver@100
|
196 |
self.tvTemplate.headerItem().setText(1, _translate("ConfigureDialog", "Date", None))
|
oliver@100
|
197 |
self.tvTemplate.headerItem().setText(2, _translate("ConfigureDialog", "Size", None))
|
oliver@108
|
198 |
self.tvTemplate.headerItem().setText(3, _translate("ConfigureDialog", "Path", None))
|
oliver@100
|
199 |
self.btnDownload.setText(_translate("ConfigureDialog", "&Download", None))
|
oliver@100
|
200 |
self.btnImport.setText(_translate("ConfigureDialog", "&Import", None))
|
BarthaM@220
|
201 |
self.btnInitialize.setText(_translate("ConfigureDialog", "&Initialize", None))
|
oliver@106
|
202 |
self.lblProgress.setText(_translate("ConfigureDialog", "Progress:", None))
|
oliver@186
|
203 |
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabConfiguration), _translate("ConfigureDialog", "Configuration", None))
|
oliver@197
|
204 |
self.tvMachines.setSortingEnabled(True)
|
oliver@197
|
205 |
self.tvMachines.headerItem().setText(0, _translate("ConfigureDialog", "Name", None))
|
oliver@198
|
206 |
self.tvMachines.headerItem().setText(1, _translate("ConfigureDialog", "Value", None))
|
oliver@197
|
207 |
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabMachines), _translate("ConfigureDialog", "Machines", None))
|
oliver@197
|
208 |
self.btnExplorer.setText(_translate("ConfigureDialog", "&Explorer", None))
|
oliver@186
|
209 |
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabLog), _translate("ConfigureDialog", "Service Log", None))
|
oliver@100
|
210 |
self.btnRefresh.setText(_translate("ConfigureDialog", "&Refresh", None))
|
oliver@100
|
211 |
self.btnAbout.setText(_translate("ConfigureDialog", "&About", None))
|
oliver@100
|
212 |
self.btnClose.setText(_translate("ConfigureDialog", "&Close", None))
|
oliver@100
|
213 |
|
oliver@100
|
214 |
import opensecurity_rc
|