OpenSecurity/bin/ui/ui_ConfigureDialog.py
author Oliver Maurhart <oliver.maurhart@ait.ac.at>
Wed, 25 Jun 2014 20:39:42 +0200
changeset 200 74e42f671ec4
parent 198 c80f38c424fd
child 220 f5805ee62d80
permissions -rw-r--r--
added network icon
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"))
oliver@100
    93
        self.lyDownload.addWidget(self.btnImport)
oliver@186
    94
        self.lyTabConfig.addLayout(self.lyDownload)
oliver@186
    95
        self.lblProgress = QtGui.QLabel(self.tabConfiguration)
oliver@106
    96
        self.lblProgress.setObjectName(_fromUtf8("lblProgress"))
oliver@186
    97
        self.lyTabConfig.addWidget(self.lblProgress)
oliver@186
    98
        self.edtProgress = QtGui.QPlainTextEdit(self.tabConfiguration)
oliver@100
    99
        font = QtGui.QFont()
oliver@100
   100
        font.setFamily(_fromUtf8("Monospace"))
oliver@100
   101
        font.setPointSize(10)
oliver@106
   102
        self.edtProgress.setFont(font)
oliver@106
   103
        self.edtProgress.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
oliver@109
   104
        self.edtProgress.setLineWrapMode(QtGui.QPlainTextEdit.NoWrap)
oliver@106
   105
        self.edtProgress.setReadOnly(True)
oliver@108
   106
        self.edtProgress.setPlainText(_fromUtf8(""))
oliver@106
   107
        self.edtProgress.setObjectName(_fromUtf8("edtProgress"))
oliver@186
   108
        self.lyTabConfig.addWidget(self.edtProgress)
oliver@197
   109
        icon1 = QtGui.QIcon()
oliver@197
   110
        icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/opensecurity/gfx/preferences-system.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
oliver@197
   111
        self.tabWidget.addTab(self.tabConfiguration, icon1, _fromUtf8(""))
oliver@197
   112
        self.tabMachines = QtGui.QWidget()
oliver@197
   113
        self.tabMachines.setObjectName(_fromUtf8("tabMachines"))
oliver@197
   114
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.tabMachines)
oliver@197
   115
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
oliver@197
   116
        self.tvMachines = QtGui.QTreeWidget(self.tabMachines)
oliver@197
   117
        self.tvMachines.setRootIsDecorated(True)
oliver@197
   118
        self.tvMachines.setUniformRowHeights(True)
oliver@197
   119
        self.tvMachines.setItemsExpandable(True)
oliver@197
   120
        self.tvMachines.setAnimated(True)
oliver@197
   121
        self.tvMachines.setAllColumnsShowFocus(True)
oliver@198
   122
        self.tvMachines.setColumnCount(2)
oliver@197
   123
        self.tvMachines.setObjectName(_fromUtf8("tvMachines"))
oliver@197
   124
        self.verticalLayout_2.addWidget(self.tvMachines)
oliver@197
   125
        icon2 = QtGui.QIcon()
oliver@197
   126
        icon2.addPixmap(QtGui.QPixmap(_fromUtf8(":/opensecurity/gfx/cpu.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
oliver@197
   127
        self.tabWidget.addTab(self.tabMachines, icon2, _fromUtf8(""))
oliver@186
   128
        self.tabLog = QtGui.QWidget()
oliver@186
   129
        self.tabLog.setObjectName(_fromUtf8("tabLog"))
oliver@197
   130
        self.verticalLayout = QtGui.QVBoxLayout(self.tabLog)
oliver@197
   131
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
oliver@186
   132
        self.edtLog = QtGui.QPlainTextEdit(self.tabLog)
oliver@190
   133
        font = QtGui.QFont()
oliver@190
   134
        font.setFamily(_fromUtf8("Monospace"))
oliver@190
   135
        font.setPointSize(10)
oliver@190
   136
        self.edtLog.setFont(font)
oliver@186
   137
        self.edtLog.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
oliver@190
   138
        self.edtLog.setLineWrapMode(QtGui.QPlainTextEdit.NoWrap)
oliver@186
   139
        self.edtLog.setReadOnly(True)
oliver@186
   140
        self.edtLog.setObjectName(_fromUtf8("edtLog"))
oliver@197
   141
        self.verticalLayout.addWidget(self.edtLog)
oliver@197
   142
        self.lyLog = QtGui.QHBoxLayout()
oliver@197
   143
        self.lyLog.setObjectName(_fromUtf8("lyLog"))
oliver@197
   144
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
oliver@197
   145
        self.lyLog.addItem(spacerItem1)
oliver@197
   146
        self.btnExplorer = QtGui.QPushButton(self.tabLog)
oliver@197
   147
        self.btnExplorer.setMinimumSize(QtCore.QSize(100, 0))
oliver@197
   148
        self.btnExplorer.setObjectName(_fromUtf8("btnExplorer"))
oliver@197
   149
        self.lyLog.addWidget(self.btnExplorer)
oliver@197
   150
        self.verticalLayout.addLayout(self.lyLog)
oliver@197
   151
        icon3 = QtGui.QIcon()
oliver@197
   152
        icon3.addPixmap(QtGui.QPixmap(_fromUtf8(":/opensecurity/gfx/text-x-log.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
oliver@197
   153
        self.tabWidget.addTab(self.tabLog, icon3, _fromUtf8(""))
oliver@186
   154
        self.lyMain.addWidget(self.tabWidget)
oliver@100
   155
        self.lyButton = QtGui.QHBoxLayout()
oliver@100
   156
        self.lyButton.setObjectName(_fromUtf8("lyButton"))
oliver@197
   157
        spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
oliver@197
   158
        self.lyButton.addItem(spacerItem2)
oliver@100
   159
        self.btnRefresh = QtGui.QPushButton(ConfigureDialog)
oliver@100
   160
        self.btnRefresh.setMinimumSize(QtCore.QSize(100, 0))
oliver@100
   161
        self.btnRefresh.setObjectName(_fromUtf8("btnRefresh"))
oliver@100
   162
        self.lyButton.addWidget(self.btnRefresh)
oliver@100
   163
        self.btnAbout = QtGui.QPushButton(ConfigureDialog)
oliver@100
   164
        self.btnAbout.setMinimumSize(QtCore.QSize(100, 0))
oliver@100
   165
        self.btnAbout.setObjectName(_fromUtf8("btnAbout"))
oliver@100
   166
        self.lyButton.addWidget(self.btnAbout)
oliver@100
   167
        self.btnClose = QtGui.QPushButton(ConfigureDialog)
oliver@100
   168
        self.btnClose.setMinimumSize(QtCore.QSize(100, 0))
oliver@100
   169
        self.btnClose.setDefault(True)
oliver@100
   170
        self.btnClose.setObjectName(_fromUtf8("btnClose"))
oliver@100
   171
        self.lyButton.addWidget(self.btnClose)
oliver@123
   172
        self.lyMain.addLayout(self.lyButton)
oliver@123
   173
        self.lblVersion.setBuddy(self.edtVersion)
oliver@123
   174
        self.lblStatus.setBuddy(self.edtStatus)
oliver@123
   175
        self.lblTemplate.setBuddy(self.tvTemplate)
oliver@123
   176
        self.lblProgress.setBuddy(self.edtProgress)
oliver@100
   177
oliver@100
   178
        self.retranslateUi(ConfigureDialog)
oliver@186
   179
        self.tabWidget.setCurrentIndex(0)
oliver@100
   180
        QtCore.QMetaObject.connectSlotsByName(ConfigureDialog)
oliver@106
   181
        ConfigureDialog.setTabOrder(self.edtStatus, self.edtVersion)
oliver@197
   182
        ConfigureDialog.setTabOrder(self.edtVersion, self.btnImport)
oliver@197
   183
        ConfigureDialog.setTabOrder(self.btnImport, self.btnAbout)
oliver@100
   184
        ConfigureDialog.setTabOrder(self.btnAbout, self.btnClose)
oliver@100
   185
oliver@100
   186
    def retranslateUi(self, ConfigureDialog):
oliver@100
   187
        ConfigureDialog.setWindowTitle(_translate("ConfigureDialog", "OpenSecurity Configuration", None))
oliver@106
   188
        self.lblVersion.setText(_translate("ConfigureDialog", "Version:", None))
oliver@106
   189
        self.lblStatus.setText(_translate("ConfigureDialog", "Service status:", None))
oliver@106
   190
        self.lblTemplate.setText(_translate("ConfigureDialog", "Initial Template:", None))
oliver@100
   191
        self.tvTemplate.headerItem().setText(0, _translate("ConfigureDialog", "Name", None))
oliver@100
   192
        self.tvTemplate.headerItem().setText(1, _translate("ConfigureDialog", "Date", None))
oliver@100
   193
        self.tvTemplate.headerItem().setText(2, _translate("ConfigureDialog", "Size", None))
oliver@108
   194
        self.tvTemplate.headerItem().setText(3, _translate("ConfigureDialog", "Path", None))
oliver@100
   195
        self.btnDownload.setText(_translate("ConfigureDialog", "&Download", None))
oliver@100
   196
        self.btnImport.setText(_translate("ConfigureDialog", "&Import", None))
oliver@106
   197
        self.lblProgress.setText(_translate("ConfigureDialog", "Progress:", None))
oliver@186
   198
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabConfiguration), _translate("ConfigureDialog", "Configuration", None))
oliver@197
   199
        self.tvMachines.setSortingEnabled(True)
oliver@197
   200
        self.tvMachines.headerItem().setText(0, _translate("ConfigureDialog", "Name", None))
oliver@198
   201
        self.tvMachines.headerItem().setText(1, _translate("ConfigureDialog", "Value", None))
oliver@197
   202
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabMachines), _translate("ConfigureDialog", "Machines", None))
oliver@197
   203
        self.btnExplorer.setText(_translate("ConfigureDialog", "&Explorer", None))
oliver@186
   204
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabLog), _translate("ConfigureDialog", "Service Log", None))
oliver@100
   205
        self.btnRefresh.setText(_translate("ConfigureDialog", "&Refresh", None))
oliver@100
   206
        self.btnAbout.setText(_translate("ConfigureDialog", "&About", None))
oliver@100
   207
        self.btnClose.setText(_translate("ConfigureDialog", "&Close", None))
oliver@100
   208
oliver@100
   209
import opensecurity_rc